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

#1 2012-06-19 13:54:35

calipo12345
New Scratcher
Registered: 2012-06-19
Posts: 2

How do you make a sprite hide when another sprite does something

Please answer! I need help!!!

Offline

 

#2 2012-06-19 14:13:44

videogame9
Scratcher
Registered: 2008-05-12
Posts: 1000+

Re: How do you make a sprite hide when another sprite does something

use the "hide" block


http://img641.imageshack.us/img641/4118/newvg9logo.png
QUOTE OF THE RIGHT NOW: why are we arguing about dead babies? -videogame9

Offline

 

#3 2012-06-19 14:17:24

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: How do you make a sprite hide when another sprite does something

For that, you will need to use broadcasts. Broadcasts are messages that a sprite can send out to all other sprites. I made this project a while back to illustrate one use of broadcasts. Take a look at it and see if it helps.

Last edited by scmb1 (2012-06-20 18:37:47)


http://i48.tinypic.com/2z5pqad.png

Offline

 

#4 2012-06-19 14:49:35

calipo12345
New Scratcher
Registered: 2012-06-19
Posts: 2

Re: How do you make a sprite hide when another sprite does something

Thanks Sssssssooooooooooo Much!!!!!

Offline

 

#5 2012-06-19 17:35:09

monatex
Scratcher
Registered: 2012-04-01
Posts: 19

Re: How do you make a sprite hide when another sprite does something

You put a "Show" block where it's supposed to show, and a "Hide" block where it's supposed to hide.


Please help me w/ project ideas!!  yikes

Offline

 

#6 2012-06-19 18:41:56

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: How do you make a sprite hide when another sprite does something

when gf clicked
forever
do stuff
if touching [what you want v]
broadcast (x)
end
end
  --------------------------
when I recieve (x)
hide

Last edited by Firedrake969 (2012-06-19 18:42:18)


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#7 2012-06-20 05:09:13

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: How do you make a sprite hide when another sprite does something

Firedrake969 wrote:

when gf clicked
forever
if <touching [what you want v]?>
broadcast [broadcast v] and wait
end
when I receive [broadcast v]
hide
stop script

Fixed


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#8 2012-06-20 08:13:38

skippito
Scratcher
Registered: 2012-03-17
Posts: 100+

Re: How do you make a sprite hide when another sprite does something

when gf clicked
forever
wait until <something>
hide
end

Last edited by skippito (2012-06-20 08:14:06)

Offline

 

#9 2012-06-20 18:38:32

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: How do you make a sprite hide when another sprite does something

calipo12345 wrote:

Thanks Sssssssooooooooooo Much!!!!!

No problem.  smile  Did you get it to work?


http://i48.tinypic.com/2z5pqad.png

Offline

 

#10 2012-06-21 14:28:59

lizzyhippo
Scratcher
Registered: 2012-04-10
Posts: 89

Re: How do you make a sprite hide when another sprite does something

Try this.  Look at the sprite that does the thing that is supposed to make the other sprite hide.  At the end put a broadcast X (for X you just put in a name)  Then for the other sprite.  Put an when I receive block and then a hide block.  Hope this helps!!!


http://i50.tinypic.com/ofvtpy.png

Offline

 

Board footer