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

#1 2012-06-26 10:36:40

MoeJoe
Scratcher
Registered: 2009-05-19
Posts: 11

Need help with Variables!

I cannot figure out how, so when the variable (Health) of a sprite reaches zero, it disappears. Thanks!

Offline

 

#2 2012-06-26 10:41:30

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Need help with Variables!

when gf clicked
show
wait until <(health) = [0]>
hide


Why

Offline

 

#3 2012-06-26 10:41:45

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: Need help with Variables!

Here:

when gf clicked
show variable [health v]
forever
if <(health) = (0)>
hide variable [health v]
end
end
Hope this helps!

EDIT: Oh, oops, I misread... I realized when I saw RedRocker227's post...  tongue

Last edited by powerpoint56 (2012-06-26 10:43:09)


http://i48.tinypic.com/2072ctw.gif

Offline

 

#4 2012-06-26 10:42:28

MoeJoe
Scratcher
Registered: 2009-05-19
Posts: 11

Re: Need help with Variables!

Ok, Thanks a lot for your help

Offline

 

Board footer