:)after iPod to iPad resizing the pause game behavior does weird. actors in scene move to the left(:

-Timo--Timo- Member Posts: 2,313
edited December 2013 in Working with GS (Mac)
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
image

image2 pause scene
image

does someone know why this is happening? is this a bug or is this fixable?
thanks,

-Timo-

Best Answers

  • JPGamesFactoryJPGamesFactory Posts: 174
    Accepted Answer
    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
  • JPGamesFactoryJPGamesFactory Posts: 174
    Accepted Answer
    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.
  • CodeMonsterCodeMonster ACT, AustraliaPosts: 1,078
    Accepted Answer
    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.
  • neomanneoman Posts: 826
    edited December 2013 Accepted Answer
    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 ... ;-)
  • j75j75 Posts: 235
    Accepted Answer
    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

  • -Timo--Timo- Member Posts: 2,313
    @JPGamesFactory thank you for your comment.
    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
  • -Timo--Timo- Member Posts: 2,313
    edited December 2013
    this is what is happening:


    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...
  • -Timo--Timo- Member Posts: 2,313
    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.
    I know what you mean with custom pause but for my game I dont think thats possible but I will try. Thanks for suggestion.
    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 ... ;-)
    I dont have pro so I can do that :( thanks for the info though.

    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. ###
    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 :) thanks.

  • -Timo--Timo- Member Posts: 2,313
    edited December 2013
    I fixed it. thanks for your help :) I also send a bug report. hope this bug will be fixed soon :)
  • j75j75 Member, PRO Posts: 235
    What did you end up doing that worked for you?
  • -Timo--Timo- Member Posts: 2,313
    @jesse75 when you click on the pause button change game.attribute to true. After 0.1 second pause game. In all the actors if game.attribute is true change self.position.x to self.position.x+90
    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.
Sign In or Register to comment.