
Melee Combat System for GDevelop
๐ฎ Example Controls
-
X โ Ground attack / combo
-
Jump + X โ Air attack
-
Down + X โ Crouch attack(You need to add the animation.)
-
Down + A โ Roll / slide
๐ Description
If you want to build a robust, flexible, and professional melee combat system for Action RPG, Metroidvania, Platformer, or Adventure games made in GDevelop, this system is designed for you.
This template demonstrates how to manage ground combos, air attacks, dive attacks, dash/roll actions, crouch attacks, hit detection, and damage resolution, all while keeping movement, animations, and combat states perfectly synchronized using a clean state-based architecture.
It is built as a scalable foundation for fast-paced action games where responsiveness, clarity, and control are essential.
๐ฆ Contents
GDevelop project file (fully commented and well organized)
Modular event groups for:
- Player input & direction handling
- Ground movement and air state management
- Idle / Run animation resolution
- Ground combo attacks
- Air attacks and dive attacks
- Crouch attack system
- Dash / roll system
- Hitbox creation and cleanup
- Damage & hit resolution
- State cleanup and transitions
โจ Main Features
โ๏ธ Modular Melee Combat System
- Supports single-hit and multi-hit sword combos
- Ground and air-based attacks
- Downward (dive) attack support
- Designed for real-time action gameplay
๐ง State-Based Architecture
- Clean separation between movement, attack, and special actions
- Prevents animation conflicts and logic overlap
- Easy to debug, extend, and maintain
๐ Combo Step System
- Each attack step is handled independently
- Supports combo chaining with input windows
- Safe combo reset and recovery handling
๐งญ Direction & Facing Control
- Consistent facing logic independent from movement
- Hitboxes always spawn in the correct direction
- Prevents direction flipping during attacks
๐งฑ Hitbox & Damage Resolution
- Hitboxes are created and destroyed per attack
- Damage logic separated from animation logic
- Supports hit-lock to avoid multiple hits per swing
๐ Dash / Roll System
- Ground-based evasive action
- Temporary state lock during execution
- Clean exit back to idle or run
๐ง Crouch / Attack System
- Supports crouch-specific attacks
- Compatible with ground combat flow
- Easy to expand with additional moves
โ๏ธ Technical Highlights
- Built entirely with native GDevelop events
- Uses:
Statefor execution controlComboStepfor attack sequencingFacingfor direction logic
- No object-order dependency
- Logic-driven animations (not animation-driven logic)
- Stable state cleanup system to prevent soft-locks
- Designed to scale with additional weapons or skills
๐ฎ Controls
- Keyboard controls included by default
- Easily extendable to:
- Gamepad
- Touch controls
๐ฏ Who Is This For?
- Developers creating Action RPGs, Metroidvanias, or Platformer action games in GDevelop
- Projects that require responsive melee combat
- Developers who want a clean, reusable combat foundation
- Anyone interested in learning state-based combat systems
๐จ Customization
You are free to:
- Add new combo steps or attack types
- Adjust timing, speed, and damage values
- Replace animations or sprites
- Integrate the system into an existing project
- Expand it into a full combat framework with skills, magic, or weapon switching
This system gives you full control over player combat while keeping the logic clean, modular, and easy to understand.
With this template, youโll have a solid melee combat foundation ready to be used or expanded in your next GDevelop Action RPG, Metroidvania, or Platformer project. ๐ฅโ๏ธ
----------------------------------------------------------------------------
LICENSE - Game2DOM: https://bit.ly/44V2bgh
----------------------------------------------------------------------------
MUSIC:
----------------------------------------------------------------------------
SPRITE: Elementals: Fire Knight by chierit
----------------------------------------------------------------------------
| Updated | 6 days ago |
| Status | Released |
| Platforms | HTML5, Windows, macOS, Linux |
| Rating | Rated 5.0 out of 5 stars (1 total ratings) |
| Author | Game2DOM |
| Genre | Role Playing, Platformer |
| Made with | GDevelop |
| Tags | 2D, Action RPG, Metroidvania |
Download
Click download now to get access to the following files:


Leave a comment
Log in with itch.io to leave a comment.