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

#1 2012-07-17 19:56:50

jcorules
Scratcher
Registered: 2010-03-07
Posts: 8

Life Point Trouble

How do you make your script say that if your life points/ lives are set to 0 it's game over?

Last edited by jcorules (2012-07-17 20:01:04)

Offline

 

#2 2012-07-17 20:32:29

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Life Point Trouble

Try this:

when gf clicked
forever
if <not<(Lives) > (0)>>
stop all
end

Offline

 

#3 2012-07-18 07:15:11

jcorules
Scratcher
Registered: 2010-03-07
Posts: 8

Re: Life Point Trouble

thanks!

Offline

 

#4 2012-07-18 07:39:09

jcorules
Scratcher
Registered: 2010-03-07
Posts: 8

Re: Life Point Trouble

how do you get the circular (>) and (not) block? I could only find the diamond one and that didn't work.  sad

Last edited by jcorules (2012-07-18 07:39:33)

Offline

 

#5 2012-07-18 07:41:59

LightFlash
Scratcher
Registered: 2012-07-17
Posts: 75

Re: Life Point Trouble

amcerbu wrote:

Try this:

when gf clicked
forever
if <(Lives) < (1)>
stop all
end

How's this?

The "not" and "<" are under "Operators."

Offline

 

Board footer