Tilemaps

A tilemap layer is a grid of cells, and each cell shows one tile from a tileset. Paint a level with a handful of tiles, then change a tile once and every cell that shows it changes too.

Your First Tile Map

These steps make a small top-down map, an island in the sea, and save it as a PNG. You do not need tiles of your own: the New Tilemap Layer dialog draws a tileset for you.

The editor painting land onto a water tile map, with the Tileset panel on the left showing the Land and Water terrains above the tiles
Painting the Land terrain onto a map filled with water: the coast tiles fit themselves around it
  1. Make a file: Choose File → New File… or press Ctrl+Alt+N. Open the Blank tab, pick Blank 128x128 and press Create File.
  2. Add a tilemap layer: Choose Tilemap → New Tilemap Layer… in the menu bar. Keep Square and press Next, keep the 16 by 16 cell size and press Next again. On the last step keep From a template, pick Corners, 16 tiles and press Create. The Tileset panel on the left now shows the tiles, with two terrains, Land and Water, above them.
  3. Pick a tile: In the Tileset panel, click the tile that is all water, the first one in the bottom row.
  4. Paint tiles: Press G for the bucket and click the canvas to fill the whole map with water. The brush (B) places one tile in each cell you click or drag over. Alt+T switches between painting whole tiles and painting pixels inside them, and picking a color in the Palette switches to pixels too.
  5. Paint a terrain: Click Land above the tiles and drag the brush across the water. Every cell you paint becomes land, and the cells around it change to the coast tiles that fit, so the shore draws itself. A template's terrains are ready to paint; Edit Terrains is for labeling tiles you draw yourself (see Terrains below).
  6. Save the map as a picture: Choose File → Export… or press Ctrl+E or Ctrl+Shift+Alt+S. Keep Image and PNG, and press Download. The PNG is the map as the canvas shows it.

Making a Tilemap Layer

