If you mean to keep the sprite in the middle, then move the background instead of the sprite.