API Reference › Tiled › Tiled.cell_x
method

Tiled.cell_x

Tiled.cell_x(map, x: int, y: int) -> int

Returns the screen x (before the camera) of tile cell (x,y) under the map's orientation: orthogonal x·tilew, isometric (x−y)·tilew/2, staggered/hexagonal x·tilew with alternate rows shoved half a tile per staggerindex.

← All symbols