Calculates the duration, frame rate and msPerFrame values.
name | type | arguments | description |
---|---|---|---|
target | Phaser.Animations.Animation |
The target to set the values on. |
|
totalFrames | number |
The total number of frames in the animation. |
|
duration | number | <optional> |
The duration to calculate the frame rate from. Pass |
frameRate | number | <optional> |
The frame rate to calculate the duration from. |