mirror of
https://github.com/wassname/phaser.git
synced 2026-10-03 12:42:08 +08:00
Velocity is back on track :)
This commit is contained in:
1 parent
fb5920feec
commit
7342ce603a
4 files changed
+11
-8
No files matched your search
@@ -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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user