0

I'm trying to make a clicker style bullet hell and I need the player's "mouse" to collide with other objects. I can do that, but the health goes into the negatives as soon as the player touches the enemy.

I've tried using a varaible to make the collision only happen once, but after that there is no way I can reset that variable. The next thing I tried was doing something with !this.sprite.body.touching.none, but that didn't work either.

winner_joiner
  • 12,173
  • 4
  • 36
  • 61
MyBoi
  • 1
  • 3
  • can you share more code? since in phaser ther are several ways to solve one problem, it is not clear what is not.working or what you have done. btw which phaser version are you using ? phaser CE or version 3.50+ or 3.60 or other? – winner_joiner Mar 27 '23 at 21:14

0 Answers0