Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
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]