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.