Event Order

When considering Events in GameMaker, it should be noted that the exact order that ALL the events are going to occur in each step cannot be clearly stated, simply because it depends on the internal workings of GameMaker and this is subject to change as the software develops. However there are certain events that will always run in the same order.

Upon Entering a Room

The first set of events that will always happen the same way are those that occur when a room is first entered. The order that the different events will fire is: 

NOTE You can also set the order in which specific instances are created within The Room Editor itself by moving them up or down the list of the Instance Layer Properties window.

Every Step/Frame

Other than those specific events, events in a game step also always occur in the same order no matter what.

They will always remain consistent, so if you have code that relies on specific timing during each step of your game, you should use the below list. The list should be read as "first all Begin Step events are executed, then all Step events are executed, after that all End Step events are executed, then all Draw events, etc."

NOTE The Step events are always executed before the Draw events.

After all Step events come all Draw events. These are also always dealt with in the same order as follows (except for the Window Resize event, which is triggered differently):

For more detailed information on how these events are related to GameMaker's drawing, see Draw Events.