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.
Start with a 7-day free trial, then $25/month. Cancel anytime.
0 of 14 lessons completed
Create 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
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, event-driven quest tracking that ticks objectives off automatically, a modular conditions and effects system, a runtime that walks the graph and renders it on screen, and the design skills to extend it with your own conditions and effects.
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