Description
Changelog
Reviews
Gostate is a lightweight Godot plugin that provides a simple node-based hierarchical state machine system.
⨠Features
- Easy to get started - drop a GoStateMachine into your scene, add a couple of State nodes and pick an initial state. No boilerplate required.
- Organize behaviour visually - group related states and nested machines in the scene tree so your game logic reads like a map.
- Predictable lifecycle - GoState nodes emit signals when they become active or inactive so you can hook up animations, sounds, or setup/teardown code without guessing timing. They also expose most of the basic Godot overridable nodes such as _state_physics_process, _state_input, etc...
- Event-driven transitions - wire transitions with trigger_state_event(...) from code for quick, readable flow control.
- Lightweight and non-intrusive - small scripts, no external dependencies, and editor-friendly warnings so you spend less time debugging setup.
⥠Quick start
- Add a GoStateMachine node to your scene.
- Add two child GoState nodes as children of the GoStateMachine and set the initial_state property in the state machine to one of them.
- Add child GoStateTransition nodes under each state.
- Trigger transitions by calling
trigger_state_event(&"your_event")on the state machine or state nodes.
đ˘ Feedback is welcome and appreciated! đ
Changelog for version V1.0
No changelog provided for this version.