[FREE] A Godot Node Finite State Machine
A downloadable FSM asset for Windows, macOS, and Linux
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 :)
Status | Prototype |
Category | Assets |
Author | Blackp0ison |
Made with | Godot |
Tags | 2D, 3D, finite-state-machine, Godot, node, state-machine |
Download
Click download now to get access to the following files:
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.