Help with Issue of Spawning Item After Collision

I am working on a game where you collect coins while avoiding projectiles. But the issue is, things will continue to spawn randomly around the map as long as I don’t overlap with it. The moment I overlap with it, it stops the Spawning.

The goal is to collect a coin and destroy it which makes your points go up by one, and then for another coin to spawn somewhere else on screen for you to collect. This is meant to repeat until they hit 50 points,

@Keggruel do you mind sharing your game? (I might be able to help)

I am working with a student to try to fix it, so if you do figure out where I went wrong please let me know so I can learn! Thank you lol

(you can change the sise of your screen by going in JavaScript chandging these numbers)

@Keggruel your problem was that you were destroying the coin I changed it and made it leave the map and go back in the map (I also made your map smaller so the coin won’t go outside the screen(I also had to changed the screen size)) I also added 2 extentions That personally I find very useful

I really like your game btw good luck! :grin: