Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

TiledObjectBase

What every Tiled object holds.

Property Type Description
center Position Its middle, after its rotation, where an Entity for a door or a trigger stands; a point’s or a polygon’s is its position.
id number Tiled’s object id, unique in the map, which a property of type object names.
name string -
position Position Tiled’s x and y: a rectangle’s top-left, a point, a polygon’s origin, or a tile object’s bottom-left.
properties TiledProperties Its own properties, over its tile’s for a tile object.
rotation Triple Its turn as an Entity’s rotation takes it: Tiled’s clockwise degrees on the screen, as radians about the plane’s normal.
size readonly [number, number] Its width and height on the plane, in metres.
type string Its class in Tiled, read from type, or class as Tiled 1.9 wrote it.
visible boolean -