That effect was probably caused by me making the player's position the centre of the sprite and not the bottom of the sprite.