Beginner Animation Problem

Get help using Construct 2

Post » Wed Oct 23, 2013 2:07 am

Hi,

I am doing Ashley's platform tutorial, which I find relatively easy to understand. However, I am having some issues with the animations not behaving the way it should. For example, I can't change the animation back to Idle after the player had stopped running or the jump animation not playing when the player is mirrored. I don't know what I'm missing here.
Any help will be greatly appreciated. Thanks.

Here is the link to my project:
Jungle Platformer Project

It's 2am here in the UK, and I'm off to my bed. But I'll check back first thing in the morning. Cheers.
B
6
G
1
Posts: 8
Reputation: 457

Post » Wed Oct 23, 2013 8:12 am

Hi,

this is cause you do not switch back from the "moving" animations to idle in each case. You should perform a change in all cases that occur when the figure is controlled by the player.

xeed2013-10-23 08:12:47
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Wed Oct 23, 2013 10:13 am

Hi xeed,

Thanks for the reply. I'm still trying to figure out what you meant by "switch back from the "moving" animations to idle in each case".
If i set the animation to "Idle" when the event "Platform On stopped" is triggered, will it not play the "Idle" animation regardless of what the last animation was playing? The weird thing is, the problem was solved after I renamed the "Idle" animation to "Static". But now my player would just slide when it tries to play the "Run" animation after being idle. Well I guess I didn't solve the problem. I am still going to try out the solution you offered, but I need a bit more explanation. Thanks again. I appreciate you taking time to reply to my post.

Cheers!
B
6
G
1
Posts: 8
Reputation: 457

Post » Wed Oct 23, 2013 10:29 am

Since your player graphic has many arranged frames, you should solve these events in (grouped) pieces, and select the right animation cases for each control activity in your player graphic.

This manual should be usefull

https://www.scirra.com/manual/87/8-direction

It describes the exact conditions set by the controller keys.xeed2013-10-23 10:55:57
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Wed Oct 23, 2013 12:40 pm

I finally solved the problem. After reading Velojet's "Building a platform game - a beginner's guide", I realized that I was using the wrong keyboard event. I was using the "on key pressed" when I should be using the "on key down" event. Thank you Velojet for that awesome tutorial. And thank you xeed for pointing me to that useful manual. Thanks guys!!!
B
6
G
1
Posts: 8
Reputation: 457


Return to How do I....?

Who is online

Users browsing this forum: el3um4s, TylerJS and 10 guests