Why the walking animation always go up a little bit

Get help using Construct 2

Post » Fri Jun 19, 2015 10:07 am

Hi,

I am making the walking animation, but when I go to the right, it always go up a little bit, when it become idol, it will go down. Who knows what's happening, please help, thanks

project is in the address:

https://www.dropbox.com/s/9rarjxbk3nfscf4/3.capx?dl=0

Thanks
B
11
S
3
Posts: 172
Reputation: 1,178

Post » Fri Jun 19, 2015 10:14 am

This topic probably needs moving to the How do I section ( @kyatric )

As for on topic, check your origin points in the image editor.
If you have an animation, the origin point likely slightly differs in one of the frames.

Change the origin point you suspect is a little off, and then use the right click -> preview in the animations list in the image editor for quick checking.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Fri Jun 19, 2015 1:08 pm

It seems actually to be a difference in the collision polygon between the "Default" animation and "Walk" animation.
In the Default animation, the collision polygon is right under the feet of the character, whereas in the Walk animation, the polygon is set to bounding box which has some more space between the bottom and the feet.

This is mentioned in the basic tutorial about making a platform game.
You likely should have an invisible object to handle the collision/platform behavior and have the animation object pinned to it.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
292
S
115
G
96
Posts: 7,295
Reputation: 70,795

Post » Fri Jun 19, 2015 7:19 pm

thanks, still not very sure of above method, sorry for me is a beginner, still learning, thanks, but I find a way that works fine, on the animation dialog, I put "Walk" animation in front of "Default", than in the event, set the animation "Default" on start of layout.
B
11
S
3
Posts: 172
Reputation: 1,178


Return to How do I....?

Who is online

Users browsing this forum: AnD4D, Kin and 36 guests