photonstorm/phaser — pull request #128 by mikehamil10 (2013-10-25 20:57:27+00:00)
Title: Dev

*Not sure why there are multiple files in this pull request, the only one I personally changed is /src/tween/TweenManager.js...*

Anywho, for a game I'm working on, I needed to be able to check any time to see if a Sprite is currently being tweened so I could take action accordingly; so I added a function called isTweening() to TweenManager that does just that.

It seems to work quite well, and I thought it might be useful to others. Here's a usage example:
```javascript
function create() {
var mySprite = game.add.sprite(0, 0, "blah");
}

function update() {
// do some stuff that may include adding tweens...

if (game.tweens.isTweening(mySprite) {
console.log("I'm currently animating!");
}
}
```