Advanced state machine techniques in Godot 4 @TheShaggyDev
Advanced state machine techniques in Godot 4  @TheShaggyDev
Uploaded November 2023 | Updated November 2026, 3 hours ago
Here's a look at some more advanced techniques you can implement in your state machine when you need something a bit more complex than the starter state machine I showed in the last video. We'll look at three techniques worth understanding for building out the state machine you need and address a few common pain points people run into when programming a state machine.


Text version with code snippets: shaggydev.com/2023/11/28/godot-4-advanced-state-machines

Sample project: github.com/theshaggydev/the-shaggy-dev-projects/tree/main/projects/godot-4/advanced-state-machines

00:00 Dependency injection
02:50 Composition
07:15 Hierarchical state machines
09:25 How to do multiple things at once
10:30 Sharing data between states
Advanced state machine techniques in Godot 410 small ways to make your life easier in GDScriptFree Loopable Game MusicManaging unit data in my turn-based strategy gameThe easiest way to monitor anything in Godot 411 tips for writing cleaner codeGodot 4 beta + channel updateCallbacks and function references in Godot 3 using FuncRefsCome join the Discord!How to use the microphone in Godot 3Development postmortem of my tactics gameMaking a dev console in Godot
The Shaggy Dev |

Advanced state machine techniques in Godot 4

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER