mirror of
https://github.com/wassname/phaser.git
synced 2026-08-03 13:10:25 +08:00
Velocity is back on track :)
This commit is contained in:
@@ -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