Building a more advanced state machine in Godot 3

Опубликовано: 13 Февраль 2022
на канале: The Shaggy Dev
47,880
1.4k

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: https://github.com/theshaggydev/the-s...

Text version of this video: https://shaggydev.com/2022/02/13/adva...

Video on FuncRefs:    • Callbacks and function references in Godot...