How do I Make a Simple Combo System

Get help using Construct 2

Post » Thu Sep 08, 2016 3:53 am

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.

Image


Those are My Events

Help?

Thanks! :D ;)
B
22
S
6
Posts: 26
Reputation: 1,354

Post » Thu Sep 08, 2016 9:03 am

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 ?
B
33
S
18
G
27
Posts: 2,451
Reputation: 20,366

Post » Thu Sep 08, 2016 10:06 am

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
B
28
S
14
G
21
Posts: 179
Reputation: 13,548

Post » Thu Sep 08, 2016 6:18 pm

99Instances2Go wrote: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.
B
22
S
6
Posts: 26
Reputation: 1,354

Post » Thu Sep 08, 2016 6:37 pm

heyguy wrote: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!
B
22
S
6
Posts: 26
Reputation: 1,354


Return to How do I....?

Who is online

Users browsing this forum: marcoscodas and 13 guests