docsexport & import

export tileset

The canvas as a sheet of equal tiles, ready for Tiled or a game engine. "file" > "export" > "tileset". The preview shows the sheet with its tile lines.

  • Name: one name for everything that is written.
  • Data: what describes the picture. Tiled, JSON or none.
  • Tile width, tile height: start at the project's tile size when it is a tileset, see tiles. 16 by 16 when it is not.
  • "export tileset": with data, one .zip is saved with the picture and its file in it. With none, the PNG alone.

the files

  • .png: the current frame at 1x, empty pixels left empty. Always written.
  • .tsx: a Tiled tileset that points at the PNG. Keep the two in one folder, as they are in the ZIP.
  • .json: tile width, tile height, columns, tile count and the PNG's name, for an engine that does not read Tiled files.

Tiles are counted row by row from the top left, with no gap between them.

The canvas has to be a whole number of tiles each way. If it is not, nothing is written: change the tile size, or tick "grow the canvas to whole tiles" in "file" > "tiles".