Using Tilt Based Gravity and UpsideDown orientation support

I would like to support portraitUpsideDown auto-rotation while a player is at the main menu of my game. Once the game launches I need to disable auto-rotation (i.e., lock in the orientation) and use Tilt Based Gravity to help move an object on the screen during gameplay… is this possible with Corona? Right now Tilt Based Gravity always considers “down” to be the edge of the iphone with the home button regardless of the orientation of the graphics on the screen.

thanks!
Tim [import]uid: 16901 topic_id: 7778 reply_id: 307778[/import]

Never mind… I assume I would use the system.orientation value in setting up my Tilt Based Gravity code. Thanks. [import]uid: 16901 topic_id: 7778 reply_id: 27577[/import]

I’ve tried what you’re suggesting in the past and it always results in buggy gameplay. The reason for this is that the system’s orientation can change without an orientation change taking place. For instance, only tilting slightly will change the phone’s system.orientation value, but will not trigger an orientation change. This will cause your game to behave differently without the user being given a visual cue that an orientation change has taken place. Always use the orientation change event. There’s an example of it in the hardware folder of the sample code. [import]uid: 36054 topic_id: 7778 reply_id: 27579[/import]