Created
March 7, 2014 15:49
-
-
Save ada-lovecraft/9413989 to your computer and use it in GitHub Desktop.
Basic Sprite Tween for Phaser 1.1.6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var targetX = sprite.x + 50; | |
game.add.tween(sprite).to({x: targetX}, 250, Phaser.Easing.Linear.None).start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment