Another way to set up the camera easily is
camera.x = my.x + 200 * cos(my.pan)
camera.y = my.y + 200 * sin(my.pan)
As is the camera will move around the player but the pan of the camera won't pan. Throw in Camera.pan = player.pan; and it will fix that.
try
camera.x = my.x + 200 * cos(camera.pan)
camera.y = my.y + 200 * sin(camera.pan)
camera.pan += well anything
That way you can choose in another way how to orbit the camera or anything for that matter around a point.