Well if you already have a health script then heres the script to stop the game:
<when green flag clicked><forever if><( Health <=>0 )><broadcast[ stop game
The you need to make a stage costume that says game over etc.
Script for stage: <when I receive[ stop game<switch to costume [ which ever costume says game over <stop all>
Hope this helps!
Last edited by 4lover (2011-09-23 13:57:28)
Offline
Babado wrote:
I need help with making it so that when a chracter gets 0 health, it stops the game.
I currently have
WHEN GREEN FLAG CLICKED
REPEAT UNTIL
HEALTH=0
STOP ALL
But it wont work D=
Think about what that does.
It means that until the health is equal to zero, it will stop everything.
You need to use the “wait until” block.
Offline
henley wrote:
Babado wrote:
I need help with making it so that when a chracter gets 0 health, it stops the game.
I currently have
WHEN GREEN FLAG CLICKED
REPEAT UNTIL
HEALTH=0
STOP ALL
But it wont work D=Think about what that does.
It means that until the health is equal to zero, it will stop everything.
You need to use the “wait until” block.
Yeah. Best way:
When Green Flag Clicked:
wait until <(health) = 0>.
stop all.
Offline
do <0 because the < is less than and anything less than 0.
Offline