New: You'll now find a complete Basic project Template in the resources/Project Templates folder. Will add more complex ones soon.

This commit is contained in:
photonstorm
2013-10-28 23:29:34 +00:00
parent 2b40d2f507
commit 7ceb11ae49
9 changed files with 231 additions and 1 deletions
+4
View File
@@ -151,6 +151,7 @@ Phaser.Animation.prototype = {
this.isPlaying = true;
this.isFinished = false;
this.paused = false;
this._timeLastFrame = this.game.time.now;
this._timeNextFrame = this.game.time.now + this.delay;
@@ -179,6 +180,7 @@ Phaser.Animation.prototype = {
this.isPlaying = true;
this.isFinished = false;
this.paused = false;
this._timeLastFrame = this.game.time.now;
this._timeNextFrame = this.game.time.now + this.delay;
@@ -202,6 +204,7 @@ Phaser.Animation.prototype = {
this.isPlaying = false;
this.isFinished = true;
this.paused = false;
if (resetFrame)
{
@@ -304,6 +307,7 @@ Phaser.Animation.prototype = {
this.isPlaying = false;
this.isFinished = true;
this.paused = false;
if (this._parent.events)
{
+2
View File
@@ -192,12 +192,14 @@ Phaser.AnimationManager.prototype = {
{
if (this.currentAnim.isPlaying == false)
{
this.currentAnim.paused = false;
return this.currentAnim.play(frameRate, loop, killOnComplete);
}
}
else
{
this.currentAnim = this._anims[name];
this.currentAnim.paused = false;
return this.currentAnim.play(frameRate, loop, killOnComplete);
}
}
+2 -1
View File
@@ -298,9 +298,10 @@ Phaser.Tween.prototype = {
*/
stop: function () {
this._manager.remove(this);
this.isRunning = false;
this._manager.remove(this);
return this;
},