How to implement fighting game style moves?

Get help using Construct 2

Post » Sun Jan 12, 2014 9:54 pm

I'd like my player to be able to execute a special move.

I have this character which when jumps and I press down he execute a kick...

Now I'd like him to be able to jump and if I press twice down it execute a "super" kick

How do I implement it?

Thx in advance for you replies!
B
5
Posts: 40
Reputation: 307

Post » Wed Jan 15, 2014 6:06 pm

anyone?
B
5
Posts: 40
Reputation: 307

Post » Wed Jan 15, 2014 6:55 pm

You'd have to set up events to see if the down button is pushed twice within a certain timeframe.

I guess the easiest way would be to create a variable and on down pressed add 1 and set a timer behaviour to the amount of time available for the second push.

on timer end set variable to 0

on down pressed
is jumping
if variable is 1 set normal attack

on down pressed
is jumping
special attack is not active
if variable > 1 set special attack

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jan 17, 2014 7:59 pm

thx I am gonna try it
B
5
Posts: 40
Reputation: 307

Post » Fri Jan 17, 2014 8:57 pm

B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Fri Jan 17, 2014 11:54 pm

I sort it out with variables, but I am only able to do moves towards one direction... down down... up up ect
But for now is ok.

That street fighter tutorial is awesome, is really a point of reference.

Hadouken should be everywhere even in point and click games...

B
5
Posts: 40
Reputation: 307


Return to How do I....?

Who is online

Users browsing this forum: ChoosyZerk, jorgmaquoi and 65 guests