Advertisement

Reflection of an object in Tiled.

Started by November 26, 2020 09:42 AM
2 comments, last by fastcall22 3 years, 11 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?

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

sorry never heard of it;

i've learned something new today ?

Advertisement
       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