๐ŸŽฎ 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:
    • State for execution control
    • ComboStep for attack sequencing
    • Facing for 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
StatusReleased
PlatformsHTML5, Windows, macOS, Linux
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorGame2DOM
GenreRole Playing, Platformer
Made withGDevelop
Tags2D, Action RPG, Metroidvania

Download

Download NowName your own price

Click download now to get access to the following files:

Melee Combat System v1.0.0 by Game2DOM.rar 1.1 MB

Leave a comment

Log in with itch.io to leave a comment.