Hello, I’m making a game where objects spawn from top and keep falling until he character’s health is greater than 0
here is what I am doing:
timer.performWithDelay (math.random(400,800), spawnObject,0)
so basically the 0 states that it will loop for ever. How can I put in a condition their to check if health if >0 then counitnue to spawn or stop?