in my new game, there is a timer for getting to the end it you choose hard, very hard, or impossible. i can get the timer to set right and show and count down each time, but each time i test it, when it reaches 0, "u lose" doesnt pop up like it does when you run out of lives. i have tried lots of different combinations for the script. please, i need help, as this is the VERY LAST THING I NEED TO DO!
Offline
Most likely the timer is reaching a tiny number like 0.00001 (with the 1 hidden), or skipping 0. You can solve this by adding "if round(timer)=0" or "if timer < 1". Or something like that.
Offline
thank you very much for that
Offline
Kileymeister wrote:
Most likely the timer is reaching a tiny number like 0.00001 (with the 1 hidden), or skipping 0. You can solve this by adding "if round(timer)=0" or "if timer < 1". Or something like that.
i already did those, here is the broken script: when i receive timer time which makes the timer appear and start (the starting number is on more scripts) forever:change timer by -0.1 . wait 0.1 secs. under that an if: touching sprite 7 and level = 3, stop script (that one works i think) but under that is if timer = 0, show, then stop script right under show. the script doesnt go off immeadiatly at the start, but hwne the timer hits 0, 0.0, -0, or -0.0, none of those work. i just dont get it...
Offline
ok nevermind anymore i fixed it YAY! in a few seconds this game will be on scratch...
Offline