2D Top-Down Enemy AI
Give your enemies a brain. Build a 2D state machine (idle, roam, chase, attack) on CharacterBody2D, with NavigationAgent2D pathfinding and proximity detection.
10
Lessons
1000
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.
Campaign preview: Enemy AI in action in the complete 2D top-down RPG


Start the first 2 lessons free. Membership unlocks the other 8, plus every other quest and campaign.
Start with a 7-day free trial, then $25/month. Cancel anytime.
Your Progress
0 of 10 lessons completed
- Est. time
- 6-9 hours
- Lessons
- 10
- XP reward
- 1000 XP
- Difficulty
- Intermediate
- Access
- 2 free, then Guild Hall
Skills You'll Walk Away With
State Machine AI
NavigationAgent2D Pathfinding
Detection & Aggro
Combat Behaviors
Hitstun & Death
Tuning & Enemy Variants
Quest Lessons
10 lessons · 2 freeIs This Quest For You?
Perfect for you if:
- You have combat working and want something to fight
- You want clean, extendable AI instead of if/else spaghetti
- You're building a top-down action RPG
- You want the state-machine pattern to finally click
Not for you if:
- You haven't built movement and combat yet
- You want 3D enemy AI (see the 3D Roguelike campaign)
- You want advanced squad or utility AI
- You'd rather not set up navigation regions
Common Questions
Ready to start this quest?
Give your enemies a brain. Build a 2D state machine (idle, roam, chase, attack) on CharacterBody2D, with NavigationAgent2D pathfinding and proximity detection.
After this quest
Finish it, then keep the momentum - here's the logical next step.
Recommended
Game Feel: Make Combat Hit
Quest 6 of 11 in 2D Top-Down RPG.
Take a flat, lifeless sword hit and make it land. This quest is all about game feel: the disproportionate, layered feedback that separates a hobby project from a game that feels pro. You build one reusable Juice autoload, adding a single technique each lesson (hit flash, hit-stop, knockback, screen shake, floating damage numbers, impact particles, punchy SFX), then unify them into one Juice.hit() call that scales every effect to the weight of the blow. By the end the same swing you started with hits like a truck.
First 2 lessons free4-6 hours
State Machine AI for 3D Enemies
Build a full state machine AI for 3D enemies in Godot 4.x. They chase, attack, circle, back away, and react to damage with real knockback and combo tracking, the kind of enemy that actually feels alive.
First 4 lessons free10-14 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
Browse campaigns Submit a build to the Showcase Back to your dashboard


