setSpacing(margin, spacing) Sets tile spacing and margins. Parameters
[readonly] physicsType : number The const physics body type of this object.
damage Damages the Game Object. This removes the given amount of health from the health property. If health is taken below or is equal to zero
getLayerIndex(name) → {number} Gets the layer index based on its name. Parameters
faceLeft : boolean Is the left of this tile an interesting edge? Source code:
copy(x, y, width, height, layer) → {array} Copies all of the tiles
setCollisionCallback(callback, context) Set a callback to be called when this tile is hit by an object.The callback must true
layer : Object The layer in the Tilemap data that this tile belongs to. Source
getTile(x, y, layer, nonNull) → {
[readonly] z : number The z depth of this Game Object within its parent Group.No two
Page 18 of 25