Instance Creation Code
#21
Posted 31 March 2007 - 03:18 AM
- Pyro
#22
Posted 31 March 2007 - 03:28 PM
#23
Posted 31 March 2007 - 11:01 PM
Mattz
#24
Posted 01 April 2007 - 09:00 PM
i didnt know that
#25
Posted 03 April 2007 - 07:02 PM
Excalibur
#26
Posted 03 April 2007 - 08:18 PM
#27
Posted 04 April 2007 - 10:27 PM
Thanks for this!
#28
Posted 06 April 2007 - 06:00 AM
#29
Posted 06 April 2007 - 08:50 PM
You deserve a cookie now!
#30
Posted 06 April 2007 - 10:17 PM
#31
Posted 07 April 2007 - 02:13 AM
#32
Posted 07 April 2007 - 09:07 AM
#33
Posted 07 April 2007 - 09:37 AM
Why didn't you test it first?Okay, question. Exactly WHEN do the actions in the Instance Creation Code get executed? In order to use this properly I will need to know this.
Here is the order: (GM7)
1. Creation code
2. Create event
3. Game start event
4. Room start event
#34
Posted 07 April 2007 - 09:54 AM
#35
Posted 07 April 2007 - 11:32 AM
First, in the current room (if any) all instances get a room-end event. Next the non-persistent instances are removed (no destroy event is generated!).
Next, for the new room the persistent instances from the previous room are added.
All new instances are created and their creation events are executed (if the room is not persistent or has not been visited before).
When this is the first room, for all instances the game-start event is generated.
Now the room creation code is executed.
Finally, all instances get a room-start event.
Is that what you meant about the order..?
#36
Posted 07 April 2007 - 11:53 AM
I think it's after the Room Start but before Instance Create event.All i know is that its sometime before the instances create event. You'll have to do your own tests to see if anything is ran any earlier if required.
#37
Posted 07 April 2007 - 04:24 PM
#38
Posted 17 April 2007 - 04:09 AM
#39
Posted 19 April 2007 - 12:37 PM
#40
Posted 19 April 2007 - 01:32 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











