As we all know, state machine is a very common design pattern. Here provide a powerful and easy-to-use Godot plugin for Hierarchical Finite State Machine with visual editing.
- Perfect visual editor
- Supports hierarchical nesting and can be used in complex situations
- Diversified transition plans
- Two development modes: signal callback and attached state script
- Develop base GDscript, compatible with Godot basic version and mono version
- Allows
C#
script to attached as state script. - Suppoets
GDscript
andC#
script to implement the logic of transition( full version only). - Has ability of working with animaions( Can be an Animation State Mechine)( New).
Clone this repo and copy "addons" folder in your project,then Activate this plugin in Project Settings -> Plugins.
NOTE:
Please obey the license(read LICENSE.md for more) when you using this plugin.
- The full version is under a custom license.
- The trial version is under the GNU Lesser General Public License v3.0.
Demos are in res://addons/hierarchical_finite_state_machine/demo/
.
Note:
If you using standard version Godot, you can't run C# script's demo( may lost dependencies of
.tscn
).Only full version have follow demos: 1.
new_corss_language_scriptint_2d_platiform_player
2.new_feature_csharp_script_condition_transition_2d_platiform_player
3.new_feature_gd_script_condition_transiton_2d_platform_player
Read document for more.
Demo 位于 res://addons/hierarchical_finite_state_machine/demo/
注意:
- 如果你使用的是标准版Godot, 你将不能运行含有 C#脚本的demo(打开
.tscn
有可能丢失依赖关系)- 只有完整版才会附带以下Demo:
new_corss_language_scriptint_2d_platiform_player
new_feature_csharp_script_condition_transition_2d_platiform_player
new_feature_gd_script_condition_transiton_2d_platform_player
中文文档请点击这里