Velocity is back on track :)

This commit is contained in:
alvinsight
2014-02-21 17:59:11 +00:00
parent fb5920feec
commit 7342ce603a
4 changed files with 11 additions and 8 deletions
+3 -1
View File
@@ -19,6 +19,8 @@ function create() {
// and assign it to a variable
var image = game.add.sprite(0, 0, 'einstein');
image.body.velocity.x=50;
image.physicsEnabled = true;
image.body.moveRight(150);
}