Hello, I was working with the JSON format trying to create physics bodies from the Tile Collision Editor. I was having a difficult time trying to figure out how to get the correct positions for the polyline since it always starts a (0, 0). I noticed in the TMX file, the Object contains an x and y value that I should use as the starting position to add to the polyline point values. However, the Object x and y information is not in the JSON export, making it impossible to get the correct positions of the polylines. Here is an example of the data I’m seeing. Perhaps, Im missing something?

Ah it’s probably because I initially created my tiles “Based on a Tileset Image”, but decided to move to a “Collection of Images”. In order to keep my file tiles the same and not have to recreate the layout, I deleted the original “Tileset Image” tileset, then changed the new “Collection of Images” firstgid to be what the original set was.

But opening such a tileset in a more recent Tiled version should assign valid IDs to those objects. If it doesn’t do that then I’ll need to look into fixing it.

Well, it indeed doesn’t assign valid IDs, except on a per-tile basis when you would edit its collision shapes. Due to the way the allocation of IDs is implemented this is not so easy to change, so instead I opted to fix the saving of the position by adjusting the condition that suppressed it: