Problems with jumping animation

Get help using Construct 2

Post » Mon Oct 10, 2016 11:43 pm

Hi there thank you a lot for reading this topic,i have kind of a stupid issue with the animation of my character.
i have set an animation when jumping,but it shows only when the characters is not moving,wherever i try to move the character and jump it does it while playing the running animation,here's a screenshot of my event screen....hope someone figures out what's the problem,thank you for your help!
Image
B
10
S
3
G
1
Posts: 28
Reputation: 981

Post » Tue Oct 11, 2016 5:56 am

The events that set your running animations are overriding the jump animation because they keep getting set continuously while A/D is down, whereas the jump animation is only set once upon jumping. You can get around this if you add a "Jump animation is not playing" condition to your A/D key events, this way it won't set a running animation if the jumping animation is playing.
B
50
S
23
G
17
Posts: 291
Reputation: 12,432

Post » Tue Oct 11, 2016 4:07 pm

Besides above comment. It is 'not done' to use different animations for 'left' and 'right'. Just mirror the sprite. If you wanna be 'political incorrect', thats ok, no problem. But. The moment you gonna use sensors (helper sprites), you will have to start over.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Oct 11, 2016 5:57 pm

you guys have not only helped me with the problem..BUT ALSO MADE THE WHOLE ANIMATION THING SO EASY,THANK YOU BOTH SO MUCH! :33
PROBLEM SOLVED!
B
10
S
3
G
1
Posts: 28
Reputation: 981


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, David181, fens, Yahoo [Bot] and 11 guests