Game Maker

Boolean

A property type for storing a simple true or false value.

The Boolean property type stores a simple true or false value. It is essential for creating toggles, flags, and binary states in your game.

  • Default Value: false

Common Use Cases

  • Tracking if a door is locked or unlocked (isDoorLocked).
  • Checking if a player has completed a puzzle (hasCompletedPuzzle1).
  • Toggling a special ability on or off.
  • Storing the state of a lever or button.

Operators (in Change Property action)

  • Set: Directly sets the value to true or false.
  • Set True: A shortcut to set the value to true.
  • Set False: A shortcut to set the value to false.
  • Toggle: Flips the value from true to false, or from false to true.

Checks (in Property Condition)

  • Equals: Checks if the value is equal to true or false.
  • Is True: Checks if the value is true.
  • Is False: Checks if the value is false.