Class: TilingSprite

TilingSprite(bitmap)

new TilingSprite(bitmap)

The sprite object for a tiling image.
Parameters:
Name Type Description
bitmap Bitmap The image for the tiling sprite
Properties:
Name Type Description
bitmap Bitmap The image for the tiling sprite.
opacity Number The opacity of the tiling sprite (0 to 255).
spriteId Number
origin Point The origin point of the tiling sprite for scrolling.

Extends

  • PIXI.extras.PictureTilingSprite

Methods

initialize(bitmap)

Parameters:
Name Type Description
bitmap Bitmap

move(x, y, width, height)

Sets the x, y, width, and height all at once.
Parameters:
Name Type Description
x Number The x coordinate of the tiling sprite
y Number The y coordinate of the tiling sprite
width Number The width of the tiling sprite
height Number The height of the tiling sprite

setFrame(x, y, width, height)

Specifies the region of the image that the tiling sprite will use.
Parameters:
Name Type Description
x Number The x coordinate of the frame
y Number The y coordinate of the frame
width Number The width of the frame
height Number The height of the frame

update()

Updates the tiling sprite for each frame.