Class: TilingSprite

TilingSprite

new TilingSprite(bitmap)

The sprite object for a tiling image
NameTypeDescription
bitmapBitmapThe image for the tiling sprite

Extends

  • PIXI.TilingSprite

Members

bitmapBitmap

The image for the tiling sprite

opacitynumber

The opacity of the tiling sprite (0 to 255)

originPoint

The origin point of the tiling sprite for scrolling

Methods

Destroys the tiling sprite

initialize(bitmap)

Initializes the tiling sprite
NameTypeDescription
bitmapBitmapThe image for the tiling sprite

move(x, y, width, height)

Sets the x, y, width, and height of the tiling sprite
NameTypeDescription
xnumberThe x coordinate of the tiling sprite
ynumberThe y coordinate of the tiling sprite
widthnumberThe width of the tiling sprite
heightnumberThe height of the tiling sprite

setFrame(x, y, width, height)

Specifies the region of the image that the tiling sprite will use
NameTypeDescription
xnumberThe x coordinate of the frame
ynumberThe y coordinate of the frame
widthnumberThe width of the frame
heightnumberThe height of the frame
Updates the tiling sprite for each frame

updateTransform()

Updates the transform on all children of this container for rendering