2D Toolkit Forum

2D Toolkit => Releases => Topic started by: unikronsoftware on April 29, 2012, 01:25:45 am

Title: 2D Toolkit 1.7 beta 4
Post by: unikronsoftware on April 29, 2012, 01:25:45 am
BUGFIX: Tile map editor wasn't updating the mesh correctly, resulting in invisible tilemaps.
Title: Re: 2D Toolkit 1.7 beta 4
Post by: willrmiller on April 29, 2012, 05:02:49 am
Thanks for the update!  This release fixed the bug I was seeing when committing TileMap changes on my Mac.

Another question:  are there any best practices for setting up a tk2dCamera to work with a TileMap?  I've tried a few different setups, and can't seem to eliminate occasional "tearing" between tiles when the camera pans.

EDIT: Added image
Title: Re: 2D Toolkit 1.7 beta 4
Post by: unikronsoftware on April 29, 2012, 10:36:49 pm
Can you check what your sprite pad method is in the Sprite Collection? It should be "Extend" for tiles like this.
Title: Re: 2D Toolkit 1.7 beta 4
Post by: willrmiller on April 29, 2012, 11:38:51 pm
Perfect.  Thanks!
Title: Re: 2D Toolkit 1.7 beta 4
Post by: fsadeq on April 30, 2012, 01:19:30 am
FYI there is a bug when you try to build the project: Error on line 387 of tk2dTileMap.cs , missing the () after 'new Mesh'
Title: Re: 2D Toolkit 1.7 beta 4
Post by: fsadeq on April 30, 2012, 03:21:58 am
Also, I'm getting crazy issues with tilemap parts disappearing when I commit, and tiles (or maybe it is the paint "brush" itself) are off a few pixels. I've updated to this latest version.

EDIT: Restarted Unity and the alignment thing is gone, but I still have tiles disappear when I commit sometimes (almost every other commit). If I commit again, the tiles will show up again. Very strange.
Title: Re: 2D Toolkit 1.7 beta 4
Post by: willrmiller on April 30, 2012, 04:23:43 am
I get the same thing on my Mac (haven't tried it on PC yet).  Sometimes, I'll commit and everything disappears.  If I edit and commit again, it comes back.
Title: Re: 2D Toolkit 1.7 beta 4
Post by: fsadeq on April 30, 2012, 04:32:03 am
Should note that I am also on a Mac, running 3.5.1f2
Title: Re: 2D Toolkit 1.7 beta 4
Post by: unikronsoftware on April 30, 2012, 10:33:34 am
I'm investigating this. Worst case, I will revert the change that caused this in the first place - its the "Serialize mesh" feature. Its much much more complicated than it sounds.
Title: Re: 2D Toolkit 1.7 beta 4
Post by: fsadeq on April 30, 2012, 01:50:22 pm
What does the serialize mesh feature do? Is that for performance?
Title: Re: 2D Toolkit 1.7 beta 4
Post by: unikronsoftware on April 30, 2012, 02:04:48 pm
It was a request to be able to save the mesh generated by the tilemap as a prefab, and then instance that in other scenes - basically lets you use the tilemap generator as a mesh editor.

Edit: I'll give it a few more hours, and if I can't fix it by then, I'll simply revert to a known working version.

Edit: I'm sure this is some stupid typo somewhere.

Edit: Yes, it was a typo. I'll upload a patch just to make sure it works for everyone before the next release.
Title: Re: 2D Toolkit 1.7 beta 4
Post by: unikronsoftware on April 30, 2012, 03:29:59 pm
I have attached a patch to the main thread article - that should fix this issue. Please let me know how it goes.
Title: Re: 2D Toolkit 1.7 beta 4
Post by: fsadeq on May 01, 2012, 03:03:05 am
Seems to be working well so far, thanks.
Title: Re: 2D Toolkit 1.7 beta 4
Post by: ssfulfe on May 01, 2012, 02:26:39 pm
I was able to build on iOS again with latest patch.  Thanks.

- Steven
Title: Re: 2D Toolkit 1.7 beta 4
Post by: willrmiller on May 01, 2012, 04:19:37 pm
Works for me as well.  Thanks for the update!