Class: Sprite_Weapon

Sprite_Weapon()

new Sprite_Weapon()

The sprite for displaying a weapon image for attacking.

Extends

Methods

animationWait() → {Number}

Returns:
Type
Number

hide()

Hides the sprite.
Inherited From:

initialize()

Overrides:

initMembers()

Initializes the members of the weapon sprite object.

isAnimationPlaying() → {boolean}

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

isPlaying() → {Boolean}

Returns true if the weapon sprite is playing.
Returns:
Type
Boolean

loadBitmap()

Loads the bitmap of the weapon sprite.

setup(weaponImageId)

Parameters:
Name Type Description
weaponImageId Number

show()

Shows the sprite.
Inherited From:

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()

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 weapon sprite frames.

updatePattern()

Updates the pattern of the weapon sprite.

updateVisibility()

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