I’m making a scene where there is a grid at the bottom of the screen:
Scene
{
id: board
width: iwinwidth //640
height: iwinheight //960
Rectangle
{
id: gridback
width: iwinwidth
height: width
y:iwinheight-iwinwidth
color: “#666666”
radius: 5
}
etc
So, gridback is just setting the y position to pop it down to the bottom on the screen (in portrait mode). Now, if I’m in iphone 4 mode, and I place runtime created elements on top of this grid using (iwinheight-iwinwidth) as the offset – everything works great, but if I set iphone X mode, everything is WAY off.
I thought the whole point of a gamewindow is that I just set screenWidth and screenHeight of the GameWindow, and then everything is virtualized to this coordinate system? Are entities on a different coordinate system?
Can I just query where gridback ended up, and then then use that offset to relatively position the entities?