Uploaded February 2022 | Updated November 2026, 3 hours ago
Hierarchical state machines and dependency injection are two great techniques to know about when building your state machines in Godot. Let's look at how these techniques can be used to build upon the simpler implementation from the previous video on state machines and make something more flexible and reusable.
Intro: 00:00
Hierarchical state machines: 01:46
Dependency injection: 03:36
More options: 05:22
Source code: github.com/theshaggydev/the-shaggy-dev-projects/tree/main/projects/godot-3/advanced-state-machine
Text version of this video: shaggydev.com/2022/02/13/advanced-state-machines-godot
Video on FuncRefs: youtu.be/f5oE2cqxv3M
Hierarchical state machines and dependency injection are two great techniques to know about when building your state machines in Godot. Let's look at how these techniques can be used to build upon the simpler implementation from the previous video on state machines and make something more flexible and reusable.
Intro: 00:00
Hierarchical state machines: 01:46
Dependency injection: 03:36
More options: 05:22
Source code: github.com/theshaggydev/the-shaggy-dev-projects/tree/main/projects/godot-3/advanced-state-machine
Text version of this video: shaggydev.com/2022/02/13/advanced-state-machines-godot
Video on FuncRefs: youtu.be/f5oE2cqxv3M










