Class: Sprite_Timer

Sprite_Timer

new Sprite_Timer()

The sprite for displaying the timer.

Extends

Members

The bitmap for the sprite

blendModenumberinherited

The blend mode to be applied to the sprite

heightnumberinherited

The height of the sprite without the scale

opacitynumberinherited

The opacity of the sprite (0 to 255)

widthnumberinherited

The width of the sprite without the scale

Methods

createBitmap()

Creates the sprite's bitmap
Destroys the sprite

fontFace()string

Get the sprite's font face
Returns:
TypeDescription
stringThe font face

fontSize()number

Get the sprite's font size
Returns:
TypeDescription
numberThe font size

getBlendColor()arrayinherited

Gets the blend color for the sprite
Returns:
TypeDescription
arrayThe blend color [r, g, b, a]

getColorTone()arrayinherited

Gets the color tone for the sprite
Returns:
TypeDescription
arrayThe color tone [r, g, b, gray]
Makes the sprite "hidden" (not visible)
Initializes the sprite
NameTypeDescription
bitmapBitmapThe bitmap of the sprite
Sets the x and y coordiantes of the sprite
NameTypeDescription
xnumberThe x coordinate of the sprite
ynumberThe y coordinate of the sprite
Redraws the sprite's bitmap

setBlendColor(color)inherited

Sets the blend color for the sprite
NameTypeDescription
colorarrayThe blend color [r, g, b, a]

setColorTone(tone)inherited

Sets the color tone for the sprite
NameTypeDescription
tonearrayThe color tone [r, g, b, gray]

setFrame(x, y, width, height)inherited

Sets the rectagle of the bitmap that the sprite displays
NameTypeDescription
xnumberThe x coordinate of the frame
ynumberThe y coordinate of the frame
widthnumberThe width of the frame
heightnumberThe height of the frame
Sets the hue rotation value
NameTypeDescription
huenumberThe hue value (-360, 360)
Removes the "hidden" state of the sprite, making it visible

timerText()string

Get the timer text to display
Returns:
TypeDescription
stringThe timer text
Updates the sprite for each frame

updateBitmap()

Updates the sprite's bitmap

updatePosition()

Update the sprite's position
Update the sprite's visibility