Combo System

0 favourites
  • 3 posts
From the Asset Store
Combo
$10 USD
Button Combinations like in fightings, supports both keyboard and gamepads
  • I am working with a basic platformer action game. I want to implement a combo system to where hitting an enemy consecutively would build a combo. However, I am using the animation of my sword as a hitbox.. and there are multiple frames that would collide with an enemy.

    For instance, if I swing once and hit the enemy, the combo counter goes up by 3 (because 3 frames collide with the enemy). I want only an increase of 1 for the counter. How can I do this?

  • One way you could do it is give your sword a variable, say "hit". Then whenever the sword is swung, if it hits something like an enemy, have events that increase the combo count by 1 and change the "hit" variable to true.

    Then put a condition on said event where it only activates then "hit" is false.

    Finally at the end of the sword animation have an event that changes the "hit" variable back to true. This way the sword can only "hit" something once per swing.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Wow right on! This worked perfectly. Thank you very much.   <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)