View Full Version: Order Of Events Firing

DimensioneX Forum > Developers' Pub > Order Of Events Firing



Title: Order Of Events Firing


Gumbro - March 30, 2007 02:30 PM (GMT)
Hello,

I'm currently finalizing a script for preventing player movement into next room, or only allowing the player to return to previous room, depending of the state in the current room.

I'd like to understand more clearly the order of events firing, when two or more events are triggered. For example, is onExit always triggered before onEnter, or can I select which one is triggered first by relative positioning of the onExit and onEnter events in the script.

What about the other events?

G

Cris - March 31, 2007 03:53 PM (GMT)
The best way to determine the exact sequence of events is to look at the debug.log file

Just make sure the debugTo=file setting is there.

Gumbro - April 2, 2007 03:13 PM (GMT)
Yeah, got it. I have now finalized this particular script. The planned use is for traps, and for 'enemy characters' or 'obstacles' in the room which have to be dealt with.

G




Hosted for free by InvisionFree