Give your enemies a brain. Build a 2D state machine (idle, roam, chase, attack) on CharacterBody2D, with NavigationAgent2D pathfinding and proximity detection.
10
Lessons
1025
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.
0 of 10 lessons completed
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.
Notices what comes near it
Lesson 4
Give your enemies a brain. Build a 2D state machine (idle, roam, chase, attack) on CharacterBody2D, with NavigationAgent2D pathfinding and proximity detection.
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