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.
How to use it
- Pick 47 tile blob (Match Corners and Sides), 16 tile corners (Match Corners) or Simple 3x3 plus inner corners, then press Next.
- Choose the tile size, type the terrain name and the Godot folder where you will save the PNG, then press Next.
- Set the Terrain fill and Edge colors, keep empty space transparent or give it a color, and optionally drop in a small fill texture.
- Press Make tileset template.
- 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?
Does the TileSet file work in Godot 3?
Can I change the tile art after loading the TileSet?
Why does a single painted cell look like a small square?
Which tile size should I use?
More free game dev tools
- 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.