We’re trying to use MTE to display an isometric tile map in our game and noticed that objects are drawn in the wrong location when loading the map.
The drawObject function is using the following level positions when adding the sprite of the object:
levelPosX = object.x - (worldScaleX \* 0.5) levelPosY = object.y - (worldScaleX \* 0.5)
However, the object.x and object.y parameters are in pixel coordinates from the tmx file, which do not align with either the screen position or the level position.
So we need to perform some calculations to get the level position from the x and y values.
Any idea what these calculations need to be?
Any help would be greatly appreciated.