I want to end the shooting when my ammo global variable hits zero. I've tried to destroy the ammo when the variable is zero but it also destroys the current bullets on screen. What I want it to do is when the global variable is zero stop shooting and i want the bullets to continue on the screen. Any help?
Develop games in your browser. Powerful, performant & highly capable.
Well, just add a check for whatever is spawning the bullets, like If Ammo > 0 then Every 0.2 seconds spawn bullets.
if you are using turret behavour
if ammo = 0 then | turret turret:settings/ set enabled [disabled]