Hello Guest

Author Topic: Build objects on 2d isometric tilemap  (Read 2348 times)


  • Newbie
  • *
  • Posts: 3
    • View Profile
Build objects on 2d isometric tilemap
« on: August 19, 2017, 07:43:43 pm »
Re Hi,
I have another problem... (I'm beginner of your asset)

As I attached, I paint the isometric tile and I built the building.

Let's say aspalt tile is the building in the picture.
I use 'Tk2d sprite' and 'Tk2d tiled sprit'e  script to the building Tile, but problem still exist.

How to solve that problem?

Can I make the tile PNG sprite to the tile collection, and paint the building to the tile map on the runtime?


  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Build objects on 2d isometric tilemap
« Reply #1 on: August 20, 2017, 06:14:33 pm »
Yes, you can change the contents of the tilemap at runtime. You will need to call
tk2dTileMap.SetTile(x, y, id) where id is the sprite id for the sprite you want to set
and call tk2dTileMap.Build() when your'e done changing the tiles to update the visuals.

I take it the problem you're having is the building is drawing on top of everything else when it should be behind? In that case the above should fix the issue.