Animate the player sprite while moving.