Change Orientation from Portrait to LandscapeLeft/Right

I have 2 scenes scene A is in Portrait mode(always) and scene B is ins LandscapeLeft/Right(always)

orientation will change whenever the a scene is the current Scene

how can I do this?

I’m  a +1 on this.

Not currently working on it as it’s something related to a future idea.

But i was thinking i would just mess with the rotation (-90 kind of thing) to my display objects.

When you say scene are you referring to composer scenes? Perhaps the scene object can also be rotated??

T.

I don’t think it is possible, as it is system level.

But for those who wants an orientation change. Use this listener :

Runtime:addEventListener( “orientation”, yourFunctionWhenOrientationChanges )

To detect orientation :

local function yourFunctionWhenOrientationChanges (event) local currentOrientation = event.type -- Determine current orientation -- Use string.find(currentOrientation, 'landscape') -- Use string.find(currentOrientation, 'portrait') end

I’m  a +1 on this.

Not currently working on it as it’s something related to a future idea.

But i was thinking i would just mess with the rotation (-90 kind of thing) to my display objects.

When you say scene are you referring to composer scenes? Perhaps the scene object can also be rotated??

T.

I don’t think it is possible, as it is system level.

But for those who wants an orientation change. Use this listener :

Runtime:addEventListener( “orientation”, yourFunctionWhenOrientationChanges )

To detect orientation :

local function yourFunctionWhenOrientationChanges (event) local currentOrientation = event.type -- Determine current orientation -- Use string.find(currentOrientation, 'landscape') -- Use string.find(currentOrientation, 'portrait') end