How to make a terrain brush in Tiled

How to make a terrain brush in Tiled

 

Hello!

Please forgive me if this has already been posted somewhere, I made some searches but I could not find anything on this subject, so I thought I might share it.

One of the most powerful features that Tiled has is the terrain brush. In some ways it's similar to the stamp brush, but it has several advantages of its own. For example, let's say that you're making a dungeon map. You're working on the walls with the stamp brush, placing individual tiles one by one. You might copy-paste them for large extensions, but then you have to micro-manage the corners every time the wall turns to face a different direction. That process can be very time consuming. Enter the terrain brush.

When calibrated correctly, the terrain brush allows you to paint entire areas on the map, and, in the previous example, it will "figue out" which walls should be facing east, west, north, south; it will also figure out where to put the corners, which saves a lot of time.

Yet, setting it up correctly can be tricky. Here are a few screeshots of a simple "wall terrain" for the dungeon tileset. The first one shows you which tiles you need to select in the "Edit Tileset" window. The second one is just an example of it being used.

EDIT: Added two other examples for the grassland terrain. If you had to make those mountain walls using only the stamp brush, that can take you several minutes, if not an entire hour. By contrast, using the terrain brush, it only takes you a couple of seconds. There is still some micro-management to make, like in the green tiles inside of the wall. But those can be quickly fixed by using the eraser on the background layer.

Attachments: 
Preview
terrain_brush_1.png terrain_brush_1.png 225.3 Kb [6 download(s)]
Preview
terrain_brush_2.png terrain_brush_2.png 419.3 Kb [3 download(s)]
Preview
terrain_brush_3.png terrain_brush_3.png 211.1 Kb [3 download(s)]
Preview
terrain_brush_4.png terrain_brush_4.png 548.7 Kb [3 download(s)]