Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Setting up tilemap for a top-down game

Discussion in '2D Experimental Preview' started by danbrani, Aug 3, 2016.

  1. danbrani

    danbrani

    Joined:
    Nov 22, 2012
    Posts:
    46
    Is it possible to setup the tilemap to work with a top-down game well?

    What I mean is that if the character is above a tile, it should be behind it, if it's below the tile, it should be in front of it.

    Right now a solution for this would probably to have a separate layer for each row of a tilemap and add an appropiate offset on the z axis for each layer, but I think this would break autotiling and I'm not sure about the performance consequences.
     
  2. Johaness_Reuben

    Johaness_Reuben

    Joined:
    Jan 27, 2016
    Posts:
    253
    Separate layers/tilemaps. Then assign the layers/tilemaps to different Sorting Layers.
    The example project has two scenes that do it this way. TileMapExample01 and 02.
     
    danbrani likes this.