API Reference › Tiled › Tiled.project
method

Tiled.project

Tiled.project(map, layer: int) -> void

Designates tile layer as the collision layer and projects it onto the legacy byte tilemap: an empty cell is a space (passable), a GID whose tile carries the bool oneway property is '=', any other non-zero GID is '#' (solid). Tiled.load calls this automatically for a layer named collision/solids/walls.

← All symbols