API Reference › Map — tilemap › Map.is_solid_at
method

Map.is_solid_at

Map.is_solid_at(x: px, y: py) -> bool

Map.is_solid for a pixel position, using the tile size from the Solids config.

Example

# doc-check: skip — illustrative
if not Map.is_solid_at(x: pushed.x, y: pushed.y) { Position.x = pushed.x }
← All symbols