Different Punches Help

Get help using Construct 2

Post » Tue Dec 25, 2012 3:13 pm

I'm new to the editor and I'm having problems with a simple animation wait... I don't know why the animation cancels itself and sometimes the 3rd animation doesn't work...

Is there a better way to wait for the animation to fully finish before doing anything else? I'm making a beat'em up style game and I want different animations per hit, so they do something different.


Also, if I hold the key it loops the animation, is there a way to code so if I hold a key it won't do that?






orctamer2012-12-25 15:15:41
B
1
Posts: 2
Reputation: 279

Post » Thu Dec 27, 2012 12:22 pm

It resets because you use the Key is down event, that means every cpu tick(while the key is down), you set the animation to "punch", you should use On key pressed.wildmedia2012-12-27 12:22:27
B
15
S
3
G
2
Posts: 42
Reputation: 2,412

Post » Fri Dec 28, 2012 8:07 am

I've changed it to that, and yet I get no progress, and the animations are canceling and some of the counts are getting registered.

B
1
Posts: 2
Reputation: 279

Post » Sun Dec 30, 2012 8:09 pm

Try adding one of the animation events. On Finished, Is Playing or Compare Frame. I think that will solve your problem
B
4
G
2
Posts: 12
Reputation: 1,249

Post » Sun Dec 30, 2012 9:05 pm

for each event : Add a sub-event " on any animation finished " and then move all your actions from the main event to the sub-event and that should work ...

Cheers !
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests