| 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 jsonObject 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 framenumber The frame conditionAnimationEffectConditionKind The condition -
Draw the animation
Name Type Description picturePicture2D The picture associated to the animation framenumber The frame battlerBattler The battler target