I am using TexturePacker to pack my sprites into a spritesheet.
I then use this spritesheet in Tiled to create my map.
However, when I add a sprite to my spritesheet in TexturePacker and then press Ctrl+T in Tiled to update the spritesheet, all the tiles have wrong id’s because the order of tiles on the sheet might have changed.
I know that this is logical but I cannot figure out how to solve this issue without writting a new tile map editor myself which would then read the TexturePacker Xml data.
The only possibility I saw is to use “Collection of Images” then use the source string to look up the tile in the TexturePacker xml in my framework. However, this imposes some ugly rules for me to follow:
I have the name but I still dont know on what spritesheet this tile is on, so I need to give the tileset the exact same name as the name of my spritesheet (including extension)
I must always place the TMX in the same folder as the spritesheet (since I cannot specify a relative path in tiled)
Does anyone have a suggestion on how to deal with this?