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
How can I stop the random times a sprite occurs after it's health gets to zero? On 'Start of layout' I set the random to 2, 4 sec. Sprite is destroyed, but random times doesn't stop and continues to repeat.
Develop games in your browser. Powerful, performant & highly capable.
Try to enter this condition: if health is not equal to 0 <=> set variable to random(2,4)
A suggest: if you intend to get ints (2,3,4) it's better to use "choose" rather than "random"
ex. choose (2, 3, 4)
Thanks for the suggestion. Didn't solve the issue but did show that the health counter is not counting down. Have global variable 'health' set to 5, and sprite instance variable 'health' set to 5, but doesn't respond to 'subtract 1 from health' on collisions with bullets. Looking for a solution to that now