There is one thing I don’t quite understand, when I do the following:
-- use top-left origin display.setDefault('anchorX', 0) display.setDefault('anchorY', 0)
And then create a container (which has anchorChildren set to true by default).
If I add an display object onto this container, it will be positioned at the center of container, something like this:
local c = display.newContainer(display.contentWidth, display.contentHeight) local r = display.newRect(0, 0, 100, 100) c:insert(r)
What I don’t understand is the “centering” bit, so “anchor” 0,0 here basically mean the center of container? And since container’s bounding box is affected by its “anchor”, moving “anchor” to 0.5/0.5 will move the bounding box as well.
I do know setting anchorChildren=false and everything works, but I can’t seem to understand why 0,0 maps to center of container, wouldn’t most people just want a group with a mask?