Finite state machine script that supports timers, condition evaluation and imbricated statements.
This script has no depency and should be compatible with any Godot version.
Copy the fsm.gd script file in your project.
You don’t need to change your existing code. Simply add this code where you need the machine :
onready var my_fsm=preload(“fsm.gd”).new()
my_fsm.add_link(“state1″,”whatever state”,”condition”,[self,”my_condition1″,”expected value to switch”])
Then in a loop, like _process(delta), call :
To catch the signal when the current state changes:
More documentation and examples on the Github page.
Only logged in customers who have purchased this product may leave a review.
- Store Name: Official Godot Asset Library
- Vendor: Godot Asset Library
- No ratings found yet!