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

#1 2012-03-02 06:30:45

PostalDude
New Scratcher
Registered: 2012-03-02
Posts: 2

Changing costumes of multiple sprites?

Is it possible to change the costumes of multiple sprites when two sprites touch, i.e if sprite 1 touches sprite 2, sprite 3, 4, 5, etc. switch to next costume?

Offline

 

#2 2012-03-02 08:21:06

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Changing costumes of multiple sprites?

Sure!

When gf clicked// in sprite 1
forever if <touching [sprite 2 v]?>
broadcast [change v]

When I receive [change v] // in sprite 3, 4, 5 etc.
switch to costume [whatever v] // or next costume

Last edited by Hardmath123 (2012-03-02 08:21:41)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3 2012-03-07 05:17:53

PostalDude
New Scratcher
Registered: 2012-03-02
Posts: 2

Re: Changing costumes of multiple sprites?

thanks, the help is appreciated.

Offline

 

#4 2012-03-07 16:11:52

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: Changing costumes of multiple sprites?

If you want less scripts, do this. First, make them broadcast when the two sprites touch. Add the sprites who are get costume changed to a list. Then do

when I receive <whatever>
Change (costume #) of (name of list)
I'm not sure if this is possible or not

Last edited by turkey3 (2012-03-07 19:40:11)

Offline

 

Board footer