Choose New Tilemap Layer from the Tilemap menu, the Layer menu, the grid button at the bottom of the Layers panel, or the command palette. It walks you through three steps with Next; Create takes its place on the last one, so the map is only made once you have seen every step. Each step starts from the map you made last this session (from a template the first time), so a map you make often takes three presses of Enter:

  • Shape: square, isometric or hexagonal. A double-click on a shape picks it and moves on. See Layouts below.
  • Cell size: for isometric cells, the arrangement first: Diamond (the map is one big diamond) or Staggered (rows or columns are shifted, so the map fills the rectangle). Then a width and height (and a side length for hexagons), with sample sizes from 8 to 64 next to them, the stagger or orientation of staggered and hexagonal cells, and what happens past the map edge. A drawing of a few cells and how many fit on your canvas follow every change. Every tile on this layer is shown through a cell of that size.
  • Tileset: the step opens on the choice you used last this session. From a template draws an autotile template at the cell size and labels its two terrains, Land and Water (Road and Grass on the edges template); each card says what its template is for (raised isometric and hexagonal templates set the tileset's top height too); An existing tileset is a tileset of this file, an object cut at the cell size, a tileset file, or From an Image File…, which makes the tilemap and its tileset from a tile sheet on your computer (see Tilesets); New, empty takes the tile size, columns and rows you pick. When an existing tileset's tiles differ from the cells, the step offers to make the cells its tile size. The layer and its tileset are one undo step. Any map, new or opened from a file, starts with its tileset's first terrain picked, or its first tile when the tileset has no terrains, so the first stroke paints.

The layer shows a grid icon in the Layers panel. Right-click it and choose Edit Tileset, or double-click a tile in the Tileset panel, to open its tileset and draw the tiles.

Layouts

Cells can be rectangles, diamonds or hexagons. The cell size is the box around the cell's shape, and the shapes fit together with no gap and no overlap, so every pixel of the map belongs to exactly one cell.

  • Square: the plain grid. Any size works.
  • Isometric, arranged as a Diamond: diamonds, with columns running down to the right and rows down to the left, as in Tiled's isometric maps. A new diamond map starts with its first cell at the top middle of the canvas.
  • Isometric, arranged Staggered: the same diamonds in rows (or columns) where every other one is shifted by half a cell, so the map fills a rectangle.
  • Hexagonal: pointy-top hexagons when rows are shifted, flat-top when columns are. The side length is the straight side along the shifted rows or columns.

For the shifted layouts, choose whether rows or columns are shifted, and whether the odd or the even ones. Diamond cells need an even width and height; a hexagon needs an even size across the shifted rows or columns and a side length that leaves an even remainder. When a size does not fit together, the dialog says why and offers the nearest size that does, one click away.

To change a tilemap's cell size or layout later, choose Cell Size and Layout from the Tilemap menu or the layer's menu. Every cell keeps its place in the grid and its tile; nothing is redrawn or resampled.

The same window sets what the map does Past the map edge. With Continues, the default, the map carries on past the canvas: terrain painted up to the edge reads as if it went on, with no border at the edge, and tiles that stand taller than their cell, such as raised blocks, are drawn just past the edge too, as copies of the edge cells, so a plateau filled to the edge shows no wall there. Those copies are only part of the picture: the tile tools never pick them, and a pixel stroke over one paints nothing there. With Empty, nothing is past the edge, so the next stroke closes the terrain with its border at the edge. Changing it is one undo step and leaves painted cells as they are until you paint them again.

Tall tiles such as houses, trees, walls and mountains can stand higher than their cell. A tileset's tiles have a size of their own: when you make a tilemap layer with a new tileset, set its Tile width and Tile height (they follow the cell size until you change them), for example 32 × 48 tiles on 32 × 16 diamond cells. A tile taller than its cell stands on the bottom of the cell, centered across: on a rectangle its bottom edge, on a diamond the bottom tip, on a hexagon the bottom of the hexagon. A tile only wider than its cell is centered on it. It needs no other setting.

To give an existing tileset taller tiles, open Tile Placement in the Tilemap menu and change its tile size. The sheet is laid out again with each tile's art on the bottom of its new, taller slot, so the map looks the same and every tile now has room above it to draw into, in one undo step. A size is refused while it would lose drawn art, either cut off a tile or drawn between the tiles or past the last whole column or row, and when the tileset serves tilemaps of different cell sizes that could not all keep their look. When you edit the tileset of a diamond or hexagon map, each slot shows a faint outline of the cell the tile stands on, so you can draw to its shape; the outline is never part of the art.

The margin and spacing of an existing tileset change in Tile Placement too, beside its tile size. Each tile keeps its art and the sheet is laid out again around it, in one undo step; the change is refused while art drawn between the tiles or past the last whole column or row would be lost.

Tile Placement also fine-tunes where the tiles sit: the anchor moves every tile from its cell's center. It starts from what the tile size gives, so change it only to nudge the tiles. A tile always shows whole, as far past its cell as its size and anchor put it, and one tile can have an anchor of its own in the Configure tile panel. Cells are drawn back to front, so a tall tile covers the cell behind it and the cell in front covers it. A tile no larger than a diamond or hexagon cell shows only the part inside the cell's shape.

For tiles drawn as raised blocks, Top height in Tile Placement says how many pixels above its cell a block shows its top face. The hover outline, the selection, the grid and the other cell outlines then sit on each cell's own top face, and an empty cell's on the plane of the tileset you paint from, so on a map mixing flat and raised tilesets each cell is outlined where it shows. The tiles are drawn as before. The raised templates set it for you when a layout is applied to a tileset of their tile size, and the raised examples have it set; leave it at 0 for flat tiles and for tall sprites such as trees.

Every tool works the same on every layout. A click acts on the cell under the pointer, whatever art stands in front of it, so a cell behind a tall tile can still be reached; every point of a drag follows the same rule, and a small outline marks the cell on diamond and hexagon maps. With a top height, the cell under the pointer is the one whose top face would be there, on the plane of the tileset you paint from. Only the eyedropper reads the art: it picks the tile you see under the pointer. Lines and ellipses follow the grid's own axes, the bucket and the magic wand spread to the six neighbors of a hexagon, a selection is made of whole cell shapes, and moving cells or stamping a brush on a shifted layout keeps the shape of the block. While painting pixels a stroke paints the tile you see: where a tall tile stands in front, it paints that tile. Terrain sets made on a hexagonal map match the six sides of each hexagon, and only paint maps with hexagon cells. Flipping and rotating the file are for rectangular tilemaps only, and terrain presets and generated tilesets are made on rectangular maps.

A terrain set paints only maps with the cells it was labeled for: rectangles, diamonds or hexagons. A set made for other cells stays in the Tileset panel, dimmed, and clicking it says why. With Show Grid on, the canvas grid draws the outline of every cell of the active tilemap, diamonds and hexagons included.

Tilesets

A tileset is an internal object cut into tiles. It lives in the file, stays out of the scene and exports, and is listed with the other objects in the Library. Editing it opens the tileset in the same tab as a canvas of its own: the map is hidden, the view fits the tile sheet, and its grid lines are drawn over it. Strokes are part of the file's history, so undo works as usual. Press Esc twice, click the file's name in the breadcrumb at the top left, or click Done to go back to the map, at the zoom and position you left it. While the tileset is open, commands that change the whole file (Canvas Size, Image Size, Crop, Flip and Rotate Canvas, Flatten, Export) say so and do nothing; Import Image as a layer puts the image into the tileset.

To make room for more tiles, choose Add a Row of Tiles or Add a Column of Tiles under Tiles in the Tilemap menu. The tile list is made when a tileset is made; after you draw into empty slots, Make Tiles from Drawn Art gives every drawn slot without a tile a tile of its own and keeps the tiles you have.

Any object can become a tileset. In the Tilemap menu choose Use Object as Tileset… under Add Tileset, pick the object and the grid to cut it by: every whole grid cell inside the object that holds pixels becomes a tile.

To use a tile sheet you already have, drop the image file on the Tileset panel. It becomes a new tileset of the active tilemap, cut at the tile size of the tileset open in the panel (or at the layer's cell size when no grid tileset is open), with a tile for every slot of the image that holds pixels. When the image does not divide into whole tiles, Novaboard says how many pixels are left over and offers to grow the tileset so they become tiles too. On an indexed file the image's colors are fitted to the palette, as with any image you import.

From an Image File… in the New Tilemap Layer tileset step, and under Add Tileset in the Tilemap menu, opens your computer's file picker instead. For an existing tilemap the tile size starts at the tilemap's cell width and the height of the image's rows, so a sheet of tall tiles keeps them whole; from New Tilemap Layer Novaboard reads it off the image. You can change it before applying. When the image is one of the two autotile templates (the 4 × 4 corner template or the 12 × 4 blob template), Set up terrains labels its tiles for terrain painting in the same step. Use as Tileset proposes the tile size the same way. When the tilemap's only other tileset is the empty one it was made with, untouched, that one is taken off.

Many packs are exported with padding: an empty or single-color border around the sheet and lines between the tiles. Every grid cut, from an image, an object or a file, has Margin X and Margin Y (where the first column and row start) and Spacing X and Spacing Y (the pixels between columns and between rows), all 0 by default. They match the margin and spacing of Tiled and the offset of Pyxel Edit. When the whole sheet shows such gutters, evenly, Novaboard reads them and the tile size off the image; otherwise they start at 0. The preview draws the tiles apart and shades the gutters, and a margin and spacing that leave no room for a whole tile are refused, with a button to set them back to 0. The gutters are never part of a tile: tiles, terrain labels, layouts, Add a Row or Column and drawing through the map all keep to the tiles.

In the Library a tileset is a folder holding the tileset object and its tiles. Click a tile to paint with it on the active tilemap, or right-click it for the secondary tile. A tile from a tileset the layer does not use yet is fine: the first cell you paint with it adds that tileset to the layer, in the same undo step.

Tilesets in Other Files

A tileset can also be a whole file of your workspace, so several maps in several files share one sheet. In the Tilemap menu choose Use a File as Tileset under Add Tileset and pick the file, or right-click a file in the file grid and choose Use as Tileset. Pick the tile size of the grid to cut it by. The cut is saved in that file and is one undo step in its own history; a file open in another browser tab is not changed. Tileset files carry a badge in the file grid, and the Tilesets button there lists only them. The New Tilemap Layer tileset step offers them too.

Tiles from another file stamp like any other, and every map using the file shows your edits to it. To work on the sheet itself, open the file: Edit Tileset on the layer, or a double-click on one of its tiles, opens it in its own tab, or switches to that tab, and the map's tab stays as it was. A file that draws from the map's own file cannot be its tileset.

You can also paint those tiles from the map. While painting pixels the brush, the eraser, the bucket, the shapes, the Shift line, the effect brushes and custom brushes paint a cell of a tileset file into that file, on its active layer, with its palette: an indexed tileset takes the nearest color of its palette, and refuses a color that is not on it when its palette is locked. The stroke goes into the tileset file's history, not the map's, and every map using the file shows it. The map takes the tileset for editing as soon as you switch to painting pixels on it, and keeps it while it is open: in another browser tab the tileset is then read-only, and a tileset another tab is editing refuses the stroke. Undo and redo in the map walk your stamps and the strokes you painted into the tileset in the order you made them. If the tileset was changed elsewhere in between, that step is skipped with a message and nothing changes. A stroke after an undo starts a new branch in the tileset's history. New tile works on a tileset file cut on a grid too: the new tiles go into the tileset file, which grows by a row when it has no free slot, the cells into the map, and one undo in the map takes back both.

In the Tilemap menu, Move to Its Own File turns an internal tileset into a workspace file named after the tileset and points the tilemaps at it, and Embed in This File copies a tileset file into this file as an internal one. Tile ids are kept both ways, so every cell keeps its tile. Exporting a map as a .nova carries its tileset files, and the files they draw from.

In a tileset file's own tab, with no tilemap layer active, the Tilemap menu's Add a Row of Tiles, Add a Column of Tiles, Make Tiles from Drawn Art and Label a Standard Sheet… work on the file's own tileset, each as one undo step in that file.

Missing Tilesets

When a tileset a map uses is deleted, the map keeps every cell. Its row in the Layers panel shows a broken-link icon, and its cells show as dashed outlines with the tile's name or slot on top. Anywhere else, previews, thumbnails and exports, those cells are empty, and the export dialog says so. Deleting a tileset that maps use asks first and names the maps.

Restore the file from Recently Deleted and the cells come back. Or right-click the layer, or open the Tilemap menu, and choose Relink Tileset to pick another tileset (the warning at the top of the panel does the same): every cell whose tile id exists there shows again. A duplicate of the tileset file keeps its tile ids, so it works as a replacement.

The Tileset Panel

The Tileset panel sits under the Palette and works like it. When a tilemap layer is active it shows the tiles of its tileset as swatches, in the order of the tileset, with the empty cell as the last swatch. A layer that uses more than one tileset lists them as folders, and the open one shows its tiles. Right-click a folder and choose Remove Tileset, or choose it in the Tilemap menu for the open tileset, to take that tileset off the layer: its cells are cleared (Novaboard asks first when any are), the tileset itself stays, and it is one undo step.

  • Left click a tile to make it the primary tile, right click a tile, or the empty cell, for the secondary tile; a right click anywhere else in the panel leaves it as it is. They wear the same blue and orange borders as the primary and secondary color in the Palette, with a mark in the top-left corner for the primary and in the top-right corner for the secondary, and X swaps them.
  • From the keyboard the tiles are one stop of the Tab order, and so are the terrains above them: the arrow keys move between swatches as they are laid out, Home and End go to the first and last, Enter or Space picks the primary and Shift+Enter the secondary.
  • Hover a tile to see its number in the tileset (Tile 3, say), its name when it has one, and its column and row in the sheet. The empty cell says so.
  • The panel settings, the gear above the panel, pick the Swatch size: small, medium, large or fit, fit until you pick one. A tile is drawn whole inside its swatch, centered. Columns sets how many sit in a row; left empty (it reads Sheet) a tileset cut from a sheet shows the sheet's own columns, so tiles stacked in the sheet stay stacked in the panel. Rows never wrap: when the panel is too narrow for the columns, the tiles scroll sideways, and Fit first makes the swatches smaller, down to one screen pixel per pixel of art, until the row fits. Borders shows or hides the lines between them. These settings stay the way you leave them.
  • The panel settings show the name of the open tileset and its tile count. The tileset commands are in the Tilemap menu of the menu bar: making and converting tilemap layers and their cell layout first; then editing the tileset, its tile placement and its terrains; Add Tileset with the ways to add a tileset (New Tileset adds an empty one cut to the layer's cell size) and Tiles with the commands that change tiles, Delete Unused Tiles last; then where the tileset lives, and Remove Tileset at the end. A command that cannot apply stays in its place, grayed out, and says why when you point at it.

The Terrains and Configure tile buttons stay at the bottom of the panel however many tiles the tileset has. Add a Row of Tiles and Add a Column of Tiles in the Tilemap menu grow the sheet by blank tiles you can pick at once and draw into. Art drawn in a slot that has no tile becomes one with Make Tiles from Drawn Art.

Each tilemap layer remembers its own primary and secondary tile.

Rearranging Tiles

To change the order of a tileset, click a tile in the Tileset panel, then drag it to where it should go: the tiles between shift along. To move several, select them first and drag one of them; a block keeps its shape when there is room. A drag that starts on a tile you have not selected selects a block of tiles instead. Moving a tile only changes its slot in the sheet: every map keeps showing it, and the move is one undo step named Move Tiles in the History panel.

Painting Tiles or Pixels

A tilemap layer is painted in one of two ways. The tool options bar shows which one is on: tile flips and Random while painting tiles, the edit target while painting pixels.

  • Painting tiles: the drawing tools place whole tiles. The left button paints the primary tile and the right button the secondary tile, the way they paint colors.
  • Painting pixels: the drawing tools paint pixels into the tiles under the brush, and every cell showing the same tile shows the change.

Picking a tile switches to painting tiles, and picking a color switches to painting pixels. Alt+T flips between the two, and so does Switch Tiles / Pixels in the command palette.

While painting tiles the brush, dither and eraser take the size and shape set on the tool options bar, measured in cells: a round brush of size 3 covers five cells, a square one nine. On diamond cells the shape follows the diamond's axes, and on hexagons a round brush covers the cells within its reach, seven at size 3. A custom pixel brush has no meaning for cells, so they are round while one is picked; tile brushes are the stamps for painting tiles. Before you click, hovering the canvas shows the result of the click: a thin outline marks the cells the tool covers, and inside it the canvas looks exactly as it will after the click. A terrain shows every border it would change, also on cells outside the outline, so an island painted into water shows all its edges before you commit. The eraser works the same way in reverse: inside its red outline you see the canvas already erased. With Random on, the tiles you see are the tiles the click places. Lines, rectangles and ellipses preview the cell under the pointer before you drag, and the bucket previews its fill unless the region is very large, when it shows the region's outline only. The preview is only on the canvas you work in, never in the Preview panel or an export. Presses are kept to the canvas: a click on the gray space around it writes nothing, and a stroke that leaves the canvas stops there.

While painting tiles the pencil, brush and eraser work on whole cells, the rectangle draws a rectangle of cells, the bucket fills the connected cells that show the same tile, and the eyedropper picks the tile under the cursor into the button you pressed. While painting pixels one stroke can cross several cells, and undo takes the whole stroke back at once. A stroke over an empty cell does nothing, since there is no tile there to paint. The shapes (line, rectangle, ellipse, curve, polygon and the rest) paint through the cells the same way, into the tileset of the first cell they cover.

The line and ellipse tools draw cells too, the same shapes they draw in pixels: the tool's size is the line's thickness in cells, and the ellipse follows its fill option. Hold Shift with the brush to see a line of cells from where your last stroke ended, and click to paint it.

The dither tool mixes the two tiles. Its pattern and ratio decide, cell by cell, which cells take the primary tile and which the secondary, so a 50% checkerboard lays the two tiles out like the squares of a chessboard. The pattern depends only on where a cell is, so painting the same stroke again gives the same result. The bucket's dither fill works the same way.

Every Copy or a New Tile

While painting pixels the tool options bar shows what a stroke edits. Every copy paints the shared tile, so every cell showing it changes. New tile copies the tile of each cell the stroke touches into a free slot of the tileset and paints the copy, so only the cells you painted change; the sheet grows by a row when it has no free slot. A tile of a tileset in this file that only one cell shows is painted in place; a tileset in a file of its own always gets a copy, since other files may use the tile. A copy of an animated tile keeps all its frames, and the stroke paints the frame the cell is showing. An empty cell gets a new tile in the tileset of your primary tile. Alt+E switches between the two.

When the stroke ends, a copy you did not change is dropped and the cell keeps its tile, a copy that looks like a tile the tileset already has uses that tile, and cells of one tile you painted the same way share one new tile. A flipped or turned copy counts as the same tile: the cell shows the existing tile flipped to match, and no tile is added. Tiles nothing shows any more are kept until you delete them. Undo takes the whole stroke back at once. Every pixel tool works with New tile: effect brushes, lines and shapes copy each cell they draw on, the bucket fills the region as you see it on the map and copies only the cells it changes, and a global fill copies every cell on the map that shows the color you clicked. New tile needs a tileset cut on a grid, with one layer and one frame.

To see which cells a stroke with Every copy will change, hold Ctrl over a cell: every cell on this frame that shows the same tile, flipped or turned, gets its own outline, like cells of the grid, while painting tiles too. The Tileset panel marks that tile and scrolls to it while you hold the key; letting go leaves your picks as they were.

Flipping, Random Tiles and Tidying the Tileset

While painting tiles the buttons on the tool options bar, or Alt+X, Alt+V and Alt+Z, flip the tile you are placing horizontally, vertically, or turn it 90° clockwise. Turning needs square cells. The eyedropper picks a cell's flips along with its tile, and with symmetry on, the mirrored cell gets the mirrored tile.

Hold Ctrl while clicking tiles in the Tileset panel to add or remove them, or Shift to select the block of tiles between the last one you picked and the one you click. With Random on, the pencil, bucket and rectangle give each cell one of the selected tiles, and Random flips flips them at random as well. Undo and redo bring back exactly the tiles that were drawn.

The Tilemap menu can also Fork Tile, which copies the primary tile into a new tile and picks it; Merge Identical Tiles, which keeps one tile of each look, a flipped or turned copy counting as the same look, except for terrain and animated tiles, which merge only with exact copies, and points every cell and saved tile brush at it, flipped where needed (tiles merge only when their pixels match on every frame and layer and their name, anchor and weight match too); and Delete Unused Tiles, which removes the tiles no tilemap, saved tile brush, rule or terrain set of the file uses. None of them changes how the map looks. Join Tiles turns a selected block of unused tiles into one larger tile that covers the whole block, for a tree or a house that stands on one cell, and Split Tile turns it back into one tile per part. With cells selected, Fork Tile copies each tile those cells show once and points the cells at the copies.

Selecting, Moving and Copying Cells

While painting tiles the selection tools pick whole cells. The rectangle marquee snaps to every cell it touches, the ellipse, lasso and polygon keep the cells whose center they cover, and the magic wand selects the cells showing the clicked tile. Select All takes the cells the canvas shows and every placed cell. A marquee that removes from the selection takes out every cell it cuts into. While cells are selected, the tools only write inside them and Delete clears them.

Drag inside the selection, or use the move tool, to move the cells by whole cells. Cut, copy and paste work on cells too, and a paste goes into any tilemap, in this file or another one. A paste with the copied cells still selected lands exactly on them; moving the pasted cells away puts back what they covered, so a paste never takes cells away. While they are still selected, the tile flip buttons (Alt+X and Alt+V) or Flip Horizontal and Flip Vertical mirror the pasted block in place. Capture brush makes the selected cells a stamp and drops the selection, and a stamp paints one copy per click whatever the brush size. Cells remember their tileset and tile, not a number, so a tileset the target does not use yet is added along with them. Tiles from an internal tileset of another file cannot be pasted: make that tileset its own file first.

Tile Brushes

Select several tiles in the Tileset panel with Random off and the pencil stamps them as the block they make in the sheet, while the rectangle and bucket fill with that block as a pattern. Capture brush on the tool options bar makes the same kind of block from the selected cells. Flipping and turning act on the whole block.

Save Tile Brush in the brush menu keeps the block in the file, where any of its tilemaps can use it. Saved brushes are listed in the brush menu next to the pixel brushes while you paint tiles on a tilemap, and can be renamed or deleted there. A brush whose tileset is gone shows as broken and does not stamp.

Terrains

Terrains let the tiles work out their own edges. Label which terrain each corner and edge of a tile shows, then paint with a terrain instead of a tile: every cell you paint gets a tile of that terrain, and the cells around it switch to the tiles whose corners and edges meet it.

Most terrains never need labeling by hand: a template or New Terrain from Pieces… labels its tiles as it makes them, and Label a Standard Sheet… labels a sheet drawn in a known layout. Hand labeling is for fixing a few tiles, or for art in a layout of its own.

The Edit Terrains button under the tiles (also Edit Terrains in the Tilemap menu and the command palette) opens the tileset in Edit Tileset in Terrains mode. The bar at the top of the canvas switches between Draw, where the pixel tools edit the sheet, and Terrains, where they do not paint and the sheet is labeled instead; switching keeps the zoom and the view, and Done goes back to the map. In Terrains mode every tile of the sheet shows a mark on each corner and edge it can label, in the color of the terrain it has, ringed light and dark so it reads on any art; a zone with no label yet shows a small spot. The marks sit on the top face of tiles taller than their cell, around the diamond or the hexagon on isometric and hex maps, and grow and shrink with the zoom: zoomed out they become plain dots so the art stays visible. Pick a terrain in the strip on the right, then click or drag over the zones to label them; a right click clears a label, and so does a click with None picked. Each drag is one undo step. The line at the bottom of the strip names the zone under the pointer and its terrain (Tile 12, top-left corner: Water). From the keyboard the sheet is one stop of the Tab order: the arrow keys move between corners and edges and on to the next tile, Space or Enter labels, Delete clears, 1 to 9 pick a terrain and 0 picks None; the focused zone is ringed and read out.

The strip holds the terrain set picker, with + to add a set, the pencil to rename it and the bin to delete it, and says what the set matches: corners (the classic 16-tile set), edges, or corners and edges (the 47-tile blob, where each tile names what its eight neighbors are); hex sets match sides. Below are the terrains, to pick, name, color and delete, with Add Terrain, and a line that says whether every label combination has a tile, with the missing ones drawn so you can see a gap before you paint into it. Borders between terrains opens the list of terrain pairs and whether border tiles join them. Label a Standard Sheet… and New Terrain from Pieces… sit at the bottom of the strip, and in the Tilemap menu under Edit Terrains.

Label a Standard Sheet… labels a block of a sheet drawn in a standard layout in one step. It opens from the strip, the Tilemap menu or the command palette; for a tileset kept in another file, the panel's Edit Terrains button (also Tilemap > Label a Standard Sheet and the command palette) opens it directly. The layout list opens on the layout the sheet or the selected block fits, the art itself choosing among layouts of one size, else on the one you used last. The preview shows the block close up, or the whole sheet, with every slot the layout labels outlined (the spare slot of the outside terrain's full tile included), and Show labels draws the labels it will write over the art, so you can check each mark. It reads the sheet's first frame, as Apply does. The block starts at the column and row shown under the preview: the tile you last pressed in Terrains mode, else the tile you selected in the Tileset panel or the top-left of the tiles you selected, else the first slot; click a tile in the preview, or change the fields, to move the block. A block that does not fit the sheet from there is refused with the reason, and blank slots in it are skipped. Add to shows the set Apply writes into: the set that already labels the block's tiles when there is one, else a new terrain set, and you can change it either way. With an existing set, Inside and Outside say which of its terrains the block's two terrains are, or that one is new; they start at the terrains the block's tiles already carry, so applying a layout again changes nothing. So a sheet with water against sand, grass and snow in three blocks becomes one set of four terrains: apply the layout to the first block, then to each of the others with the water picked as Inside and a new terrain as Outside. Only the layouts drawn for the tilemap's cells are offered: square layouts on square cells, isometric ones on diamonds, the hex one matching the map's orientation. The terrain that fills the full tile is terrain 1. Every template has two terrains: one slot holds the full tile of terrain 2, the template's outside color. The blob templates keep it in their one unused slot, the 3 × 3 template in the first free slot of its last row, the 11 × 5 block in the slot under its first column and the hex template in a ninth row; the corner and edge templates have it already, as the tile with no inside terrain. When nothing is drawn in that slot yet it is filled with the outside color in the same undo step (art you drew there is kept), and a sheet that stops before it still applies, with terrain 2 left without a full tile. The bitmask layouts are four rows of four for the 16-tile corner set, where tile n carries the inside terrain on its top-right, bottom-right, bottom-left and top-left corner when bit 1, 2, 4 and 8 of n is set, and eight columns for the blob: its 47 tiles in order of their neighbor mask (top 1, top-right 2, right 4, bottom-right 8, bottom 16, bottom-left 32, left 64, top-left 128, a corner counting only with both its edges), then the plain outside tile.

Detect from the tiles' colors reads the labels off a template drawn in two flat colors, whatever its order. Each tile is sampled at its corners, the middles of its edges and its center; the sheet's two main colors become the two terrains, with their colors. A sheet whose every tile reads as corners becomes a corner set, otherwise a blob (mixed) set. Each terrain takes the color of its own full tile. A terrain without one, such as the outside terrain of a blob block, takes the color its border tiles show on its side, and only a terrain no tile shows at all is gray. Tiles in another color, such as a blank slot, stay unlabeled and the dialog counts them. A sheet with more colors than that is not a template: the dialog says so and nothing is applied.

New Terrain from Pieces… draws a whole set for you from a few pieces. It is in the Tilemap menu and at the bottom of the terrain strip, and opens a small canvas of its own with one slot per piece, each named underneath: the outer corner (the terrain as a lone patch), the top edge (a band running left to right), the side edge (a band running up and down), the inner corner (terrain everywhere but the four corners) and the fill. Draw only the terrain in each piece and leave the rest empty: until you draw in a slot it shows a guide, dark where the terrain goes and light where you leave it empty. Each slot is its own little canvas, so a stroke or a fill stays in the slot you start it in. All the usual tools, colors, selections and undo work there. Choose 47 tiles (a blob set) or 16 tiles (a corner set, which needs tiles with an even width and height), then the set: a new terrain set, or an existing one. Next to picks the terrains the new terrain borders, as many as you like: any terrain of the set, and Nothing (transparent) for empty cells. For each one the border tiles are your pieces laid over that terrain's full tile wherever you left them empty, so one drawing of sand borders both grass and water. Pixels you did draw outside the terrain are kept as drawn. Under the slots a sample map shows the tiles your pieces make over the first terrain you picked, with a switch to see them over each of the others, and updates as you draw. A sixth slot, Second terrain, is optional: draw a full tile there and the set gets that second terrain, which the new terrain borders too. To give a terrain you already made more borders, pick it in the terrain list (or type its name) and choose the new terrains: its pieces come back when they are still there. Give a new terrain a name and a color (the fill's main color to start with) and press Create Terrain: the tiles go into blank, unused slots of the sheet first, then into new rows below everything drawn on it, never over your art; they are labeled, the terrain is picked and its swatch scrolled into view, all as one undo step. Leaving with Done or Escape keeps what you drew for next time, and the next terrain after Create starts with empty slots. The canvas fits the pieces the first time and keeps your zoom when you come back. An undo on the map that changes pieces you are not looking at says so. It works on a grid tileset in this file; a tileset in another file has to be embedded first. Sets made from pieces have limits: a curve cannot be wider than half a tile, the border cannot sit exactly on the middle line of a tile, so one terrain grows or shrinks slightly, and the result has little variety, which alternates (extra tiles with the same labels) help with.

On an isometric tilemap, plain or staggered, the pieces are the same five, drawn as diamonds: a diamond is the square turned a quarter, so its tips are the corners and its edges the sides, and the edge pieces are named for the upper-right and upper-left edges. Each slot shows the diamond and splits it into four smaller diamonds, one at each tip; every tile is put together from those, so 47 tiles (or 16) come out, labeled like the isometric templates.

On a hex tilemap, pointy or flat topped, you draw four pieces: the terrain alone in one cell, the terrain reaching every other side, the terrain reaching the other three sides, and the fill. Each slot shows the hexagon, its six sectors and a mark on every side the terrain reaches. A sector only cares whether its two sides join the terrain, and those four pieces cover every case, so all 64 tiles come out: one for every way the six neighbors can be terrain or not. The sample shows a small hex island with a lake, a path one cell wide and a lone cell. Pieces drawn for one layout stay with it: opening the canvas from a tilemap of another layout starts fresh and keeps the other drawing.

Picking a terrain in the Tileset panel, where each terrain shows as a swatch above the tiles, turns terrain painting on; picking a tile turns it off. The left and right buttons paint the two picked terrains, just as they paint two tiles. The pencil (with its size), line, shapes and bucket paint terrain, the eraser empties cells, and the eyedropper picks the terrain under it. The bucket fills the whole connected area of the terrain you click, the border pieces around it included, so no strip is left behind; clicked on empty cells it fills the empty area inside the canvas. The cell selection limits the stroke as usual. Random tiles, flips and tile brushes do not mix with terrain painting and are switched off while a terrain is picked. A drag is one undo step, and undo and redo bring back exactly the tiles it chose.

When several tiles fit, one is chosen by its probability. A stroke changes only the cells you paint and, around them, only the corners and edges a neighbor shares with a painted cell: a neighbor never turns into another terrain, and where no tile fits that it keeps its tile and is marked. With three or more terrains, two that have no border tiles for their pair meet with a hard edge, each showing its full tile, and nothing is marked, since the art for that pair just does not exist yet; the same holds for a cell between two terrains its terrain borders only separately. For sets of more than two terrains Borders between terrains in the terrain strip lists every pair and whether it has border tiles, so a hard edge on the map is easy to explain. Cells from another tileset are left alone.

An empty cell is nothing: it shows nothing. With a corner or edge set, painting a terrain on a cell gives it that terrain's full tile, and the empty cells around it that share a corner or edge with it get a border tile: the painted terrain on the shared corners and edges, and on the rest the other terrain (with three or more terrains, the first other one that has such tiles), or whatever a tile already next to them shows there. So one painted cell on an empty map is a full tile ringed by eight border tiles. When the other terrain has no tiles the cells around stay empty. Erasing a cell empties it and never adds terrain. A set of two terrains, other than an edge set, shows its coast toward an empty cell: every cell around the hole takes the outside terrain, the set's second, on the corners it shares with the hole, so the hole is ringed by coast; when a cell there has no tile for that, the whole hole keeps a hard edge instead. Sets of three or more terrains keep their tiles beside a hole, which then has a hard edge, unless one terrain has no full tile of its own, such as a transparent outside: that one is shown toward the hole. Every terrain set ends with an Empty swatch: picked with either button, that button erases the same way. A terrain with no tiles of its own is not shown; painting one from an older file still erases. A terrain's color dot follows its full tile's art as you redraw it, unless you set the color yourself in the terrain strip. With a mixed set, a tile next to an empty cell shows its own border on that side. The canvas edge is not empty: a cell past the edge reads as its neighbor on the edge, nothing is painted past it, so terrain painted or filled up to the edge is full tiles with no rim. Cells you placed past the canvas count as what they are.

If no tile fits a cell, the cell stays as it was before the stroke, empty or not, and is marked with an orange cross on the canvas; a tile that ends up disagreeing with a cell the stroke may not change, outside the cell selection or flipped, is marked too. The crosses stay until the next edit, undo or redo. A tile copied with New tile or Fork Tile keeps its parent's labels, so the tiles around it still fit, but terrain painting never choose it.

Autotile Templates

Every engine and asset pack uses the same few autotile patterns; what differs is how the sheet is arranged. Novaboard has a layout for each common arrangement, a template you can draw over, and an example. The Starters tab of the New File dialog lists the autotile examples and then every template, square, isometric and hex in turn. Open the Template in Label a Standard Sheet… opens its template as a new file, drawn for the active tilemap's cells and named with their size (for example "47 tiles blob 12x4 autotile template 32px"): draw over it, keep the arrangement, then drop the image on the Tileset panel and apply the same layout in one click. Each template is drawn in two flat colors, the terrain outlined one pixel darker. It is drawn fresh for the exact cells of the map, any size the layout fits together at: each tile fills its cell's shape pixel for pixel, whatever the proportions of a diamond or the side length of a hexagon, so the tiles meet with no gap and no overlap. The files in the examples folder, and the pictures on this page, are the base size: 16 × 16 for square tiles, 32 × 16 diamonds for isometric ones and 16 × 16 hexagons with 8 px sides.

These sets are often called Wang tiles: tiles described by what touches their corners or sides, so the right one can be chosen from its neighbors. A corner set looks at the four corners a tile shares with its neighbors, which suits areas such as grass on dirt. An edge set looks at the four sides, which suits paths, fences, pipes and walls. A blob set looks at both, which gives areas with clean inner corners and one-tile-wide strips. Alternates are extra tiles with the same labels; terrain painting picks among them at random, which breaks up repetition.

16 tiles, corners (4 × 4 template): the common corner (dual-grid) arrangement, laid out so the tiles form one picture.

The 4 × 4 corner template

47 tiles, blob (12 × 4 template): the Tilesetter and Godot "3x3 minimal" arrangement, with the outside terrain's full tile in its one spare slot. Art already drawn in that slot is kept, and left unlabeled when its color is not one the border tiles show, so the outside terrain then has no full tile.

The 12 × 4 blob template

47 tiles, blob (11 × 5 template): the arrangement used by the Ninja Adventure pack. A 3 × 3 island sits at the left with a vertical strip, a horizontal strip and the single tile beside it; the inner corners fill the columns to the right. A spare slot in the block that holds a fully opaque tile becomes an alternate of the full tile. A sheet often holds several of these blocks side by side: apply the layout to each and add them to one set. The full tile of the outside terrain sits in the row under the block, at its first column, as in the pack. Art already drawn there is kept; an empty slot is filled with the outside color, unless the block's outside is transparent, in which case the outside terrain gets no tile and painting it leaves cells empty. The Layered Terrains example in the New File dialog is built from blocks of this pack. Tiles: Ninja Adventure by Pixel-boy and AAA, CC0.

The 11 × 5 blob template

16 tiles, edges (4 × 4 template): for roads, paths, fences, rivers and walls, anything that connects through its sides. Tile n is at column n mod 4, row n ÷ 4, its top, right, bottom and left side joining when bit 1, 2, 4 and 8 is set. Its template is drawn as a dirt road on grass, and the Roads and Paths example shows a loop, T junctions, a crossing, a dead end and roads that run off the map.

With an edge set the terrain tools lay paths. A drag lays the terrain on the side shared by each two cells the pointer passes over in turn (two cells meeting only at a corner join through a cell beside both), so a straight drag is one road, a turn is a bend and crossing a road makes a junction; the brush size does not widen it. A click joins the cell to every neighbor that already has the terrain, and with none gives the cell the terrain on all its sides. The line lays its path, the rectangle and the ellipse their outline, and the bucket only fills with the base terrain or erases. The eraser turns the sides it crosses, or every side of a clicked cell, into the set's last terrain, its base terrain: grass in the Roads and Paths example.

The 4 × 4 edge template

3 × 3 with inner corners (13 tiles): the smallest blob layout, a 3 × 3 island with the four inner corners drawn as a hole in a 2 × 2 block to its right, and the full tile of the outside terrain in the slot under them. It has no strips or single tiles, so areas painted with it must be at least two cells wide: a lone cell or a strip one cell wide beside empty cells is refused, its cells keep what they held and are marked.

The 3 × 3 template with inner corners

16 tiles, corners (isometric, 4 × 4 template), 47 tiles, blob (isometric, 12 × 4 template) and 3 × 3 with inner corners (isometric, 13 tiles): the square corner, blob and 3 × 3 templates drawn on diamonds, the square turned a quarter clockwise, so the top side is the upper-right edge and the top-right corner the right tip. They label slots, not pixels, so a taller sheet in the same arrangement labels the same way. The isometric 3 × 3 layout also labels optional rows under the box, for sheets that draw one-cell-wide ridges: a ridge across the square's left and right sides (left end, middle, right end) and a lone peak; a ridge across its top and bottom sides (top end, middle, bottom end); a ridge's four corners and its crossing; its four T junctions; and a plateau's top, right, bottom and left side with a ridge leaving it. A sheet without them labels as before, and its generated template leaves them out.

The isometric corner template
The isometric blob template
The isometric 3 × 3 template with inner corners

Isometric ramps: the Isometric Ramps template in the New File dialog is a sheet of 33 tiles of 34 × 34 laid out as the isometric 3 × 3 layout with its ridge rows: a block for the inside of a hill, a ramp falling away from each of its four sides, a ramp corner for each outer corner, an inner ramp corner for each notch, a ridge for a hill one cell wide along either axis, its ends falling away like the faces of a pyramid, a pyramid for a lone cell, the corners, T junctions and crossing of ridges, and a plateau side with a ridge leaving it. Each tile is drawn one pixel past its 32 × 16 cell on the left, right and bottom, so Tile Placement sets the anchor to 0, -8 and the top height to 16, the height of the block. Paint the hill terrain on a layer above a base layer and the ramps follow the outline of the hill; the Isometric Ramps example has a plateau with a notch, a smaller hill, a ridge leaving the plateau that turns a corner and branches, a crossing and a lone peak. A ridge that leaves a plateau at one of its corners has no tile: that cell is left as it was and marked. From the usual view the ramps on the two far sides fall away from you, so only their top edge shows. A click on a block's wall or a ramp's face acts on the cell under the pointer on the map's plane, not on the block drawn over it.

64 tiles, sides (hex, 8 × 8 template), for pointy-top and flat-top maps: hexagons only touch through their sides, so 64 tiles, one for every combination of six neighbors, cover every case, one-cell-wide paths included. The sheet is a hex grid sheared into a square one: the columns hold the combinations of four sides (on pointy tops the upper-right, right, lower-left and left sides), and the four rows of each half add the other two: none, the lower-right side, both, then the upper-left side. A ninth row holds the full tile of the outside terrain at its first slot.

The pointy-top hex sides template

Raised templates: isometric and hex art often stands up as blocks. Open the Raised Template under the isometric and hex layouts opens the same sheet drawn as blocks: the flat tile is the top face at the top of a slot twice its height on diamonds (32 × 32 for 32 × 16 cells, 64 × 64 for 64 × 32) and one side longer on hexagons, with walls below that grow with the cell. Give the tilemap's tileset that taller tile size and apply the same layout, which sets the tileset's top height to the wall. A tile taller than its cell stands on the cell's bottom edge, so each block stands on the cell you paint and its top face shows above it; blocks in front hide the walls behind them, and walls show only where the terrain ends. Both grounds are blocks of the same height: Land painted into a map filled with Water shows no walls, and a patch painted on empty cells gets a rim of the other ground around its top. Every isometric layout has a raised template, the 3 × 3 with inner corners included (which, like its flat form, needs areas at least two cells wide), and so do the hex layouts. The square layouts have none: a block drawn on a square cell seen from straight above has no wall to show.

The raised isometric blob template

Several Terrains: Borders or Layers

A map with grass, sand, dirt and water needs every pair of terrains that meet to look right where they touch. There are two ways to get there.

  • A border set for each pair, all in one terrain set. Each block of border tiles draws one terrain against another, so the set knows how sand meets water and how grass meets water. Apply a layout to each block and add it to the same set. Two terrains with no block for their pair meet with a hard edge. A corner set covers every pair at once: with a tile for each way three terrains can share a tile's four corners (81 tiles), any painting of them has a tile, three-way meetings included. The Three Terrains example in the New File dialog is built this way: an island of grass and sand in the sea, in one set of 81 corner tiles.
  • One layer per terrain, when the art draws each terrain as a patch with a transparent outside, or over the terrain of the layer under it. Put a base layer of the plainest terrain at the bottom and a tilemap layer for each other terrain above it, all using one tileset, and paint each layer with its own terrain. Every patch shows its own edge over whatever is below, so any two terrains meet with real border art and no pair needs tiles of its own. The Layered Terrains example in the New File dialog is built this way: grass, a dirt path, sand and water on four layers sharing one tileset. Erasing on a layer shows the layer below.

To share a tileset, choose it under An existing tileset in the New Tilemap Layer tileset step. Each layer remembers its own primary and secondary tile and terrain.

Configuring Tiles

The Configure tile button at the end of the tiles opens a panel beside the Tileset panel with the selected tile's name, anchor and probability. The panel also says how many cells use the tile. Dragging in the Tileset panel works as in the Palette: a drag that starts on a tile you have not selected selects the block of tiles under it, which then stamps as that block; a drag that starts on a selected tile moves the selection onto the tile you drop it on, and the tiles in between shift along. Every map keeps looking the same, and one undo puts the tiles back. On a tileset file both are saved in that file, and the map's undo takes them back; Fork Tile, Merge Identical Tiles and Delete Unused Tiles work on a tileset embedded in a map, so embed a tileset file in a map first, since other maps use its tiles.

Animated Tiles

A tile can have several frames, such as water or a torch. Each frame is a place on the tileset's sheet, the same size as the tile, and the frames play in a loop. In the Configure tile panel press Add frame: the tile gets a new frame right after its last one, starting as a copy of it. A blank tile nothing uses gives up its place for the frame; other tiles in the way move right along the same row to make room, and the rest of the sheet stays as it is. To use art you already drew, select the tiles in the Tileset panel with Ctrl or Shift and press Add selected tiles, or press Pick a tile to add one; the first selected tile is the one that animates. Drag a frame by its handle to reorder it, type how many milliseconds it shows, or remove it, which also clears its art from the sheet unless another tile still uses it. A small preview plays the frames, and the tile gets a film strip mark in the Tileset panel.

The pencil button on a frame opens the sheet with that frame marked. With onion skin on, the frames before and after it show faintly over it, and Previous Frame and Next Frame step from one frame of the tile to the next.

Every cell showing the tile plays its frames along the map's timeline: each frame of the document shows the tile frame that is due at the time it starts. A map of one frame therefore shows the tile's first frame; add frames with New Frame to see it move in the canvas, the Preview panel and exported animations. A new frame holds the map, so you keep editing one map that every frame shows. Duplicate Frame gives each frame its own copy of the map instead. A tileset is one picture: frames added to a tileset's own timeline never show on a map. Painting through a cell paints the frame the cell is showing. Fork Tile copies every frame, and Merge Identical Tiles merges tiles only when all their frames match.

Converting Layers

Convert Layer to Tilemap… in the Tilemap menu or a pixel layer's menu cuts the layer into tiles of the size you choose, on every frame. Cells that look the same share one tile, and so do cells that are flipped or turned copies of one another: the first in reading order becomes the tile and the others show it flipped. The tiles go into a new tileset. If the canvas does not divide into whole tiles, you can cut the leftover into whole tiles too, filled out with transparency. Pixels past the edge of the canvas become cells outside it. A layer that would make more than 65,536 cells is refused; pick a bigger tile size. Rasterize Tilemap in a tilemap's menu turns it back into a pixel layer showing the same pixels.

An Aseprite file with tilemap layers opens with them as tilemaps: each of its tilesets becomes one internal tileset of the file, every tile kept and tile 0 the empty cell, and the cells keep their place and flips on every frame.

Replacing Tiles

While you paint tiles on a tilemap, Replace Colors becomes Replace Tiles. Each row turns every cell showing one tile into another; the empty cell can be either side, so a row can also fill or clear cells. Pick the tiles from the lists under each row, use the primary tile for the new one, or turn on the eyedropper and click cells on the canvas to add their tiles as rows. Flipped cells stay flipped.

Choose whether to change the active cel, every tilemap on the current frame, or every tilemap on every frame. The canvas shows the result as you edit the rows, and Apply makes the whole change one undo step. This is also how to repair a map after rearranging a tileset by hand.

Canvas Changes

Changing the canvas size or moving the layer with the move tool moves the grid and keeps every cell, even the ones that end up outside the canvas. When a layer has such cells, right-click it and choose Grow Canvas to Fit to bring them all back into view. Crop to Selection is the one change that removes cells: the ones wholly outside the cropped canvas go.

Flip Canvas and Rotate Canvas leave the tile sheet alone: every tile stays in its slot, and the cells move instead, each one flipped or turned the way the picture is, so the map looks exactly like the flipped picture. A quarter turn needs square cells and tiles.

Merging, flattening and layered exports such as PSD turn a tilemap into the pixels it shows.

Tileset Images and Aseprite

In Advanced Export, the What row's Game engine lists Tileset PNG in its Format list, which writes the first frame the Frames row picks.

  • Tileset PNG: one tileset on its own as a grid of tiles. It exports the tileset you are editing, or the one you pick.

Saving as .aseprite keeps tilemaps as Aseprite tilemap layers with their tilesets and flips, unless the file is indexed or the tilemap has a layer effect, a clip or an animated tile, in which case it is written as pixels, frame by frame. Tile names travel only with the tilemaps written as tilemap layers; the export names those, or says none went.

What an export leaves out is listed in the export dialog under the Downloaded message, and again as a message once the dialog closes.

Aseprite files keep no terrains; the export says so when it leaves them out.

To save the map itself as a picture, use File → Export… and pick PNG.