Game Maker

Number

A property type for storing whole numbers (integers).

The Number property type is used to store whole numbers (integers), both positive and negative. It is one of the most fundamental types for tracking game state.

  • Default Value: 0

Common Use Cases

  • Player scores, lives, or deaths.
  • Round counters.
  • Ammunition counts.
  • The number of objectives completed.

Operators (in Change Property action)

  • Set: Directly sets the value to a new number.
  • Add: Adds a number to the current value.
  • Subtract: Subtracts a number from the current value.
  • Multiply: Multiplies the current value by a number.
  • Divide: Divides the current value by a number.
  • Modulo: Sets the value to the remainder of a division.
  • Random: Sets the value to a random number within a specified range.

Checks (in Property Condition)

  • Equals: Checks if the value is equal to another number.
  • Greater Than / Greater Than or Equal To: Checks if the value is larger than another number.
  • Less Than / Less Than or Equal To: Checks if the value is smaller than another number.
  • Modulo Equals: Checks if the remainder of the value divided by a number is equal to another number (e.g., Value % 3 == 0 checks if the value is a multiple of 3).