Build real-time top-down melee combat in Godot 4. You'll wire up Area2D hitboxes and hurtboxes, a reusable HealthComponent, directional swings, a practice-dummy enemy, knockback, i-frames, and hit feedback that actually feels good.
10
Lessons
1005
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: Real-time combat in the complete 2D top-down RPG


Start the first 4 lessons free. Membership unlocks the other 6, 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 10 lessons completed
Member download: included with Guild Hall membership.
It is the finished project for the whole quest. Use it to compare your work or to recover a broken step.
Health, hitbox and hurtbox components with one hit per swing, knockback, hit-stop and i-frames. Free to download, MIT licensed, no account needed.
View the free open-source version on GitHub What is in the Hitbox and Hurtbox projectBuild real-time top-down melee combat in Godot 4. You'll wire up Area2D hitboxes and hurtboxes, a reusable HealthComponent, directional swings, a practice-dummy enemy, knockback, i-frames, and hit feedback that actually feels good.
Finish it, then keep the momentum. Here's the logical next step.
Recommended
2D Top-Down Enemy AI
Quest 5 of 11 in the 2D Top-Down RPG campaign.
Give your enemies a brain. You'll build a 2D finite state machine with six states: idle, roam, chase, a telegraphed leap attack, hitstun and death. It drives CharacterBody2D movement using NavigationAgent2D pathfinding and distance-based detection.
First 2 lessons free6-9 hours
State Machine AI for 3D Enemies
Optional. Not part of your current route. Needs: Code From Zero, or you can already read GDScript.
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
Optional. Not part of your current route. Needs: Finish Inventory System first; Finish Stats & Leveling System first.
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