Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How to set the default direction of Android programs to be vertical, not horizontal

Author
Message
AGK_LZW
4
Years of Service
User Offline
Joined: 27th May 2020
Location:
Posted: 27th May 2020 05:06
Every time the program runs, the screen is first horizontal, and then it will turn into a vertical screen. I think it starts with the vertical screen orientation. Thanks.
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Loktofeit
AGK Developer
15
Years of Service
User Offline
Joined: 21st Jan 2009
Location: Sarasota, FL
Posted: 28th May 2020 19:45
We know the command. However even when set exclusively to landscape, they start in portrait and then change to landscape.
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 29th May 2020 09:18 Edited at: 29th May 2020 09:21
THIS?, which i expect you can alter in tier 2 (i have no experience there).
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 29th May 2020 22:36 Edited at: 30th May 2020 02:02
What if you used GetOrientation() to show a please wait screen until i changed to landscape

From SetOrientationAllowed()
Quote: ""if you need the device to be in landscape and you call this command with only landscape allowed, you should then wait for GetDeviceWidth to return greater than GetDeviceHeight which will signal that the device is now in landscape.""
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 30th May 2020 21:07 Edited at: 30th May 2020 21:10
also, have you tried setting orientation=3 (?) in the .AGK file before exporting?

Login to post a reply

Server time is: 2024-11-22 04:37:49
Your offset time is: 2024-11-22 04:37:49