Hierarchical state machines are a very convenient design pattern for character control in video games. In two recent games I worked on (an adventure game and a platformer), my team used a data-driven, policy-based hierarchical state machine engine to drive the character animations.
Data-Driven
A data-driven model provides two main advantages. First, it allows for the use [...]

continue reading.....