:)after iPod to iPad resizing the pause game behavior does weird. actors in scene move to the left(:
I made a play scene and a pause scene. when you click on the pause button you pause the game to the pause scene. I made this on iPod size and it all just works fine. now I made the rules to change the size to iPad.
if game.screen.size.widht = 1024
do
change scene.camera.size.width to 750
change scene.camera.size.height to 320
change scene.camera.origin.X to -90
when on iPad the size is (almost) perfect. but when you are on iPad size and then press the pause button the actor in the middle moves a little to the left. see images
image1 play scene

image2 pause scene

does someone know why this is happening? is this a bug or is this fixable?
thanks,
-Timo-
if game.screen.size.widht = 1024
do
change scene.camera.size.width to 750
change scene.camera.size.height to 320
change scene.camera.origin.X to -90
when on iPad the size is (almost) perfect. but when you are on iPad size and then press the pause button the actor in the middle moves a little to the left. see images
image1 play scene

image2 pause scene

does someone know why this is happening? is this a bug or is this fixable?
thanks,
-Timo-
Best Answers
-
JPGamesFactory Posts: 174
Yes is GS bug when use overscan for universal build.
Put a rule in an actors:
If the size is iPad
Change attribute : self position x to selfposition X + 40
where 40 is the number of pixels needed to reposition the actor in the right position
-
JPGamesFactory Posts: 174
You can try to change Camera Origins.
I had resolved this bug in my app.
I don't remember now how I have made. I'm not at home.
When return at home I will see the rule in my app. -
CodeMonster ACT, AustraliaPosts: 1,078
Well I don't know the answer to ur question. But I use custom pause so it doesn't need to change scene. And it's very easy to do.
So if ur not using custom pause then I highly suggest you do. -
neoman Posts: 826
I had the same problem with one of my games ... In the nightly builds I didn't have this problem only in the production builds ... I packaged the game with a nightly and all was good ... ;-) -
j75 Posts: 235
Yep, just had the same issue. The bug has been fixed in the nightly builds.
I read this possible solution on another thread. You might want to try it out...
### put a constrain behavior just before the pause behavior to constrain all the cam adjustments. ###
Answers
this will unfortunately not work. I already have the right values for iPad. everything works fine on iPad except for the pause game behavior. when you you click on the pause button it does move to the pause scene but the scene before moves a little to the left (see images) so change x position wouldn't work. wait... I could do that and delay the pause game with 0.1 second. and when unpause game change the x position back. I will try that. thanks
first one is iPod size. second is iPad size on iPad size the white actor and the pause button are moving to the left for some reason...
with this rule
if game.screen.size.widht = 1024
do
change scene.camera.size.width to 750
change scene.camera.size.height to 320
change scene.camera.origin.X to -90
but now the pause game behavior is working weird...
I dont have pro so I can do that
I qm already constraining the right camera positions. I now have camera origin.x to -90. But do you mean before pause scene constrain it to -130 (or something) and when unlause change back to -90? i can try that
I cant look what I did exactly but also something like that it is only workng the first time and when resetting change back to false.