I am working on a small pixel style game where you play as a young witch who shoots at an enemy when the enemy is hit they turn into a gem which the player collects.
When all enemies have been turned into gems and gems collected an exit will appear to advance to the next level.
The problem is when the gem is collected another enemy is generated at the top of the game which I don’t want to happen.