Skip to main content

tilemap

2d · render · 3 properties · 2D

A grid of tiles cut from one tileset atlas and centred on the node, one character per cell, drawn at pixels_per_unit tile-texture pixels per world unit.

In a scene, tilemap is the node key that applies it. A script reaches the same properties through node.tilemap.get() and node.tilemap.set(table).

Properties

propertytypedefaultdescription
cellsstringRows of tile characters, one row per line: . is empty, 0-9 then a-z index into the tileset
pixels_per_unitfloat100Tile-texture pixels per world unit At least 0.01.
tilesetasset · tilesetThe tileset naming the texture and tile grid

Asset types this component references: tileset.