Game Maker
Logic

Using Conditions

Control your game's flow by making actions run only when specific criteria are met.

Conditions are powerful checks that let you control if and when your actions run. They are the "if" part of an "if-then-else" statement in your game logic and are primarily used within the Conditional Action.

When you configure a Conditional action, you can add a list of conditions that must be evaluated. You can also specify the logic:

  • Match All (AND): All conditions in the list must be true for the "If Actions" to run.
  • Match Any (OR): At least one of the conditions in the list must be true for the "If Actions" to run.

If the required conditions are not met, the "Else Actions" will run instead (if you've configured any).

Invert Option

Every condition has an Invert option. If you set Invert to true, the condition's result will be flipped. For example:

  • A condition that checks if Player Has Item: DIAMOND.
  • If Invert is true, this condition will now pass only if the player does NOT have a diamond.

This is extremely useful for creating "if not" logic without needing a separate condition type.

Available Conditions

Explore the different types of conditions you can use to build your logic: