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

#1 2011-04-28 14:06:31

DavidRobson
New Scratcher
Registered: 2011-04-28
Posts: 1

How do you change the costume of Sprite2 via Sprite1's scripts?

I have an automatic moving sprite and when it moves I want another sprite to change costume. Is that possible?

Offline

 

#2 2011-04-28 14:19:02

Earthboundjeff
Scratcher
Registered: 2010-09-28
Posts: 1000+

Re: How do you change the costume of Sprite2 via Sprite1's scripts?

Sprite 1
<when green flag clicked>
Yadda
<broadcast[ Change
Then at sprite 2,
<when I receive[ Change
<switch to costume[ The one you want

Hope that helps!


https://encrypted-tbn0.google.com/images?q=tbn:ANd9GcR1SONrHUmdKZXQNDgtN_vpycOOo-BDMfnlqHZRA1lMpYXhX7Jc

Offline

 

#3 2011-05-14 02:52:53

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: How do you change the costume of Sprite2 via Sprite1's scripts?

use the broadcast block


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

Board footer