A terrain is a label, like Grass or Water, that you put on the corners and edges of your tiles. Once tiles are labelled, the map’s terrain brush can pick the right one for you: you paint “grass” and the borders and corners appear by themselves. That automatic tile-picking is what people call autotile.
Do you need to mark anything?
Often, no. If you made your tileset from a template, it’s already done.
| Your tileset | What to do |
|---|---|
| Terrain · 4 tiles, Terrain · 13 tiles or Platform · 13 tiles | Nothing. It comes with a ready-made terrain set |
| Corners · 16 | Nothing. Its terrain set is created when it’s built |
| Free grid, or a sheet you imported | Mark it yourself, using this guide |
| A template, plus extra transitions of your own | Add your own terrain set alongside the built-in one |
You also need your own terrain set when one tileset blends several terrains, such as grass into dirt and dirt into water.
How terrain marking works
Think about what a single tile shows at each of its corners.
Picture a tile that’s mostly dirt with a patch of grass in its top-left corner. Label that corner Grass and the other three Dirt, and the tile now describes itself: “grass top-left, dirt everywhere else”.
Do this for each tile. When you paint on a map, the brush works out what each cell needs from its neighbours. If a cell needs grass in the top-left and dirt elsewhere, it finds the tile with that label.
So you never tell MakePixel which tile goes where. You only describe what’s on each tile, and the brush does the matching.
A corner or edge you leave unmarked means “no terrain here”. For a platform floating on transparent background, you only need to mark the ground.
Choose a type
Each terrain set has a Type, which decides what you mark.
| Type | You mark | Use it for |
|---|---|---|
| Corners | The 4 corners of each tile | Ground that blends: grass into dirt, sand into water. The default, and the right choice most of the time |
| Edges | The 4 sides of each tile | Lines that connect: roads, rivers, fences, pipes |
| Corners & edges | All 8 positions | Terrain with both clean corners and thin one-tile strips, like a 47-tile set |
A quick way to decide: if your art is an area with a border, use Corners. If it’s a line that runs through tiles, use Edges. Pick Corners & edges only when you’ve drawn the extra tiles that it needs.
A full Corners or Edges set for two terrains is 16 tiles, one for each combination. You don’t need all of them on day one, and Try it will show you what’s missing.
Mark your tiles
- Open your tileset and find Terrains in the right panel.
- Select + (Add terrain set). The new set opens with its first terrain already picked.
- Choose the Type.
- Double-click the terrain’s name and call it something clear, like
Grass. - Select the second + (Add terrain) for each other terrain, such as
Dirt. - Click a terrain to pick it, then click the corners or edges of your tiles.
As you hover, the area you’re about to mark is highlighted. Marks stay visible on the tiles: small triangles on corners and short bars on edges.
| To | Do this |
|---|---|
| Mark a corner or edge | Click it |
| Mark many in one go | Drag across them |
| Clear a mark | Click it again, right-click it, or hold Alt |
| Undo or redo a mark | ⌘Z / ⌘⇧Z (Ctrl on Windows and Linux) |
| Go back to drawing | Done, Esc, or pick any drawing tool |
While a terrain is picked, your clicks mark tiles instead of painting pixels. The bar at the top shows which terrain you’re marking, with a Done button. If the pencil seems to have stopped working, this is almost always why.
A worked example
Say you have a Free grid with grass, dirt and the tiles between them.
- Add a terrain set, leave the type on Corners, and name the terrains
GrassandDirt. - Pick Grass and drag across all four corners of the solid grass tile.
- Pick Dirt and do the same on the solid dirt tile.
- On each transition tile, mark the corners that show grass with Grass and the corners that show dirt with Dirt.
Look at the pixels, not the tile’s position in the sheet. A corner gets whichever terrain actually covers it.
Check it with Try it
You don’t need a map to find out whether your marking works. As soon as a set has a terrain, Try it appears below it: a small sample with an island and a bay, already painted with your tiles.
- Drag to paint with the picked terrain.
- Right-click or hold Alt to erase.
- Reset brings the starting island back.
It uses the same brush as your maps and the tileset’s pixels as they are right now, so it updates while you mark and while you redraw a tile.
Reading the result:
- Mark tiles to try them here means nothing’s marked yet.
- A red outline on a cell means no marked tile fits what that cell needs.
- No fitting tile: 3 counts those cells.
Red doesn’t mean you’ve done something wrong. It means a combination is missing. Look at the red cell and its neighbours, work out which corners it wants, then either mark an existing tile that shows that, or draw a new one.
Paint awkward shapes on purpose: a one-tile-wide strip, a diagonal, a tight bay. If those work, your set is solid.
Paint with it on a map
In the map editor, your terrains appear as colour swatches above Tiles. Click one, and Brush, Bucket, Rectangle and Ellipse all paint that terrain. Click a tile to go back to placing tiles normally.
If the brush can’t find an exact match, it uses the closest tile and flashes a red outline on those cells, so a gap never slips past you. Erasing tidies the borders around the area you removed.
Add natural variation
Large areas look artificial when every cell is the same tile. If you’ve drawn several tiles with the same marks, the brush can choose between them.
- In the map editor, turn on Random (or press D).
- To make some variants rarer, open the tile’s Tile properties, expand Advanced and lower its Probability. A cracked stone at 0.1 appears far less often than a plain one at 1.
Good to know
- Draw every orientation you need. The terrain brush won’t flip or rotate a tile to fill a gap, so a left edge and a right edge are two separate tiles.
- Terrain runs off the map. The brush treats the map’s border as if the terrain carries on past it, so you won’t get a shoreline along the edge of the map.
- Built-in sets are read-only. The set that comes with a 47-tile template can’t be edited, but you can add your own beside it.
- Limits: a tileset can hold 32 terrain sets, and each set can have 15 terrains.
Terrains in your engine
Your marks go with the tileset when you export. Godot gets a TileSet with terrain set up, and Tiled gets a .tsx with Wang sets, Tiled’s name for the same idea. For Unity, you get a PNG and set up a Rule Tile there yourself. The Godot export guide has the import steps.
Common problems
I can’t draw anymore. A terrain is still picked. Select Done or press Esc.
Everything comes out as the same tile. Most of your tiles are marked identically. Check that each transition tile has the terrain on the correct corners.
Try it is full of red. Your set is still missing combinations, or the type doesn’t match your art. A road marked with Corners usually needs Edges.
The terrain spreads further than I painted. On a Corners set, painting shares corners with neighbouring cells, so the transition tiles around your stroke change too. That’s how the border gets drawn.
The wrong tile appears at one spot. Two tiles have the same marks, or one corner is mislabelled. Clear the marks on the suspect tile and mark it again while watching Try it.
Next steps
With your terrains working, you’re ready to build a level. The tilesets and maps overview shows the full workflow, and the free autotile generator is a quick way to get a complete 47-tile set.