Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
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]