I made a player sprite, and then a running animation for it, but every time the running animation is played the sprite changes position until I get back to the idle animation. My run animation is on a spritesheet, while the “lite” player has been made separately. Does anyone know what causes this issue? Is there a setting I am missing, or is the problem with my sprite sheet?
Player idle: Dropbox - Error - Simplify your life
Player running: Dropbox - Error - Simplify your life
The position Y and X are slightly changed.
I assume all the sprites in both animations are the same size? if all the idle frames are 32x32 … are all the running frames 32x32? that would cause a problem. Also is the “head” of the guy in the same spot in both animations. For example if the top left of the head is at position 2,2 in the idle… but the top left of the head is in position 6,6 in the running it would make it look like it was moving down.
You may want to use a program where you can preview your animation and frames, and then export the spritesheet knowing it will look that way when you import it.
I highly recommend Aseprite. There’s a free version here, or you can trial the full version (careful, you can’t save in the trial) or buy it for 15 dollars here.
The free version is very comprehensive and powerful, and the full version is even better.
Documentation here.