Building a more advanced state machine in Godot 3 @TheShaggyDev
Building a more advanced state machine in Godot 3  @TheShaggyDev
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
Building a more advanced state machine in Godot 3How to write more flexible game codeAnimating a hardware cursor in Godot - An experimentFixing menu transparency issues in Godot 4How to make a tactics game in only two weeksGame development in the dying days of FlashA few common code smells to be aware of and how to fix themStatic typing in Godot using the class_name keywordAn introduction to graph rewriting for procedural content generationGodot 4 lambda functionsConfiguring your Godot project for pixel artUsing the AStarGrid2D class in Godot 4
The Shaggy Dev |

Building a more advanced state machine in Godot 3

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER