This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-10-10 13:00:11

ZerozoGames
New Scratcher
Registered: 2012-10-10
Posts: 4

Lives system?!

Okay, so I've got my lives system all ready EXCEPT for the part when my Sprite looses all their lives... So help with that?! Thanks  smile

Offline

 

#2 2012-10-10 13:27:59

MistralWing
Scratcher
Registered: 2012-02-17
Posts: 43

Re: Lives system?!

That's a bit vague, but I'm pretty sure this is what you mean.
How to end the game when you run out of lives:
Something along these lines:

when gf clicked
forever if < (lives) < [1] >
broadcast [gameover] and wait
end
end
Then the recipients of the message respond in some way, such as a gameover screen appearing.
Or,If you don't understand the message system yet and you want to stop everything immediately,this is the simpler way:
when gf clicked
forever if < (lives) < [1] >
stop all
end
end
Or you could combine the two  smile
when gf clicked
forever if < (lives) < [1] >
broadcast [gameover] and wait
stop all
end
end
This would stop the game immediately after the gameover functions had finished.

Hope this is helpful: ask if you're still not sure,and I'll be happy to assist  smile

Last edited by MistralWing (2012-10-10 13:30:02)

Offline

 

Board footer