Class: Sprite_Balloon

Sprite_Balloon()

new Sprite_Balloon()

The sprite for displaying a balloon icon.

Extends

Methods

frameIndex() → {Number}

Returns the frame index of the balloon animation.
Returns:
Type
Number

hide()

Hides the sprite.
Inherited From:

initialize()

Overrides:

initMembers()

isAnimationPlaying() → {boolean}

Returns true if an animation is currently playing.
Inherited From:
Returns:
Type
boolean

isPlaying() → {Boolean}

Returns true if the balloon animation is playing.
Returns:
Type
Boolean

loadBitmap()

setup(balloonId)

Parameters:
Name Type Description
balloonId Number

show()

Shows the sprite.
Inherited From:

speed() → {Number}

Returns the speed of the balloon animation.
Returns:
Type
Number

startAnimation(animation, mirror, delay)

Starts a new animation on the current sprite by assigning a new Sprite_Animation object to the sprite's parent.
Parameters:
Name Type Description
animation RPG.Animation
mirror Boolean
delay Number
Inherited From:

update()

Updates the balloon sprite.
Overrides:

updateAnimationSprites()

Updates the animation sprites, cloning them; if the sprite is playing, pushes the sprites into animation sprites, otherwise the sprite is removed.
Inherited From:

updateFrame()

Updates the balloon sprite frame.

updateVisibility()

Updadtes the visibility of the sprite based on the _hiding property.
Inherited From:

waitTime() → {Number}

Returns the wait time.
Returns:
Type
Number