🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Reflection of an object in Tiled.

Started by
2 comments, last by fastcall22 3 years, 7 months ago

Maybe someone came across ...

I have an object in Tiled:

<object id = "22" gid = "1465" x = "43" y = "57" width = "16" height = "16" />

The "gid" attribute is the index of the image in the array.

in the editor, I display the object on the X axis:

<object id = "22" gid = "2147485113" x = "43" y = "57" width = "16" height = "16" />

Y-axis:

<object id = "22" gid = "1073743289" x = "43" y = "57" width = "16" height = "16" />

on both axes:

<object id = "22" gid = "3221226937" x = "43" y = "57" width = "16" height = "16" />

Who has any ideas for decoding this gibberish?

Advertisement

ah! so this is Tiled https://www.mapeditor.org/

sorry never heard of it;

i've learned something new today ?

       hex         dec
       ---         ---
0x000005B9        1465
0x400005B9  1073743289
0x800005B9  2147485113
0xC00005B9  3221226937

Looks like the last two bits are used to track if the tiled is flipped:

https://doc.mapeditor.org/en/stable/reference/tmx-map-format/#tile-flipping

This topic is closed to new replies.

Advertisement