Tweens

Tweens are an easy way to make any movement in your game feel more lifelike.

Adding a tween
To add a tween, we simply call the game.add.tween method.

It takes the object as its argument, in this case it's '''logo. '''It will set logo.y to 100, from whatever value it currently is, over a period of 5 seconds (5000 milliseconds), using the Elastic easing function. You can see all of the arguments the to function takes here.

A cool reference for what easing functions look like: http://easings.net/

Here is a list of the easings supported by Phaser:

http://phaser.io/docs/2.4.2/Phaser.Easing.html

Examples
Check out this cool example using a tween to scale up and down a sprite:

http://phaser.io/examples/v2/groups/group-transform-tween