Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for TexturePacker XML files #550

Closed
mcapraro opened this issue Nov 4, 2013 · 3 comments
Closed

support for TexturePacker XML files #550

mcapraro opened this issue Nov 4, 2013 · 3 comments

Comments

@mcapraro
Copy link

mcapraro commented Nov 4, 2013

in some engines, the tiles have to have a "name" property to be used by the engine (i'm using Citrus Engine on AIR). I wrote a little script that parses the TexturePacker file i built the tilesheet with and pulled out the texture names, then wrote out TMX xml for the "name" property in each of the tiles in the tileset. it seems that this would be something fruitful to have built right into Tiled. so when you open a tilset, one of the options is to load the XML data and auto-populate the property.

another awesome addition would be to read in the TexturePacker XML and honor the "frameWidth" and "frameHeight" attributes. this would allow Tiled to use ultra compressed tilesets and still display each tile properly.

@boozook
Copy link
Contributor

boozook commented May 27, 2014

Will be good.
+1

@bjorn
Copy link
Member

bjorn commented May 29, 2014

The way I would recommended is to use a daily build of Tiled and add your unpacked images to an "image collection" tileset. This will make sure your engine can know the individual filenames and it should be able to use that to match them to the right regions in the packed texture using the associated metadata generated by TexturePacker.

This way you can use all the features provided by TexturePacker (or whatever other packer you're using) while Tiled will simply use your source images and can be blissfully unaware of your texture packing process.

@bjorn
Copy link
Member

bjorn commented Aug 1, 2014

Closing this since the use-case should be covered by the "image collection" tilesets. See also my explanation at issue #286.

@bjorn bjorn closed this as completed Aug 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants