Hello guys,
Today I started working on screen orientation on my game. The game play’s on landscape mode. I started missing around with orientation runtime listener but get strange results. I then change my builds.settings from (a subset):
[lua]settings = {
orientation =
{
default = “landscapeLeft”,
},
…[/lua]
to:
[lua]settings = {
orientation =
{
default = “landscapeLeft”,
supported =
{
“landscapeRight”,“landscapeLeft”,
},
…[/lua]
And it worked!! All i needed was that the player sees the game upright wether his/her holding the device in landscape mode with the home button left or right. It works great on the device and was wondering if I was doing it the right away? Could it be that simple as adding the supported ={…} line?
Any suggestions will be appreciated it. If that all I needed to do then I can jut move on on my next todo list item!
Thanks guys.
Mo.
ps: when would use the orientation runtime listener then? I can see that there is an shadow rotating around the screen when rotating the device but my game elements just switch without any animation (which I am fine with that) So, if I wanted to use animation on my game elements (buttons, …)when rotating the device, would that be a good use of the orientation listener?
},
[import]uid: 100814 topic_id: 26427 reply_id: 326427[/import]
