Auto-rotate animation not too pretty

I’m making a universal iOS app that currently supports both portrait orientations.

The problem is that the rotation animation is ugly. I don’t know if this is the best Corona has to offer or whether I’m doing something wrong.

When the device is rotated, all the graphics remain static while a black border rotates around them, and then they flip to the new orientation. It looks amateurish and I’d rather not support orientation if that’s how it will appear in the final app.

Any clues?

As a side issue, I’d also like to be able to limit the orientation feature to iPad and keep it locked to one orientation for iPod Touch and iPhone, because when the app is used hand-held on those devices the automatic rotation can be annoying. Is it possible to specify that in the config file for a universal app?

Tony [import]uid: 111970 topic_id: 26289 reply_id: 326289[/import]

Look over here:

http://developer.anscamobile.com/code/proper-orientation-rotation-animation

[import]uid: 50459 topic_id: 26289 reply_id: 106525[/import]

Thanks! I’ll check it out :slight_smile: [import]uid: 111970 topic_id: 26289 reply_id: 106533[/import]

Just a note, I tried implementing that rotation code into my already completed game and it made all my physics backwards when the device was rotated. I didn’t want to go back and put in rotation checks for all my screens. [import]uid: 31262 topic_id: 26289 reply_id: 106557[/import]

@tony: Could you file a bug report here (with a simple test case to show the problem) please? http://developer.anscamobile.com/content/bug-submission
[import]uid: 84637 topic_id: 26289 reply_id: 106559[/import]

I am having exactly the same problems…using storyboard…could that be the problem?

Joakim [import]uid: 81188 topic_id: 26289 reply_id: 106590[/import]

The problem isn’t related to storyboard, its lower level than that.

If someone files a bug report that will get the ball rolling on fixing it [import]uid: 84637 topic_id: 26289 reply_id: 106595[/import]

Bug filed with no 14271.

Joakim [import]uid: 81188 topic_id: 26289 reply_id: 106603[/import]

I am still having this problem with auto orientation (no animation at all, When the device is rotated, all the graphics remain static while a black border rotates around them, and then they flip to the new orientation).

OS Maverick, with latest daily build and latest Xcode.

Is this ever solved or just the way corona handle auto orientation on device?

Hi @bpran,

Yes, this is how it handles auto-orientation.

Best regards,

Brent

Actually it’s solved now with the latest public release today (G 2.0)

I am still having this problem with auto orientation (no animation at all, When the device is rotated, all the graphics remain static while a black border rotates around them, and then they flip to the new orientation).

OS Maverick, with latest daily build and latest Xcode.

Is this ever solved or just the way corona handle auto orientation on device?

Hi @bpran,

Yes, this is how it handles auto-orientation.

Best regards,

Brent

Actually it’s solved now with the latest public release today (G 2.0)