Any way to support both Landscape orientations with iPad? (Read my issue plz)

So I’m aware, now, that you can specify allowed orientations in the build.settings file… but unfortunately, before I knew this (going back to beta), I programmed my whole (landscape) game in portrait mode, with all the assets just rotated 90 degrees and all the x and y values switched in meaning, to give the appearance of a landscape game. At the time (pre-iPad) I did not imagine I would have to change this.

Now I’m trying to revert back so I can avoid be rejected by the app store for not supporting both stupid landscape modes. Switching to Landscape mode now messed with my coordinates and leaves my images oriented the wrong way.

Does anyone have any help of an easier way to fix this? Is there a way I can mirror my portrait mode to serve as upside down landscape?

Should I not worry about being rejected over this sort of thing?

Any guidance you could provide would be appreciated,

Thanks,

Nick [import]uid: 7472 topic_id: 9393 reply_id: 309393[/import]

If I read this correctly your game is in portrait mode (holding the phone normally) but it appears to be in landscape mode.

[lua]settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”,
},
},
}[/lua]

That code would flip it when you turned the phone upside down, but I have seen a popular game doing that rather than truly supporting landscape. (It just appears to.)

It may or may not be what you’re looking for but maybe worth a shot, it could be enough to get you through - although I haven’t played with it myself so test it out and see.

Peach :slight_smile: [import]uid: 52491 topic_id: 9393 reply_id: 34367[/import]

Hi Peach,

Thank you for the helpful suggestion - in fact, I had tried that and it works pretty good, except that it is still possible to get the wrong landscape to show depending on which way you flip the phone.

Do you know if there’s any way to tell the application to default to portrait if the orientation is landscapeRight and to default to portraitUpsidedown if the orientation is landscapeLeft? I’m bummed that I may get rejected by Apple after all the work I’ve done. :frowning:

Nick [import]uid: 7472 topic_id: 9393 reply_id: 34433[/import]

Hmmmm.

This is the tricky part about trying to work around the orientations. I’m guessing you think it’s too much work to reposition things to support landscape instead of portrait?

I don’t know the size of your project so it’s hard to say how long it would take - but it would obviously eliminate your problems. [import]uid: 52491 topic_id: 9393 reply_id: 34529[/import]