how do I Combo Attack?!

Get help using Construct 2

Post » Fri May 26, 2017 11:46 am

Hello people,

How can I make a combo of 3 or more attacks? I have the animations already made, I do not know how it is in operation

I've tried everything but nothing succeeds, who can help me?

thank you in advance

Sorry for my bad English :oops: :oops:
B
7
S
1
Posts: 77
Reputation: 622

Post » Sat May 27, 2017 5:13 pm

there is an event called "on animation finished"

so let's say you are using spacebar as your attack button

it would look something like:

on spacebar pressed
subevents
animation attack1 is playing >> add 1 to variable1
animation walking is playing >> set animation attack1

on animation attack1 finished
and variable1 is greater than 0 >> set animation attack2, set variable1 to 0

on animation attack2 finished >> set animation walking
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Sun May 28, 2017 2:23 pm

Hi celstrider

Thanks for the effort :)

I did what you said, only when the space bar is pressed, my player stays idle?

How can I send a screenshot? Then I can show how I did it.

It would help me a lot, but if you do not have time I do not mind

I use google translate hopefully it's understandable xd
B
7
S
1
Posts: 77
Reputation: 622

Post » Mon May 29, 2017 2:58 am

my bad, the "set variable1 to 0" needs to go after the "animation walking is playing" event

the combo stuff is kinda tricky, because everything has to go in a specific order.


here's an example:
https://www.dropbox.com/s/80nzc8pu24z88 ... .capx?dl=0
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Mon May 29, 2017 10:29 am

Hi celstrider,

Thank you for the file

My combo is working now :)
B
7
S
1
Posts: 77
Reputation: 622


Return to How do I....?

Who is online

Users browsing this forum: work3 and 5 guests