Hi!
I’m familiarizing myself with TMXTiledMap class. I made a couple of test objects (1x1 tile objects) for my .tmx:
<objectgroup id="2" name="Objects">
<object id="1" name="SpawnPoint" x="64" y="544" width="32" height="32"/>
<object id="2" name="TestPoint1" gid="10" x="0" y="32" width="32" height="32"/>
<object id="3" name="TestPoint2" gid="10" x="0" y="1600" width="32" height="32"/>
</objectgroup>
Map is like this:
<map version="1.2" tiledversion="1.3.2" orientation="orthogonal" renderorder="right-down" compressionlevel="-1" width="50" height="50" tilewidth="32" tileheight="32" infinite="0" nextlayerid="3" nextobjectid="5">
Thus, map size in pixels is 1600x1600.
Returned y values for the three objects are:
- SpawnPoint y = 1024 (for 544)
- TestPoint1 y = 1536 (for 32)
- TestPoint2 y = -32 (for 1600)
It seems that y’s are somehow translated. But why is one even a negative number? What is the translation for? Can I configure it somehow?