Event actions

You can configure actions to be executed when certain conditions are met.

For example, you can configure the action "ADD_TO_SCORE" to trigger whenever the player collides with a bonus item.

Other examples:

  • You can trigger action "SHOOT_OBJECT" whenever the player press keyboard key "spacebar"

  • You can trigger action "GO_TO_NEXT_LEVEL" when player reaches the border of the screen in the right

  • You can trigger action "REMOVE_OBJECT" when a bullet collides with an enemy

For each action, you can configure a set of conditions (event conditions) that must be met for the action to happen. If the condition is not met, the action is not executed.

Before you create an event action, you need to create an event.

After you created an event, click on the link "add event action".

You also need to create at least one condition for your event. For example, you can create action "SHOOT_OBJECT" and condition "KEYDOWN" ArrowUp. This means that whenever the user press the key "ArrowUp", the action "SHOOT_OBJECT" will be executed.

Last updated