+1 Basic Orientation Support

This is a very basic feature that iOS requires or its rejected. Portrait, Landscape and atleast the opposite. I know there is rotationfix.lua, but it’s not perfect, it would be nice to have it just work. I also know people handle orientation in different ways, but 99% of the time we just want the screen rotated properly and nothing else.

Thanks. [import]uid: 99244 topic_id: 19099 reply_id: 319099[/import]

Isn’t this feature already supported and working?

Have you specified the supported orientations in the build.settings file? [import]uid: 94868 topic_id: 19099 reply_id: 73631[/import]

I’m not sure about Android. But as far as I know, for iOS devices it only has sudden-rotation, not tweened as it should be for iOS. There is a fix for it, but it’s not perfect:

http://developer.anscamobile.com/code/proper-orientation-rotation-animation [import]uid: 99244 topic_id: 19099 reply_id: 73642[/import]

Oh! You want all of the contents to animate to the new rotation.

Yeah, I think you are right then, Corona doesn’t do that (without some coding on your part). [import]uid: 94868 topic_id: 19099 reply_id: 73646[/import]

Actually I think it does NOT even have sudden rotation. It just allows u to listen for it, then u still have to handle it on your own. I could be wrong tho. I made a video with rotation and mask problems here in this post:

http://developer.anscamobile.com/forum/2011/12/14/puzzle-games-showstopper-video [import]uid: 99244 topic_id: 19099 reply_id: 73705[/import]

It should support the sudden rotation changes, just make sure you specify them in the “build.settings” file. [import]uid: 94868 topic_id: 19099 reply_id: 73767[/import]

Here is another thread talking about it. I’m going to look at iOS orientation again tonite, but when I tried it yesterday in build settings I just saw the mask silhouette rotate without actually rotating its contents.

http://developer.anscamobile.com/forum/2010/11/03/orientation-demo [import]uid: 99244 topic_id: 19099 reply_id: 73780[/import]

So far on iOS it does support sudden rotation but the mask silhouette makes it look very unprofessional.

The fix called “rotationfix.lua” works fine, but if you use masks they don’t rotate. Also if you use physics that doesn’t rotate either. This is a requirement for iOS, so I don’t know how other games are doing it. I guess Apple won’t reject the app if the orientation animates badly.

Am I missing something? [import]uid: 99244 topic_id: 19099 reply_id: 77046[/import]