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: 20
Reputation: 1,571

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
42
S
11
G
5
Posts: 446
Reputation: 6,417

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
48
S
15
G
6
Posts: 795
Reputation: 12,035

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
B
93
S
20
G
14
Posts: 1,218
Reputation: 19,500

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
48
S
15
G
6
Posts: 795
Reputation: 12,035

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
58
S
20
G
7
Posts: 305
Reputation: 8,804


Return to How do I....?

Who is online

Users browsing this forum: Colludium and 27 guests