Pause screen messes up camera
probuling
Member Posts: 5
Right now using the default GS pause functionality I have a semi transparent pause scene come up over the currently active scene. With the background scene, if an iphone 5 is detected (screen height 568) as opposed to a legacy iphone, it does a few camera changes:
scene.Camera.Size.Height = 568
scene.Camera.Size.Width = 378
scene.Camera.Origin.X = -29
Those were in a GSHelper tutorial on how to get the apparent screen size to change. That's in a camera initialization at the start of every scene, and it works great. However when the game is paused, the background scene gets shifted to the left by a bit, and it used to stay shifted.
Then however I added constraints to the scene's camera values right before jumping into the pause scene. This didn't prevent the scene from being shifted to the left while in the background, but when the scene would return to the foreground after the game was no longer paused, the camera would snap back into its original position (with a noticeable delay before snapping back to normal). The camera size and origin changes are active on the pause scene or else it wouldn't look right, so I'm not sure what's changing the camera values.
This only happens when running in iphone 5 mode. Legacy iphone does not have any shifts, since the camera values are left untouched at default values. How do I fix this?
scene.Camera.Size.Height = 568
scene.Camera.Size.Width = 378
scene.Camera.Origin.X = -29
Those were in a GSHelper tutorial on how to get the apparent screen size to change. That's in a camera initialization at the start of every scene, and it works great. However when the game is paused, the background scene gets shifted to the left by a bit, and it used to stay shifted.
Then however I added constraints to the scene's camera values right before jumping into the pause scene. This didn't prevent the scene from being shifted to the left while in the background, but when the scene would return to the foreground after the game was no longer paused, the camera would snap back into its original position (with a noticeable delay before snapping back to normal). The camera size and origin changes are active on the pause scene or else it wouldn't look right, so I'm not sure what's changing the camera values.
This only happens when running in iphone 5 mode. Legacy iphone does not have any shifts, since the camera values are left untouched at default values. How do I fix this?
Comments
If I come up with a solution, I'll let you know.
UPDATE: After a bit of searching around, it seems to be a problem with Gamesalad stable (v10) resetting the camera offsets on pause. This problem doesn't exist in the new nightly builds but we just have to put up with blurry, non-retina graphics instead