Thanks Vlads, thanks Kristian,
@Kristian : I checked, my build target is using the plist file I make changes in.
@Vlads : I downloaded your project thanks.
But how do you know that it works for both landscapes as there is no objects on the screen?
I created a newText object to verify, and it doesn’t work for me.
The newText object doesn’t follow the orientation. Even worse, newText is written as if we were on a portrait mode
See below a screenshot
here the new main.lua
local r = display.newRect( display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeight ) r.stroke = {1,0,0} r.strokeWidth = 20 local options = { text = "Test Test Test", fontSize = 60, align = "center" --new alignment parameter } local label = display.newText(options) label:setFillColor(0) label.x = display.contentCenterX label.y = display.contentCenterY