Build a full state machine AI for 3D enemies in Godot 4.x. Perception, chase, melee and ranged combat, tactical spacing, a real two-sided fight, and a telegraphed lunge, all ready to drop into your own game.
14
Lessons
1780
XP Reward
Intermediate
Difficulty
No videos to zone out to. You write the code yourself in the browser, and Code Checks show what your code passed as you go.
Final result: Combat-aware AI enemies with perception, melee, ranged, and a telegraphed lunge
Start the first 4 lessons free. Membership unlocks the other 10, plus every other quest and campaign.
Membership is US$25 per month or US$200 per year. Eligible new members start with 7 days free. Card required.
0 of 14 lessons completed
A node-based state machine and a slime enemy built on it. A standalone Godot 4 project, MIT licensed.
godot-state-machineCreate reusable state classes with clean lifecycle methods
A view cone plus line-of-sight raycasts that walls can block
Attack up close, or kite and loose projectiles at range
Back away, circle, and keep distance for smart positioning
A HurtBox and apply_hit so your weapon lands, with hit reactions
Assemble the full enemy and walk the whole behavior loop
Your Construct can only do what you have taught it. Finish these lessons and it runs your code for real, not a copy of it.
Chooses between idle and chase
Lesson 3
Build a full state machine AI for 3D enemies in Godot 4.x. Perception, chase, melee and ranged combat, tactical spacing, a real two-sided fight, and a telegraphed lunge, all ready to drop into your own game.
Finish it, then keep the momentum. Here's the logical next step.
Recommended
Dialogue & Quest System
Quest 6 of 11 in 3D Roguelike.
Build a full dialogue and quest system from scratch. You get branching dialogue trees with conditional choices, and event-driven quest tracking that ticks objectives off on its own. You get a modular conditions and effects system, plus a runtime that walks the graph and renders it on screen. You also get the design skills to extend it with conditions and effects of your own.
First 4 lessons free8-11 hours
Advanced Inventory UI
Turn your inventory backend into a real, playable UI: drag-and-drop, tooltips, an equipment doll, a hotbar, and save/load.
Guild Hall7-9 hours
3D Roguelike Controller
Build the third-person movement controller at the heart of a 3D action roguelike, from an empty scene to a full state machine. You get camera-relative walk and run, a shared InputController, jump/fall/landing, a dodge roll, a spring-arm camera, and AnimationTree wiring. Every lesson leaves a project you can press Play on with zero errors. Combat, enemies, and the run systems arrive in later courses.
First 6 lessons free8-11 hours
Browse campaigns Submit a build to the Showcase Back to your dashboard