I’m using Tiled 1,11,2. When I save a tile object as a template, the global id in the template is sometimes different than in the tilemap itself, so the objects don’t render with the correct sprites. If I don’t save objects as templates, the global ids are correct and everything renders fine. Attached is an image of an object from the tilemap and the same object exported as a template. The global id is 161 in the tilemap file and 17 when exported as a template.
Templates cannot use the same GIDs as the map, since they don’t know the tilesets used in the map (and may be used in many maps which assign different GIDs to the same tile). They list their own tileset and the GID is relative to that. Perhaps you’re just using the wrong tileset listing when calculating the tile to display? The tileset entry you should be using for the template is visible in the screenshot of the template that you posted.
1 Like
Ok, I got it to work, thank you.