Langerz82 Posted September 2, 2015 Share Posted September 2, 2015 Whats the function to get enemies to follow the player? We have:http://phaser.io/examples/v2/arcade-physics/move-towards-object But it follows the pointer only. Is there a function like:game.physics.arcade.moveToSprite? Example:balls.forEach(game.physics.arcade.moveToSprite, game.physics.arcade, player, 200); ?? Tilde 1 Link to comment Share on other sites More sharing options...
XekeDeath Posted September 2, 2015 Share Posted September 2, 2015 http://phaser.io/docs/2.4.3/Phaser.Physics.Arcade.html#moveToObject You were close... Object instead of Sprite... Tilde and VitaZheltyakov 2 Link to comment Share on other sites More sharing options...
Recommended Posts