What is a finite state machine used for in games?
- Modelling discrete behaviour states and their transitions
- Storing the player's progress in the save file
- Compressing the skeletal animation clip data
- Balancing the mid-game difficulty curve
Idle, patrol, chase and attack become explicit, testable states.
Play Game Dev ▸