CLASS v1.8.0

tilemap.TileSet.Tile

pykraken.tilemap.TileSet.Tile

Tile represents a single tile entry within a TileSet.

More about tilemap.TileSet.Tile

Attributes

  • id (int) — Local tile id.
  • terrain_indices (list) — Terrain indices for the tile.
  • probability (float) — Chance for auto-tiling/probability maps.
  • clip_rect (Rect) — Source rectangle in the tileset texture.

Reference

PYTHON API
tilemap.TileSet.Tile(/, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

clip_area

property
clip_area: Rect

Source rectangle of the tile within the tileset texture.

id

property
id: int

Local tile id within the tileset.

probability

property
probability: int

Probability used for weighted/random tile placement.

TerrainIndices for each corner of the tile.

Find your next step

Start typing to search the manual.