K
what is the difference between creation code and creation event?The optimal way to use them is to use the variables menu to define variables that you intend to set in the room. In your create event you then do calculations and other setup operations which are supposed to be "hidden" from view. Lastly, if need be, you can insert extra code in the Creation Code script.
Notice that this is exactly the order these operations are executed.
So make sure you are not overriding your instance variables in your create event.
- Variables from the variables menu are created.
- Create event is executed.
- Creation code is executed.
Nothing.creation code is effectively the same. It is just more versatile when used in the room editor as it allows you to manipulate each instance of the same object.what is the difference between creation code and creation event?
Creation code is executed right after the Create Event code. Code in your Create Event is executed for all instances, while creation code is only executed for one instance.what is the difference between creation code and creation event?
Thank you! Very useful info.Creation code is executed right after the Create Event code. Code in your Create Event is executed for all instances, while creation code is only executed for one instance.