Uploaded October 2022 | Updated December 2026, 1 day ago
Subscribe and learn more from me about Game Development and Programming!
In this video, we discuss how to build a basic enemy AI. This AI will track the users location and chase them if it sees them.
RESOURCES
Game Design Document: docs.google.com/document/d/1IG9do3z9vRaU4oZYyWwx8Rhc3nWf_5ZuvpmD4SohNGY/edit?usp=sharing
Source files github.com/finepointcgi/Godot-Horror-Game-GD
BE MY FRIEND:
🐦Add me on Twitter: twitter.com/finepointcgi
Check out my Website: finepointcgi.io
Hang Out with the Guys on Discord: discord.gg/5pcNmqp9M3
Trello of Upcoming Tutorials: trello.com/b/cJWPaVyV/godot-tutorials
SUPPORT ME:
You can support me on Ko-FI ko-fi.com/finepointcgi
You can support me on Patreon: patreon.com/finepointcgi
TIMESTAMPS
00:00:00 - Start
00:00:41 - Planning out our Code
00:12:45 - Getting Into Godot and Setting Up Our Enemy
00:15:16 - Creating our Enemy Script
00:15:50 - Setting up Nav System
00:18:52 - Setting up Our State Machine
00:21:33 - Setting Up Navigation Code
00:30:35 - Adding in our Wait State
00:36:09 - Making our Enemy Face his Point
00:38:08 - Upgrading to beta 3 to stop bugs
00:39:39 - Setting up A Detection System
00:45:35 - Creating Sight for our Enemy
00:53:15 - Coding our Detection System
01:00:59 - Marker 13
01:04:20 - Building out our Hunting State
01:07:37 - Coding the Chase System
01:09:47 - Building our Hunting State
01:10:42 - Testing our Code
01:12:24 - Outro
MUSIC
Music provided by TheRelaxedMovement.
Check it out here: https://www.youtube.com/c/TheRelaxedM...
HASHTAGS:
#godot4 #HorrorGame #csharp #enemy #ai
ABOUT MY CHANNEL:
I've been a software developer for over 7 years. I've worked in the game industry for 3 of those years. This channel is used for news on the gaming\programming industry and for tutorials for game\programming development.
Creating our Enemy AI - Creating a Horror Game in Godot 4 Part 2
Subscribe and learn more from me about Game Development and Programming!
In this video, we discuss how to build a basic enemy AI. This AI will track the users location and chase them if it sees them.
RESOURCES
Game Design Document: docs.google.com/document/d/1IG9do3z9vRaU4oZYyWwx8Rhc3nWf_5ZuvpmD4SohNGY/edit?usp=sharing
Source files github.com/finepointcgi/Godot-Horror-Game-GD
BE MY FRIEND:
🐦Add me on Twitter: twitter.com/finepointcgi
Check out my Website: finepointcgi.io
Hang Out with the Guys on Discord: discord.gg/5pcNmqp9M3
Trello of Upcoming Tutorials: trello.com/b/cJWPaVyV/godot-tutorials
SUPPORT ME:
You can support me on Ko-FI ko-fi.com/finepointcgi
You can support me on Patreon: patreon.com/finepointcgi
TIMESTAMPS
00:00:00 - Start
00:00:41 - Planning out our Code
00:12:45 - Getting Into Godot and Setting Up Our Enemy
00:15:16 - Creating our Enemy Script
00:15:50 - Setting up Nav System
00:18:52 - Setting up Our State Machine
00:21:33 - Setting Up Navigation Code
00:30:35 - Adding in our Wait State
00:36:09 - Making our Enemy Face his Point
00:38:08 - Upgrading to beta 3 to stop bugs
00:39:39 - Setting up A Detection System
00:45:35 - Creating Sight for our Enemy
00:53:15 - Coding our Detection System
01:00:59 - Marker 13
01:04:20 - Building out our Hunting State
01:07:37 - Coding the Chase System
01:09:47 - Building our Hunting State
01:10:42 - Testing our Code
01:12:24 - Outro
MUSIC
Music provided by TheRelaxedMovement.
Check it out here: https://www.youtube.com/c/TheRelaxedM...
HASHTAGS:
#godot4 #HorrorGame #csharp #enemy #ai
ABOUT MY CHANNEL:
I've been a software developer for over 7 years. I've worked in the game industry for 3 of those years. This channel is used for news on the gaming\programming industry and for tutorials for game\programming development.
Creating our Enemy AI - Creating a Horror Game in Godot 4 Part 2










