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 use SetOrientationAllowed comand

Author
Message
Nokiaqd
14
Years of Service
User Offline
Joined: 31st Aug 2009
Location:
Posted: 8th Sep 2011 17:58 Edited at: 8th Sep 2011 17:58
I'm stuсk give me plz some example
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 8th Sep 2011 18:26 Edited at: 8th Sep 2011 18:27
Holding a phone in your hand, for example,
+---+
|Top|
|.....|
|.....|
+---+
If that's the only orientation you want to allow, then you would use,

SetOrientationAllowed(1,0,0,0)

The second parameter is the same as above, but allowing the phone to be turned upside down, and the other 2 parameters will allow the phone to be turned on it's side.

So if you want to allow all orientations,

SetOrientationAllowed(1,1,1,1)

Or just sideways,

SetOrientationAllowed(0,0,1,1)

Nokiaqd
14
Years of Service
User Offline
Joined: 31st Aug 2009
Location:
Posted: 8th Sep 2011 23:47 Edited at: 8th Sep 2011 23:48
KISTech thanks a lot.

Working........

Login to post a reply

Server time is: 2024-03-29 00:43:00
Your offset time is: 2024-03-29 00:43:00