Finite State Machines in Godot 4 in Under 10 Minutes
In this video we'll walk though the setup and creation of a Finite State Machine (FSM) in Godot 4. Finite State Machines are incredibly useful for managing ...

Bitlytic
511.7K views โข Jun 15, 2023

About this video
In this video we'll walk though the setup and creation of a Finite State Machine (FSM) in Godot 4.
Finite State Machines are incredibly useful for managing simple states and transitioning between them. For this video we will look at an enemy with the states of wandering, following, and attacking. Then, we'll build the wander and follow states together in Godot.
Discord - https://discord.gg/skPc32bUfA
Resources:
Additional State Machine tutorial by GDQuest: https://www.gdquest.com/tutorial/godot/design-patterns/finite-state-machine/
Sprout Lands (Tilemap and character): https://cupnooble.itch.io/sprout-lands-asset-pack
Dino (Dino): https://arks.itch.io/dino-characters
Ending music: https://www.youtube.com/watch?v=44MCworZf78
Chapters:
00:00 Intro
00:27 State Explanation
01:06 Wander State
01:28 Finite State Machine
01:59 Godot Time
02:07 Base State Setup
02:28 State Machine Initial Setup
03:55 Idle State Code
04:40 Testing the Idle State
05:08 Follow State Code
05:40 Testing the Follow State
05:58 Transitioning Between States
06:34 Afterthought
07:03 Cow
Finite State Machines are incredibly useful for managing simple states and transitioning between them. For this video we will look at an enemy with the states of wandering, following, and attacking. Then, we'll build the wander and follow states together in Godot.
Discord - https://discord.gg/skPc32bUfA
Resources:
Additional State Machine tutorial by GDQuest: https://www.gdquest.com/tutorial/godot/design-patterns/finite-state-machine/
Sprout Lands (Tilemap and character): https://cupnooble.itch.io/sprout-lands-asset-pack
Dino (Dino): https://arks.itch.io/dino-characters
Ending music: https://www.youtube.com/watch?v=44MCworZf78
Chapters:
00:00 Intro
00:27 State Explanation
01:06 Wander State
01:28 Finite State Machine
01:59 Godot Time
02:07 Base State Setup
02:28 State Machine Initial Setup
03:55 Idle State Code
04:40 Testing the Idle State
05:08 Follow State Code
05:40 Testing the Follow State
05:58 Transitioning Between States
06:34 Afterthought
07:03 Cow
Video Information
Views
511.7K
Likes
19.0K
Duration
7:16
Published
Jun 15, 2023
User Reviews
4.8
(102) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now