Changing orientation
farahmed
Member, PRO Posts: 33
How do integrate changing orientation for when I rotate my device? I have made my app in portrait mode but believe I need to do it in landscape mode also. I just don't know how/where to link them? Please help!
Comments
Under Scene->Autorotate
you have 4 options.
If you want just always portrait click that and uncheck landscape
If you want both check portrait and landscape as well.
ok thank you . I see portrait and landscape left and right. what does that mean? do i check both?
and how can i test and make sure its working on my iPhone?
http://gamesalad.com/download
and download the IOs viewer for your phone i guess.
I am on Windows(PC) and I use the android viewer on my uncle's google nexus (android) and it works great.
If you check both i would expect it to be able to autorotate to whichever landscape you're holding it up like when you're viewing portrait, there's a left and there's a right side.
thanks and how do I make changes to the landscape mode of my app? I have set autorotate on, but the user interface needs to be edited to fit the screen properly. Where can I do this? do I have to make a new scene and link it somewhere to let program know when it phone rotates, send to another scene?
I don't really know but
game.deviceScreen.Device Orientation is a 0 when in landscape mode and is a 2 when in portrait mode.
Maybe put some logics around that
To test device rotation you need to build an ad hoc, you can't limit rotation in the viewer.
Unless you specifically want to support landscape orientation as well, you can safely skip it.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
How to I skip it? I would like the app to only be available in portrait mode