the State Stack pattern in Godot!
In this video, I'll show you how to setup and use the Pushdown Automaton, or State Stack Machine!
This is essentially building upon the common 'Finite State Machine' pattern, so it's recommended that you learn about Finite State Machines before watching this video.
Here's a great video by @Bitlytic that covers this topic!
https://www.youtube.com/watch?v=ow_Lum-Agbs
Hopefully this video can teach you something you didn't know before!
Thanks for watching, and I hope you have a great week! :)
Resources:
• Discord: https://discord.gg/kgWXhZjd69
• Twitch: https://www.twitch.tv/queble_game_dev (game dev streams)
• Godot Download: https://godotengine.org/
• Checkout my website: https://www.queblegames.com/ (1 on 1 Godot tutoring, blog posts, etc.)
• Game Programming Patterns book: https://gameprogrammingpatterns.com/ (read online for free)
Timestamps:
0:00 Intro
0:38 Example showcase
1:51 Why use a State Stack Machine?
3:19 Looking at the code
7:59 How to add a new state
10:21 Testing the new state
10:44 Credits, members shoutout, outro, thanks for watching! :)
This video was recorded in Godot v.4.4.1 stable