Adding more examples in.

This commit is contained in:
Richard Davey
2013-09-15 20:45:00 +01:00
parent f069107e55
commit 8c9a7c8bc7
9 changed files with 293 additions and 81 deletions
+8 -1
View File
@@ -91,11 +91,18 @@ Phaser.Animation.prototype = {
/**
* Stop playing animation and set it finished.
*/
stop: function () {
stop: function (resetFrame) {
if (typeof resetFrame == 'undefined') { resetFrame = false; }
this.isPlaying = false;
this.isFinished = true;
if (resetFrame)
{
this.currentFrame = this._frameData.getFrame(this._frames[0]);
}
},
/**