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

#1 2013-01-21 22:31:47

giacomos
New Scratcher
Registered: 2013-01-19
Posts: 4

How can one sprite react to what another sprite does?

I am not exactly sure on how to do this.
For example, I want a sprite to dance whenever a certain action that is related to another sprite happens.
Or I want one sprite to disappear once something has happened in order to leave space to another sprite.

Can someone help me on how to do that?

Thanks a lot

Offline

 

#2 2013-01-21 22:40:13

TheAwesomeFaic
New Scratcher
Registered: 2013-01-15
Posts: 2

Re: How can one sprite react to what another sprite does?

sprite1 code:

when [sprite1] clicked
broadcast [dance v]
sprite2 code:
when i receive [dance v]
forever
next costume
wait [whatever] secs
end
hope it helped.

Offline

 

#3 2013-01-21 22:55:12

giacomos
New Scratcher
Registered: 2013-01-19
Posts: 4

Re: How can one sprite react to what another sprite does?

That helped a lot!
Thanks a lot!

Offline

 

Board footer