Hello Guest

Author Topic: Garbled Tilemaps  (Read 3411 times)

sevans

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Garbled Tilemaps
« on: April 22, 2014, 07:27:10 pm »
I'm building a game with a lot of different scenes.  Each scene has a single tilemap, built from the same spritecollection.  It runs fine in Unity, but once I compile it for Android, the later levels have mixed tiles.  Instead of a wall tile, there will be a spike tile.  (All of the tiles that are mixed up have prefabs that the tiles get replaced by.)  Anyone know what's causing this or how to fix it?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Garbled Tilemaps
« Reply #1 on: April 23, 2014, 11:45:44 am »
Not sure how this can happen. The tile map won't get rebuilt if its already built and the sprite collection hasn't changed, i.e. what you see in unity should be what you see in game. Try loading the scene in, edit and commit the tile map and build it to device, does it still happen then?

sevans

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Garbled Tilemaps
« Reply #2 on: April 24, 2014, 12:08:49 am »
Editing, committing the tilemap, and rebuilding seems to have worked.  I guess I'll have to make sure I commit all the tilemaps before building!  Thanks for the help!