G
Gaspode
Guest
Hi, new to GM:S but absolutely loving it! Great forum here, learnt a ton in the last week and my first game is progressing well.
My question... I have a single room for my game part and dynamically instantiating objects to go in the room. What is the "proper" way to set variables for that instance in my script. I know that I can do the following:
However, for example, let's say my instantiated object creates a particle emitter in it's create event but I want to create that emitter using the variables varA and varB (which using the code above won't get set until after the create event has been run) - how do I do that?
Hope this makes sense - thanks for getting this far...
My question... I have a single room for my game part and dynamically instantiating objects to go in the room. What is the "proper" way to set variables for that instance in my script. I know that I can do the following:
Code:
insID = instance_create(20, 20, obj);
insID.varA = 0;
instID.varB = 1;
etc.
Hope this makes sense - thanks for getting this far...