Uploaded March 2021 | Updated December 2026, 3 hours ago
By the end of this video we’ll have a simple state machine that will allow our enemies to turn red and take a lunging attack at the player when they get too close, then take a little rest before they continue their hunt.
I apologize for the length of this video! In the future I’ll try to keep the episodes under 20 minutes if I can...
Timestamps:
0:00 Intro
0:20 Wave cleanup
0:59 Collision layers and masks
3:47 Enemy attack radius
7:43 Attack (rest) timer
9:50 Enemy state machine
13:39 Enemy lunging attack
18:42 Returning state
24:45 Fixing the navmesh
28:03 Fixing the return target
29:27 Changing enemy color
34:45 Toggle enemy collisions
38:30 It's working! I guess? lol
*******************************
Playlist: youtube.com/playlist?list=PLaGRTLvEbVzyUMwjUPgrreyRE3AY8jhOK
Source code tagged at the end of each episode: github.com/age-of-asparagus/godot3-3dgame/tags
Credits
-----------
This series is a port of Sebastian Lague's awesome Create a Game (Unity 5) playlist: youtube.com/playlist?list=PLFt_AvWsXl0ctd4dgE1F8g3uec4zKNRV0
Get Godot: godotengine.org
Music: Main theme - Thiago Adamo (github.com/SebLague/Create-a-Game-Source/tree/master/Audio/Music)
Editing: nuby nub (youtube.com/channel/UCxvjgA9QSqi8Bve5x_K5cNw)
Tools
---------
Video Editing: Blender
Overlays: Krita, GIMP, Inkscape, Draw on your Screen (Gnome shell extension)
Recording: SimpleScreenRecorder & Audacity
By the end of this video we’ll have a simple state machine that will allow our enemies to turn red and take a lunging attack at the player when they get too close, then take a little rest before they continue their hunt.
I apologize for the length of this video! In the future I’ll try to keep the episodes under 20 minutes if I can...
Timestamps:
0:00 Intro
0:20 Wave cleanup
0:59 Collision layers and masks
3:47 Enemy attack radius
7:43 Attack (rest) timer
9:50 Enemy state machine
13:39 Enemy lunging attack
18:42 Returning state
24:45 Fixing the navmesh
28:03 Fixing the return target
29:27 Changing enemy color
34:45 Toggle enemy collisions
38:30 It's working! I guess? lol
*******************************
Playlist: youtube.com/playlist?list=PLaGRTLvEbVzyUMwjUPgrreyRE3AY8jhOK
Source code tagged at the end of each episode: github.com/age-of-asparagus/godot3-3dgame/tags
Credits
-----------
This series is a port of Sebastian Lague's awesome Create a Game (Unity 5) playlist: youtube.com/playlist?list=PLFt_AvWsXl0ctd4dgE1F8g3uec4zKNRV0
Get Godot: godotengine.org
Music: Main theme - Thiago Adamo (github.com/SebLague/Create-a-Game-Source/tree/master/Audio/Music)
Editing: nuby nub (youtube.com/channel/UCxvjgA9QSqi8Bve5x_K5cNw)
Tools
---------
Video Editing: Blender
Overlays: Krita, GIMP, Inkscape, Draw on your Screen (Gnome shell extension)
Recording: SimpleScreenRecorder & Audacity










