D
DIYDamian
Guest
Hello. I have a question regarding the with construction. When you create an object with the with construction, does the code within the with construction or the objects create event code occur first?
An example would be if there was an object named objThing. This is the create event code of objThing:
Another outside object would then create objThing through a with construction:
What I'm wondering is that when objThing is created through with, will the variable avar stay the value of the create event code or the value assigned by the with construction?
An example would be if there was an object named objThing. This is the create event code of objThing:
Code:
avar = 10;
Code:
with (instance_create(x, y, objThing)){
avar = 30;
}