Hello Guest

Author Topic: TMX import flipped pallette  (Read 3271 times)

jtuttle

  • Newbie
  • *
  • Posts: 4
    • View Profile
TMX import flipped pallette
« 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!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TMX import flipped pallette
« Reply #1 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.

jtuttle

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: TMX import flipped pallette
« Reply #2 on: September 08, 2013, 10:35:40 pm »
Aah that explains it. Thanks for the tip!