yarik2803

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi! I've been working with Phaser for a few days and I faced an issue which I can't solve. I'm making a simple game which has two heroes/enemies(sprites) who can shoot bullets. For that case I decided to make a group of bullets. But the collision between the group and one of the heroes doesn't work. I tried this: // hero2 - the sprite, bullets - the bullet group this.game.physics.arcade.collide(hero2, bullets, this.collision, null, this); // Here is the function collision function collision(hero2, bullets){ hero2.kill(); } I've been searching how to solve that problem for quite a long time but I couldn't find any examples of collision between a bullet group and a sprite. I would be very grateful if somebody could help me :)