TilingSprite Class
The sprite object for a tiling image.
Constructor
TilingSprite ( bitmap )
Parameters:
-
bitmap
BitmapThe image for the tiling sprite
Methods
move ( x , y , width , height )
Sets the x, y, width, and height all at once.
Parameters:
-
x
NumberThe x coordinate of the tiling sprite
-
y
NumberThe y coordinate of the tiling sprite
-
width
NumberThe width of the tiling sprite
-
height
NumberThe height of the tiling sprite
setFrame ( x , y , width , height )
Specifies the region of the image that the tiling sprite will use.
Parameters:
-
x
NumberThe x coordinate of the frame
-
y
NumberThe y coordinate of the frame
-
width
NumberThe width of the frame
-
height
NumberThe height of the frame
update ()
Updates the tiling sprite for each frame.
Properties
bitmap Bitmap
The image for the tiling sprite.
opacity Number
The opacity of the tiling sprite (0 to 255).
origin Point
The origin point of the tiling sprite for scrolling.
visible Boolean
The visibility of the tiling sprite.
x Number
The x coordinate of the tiling sprite.
y Number
The y coordinate of the tiling sprite.