Godot Autotile Template: 47 Tile Blob and Terrain Tileset

Pick a terrain layout and tile size and get a tileset template PNG with every tile already drawn, a guide PNG that marks each tile's peering bits, and a Godot 4 TileSet .tres with the terrain set up. Paint the template in your art program, load the TileSet on a TileMapLayer and Godot picks the right edge and corner tile as you paint.

Step 1 of 3: Layout
Which terrain layout?

How to use it

  1. Pick 47 tile blob (Match Corners and Sides), 16 tile corners (Match Corners) or Simple 3x3 plus inner corners, then press Next.
  2. Choose the tile size, type the terrain name and the Godot folder where you will save the PNG, then press Next.
  3. Set the Terrain fill and Edge colors, keep empty space transparent or give it a color, and optionally drop in a small fill texture.
  4. Press Make tileset template.
  5. Press Download PNG, Download guide PNG or Download Godot TileSet .tres.

Which terrain layout to pick

Godot 4 terrains come in three modes: Match Corners and Sides, Match Corners and Match Sides. The 47 tile blob uses Match Corners and Sides and covers every way a tile can touch its 8 neighbors, so any shape you paint, including 1 tile wide paths and single tiles, gets a tile drawn for exactly that case. It is the most art to draw but never leaves a gap.

The 16 tile set uses Match Corners: one tile for every combination of the 4 corners. It is a third of the drawing, but in this mode a corner only counts as terrain when all 4 cells around it are painted, so the terrain edge runs through the middle of the outer cells and single cells become small islands.

The simple 3x3 plus inner corners set is the classic 13 tiles: a 3x3 block for the outer edges and 4 inner corners. It handles rooms, lakes and any area at least 2 tiles wide. Lone tiles and shapes that touch only at a diagonal have no exact tile, so Godot falls back to the closest one.

What is in the TileSet file

The .tres is a Godot 4 TileSet with one atlas source over the template PNG, terrain set 0 in the matching mode and one terrain with your name and fill color. Every tile has its terrain and its peering bits filled in. A peering bit says which terrain the neighbor on that side or corner must have, and -1, left out of the file, means empty. These are the values you would otherwise click in by hand in the TileSet editor's Terrains section.

The template keeps a fixed layout, so you can repaint the PNG with real grass, walls or water as long as each tile stays in its cell. The guide PNG marks the center and every bit that is set with a pink square, so you can see at a glance which neighbors each tile expects.

Painting the level

Save the PNG in the Godot folder you typed and the .tres anywhere in the project. Add a TileMapLayer node and drag the .tres onto its Tile Set property, then open the TileMap panel at the bottom, go to the Terrains tab, pick your terrain and paint. Connect mode joins new tiles to the ones around them; Path mode only connects tiles painted in the same stroke.

From a script, call set_cells_terrain_connect on the TileMapLayer with an array of cells, terrain set 0 and terrain 0, and Godot chooses every tile for you.

Frequently asked questions

What is a 47 tile blob tileset?
A set of tiles that covers every way a tile can connect to its 4 sides and 4 corners, keeping only corners whose two sides also connect. That leaves 47 different tiles, so any painted shape gets a matching edge.
Does the TileSet file work in Godot 3?
No. It uses the Godot 4 TileSet format with terrain sets. Godot 3 used autotile bitmasks instead, so use the template PNG there and set the bitmask by hand.
Can I change the tile art after loading the TileSet?
Yes. Edit the PNG and save it over the old one with the same name. As long as every tile stays in its cell, the peering bits in the .tres still match.
Why does a single painted cell look like a small square?
That is the tile for a cell with no terrain neighbors. Draw it as a lone rock, bush or puddle in your art. In the 13 tile layout there is no such tile, so Godot uses the closest match.
Which tile size should I use?
Use the size your other art is drawn at. 16 and 32 px are common for pixel art; the tile size is saved in the TileSet, and the TileMapLayer uses it as the cell size.
  • Sprite Sheet Slicer: Cut a sprite sheet into separate frame PNGs and a Godot SpriteFrames file, right in your browser.
  • Dungeon Generator: Seeded roguelike dungeon maps with a Godot TileMapLayer script export.
  • Seamless Texture Generator: Make your own texture tileable for free, or generate a seamless one with AI.

See all tools