Skip to content

Commit fe80807

Browse files
committed
Updated docs to fix phaserjs#2823
1 parent 2928fd6 commit fe80807

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

v2-community/src/animation/Animation.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ Phaser.Animation.prototype = {
166166

167167
/**
168168
* Plays this animation.
169+
*
170+
* If you need to jump to a specific frame of this animation, then call `play` and immediately after it,
171+
* set the frame you require (i.e. `animation.play(); animation.frame = 4`).
169172
*
170173
* @method Phaser.Animation#play
171174
* @param {number} [frameRate=null] - The framerate to play the animation at. The speed is given in frames per second. If not provided the previously set frameRate of the Animation is used.

v2-community/src/animation/AnimationManager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ Phaser.AnimationManager.prototype = {
255255
*
256256
* If the requested animation is already playing this request will be ignored.
257257
* If you need to reset an already running animation do so directly on the Animation object itself.
258+
*
259+
* If you need to jump to a specific frame of this animation, then call `play` and immediately after it,
260+
* set the frame you require (i.e. `animation.play(); animation.frame = 4`).
258261
*
259262
* @method Phaser.AnimationManager#play
260263
* @param {string} name - The name of the animation to be played, e.g. "fire", "walk", "jump".

0 commit comments

Comments
 (0)