Search the Community
Showing results for tags 'movetoobject'.
-
I am making a top down zombie shooter and I am using the moveToObject function for the zombies to follow the player but as you can see, as soon as the player walks behind a wall the zombies get stuck. Is there an easy way to fix this issue?
- 1 reply
-
- pathfinding
- movetoobject
-
(and 1 more)
Tagged with:
-
Hi i've got a problem, with this code only one enemy moves to the ship and the others don't move.i tried a lot of times but i don't solve the problem. Can you help me? //create functionenemy = game.add.group();enemy.enableBody = true;enemy.physicsBodyType = Phaser.Physics.ARCADE;for (var i = 0; i < 16; i++) this.enemies = enemy.create(game.world.randomX, game.world.randomY, 'nemici');//update function game.physics.arcade.moveToObject(this.enemies, {x: this.nave.x, y:this.nave.y},vel_nem, this);
- 1 reply
-
- phaser
- moveToObject
-
(and 1 more)
Tagged with: