Skip to content

TilingSprite

Creates a TilingSprite

API

TilingSprite Attributes

NameTypeDefaultDescription
texturestring objectundefinedThe texture to use on the TilingSprite.
tile-scale

number array object

1The scale factor of the tile.
tile-scale-xnumber1The scale factor of the tile's x axis.
tile-scale-ynumber1The scale factor of the tile's y axis.
tile-position

number array object

0The offset position of the tile.
tile-position-xnumber0The offset position of the tile's x axis.
tile-position-ynumber0The offset position of the tile's y axis.

more props in Container Attributes and TilingSprite

TilingSprite Events

NameTypeDescription
effectfunctioncustom render function

more events in Container Events