force landscape mode

Discussion and feedback on Construct 2

Post » Mon Jun 11, 2012 10:33 pm

Is there anyway to force landscape mode on my IOS web app?I don't want it when I turn the phone to go to portrait mode.
B
27
S
2
G
3
Posts: 61
Reputation: 2,498

Post » Mon Jun 11, 2012 10:57 pm

Sorry, Safari does not support any way to force orientation. What you can do:
- Publish with appMobi/CocoonJS to make a native app with support for orientation lock
- Test if in portrait mode by testing if the window height is greater than the window width, and if so, pause the game and show a 'please go back to landscape orientation' message.Ashley2012-06-11 22:57:36
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Mon Jun 11, 2012 11:11 pm

Why is it that when I flip from portrait to landscape the screen goes black and nothing shows until I restart the web app.?It will flip once but any subsequent flips it turns black.I am exporting in scale letterbox mode.
B
27
S
2
G
3
Posts: 61
Reputation: 2,498

Post » Tue Jun 12, 2012 12:19 am

Are you using the latest beta r93? We made a fix for that bug recently.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Tue Jun 12, 2012 12:46 am

Yes.Using r93.
B
27
S
2
G
3
Posts: 61
Reputation: 2,498

Post » Tue Aug 28, 2012 9:58 am

[QUOTE=westray] Why is it that when I flip from portrait to landscape the screen goes black and nothing shows until I restart the web app.?It will flip once but any subsequent flips it turns black.I am exporting in scale letterbox mode.[/QUOTE]

I get the same problem with R99 - if I switch from portrait to landscape a few times, get a black screen, and have to refresh.
B
15
S
5
G
2
Posts: 357
Reputation: 3,691

Post » Tue Aug 28, 2012 1:22 pm

@nutmix - please post any issues you have to the Bugs forum.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630


Return to Construct 2 General

Who is online

Users browsing this forum: tomi71 and 14 guests