Hello. I have a Sprite that is made up of ~20 different .png's that my Sprite cycles through to create a 'running' animation. My issue is that a couple of the images have a bigger height then the rest of them. This causes the Sprite to move down vertically an inch or two. I'm guessing this is because a Sprite's origin is always relative to it's top left position, thus causing the sprite to move down because the top left remains in the same spot.
I have sorta fixed this by creating a variable called count that keeps track of what frame of animation the Sprite currently holds, and if it is on one of the bigger images, I manually bump the sprite back up to make it look like it never bounced down. I feel like this is really hackish and that there is a much more elegant way to fix this. Any thoughts? The only reason I don't want to keep this way of fixing it is because I have a bunch of other player sprites I want to use in my game and they all will have this problem and manually bumping all of the sprites up seems tedious and unnecessary.
I've attached a small clip showing what happens with my sprite.