Class: SystemAnimation

SystemAnimation

An animation of a skill / item / weapon or for display animation command

new SystemAnimation (json)

Name Type Description
json Object optional Json object describing the animation
Properties:
Name Type Description
pictureID number The animation picture ID
positionKind AnimationPositionKind The animation position kind
frames Array.<SystemAnimationFrame> The system animation frames by ID
rows number The number of rows in the animation texture
cols number The number of columns in the animation texture

Methods

read (json)

Read the JSON associated to the animation
Name Type Description
json Object Json object describing the animation

createPicture ()Picture2D

Create an animation picture copy
Returns:
Type Description
Picture2D

playSounds (frame, condition)

Play the sounds according to frame and condition
Name Type Description
frame number The frame
condition AnimationEffectConditionKind The condition

draw (picture, frame, battler)

Draw the animation
Name Type Description
picture Picture2D The picture associated to the animation
frame number The frame
battler Battler The battler target