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

#1 2009-01-04 13:00:08

chaos96
Scratcher
Registered: 2009-01-04
Posts: 2

Sprite linkinig

I want to do something where when one sprite is clicked, it sends a message to another sprite to show itself how do I do that?

Offline

 

#2 2009-01-04 13:06:27

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Re: Sprite linkinig

chaos96 wrote:

I want to do something where when one sprite is clicked, it sends a message to another sprite to show itself how do I do that?

You want to use the broadcast blocks:

This would be on the first sprite
<when[ sprite 1 ]clicked>
<broadcast[ show sprite 2 ]

This would be on the second sprite
<when I receive[ show sprite 2 ]
<show>


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

#3 2009-01-05 16:46:39

chaos96
Scratcher
Registered: 2009-01-04
Posts: 2

Re: Sprite linkinig

Thanks! That is much better than the blackboard method (lots of variables)
Once again, thanks!

Offline

 

Board footer