Animation bumps upwards on the second frame

Get help using Construct 2

Post » Mon Jul 08, 2013 9:31 pm

So, when my character's walking animation enters the second frame, it bumps upwards a little. The frames are almost the same sized, other is 2 pixels larger in x scale. Why does this happen and how can I fix it?

As you can see, in the second frame, the leg is a bit above the ground and the camera reacts to that as a bump. (And yes, that is a remake of the protagonist of Contra, fully remade and recoloured by me, and is temporary character with the exact same x and y scale :P)



(Second frame is on the left, first one is on the right)
B
3
Posts: 7
Reputation: 220

Post » Mon Jul 08, 2013 10:27 pm

It's likely that your origin points are different in each frame. To ensure they're all in the same place (not always desirable, but it probably is in this case), open the animation editor for your sprite, click the origin button on the left, right-click on the origin in the panel that opens up and click "apply to whole animation".
B
57
S
15
G
11
Posts: 912
Reputation: 12,606

Post » Mon Jul 08, 2013 10:32 pm

It did not fix it, but I did notice that the origin is not in the middle of the frame, does that affect, and if yes, how can I pinpoint the center of the frame?
B
3
Posts: 7
Reputation: 220

Post » Mon Jul 08, 2013 10:46 pm

In your animation editing window, go to your first frame and center the origin point (or hit 5 on the number pad) then right click the origin point in the image points list and select apply to entire animation.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,573

Post » Tue Jul 09, 2013 8:23 am

It still does the little bump on the second frame.
B
3
Posts: 7
Reputation: 220

Post » Tue Jul 09, 2013 9:02 am

if your animation frames aren't the same size, make sure that the distance between the origin and the bottom is always the same (e.g.:I put the origin at the lowest point in the middle for my character in the case of a platforming game), also, place it not with the mouse, but with the keyboard, to be sure that the coordinate is truly the same

That should prevent the bumping

Also, verify your collision polygonsAphrodite2013-07-09 09:06:14
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Tue Jul 09, 2013 8:41 pm

Yeah, it was the collision polygons. I had set them a bit off on the second frame. Thanks.
B
3
Posts: 7
Reputation: 220


Return to How do I....?

Who is online

Users browsing this forum: odiusfly, R0J0hound, SERG 04 and 1 guest