i am trying to make a game which is like,
you have 5 lives and have to survive for 30 seconds but if you lose all 5 lives before 30 seconds, you lose
can you help me with it?
thank you
Offline
when gf clicked wait until <<(lives) < [1]> or <(timer) > [30]>> if <<not <(lives)=[0]>> and <(timer)=[30]>> broadcast [you win v] if <(lives) < [1]> broadcast [you lose v]Replace the = with >, but this breaks the system so I can't show it.
Last edited by scimonster (2012-03-09 07:26:59)
Offline
scimonster wrote:
when gf clicked wait until <<(lives) < [1]> or <(timer) > [30]>> if <<not <(lives)=[0]>> and <(timer)=[30]>> broadcast [you win v] if <(lives) < [1]> broadcast [you lose v]Replace the = with >, but this breaks the system so I can't show it.
Add a "reset timer" block to the beginning if you don't have that in another script.
Offline
To be honest, I wouldn't. I would use a variable for the timer. The timer is very unreliable and you can't manually change it.
Offline