How do I Stop animation when key pressed

Get help using Construct 2

Post » Thu Aug 27, 2015 5:10 pm

Hi,

I'm making a beat 'em up style game.

When I press the arrow keys the character walk (8 direction) but, when I press A to punch, the character continues walking and it just plays the punch sound but no punch animation.

Basicaly what I want is something like this:

When walk animation is "on" (when arrow key is down)
-if A is pressed, stops the walk animation(and starts punch animation)
-when A is released starts animation stand (not walk animation)


Sorry for my bad english.
Greetings.
B
3
Posts: 3
Reputation: 181

Post » Thu Aug 27, 2015 11:39 pm

Use "set animation" when "A" is pressed
Stuff I'm working on:



http://www.jamdonut.com
B
13
S
3
Posts: 88
Reputation: 1,000

Post » Fri Sep 04, 2015 3:24 pm

aJamDonut wrote:Use "set animation" when "A" is pressed



thanks, that works just fine ;)
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: Rudi55, varr and 5 guests