Class: Sprite_Enemy

Sprite_Enemy()

new Sprite_Enemy()

The sprite for displaying an enemy.
Properties:
Name Type Description
battler Game_Enemy

Extends

Methods

createStateIconSprite()

damageOffsetX() → {Number}

Overrides:
Returns:
Type
Number

damageOffsetY() → {Number}

Overrides:
Returns:
Type
Number

hide()

Hides the sprite.
Inherited From:

inHomePosition() → {Boolean}

Returns true if the sprite battler is in the home position.
Inherited From:
Returns:
Type
Boolean

initialize(battler)

Parameters:
Name Type Description
battler Game_Enemy
Overrides:

initMembers()

Overrides:

initVisibility()

isAnimationPlaying() → {boolean}

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

isEffecting() → {Boolean}

Returns true if the effect type on the sprite enemy is not null.
Overrides:
Returns:
Type
Boolean

isMoving() → {boolean}

Returns true if the sprite for the battler is moving.
Inherited From:
Returns:
Type
boolean

loadBitmap(name, hue)

Parameters:
Name Type Description
name String
hue Number

onMoveEnd()

Handler for when movement has ended.
Inherited From:

revertToNormal()

Revers the sprite enemy to a normal state.

setBattler(battler)

Sets the battler to an instance of game enemy.
Parameters:
Name Type Description
battler Game_Enemy Instance of game enemy.
Overrides:

setHome(x, y)

Sets the home position of the sprite battler to the given x and y coordinates.
Parameters:
Name Type Description
x Number
y Number
Inherited From:

setupAnimation()

Sets up animation on the sprite battler.
Inherited From:

setupDamagePopup()

Sets up damage popup on the sprite battler.
Inherited From:

setupEffect()

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:

startAppear()

Starts the appearinig effect on the sprite enemy.
Starts the blink effect on the sprite enemy.

startBossCollapse()

Starts the boss collapse effect of the sprite enemy.

startCollapse()

Starts the collapse effect of the sprite enemy.

startDisappear()

Starts the disappearing effect on the sprite enemy.

startEffect(effectType)

Parameters:
Name Type Description
effectType String

startInstantCollapse()

Starts the instant collapse effect of the sprite enemy.

startMove(x, y, duration)

Parameters:
Name Type Description
x Number
y Number
duration Number
Inherited From:

startWhiten()

Starts the whiten effect on the sprite enemy.

update()

Overrides:

updateAnimation()

Updates the sprite battler animation.
Inherited From:

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:

updateAppear()

Updates the appear effect on the sprite enemy.

updateBitmap()

Overrides:
Updates the blink effect on the sprite enemy.

updateBossCollapse()

Updates the boss collapse effect.

updateCollapse()

Updates the collapse effect.

updateDamagePopup()

Updates the damage pop up for the sprite battler.
Inherited From:

updateDisappear()

updateEffect()

updateFrame()

Overrides:

updateInstantCollapse()

Updates the instant collapse effect.

updateMain()

Updates the main loop of the sprite battler.
Inherited From:

updateMove()

Updates movement on the sprite battler.
Inherited From:

updatePosition()

Overrides:

updateSelectionEffect()

Inherited From:

updateStateSprite()

Updates the state sprite on the sprite enemy.

updateVisibility()

Inherited From:

updateWhiten()

Updates the whiten effect on the sprite enemy.