Basically I am making a top down shooter and have set it so that after 40 points the boss will spawn. The variable also need sto be 0 (0 meaning boss not on screen) so that 2 wont spawn at once. For some reason, when i come back form a game over screen or the title screen (basically any other layout) the boss will spawn, despite score reset to 0 and the variable also being 0. can someone help?
Please post your screenshot understand easier.
Maybe it got wrong at some conditions.
here is the code. when your souls are over 40 and OurtOnScreen (ourt is his name) is 0 then it should spawn. but it has been spawning after my game over or title layout.
nvm i fixed it yay
Develop games in your browser. Powerful, performant & highly capable.
Glad that you fixed it!
But be careful with these:
- When the boss HP <= 0 will make the action do to infinity.
- And you should destroy the boss after you created everything related.