Examining TileMap layers
In this recipe, we are going to create two layers in the TileMap. One will be for the ground and the other for objects that we can place on top of the ground. We will use this in the next recipe, where we will paint a level using the TileMap tools.
Getting ready
For this recipe, we are going to continue from where we left off in the last recipe.
How to do it…
Let’s add the Ground and Objects layers so we can use the TileMap tools in the recipe:
- In the TileMap section of the Inspector, left-click on Layers.
- To the right of Name, enter
Ground
. - At the bottom under Z Index, left-click on + Add Element.
- In the new layer, to the right of Name, enter
Objects
. - To the right of Z Index in the new layer, left-click on 0 and enter
1
.
Figure 8.3 – Layers properties in the Inspector
- At the very bottom of the bottom panel and to the right of TileSet, click on the TileMap editor to see...