[Tutorial] Hierarchical Finite State Machine


Hi everyone,

I would like to share with you a simple Hierarchical Finite State Machine that i’ve built for my game. This one is based on Apple GameplayKit State Machine. It is easy to use and manage multiple states either for character animations or general gameplay states.

Here is the link:


Thank you. I used it (modified slightly), to create a sprite animator for my game!


Thanks! this is really useful.


@milos1290 hey, I was wondering if you have any more useful modules that you could share? :slight_smile: