Finite State Machine

Finite State Machine for Large Enemy AI:

Screenshot 2018-12-16 at 20.41.05.png

Video of FSM working during gameplay:

ezgif.com-video-to-gif.gif

This video shows the FSM working while playing the game. While the enemy is wandering around the environment, the FSM is in the Patrol state. Once the Player gets within a certain radius of the enemy, the FSM switches from the Patrol state to the Chase state. When the Player is no longer within the radius of the Enemy, the FSM returns to the Patrol state.

Leave a comment