Fixed Orientation Question

So in my app I have a fixed landscape view, and I’m limiting this to one way - as I have some challenges that shamelessly rip off the idea of completing stages upside down.

However I want to have a button in the menu screen that allows the user to switch between landscapeLeft and landscape Right - if they so wish.

Does anybody know what might be the easiest way to go about this? At the moment I only have one setting in my build.settings file (landscapeRight); is it possible to have both landscape settings here and somehow lock one? Or should I attempt to rotate everything on the button press?

Little bit clueless about this and hope somebody might be able to help.

Many thanks, [import]uid: 33275 topic_id: 28804 reply_id: 328804[/import]

The easiest way would be having all visual objects in a group and rotating when you pressed a button, although if you are using the accelerometer this would also need taking care of.

Are you using transitions, or moving a character with a joystick or a dpad? These are things you’d have to take into account as well.

If you are you’d be better off checking out the orientation samples in CoronaSDK > SampleCode - I think there is one sample showing a way to manually handle rotation. It’s based on actual rotation and not a button but may prove useful.

Peach :slight_smile: [import]uid: 52491 topic_id: 28804 reply_id: 116080[/import]