How do I disable animation during key press

Get help using Construct 2

Post » Sat Oct 25, 2014 9:54 pm

In my game if you press the UP arrow key the player jumps, but if the player is jumping and you press the down key the slide animation plays while the player is in the air. How can I stop the slide animation from playing if the up arrow key is pressed or during the jump?

I've tried adding/finding events, sub-events, conditions, that will stop this but with no luck. The slide animation should only play if the player is on the floor or platform/ blocks.

Thanks for any help.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Sat Oct 25, 2014 10:27 pm

You just answered your own question.
jeffige wrote:The slide animation should only play if the player is on the floor or platform/ blocks.

Just turn that logic into events.
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Sun Oct 26, 2014 3:11 am

B
38
S
18
G
19
Posts: 664
Reputation: 14,107


Return to How do I....?

Who is online

Users browsing this forum: tdcostas and 12 guests