Hi, im trying to make a space shooter game and i have a problem when i clear the lvl. The problem is that when i clear all the enemies of the current lvl it pops a message for me to choose an upgrade but the program keeps generating enemies and when i choose the upgrade there are enemies when it wasnt suposed to.
calculateBulletCollision method diminishes the enemiesToClear variable, so when it is 0 stop changes to true and it shouldnt generate new enemies till i choose the upgrade.
I tried debuging but i cant see the error.