mirror of
https://github.com/wassname/phaser.git
synced 2026-09-11 12:31:29 +08:00
First commi using the new software
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
if (game.input.mousePointer.isDown)
|
||||
{
|
||||
// 400 is the speed it will move towards the mouse
|
||||
game.physics.moveTowardsMouse(sprite, 400);
|
||||
game.physics.moveToPointer(sprite, 400);
|
||||
|
||||
// if it's overlapping the mouse, don't move any more
|
||||
if (Phaser.Rectangle.contains(sprite.body, game.input.x, game.input.y))
|
||||
|
||||
Reference in New Issue
Block a user