Wiki

Case Status
Log In

Wiki

 
Home ยป Core Concepts»Variables»Bool Variables
Index
Navigation
Community Wiki

Bool Variables

A Bool Variable can store a true/false value.

Bool Variables are good at representing conditions with only 2 states: isAlive, hasKey, isEnemy, isFriend...

NOTE: Naming conventions for Bool Variables should imply the true/false nature of the value.

Examples

Found Me!

  • This example uses a bool variable: isVisible
  • Every frame, the Game Object Is Visible action tests if the GameObject is visible and stores the result in isVisible.
  • The Bool Test action sends the FoundMe event as soon as isVisible is true.
  • The FSM can then respond the FoundMe event as appropriate...

 

 

See Also:

Logic Actions

Tags:

Last modified on 12/28/2015 11:47 PM by User.

  • RSS Feed