Game Maker

Player Start/Stop Moving

Triggers actions when a player starts or stops moving between blocks.

These events are useful for detecting a player's movement state, especially for games that require players to be still or constantly on the move.

Player Start Moving

Triggers once when a player moves from one block coordinate to a new one. It will not trigger again until they have stopped and started moving again.

  • Action Values: Player
  • Use Cases:
    • Playing a footstep sound.
    • Making a "Red Light, Green Light" game where moving at the wrong time is penalized.
    • Revealing a hidden enemy when a player moves.

Player Stop Moving

Triggers when a player has been stationary on the same block for a short duration (about a quarter of a second).

  • Action Values: Player
  • Use Cases:
    • Making a player invisible after they've been still for a few seconds (like a chameleon ability).
    • Starting health regeneration only after a player has stopped moving and is "in cover".
    • Punishing players for standing still too long in a fast-paced game.

Example: Red Light, Green Light

  1. Property: A Global Boolean property isRedLight, default true.
  2. Region: The main playing field.
  3. Event: Player Start Moving.
  4. Action: A Conditional action.
    • Condition: Property Condition -> check if isRedLight is true.
    • If Actions:
      • Teleport Player: Send the Player back to the start.
      • Send Message: &cYou moved during a red light!