API Docs for:
Show:

Component_TilingSprite Class

Module: gs

A tiling sprite component tiles the image of the game object on screen. The tiling can be vertical, horizontal or both. The sprite can be managed or unmanaged. A managed sprite is automatically added to the graphics-system and processed every frame until it gets disposed. An unmanaged sprite needs to be added and removed manually.

Methods

setupSprite

()

Creates sprite object.

updateOptionalProperties

()

Updates the optional sprite properties from the game object properties.

updatePadding

()

Updates the padding.

updateProperties

()

Updates the sprite properties from the game object properties.

updateRect

()

Updates the source- and destination-rectangle of the game object so that the associated bitmap fits in.