How to Create Event in GameMaker: Studio

By Michael Rohde

The Create Event triggers an assigned Action that you want to happen at the start of the game or when the player enters a new Room. The Create Event is best used for initializing variables, starting Time Lines, setting paths, and so on. These are the types of Actions that you want to happen at the start of the game, or when an Instance first appears in the game, and you only need them done once.

You can also use the Create Event to provide an Object with an initial speed for when the Instance appears in the Room. This is useful if you make a game in which a plane flies continuously upward.

Another use for the Create Event is for when a bullet is fired. In that case, when the player presses the spacebar to shoot, that triggers a Create Instance Action (this is an Action, not an Event), which triggers the creation of the bullet Object, then within that bullet Object, is a Create Event.

That Create Event is triggered when an Instance of that Object appears in the Room (when the player shoots a bullet) and the speed, sound, and movement Actions are triggered. This figure shows the Create Event with the Actions for the bullet Object. Remember, all of these Actions happen when the Instance first appears in the Room.

Use the Create Event to cause Actions to happen when the Object appears in the Room.

Use the Create Event to cause Actions to happen when the Object appears in the Room.