A downloadable FSM asset for Windows, macOS, and Linux

Download NowName your own price

Just a simple Finite State Machine (FSM) implementation.

The FSM should be used as a Node. Add it as a child of the object you want to control with it and program accordingly.

Setup Example Scene:

The ZIP file comes with an example of character controller using the FSM. Just copy all files from the zip to the "res://" folder. The "Game.tscn" it's the example. Configure your Inputs to use AWD as "left, "right" and "up", respectively. Hit play and see the states changing.

If you want just the code for the FSM, it's available as well (StateMachine.gd).

Do as you wish with it. Any comment on how to improve it, is welcome.

Hope it's useful for someone :)

Download

Download NowName your own price

Click download now to get access to the following files:

FST_asset.zip 866 kB
StateMachine.gd 1 kB

Comments

Log in with itch.io to leave a comment.

But why? There's Animation class for action sequences. (Check it out, in Animation there's almost any action possible.) And AnimationTree class for FSM with better (C++) performance and many other options. And both visual and gd code edition supported.