Group.callAll now supports nested functions and a context, making it really powerful!

This commit is contained in:
photonstorm
2013-11-01 17:29:57 +00:00
parent 19ac33f970
commit 685054eac5
6 changed files with 174 additions and 24 deletions
+15
View File
@@ -158,6 +158,21 @@ Phaser.TweenManager.prototype = {
},
/**
* Checks to see if a particular Sprite is currently being tweened.
*
* @method Phaser.TweenManager#isTweening
* @param {object} object - The object to check for tweens against.
* @returns {boolean} Returns true if the object is currently being tweened, false if not.
*/
isTweening: function(object) {
return this._tweens.some(function(tween) {
return tween._object === object;
});
},
/**
* Pauses all currently running tweens.
*