Tiled : how to create Terrain and use Terrain tool in Tiled Level Editor.

By | November 11, 2015

In this tutorial we will learn a very simple concept of using terrain inside Tiled Level Editor for creating levels for games.

What is Tiled?

Tiled is a map editor software for creating maps, levels for games. Refer this for quick getting started introduction of Tiled Map Editor.

Lets Begin..

Create a new map in Tiled and add a new Tileset

Create a new orthogonal map of tile size 16 x 16 pixels as shown below:

sample example tutorial on how to use Tiled Terrain tool

Then add a new Tileset containing tiles for creating terrain in your tiled map as shown below.

sample example tutorial on how to use Tiled Terrain tool

Note that Margin and Spacing is 0 px for the sample terrain_tile.png file provided below.

Basically it requires two types of tilesets inside your tilesheet file for creating terrain information.

1) Tilesets containing fill tiles with borders.

2) Tilesets containing corner for your terrain.

You can create your own tileset or can simply use the tileset provided below to test the Tiled Terrain tool.
sample example tutorial on how to use Tiled Terrain tool

Create Terrain Information for the tileset

After adding the above tilesheet, click on the button labled as Edit Terrain Information. Look at the highlighted region in the following image:

sample example tutorial on how to use Tiled Terrain tool

Edit Terrain Information

Now add a new terrain  by clicking on the + button provided at the bottom of the newly opened window and provide the terrain information  for the terrain you just created. You need to highlight the areas of fill and corners as shown below:

sample example tutorial on how to use Tiled Terrain tool

We have created a new terrain and named it Walls as shown above.

Now use this newly created terrain to draw your map using terrain tool in any Tile Layer.

I have provided below the screenshot of final output as a very basic map drawn using the terrain we just created:

sample example tutorial on how to use Tiled Terrain tool

 

6,569 total views, 3 views today

(Visited 2,693 times, 3 visits today)