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

#1 2012-06-26 14:15:31

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

Need more help with variables!

Now I have the health done, but cannot got the sprite to be hidden when it's health is lower than zero. Please Help!

Offline

 

#2 2012-06-26 14:28:08

Corwen
New Scratcher
Registered: 2012-06-23
Posts: 28

Re: Need more help with variables!

okay, so do something like this:

when gf clicked
forever
  if <health> = 0
    hide
  end
end

Offline

 

#3 2012-06-26 14:31:27

Corwen
New Scratcher
Registered: 2012-06-23
Posts: 28

Re: Need more help with variables!

sorry about the incorrect scratch blocks, i am not that great at using the block pluginm but you should be able to work out

Offline

 

#4 2012-06-26 14:32:26

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

Re: Need more help with variables!

How?
I can't find those.

Offline

 

#5 2012-06-26 15:04:51

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Need more help with variables!

Here are 2 ways to do it:

http://img690.imageshack.us/img690/283/healthh.gif


Hai.

Offline

 

#6 2012-06-26 15:05:23

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Need more help with variables!

when gf is clicked
forever if <[health]=(0)> // [health] is in variables, <()=()> is in operators.
hide // Hide is in looks.
end

Offline

 

#7 2012-06-26 15:32:26

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

Re: Need more help with variables!

Thanks!

Offline

 

#8 2012-06-26 15:47:47

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Need more help with variables!

You're welcome.  smile

Have fun and scratch on!


Hai.

Offline

 

Board footer