Object flipping bug

Hi there,
When I’m setting the horizontal flip on an object, the gid value get’s set to 2147483715. It looks like it’s adding a full signed 32-bit integer somewhere, because the difference is 68, what it should be without the bugged addition. This doesn’t happen to vertically flipped objects. I’ve tried deleting the object and replacing it, but still the same problem. Anyways, thanks.

That’s because the information about flipping is encoded in the global tile ID using bit flags. See:

http://doc.mapeditor.org/reference/tmx-map-format/#tile-flipping

Vertically flipped objects work the same way though, just with a different bit. So it’s strange that you didn’t see this there.

Thank you, I forgot about that map format reference sheet.