How do I Make a Simple Combo System

0 favourites
  • 5 posts
From the Asset Store
Combo
$10 USD
Button Combinations like in fightings, supports both keyboard and gamepads
  • Hi, I have a Problem i'm trying to correct.

    My Game is a 2d Style Beat Em Up Game.

    Im trying to add combos into the game.

    The Method im trying goes something like this

    Global Variable (Punches) = 0

    On Z Pressed - Set Animation to "Punch"

    Punches = 0

    Add 1 to Punches

    On Z Pressed - Set Animation to "Punch2"

    Punches = 1

    Add 1 to Punches

    On Z Pressed - Set Animation to "Punch3"

    Punches = 2

    On Punch3 Finished - Set Value of Punches to 0

    However, thats not working out.

    What i am trying to do is when the player presses Z 3 Times it will play different animations and when the 3rd animation ends it will restart and play the others when you press z again.

    Those are My Events

    Help?

    Thanks!

  • What is 'Hitbox' exactly ?

    If the player pressed 'z' one time (or two) ... then pauzes for a while .. and like 30 seconds later presses 'z' again ....

    Which animation you would like to play then ?

  • Not sure I'm savvy enough to answer your question. I did find this on the forums the other day. Maybe it can help, good luck!

    https://www.dropbox.com/s/o2bgdu1zw5t6d ... .capx?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What is 'Hitbox' exactly ?

    If the player pressed 'z' one time (or two) ... then pauzes for a while .. and like 30 seconds later presses 'z' again ....

    Which animation you would like to play then ?

    Not Really, I Know how to do that already. Whenever i press the Z Button even once it goes straight to the third animation (Which is a Kicking animation) and I Want it to basically cycle between all three. and when it gets to the third one its cycle will restart and when i press Z Again the 3 animations will play again.

    Also, the hitbox is for enemy collision detection. When i Press Z the Hitbox will be created and when an enemy collides with it, it will take damage. and one the Attack animation ends then the hitbox will destroy itself.

  • Not sure I'm savvy enough to answer your question. I did find this on the forums the other day. Maybe it can help, good luck!

    https://www.dropbox.com/s/o2bgdu1zw5t6d ... .capx?dl=0

    Hey! This worked Thanks!

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