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

#1 2010-02-17 20:16:59

dmeyrgrad
Scratcher
Registered: 2010-02-16
Posts: 1

Switching Sprites

I have two sprites on my stage. I want to be able to scroll through different costumes on my second sprite while the first one "speaks" can someone explain to me how to do this?

Offline

 

#2 2010-02-17 21:18:57

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Switching Sprites

Use the [next costume] block to cycle through costumes. To make the sprite switch costumes as another one speaks you can use a bunch of broadcasts like this:

Code:

// On the speaking sprite

when flag clicked:

say ("Hello") for (2) secs
broadcast(switch)
say ("Blah blah blah") for (11) secs
broadcast(switch)

--------------------------------------------------------

// On the costume-switching sprite

When I receive (switch):
next costume

Or you could just time the costume switching using "wait ( ) secs" blocks.

Let me know if this helps.

Last edited by fullmoon (2010-02-17 21:19:32)


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

Board footer