EasyGameMaker documentation
  • Getting Started
  • Tutorials
    • Creating your first platformer game
    • Creating a top down shooter game
  • Video Tutorials
    • YouTube channel
  • Introduction
    • Levels
      • Initial objects
      • Buttons
      • Level variables
    • Object types
    • Texts
    • Global variables
    • Events
    • Export
    • Save online
  • Event actions
    • Go to level
    • Go to previous level
    • Go to next level
    • Add to score
    • Set score
    • Shoot object
    • Remove object
    • Create custom object
  • Event Conditions
  • Event Loops
Powered by GitBook
On this page

Was this helpful?

Event actions

PreviousSave onlineNextGo to level

Last updated 4 years ago

Was this helpful?

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 () 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.

event conditions