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.
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)
Develop games in your browser. Powerful, performant & highly capable.
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