2D Toolkit Forum

2D Toolkit => Support => Topic started by: jtuttle on September 08, 2013, 04:50:00 am

Title: TMX import flipped pallette
Post by: jtuttle on September 08, 2013, 04:50:00 am
Hi there. I've recently started playing with importing TMX files from Tiled, but when I perform the import it seems like my TileMap palette is vertically flipped, resulting in misplaced tiles. This is what I'm attempting to do:

1) create and commit SpriteCollection in Unity from individual tiles
2) import resulting .png file into Tiled as my tileset
3) build map in Tiled, save as TMX
4) create TileMap in Unity
5) import TMX file
6) observe misplaced tiles

Am I botching a step in the process somewhere? Thanks!
Title: Re: TMX import flipped pallette
Post by: unikronsoftware on September 08, 2013, 03:36:10 pm
The sprite collection atlas tk2d creates has a random order - don't rely on that to be in any particular order in Tiled. For consistent workflow between tk2d and Tiled, create a spritesheet for tiled manually, and import THAT into a sprite collection in tk2d using Create > Sprite Sheet in the sprite collection editor.
Title: Re: TMX import flipped pallette
Post by: jtuttle on September 08, 2013, 10:35:40 pm
Aah that explains it. Thanks for the tip!