TilingSprite.d overview
Table of contents
utils
TilingSprite (class)
The sprite object for a tiling image.
Signature
export declare class TilingSprite {
constructor(bitmap?: Bitmap)
}
destroy (method)
Destroys the tiling sprite.
Signature
destroy(): void
update (method)
Updates the tiling sprite for each frame.
Signature
update(): void
move (method)
Sets the x, y, width, and height all at once.
Signature
move(x: number, y: number, width: number, height: number): void
setFrame (method)
Specifies the region of the image that the tiling sprite will use.
Signature
setFrame(x: number, y: number, width: number, height: number): void
updateTransform (method)
Updates the transform on all children of this container for rendering.
Signature
updateTransform(): void
_onBitmapChange (method)
Signature
_onBitmapChange(): void
_onBitmapLoad (method)
Signature
_onBitmapLoad(): void
_refresh (method)
Signature
_refresh(): void
_bitmap (property)
Signature
_bitmap: Bitmap
_width (property)
Signature
_width: number
_height (property)
Signature
_height: number
_frame (property)
Signature
_frame: Rectangle
origin (property)
The origin point of the tiling sprite for scrolling.
Signature
origin: Point