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 / screen orientation

Author
Message
qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 8th Jun 2012 05:45
when i run some of the examples, the screen will orient itself to how the device is tilted, but in others, the screen is fixed. what code or settings specify how the overall screen behaves?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 8th Jun 2012 12:16
This will set which orientations are allowed by your game:
SetOrientationAllowed( portrait, portrait2, landscape, landscape2 )

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 8th Jun 2012 16:35
Are you working in iOS or Android?

In iOS you should also use Xcode to set 'Supported Device Orientations' for both the iPhone/iPod and iPad settings.

In Android, make sure you have updated your AndroidManifest.xml to the settings in the newest version (keepin your package and version information). There is a setting (since v1074) for android:screenOrientation that helps set how the device works.

Cheers,
Ancient Lady

Login to post a reply

Server time is: 2024-11-23 15:23:57
Your offset time is: 2024-11-23 15:23:57