Generating Events

This function lists the functions available to manipulate object events.

As you know, GameMaker is completely event driven, and that all actions happen as the result of certain events that are triggered in a specific order or by a specific occurrence within the game. There are a number of different events, each one with a specific task or timing and some of them are even split into separate "sub" events. Normally these events are run by GameMaker: Studio when it detects an in-game trigger, or every game tick (as is the case with the step and draw events), but you can also apply an event to an instance in the current room from within a piece of code.

The following functions exist that deal with generating events:

  1. event_inherited
  2. event_perform
  3. event_perform_object
  4. event_user

There are also a number of read only variables that can be used with the functions listed above which are particularly useful for debugging:

  1. event_action
  2. event_number
  3. event_object
  4. event_type


Back: Objects
© Copyright YoYo Games Ltd. 2018 All Rights Reserved