how do i make my game stop after the health reaches zero? i have health as a variable and cannot figure out how to set it to stop and say game over or whatever...
thanks
fbboi999
Offline
Put this script somewhere:
[blocks]
<when green flag clicked>
<forever if> <( health <=> 0 )>
<broadcast[ gameover
<end>
[/blocks]
And then have a sprite receive "gameover" and make it do what you want when the game ends.
Paulmedwal
Last edited by paulmedwal (2007-08-23 22:32:37)
Offline
thanks!
Offline
Or you can put an "If health <1" and Broadcast immediately after the script that subtracts health.
Offline