Advanced state machine techniques in Godot 4
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: https://shaggydev.com/2023/11/28/godot-4-advanced-state-machines/ Sample project: https://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
Suggested videos

How to write more flexible game code
The Shaggy Dev · 8:36

How to Build a Scalable Player in Godot 4 - No State Machine Needed new! Part _1
DeeRaghooGames · 10:59

Finite State Machines in Godot 4 in Under 10 Minutes
Bitlytic · 7:16

Programming a tactical strategy game in Godot 4
The Shaggy Dev · 14:50

State Machines: a full guide (with 3 examples in Godot)
Mental Moshpit · 31:19

An introduction to finite state machines and the state pattern for game development
The Shaggy Dev · 10:55

The State Machine Video Of All Time ( Godot 4.7 )
BucketBrigade · 13:22

Developing a tactics engine in Godot
The Shaggy Dev · 11:58

How to make a State Machine in Godot!
Queble · 12:46

An introduction to graph rewriting for procedural content generation
The Shaggy Dev · 7:31

Godot State Machines: Enum or a Node Per State?
bytemix-studios · 3:33

Starter state machines in Godot 4
The Shaggy Dev · 10:58