idle animation overrides movement animation

Get help using Construct 2

Post » Thu Jun 28, 2012 3:59 am

Hi All,

somehow I could't find the solutoin via search. Maybe I miss something important or I am not patient enough.

have this problem with a platformer prototype. I use the plattform behavior and animaitn trigger.


Link for the game:
https://dl.dropbox.com/u/10778449/coffeemug/index.html

Everytime I jump or fall and move in a direction at the same time. After touching the ground only the idle animation plays. It looks like the charcater is sliding on the ground. I don't get my misstake. It is really annoying.

Thank you for your help.
Al
DasBilligeAlien2012-06-28 04:06:01
B
15
S
6
Posts: 21
Reputation: 1,573

Post » Thu Jun 28, 2012 3:44 pm

I have the same problem... my "solution" was this:

When landed: play "landed" animation, wait 0.3 secs, play "moving" animation.

And since the problem occurs only when you move after landing, this seemed "solution" enough for me xD

Hope it helps ^^Sargas2012-06-28 15:44:40
B
43
S
12
G
6
Posts: 446
Reputation: 6,797

Post » Thu Jun 28, 2012 7:12 pm

why don't you try to put animations on keys?? like if left key down player play "run"
B
52
S
15
G
6
Posts: 795
Reputation: 12,270

Post » Fri Jun 29, 2012 12:54 pm

One of the real reasons I double check this situation is because on moved and on stopped don't work as instead.

put an "OR" block and check when the "player speed = 0" or "on stopped".

The same for walking, "player speed > 0" or "on moved"

A much more complex system about basic movements can be found on my signature. I'll update this sandBOX next month, with new code, using the recently changes of the beta.
ImageImageImageImageImageImage
Image
B
99
S
22
G
16
Posts: 1,338
Reputation: 21,237

Post » Fri Jun 29, 2012 4:24 pm

yes but speed checking is complex too ^^ for example when you jump you will have a speed so the move animation will start work while jumping so you must put some condition like when player overlap with wall + speed >< zero --> start animation and so on... i think one of the hardest thing is the animations on platform ^^ i remember in my wizard game i used about 30 events for animations : )
B
52
S
15
G
6
Posts: 795
Reputation: 12,270

Post » Fri Jun 29, 2012 5:32 pm

I like to invert expressions myself. Like

+Player is on floor
++Player is moving
----> Set animation to "walk"
++Player is not moving
----> Set animation to "idle"

That's the method I use, and variations on that theme. Never have any problems with it.
B
80
S
30
G
8
Posts: 308
Reputation: 10,437


Return to How do I....?

Who is online

Users browsing this forum: cgsammu, omnipaws, Trimeister and 9 guests