Question about Orbiting Camera for a menu

That makes the camera itself rotate, but then it will make the character move out of the right side of the screen.