Shaky Sprite


Why does it shake so much? :cold_sweat:
3 Likes

The only thing i can think of is that somewhere your setting the sprite and maybe one of the frames is set bigger than the others. like if you have a 20, 30 sprite image plane and a 25, 30 image plane on the next frame the spite will be offset relative to the first frame, and so it’ll look like your sprite is shakeing. This happened to me early this year. Just make sure that your set sprite frame is the same size as all your animation frames and that they’re not triggering out of order after you stop moving.

3 Likes

@FlintAsher is correct by asking to check for different sizes. You have two animations, one when not moving and one moving left. The frames when not moving are 20 x 45, however, when moving left, they are 30 x 50. Since the camera is following the player, it moves up and down based on the sizes of the animations. I would have thought though, then when the player is no longer moving, that it should just play that animation, and stop shaking.

See if you can make all the images the same size. I know it seems unnatural, since when we walk we bob up and down. You could try lifting the legs up by a few pixels and the torso down a little (like the player is doing a stomach crunch). Then when you take a step forward, you do the opposite (move the torso back up and stretch the legs. Good luck.

2 Likes

I made the animations the same width, and the shaking is gone, but so is part of the player’s right leg :scream: If you can get the legs to move in front of each other, while keeping everything at the same dimension, then you will be OK.

I was just thinking, all you need to do is, make the images not moving the same size as those moving.

1 Like

This works better:

I made the ‘not moving’ animation the same size as the ‘moving’ animation and moved the images each time to the right.

1 Like