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
28
S
2
G
3
Posts: 61
Reputation: 2,523

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
381
S
222
G
84
Posts: 23,980
Reputation: 189,190

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
28
S
2
G
3
Posts: 61
Reputation: 2,523

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
381
S
222
G
84
Posts: 23,980
Reputation: 189,190

Post » Tue Jun 12, 2012 12:46 am

Yes.Using r93.
B
28
S
2
G
3
Posts: 61
Reputation: 2,523

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
17
S
6
G
3
Posts: 370
Reputation: 3,942

Post » Tue Aug 28, 2012 1:22 pm

@nutmix - please post any issues you have to the Bugs forum.
Scirra Founder
B
381
S
222
G
84
Posts: 23,980
Reputation: 189,190


Return to Construct 2 General

Who is online

Users browsing this forum: tetuan and 7 guests