[quote=“runewinse,post:13,topic:325390”]
I’ve tried something ala this:
local function onOrientationEvent( event ) local currentOrientation = event.type if (currentOrientation == "landscapeLeft") then print("set scene rotation to 90") scene.rotation = 90 end if (currentOrientation == "landscapeRight") then print("set scene rotation to 270") scene.rotation = 270 end return true end Runtime:addEventListener( "orientation", onOrientationEvent )
Unfortunately it didn’t seem to have any effect.
Maybe my request is very strange (scene dependent rotation behavior). It’s just that I’d rather not code rotation behaviour for 15 scenes, just because I’l like one to behave properly…
[/quote]
Afaik you can’t rotate the scene group (iirc).
So maybe try creating a “master group” inserting everything into that instead of the scene group, then insert that “master group” into the scene group.
After all that, try rotating the “master group” instead of the scene group and see if it works.
If needed you could always create a reference to the master group too… Something like this in your create scene event
self.view.masterGroup = masterGroup
Hope this helps.