Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Support for rotating device - Gideros Forum

Support for rotating device

My game is in portrait. I've started adding support for rotating the device; right, left or upside down. I use Letterbox scale mode.

What is the best way of doing this? It feels like I'm going down a long and complicated route:

1. Catch the Event.APPLICATION_RESIZE event
2. Use application:getDeviceOrientation() to check which orientation the app has
3. Rotate Stage accordingly, and reposition all visual elements and hitboxes

Is there a more straightforward way of achieving the same thing?
My Gideros games: www.totebo.com

Comments

Sign In or Register to comment.