Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Thanks for the comment! This behavior is designed to simplify basic State Machine logic. Think of it as a dedicated variable manager for your object's states.

Here is a quick text tutorial (Enemy AI example):

  1. Add the behavior to your Enemy object.
  2. In the behavior properties, enter your state names into the States list separated by commas (no spaces, no quotes, example: Patrol,Chase).
  3. Create events for what the enemy should do in each state:
    • Condition: Is state "Patrol" -> Action: Move enemy left/right.
    • Condition: Is state "Chase" -> Action: Move towards player.
  4. Use actions to switch states based on triggers:
    • Condition: Distance to player < 200 px -> Action: Set state by name to "Chase".
    • Condition: Distance to player >= 200 px -> Action: Set state by name to "Patrol".

I currently don't have a plan for a video, but if you use it to manage logic modes like this, you will find it very useful!