iPhone Game scaling on iPad

chandy21

  • *
  • Posts: 114
Hi folks,

I have a game I am trying to update in the Apple Store which has been designed at 320x480 with 4x graphics.
That used to work fine with "Scale to Fit (Letterbox)" on iPhone and iPad.

Now with newer iPhone screen sizes (4.7"/5.5") the only way this looks good on phones is "Scale to Fit (Full screen)", which works fine on iPhone but on iPad, all my graphics are stuck to the left with a large bar going down the right side of the screen, so not centered.

I have tried to add a Code Block where:
    If running on iPad
        scripts.MyAssets.scaleMode=Universal.SCALE_TO_FIT_LETTERBOX;

but that didn't work.

Anyone else faced this problem? And hopefully found a fix?

Thanks in advance,
Andrew.
We Come In Pieces now on the iOS AppStore!
https://itunes.apple.com/us/app/we-come-in-pieces/id651388650

Justin

  • *
  • Posts: 4040
Are you able to use 3.5? Scaling should be better in the latest betas, and if you're able to update and still think that ipad/iphone should use different scaling methods, that should also be easier to accomplish with 3.5.

For Live Support: Join our discord channel and ping me @justin.

colburt187

  • *
  • Posts: 2258
If its not too much trouble, you could try placing things using the screen width/2 block to find the centre of the screen and then just expand the width of your background to fill the iPad screen.

chandy21

  • *
  • Posts: 114
Thanks for the replies Justin and Colbert.
Justin, I have tried a 3.5 from a month or so ago. It didn't behave much better. I will grab an update and try again.
Colbert, I have about 50 levels and about 15 level select and other screens that would be quite a chore.

Thanks,
Andy.
We Come In Pieces now on the iOS AppStore!
https://itunes.apple.com/us/app/we-come-in-pieces/id651388650

decafpanda

  • Posts: 199
Sorry to jump into this thread but IS letterbox scaling accepted by Apple?  I keep getting different answers when I search the forums.

chandy21

  • *
  • Posts: 114
Hi Justin, I tried the latest 3.5 and have the same issue.
My game actually crashes on starting a level now whereas it didn't with the last 3.5 I tried but that is another issue altogether.
If I get past the crash, how can I change the scaling mode based on it being an iPad in 3.5?

Thanks in advance, Andy.
We Come In Pieces now on the iOS AppStore!
https://itunes.apple.com/us/app/we-come-in-pieces/id651388650