How to extrude a tileset
- Drop your tileset image and enter its tile size. If the image already has a border (margin) or gaps between tiles (spacing), enter those too, so every tile is read correctly.
- Set Extrude to 1 px (2–4 px if you use mipmaps or zoom out a lot).
- Download the new image and replace the old tileset with it. Use the margin and spacing values shown in the box.
Other causes of tile seams
- Texture filtering: pixel art should use nearest/point filtering. Linear filtering blends neighboring pixels even inside a tile.
- Fractional camera positions: round the camera position to whole pixels, for example with
roundPixelsin Phaser or snapping in Godot. This greatly reduces seams. - Mipmaps: lower mip levels average pixels across tile borders. Turn mipmaps off for 2D tiles, or extrude more.
- Texture atlases and packing: if your engine packs tiles into an atlas automatically, enable its own padding or extrusion setting. Unity's Sprite Atlas, for example, has Padding.
How the numbers work
With an extrusion of E and an extra transparent gap of G, each tile gets an E-pixel copy of its own edge on every side.
The first tile then starts at E + G pixels from the image border (the margin). Neighboring tiles are 2E + G pixels apart (the spacing). The tile size itself does not change.