object_tiles
Expands a top-left flat tile id and width/height into the grid of tile IDs an object occupies, correctly handling the two-half-column sheet layout for placement.
Instructions
Expand a top-left flat tile id + a width×height size into the grid of tile ids that object occupies on the sheet — feed the returned tiles straight into place_object. This handles the flat sheets' two-half-column layout, where the tile below id N is NOT N+16 (indices 0–127 are the left half of the sheet, 128–255 the right), which is otherwise painful to compute by hand. Get the top-left id from find_tile/get_tile_catalog. Read-only. Throws if topLeftId isn't a flat id or the rectangle runs off the 16×16 sheet; warns if the tileset lacks that sheet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Object width in tiles | |
| height | Yes | Object height in tiles | |
| tilesetId | Yes | The tileset id the object belongs to | |
| topLeftId | Yes | Raw flat tile id of the object's top-left cell (from find_tile/get_tile_catalog) |