Salomonsson.se
Jun 28 2015

Fighting system: Finite State Machine

I have really fallen for the concept I drew in the last blog post. It’s not only a game I want to make. It’s actually a game that I want to play!

But to be able to prototype the concept I need to evolve the gameplay a bit more. And that has to start with the system for fighting. After having worked something together for a few hours I realized I needed a way to handle all the states of the player. Especially if he’s going to have complex attacks with combos and stuff.

So I implemented a quick Finite State Machine and tried it out. Turned out to fit my needs perfectly. Also turned out to be a textbook example of how and when you would want a FSM! Might write something about that someday.