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 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 -
Play the sounds according to frame and condition
Name Type Description frame
number The frame condition
AnimationEffectConditionKind The condition -
Draw the animation
Name Type Description picture
Picture2D The picture associated to the animation frame
number The frame battler
Battler The battler target