Seanba / Tiled2Unity

Export Tiled Map Editor (TMX) files into Unity
Other
497 stars 120 forks source link

DepthBuffer Example Inconsistency between uploaded version and latest #121

Closed matthuston closed 7 years ago

matthuston commented 7 years ago

I've been trying to figure out an inconsistency with my isometric Tiled map export. Looking at the DepthBuffer example, specifically the Solstice example. The example appears to have been created with an earlier version of Tiled2Unity. For the most part, the player Sprite correctly goes behind and in front of the blocks that he is supposed to. However, when I updated the TIled2Unity package in that demo (which then made me need to the prefab, I no longer seem to be getting correct depth. I've position the character almost in the same exact spot on both demos, the old version is correct and the new version it not.

solstice1 solstice2

matthuston commented 7 years ago

I found a partial solution - though it doesn't explain why the original sample was working correctly. The shadax object needs its Tileset Height changed to 16. In TileEd the 1st and 2nd height layers vertical offset is -8 and -16 respectively.