I need to repeatedly instance a scene as a child of a node, and be able to edit the variables in the instanced scene within the loop that creates them.
This is for a load game function, where I have all the data for the enemies saved in a dictionary called savedata, and I need to make a loop, that instances the default enemy, and then sets the enemies position and health to whatever is in savedata.
How do I instance the scene, and then edit the variables that are in that scene, in a way that when I instance the same scene again and change the variables, it will not affect the one that was instanced before it?