mirror of
https://github.com/wassname/phaser.git
synced 2026-08-12 12:20:38 +08:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
@@ -298,9 +298,10 @@ Phaser.Tween.prototype = {
|
||||
*/
|
||||
stop: function () {
|
||||
|
||||
this._manager.remove(this);
|
||||
this.isRunning = false;
|
||||
|
||||
this._manager.remove(this);
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user