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

#1 2010-11-23 02:19:18

danceswithwolves
New Scratcher
Registered: 2010-11-22
Posts: 3

changing costumes for different backgrounds (stage)

I have a song that I have backgrounds changing during the song.  I would like to have the sprite change Costumes, as the stage changes but I can't seem to figure out how to do that...would someone be able to give me some help?  thanks

Offline

 

#2 2010-11-23 05:41:49

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: changing costumes for different backgrounds (stage)

In the Stage script area, when the background changes, have it sent out a Broadcast message (make up a message name like "Change Costume") like this:
[blocks]
<broadcast[ Change Costume
[/blocks]
Then, in the sprite scripting area, put these blocks:
[blocks]
<when I receive[ Change Costume
<next costume>
[/blocks]
Or, you could have separate messages for each different costume.   

Broadcast messages are really powerful so it's well worth your time to learn how to use them.   I've got a gallery of demos and tutorials on Broadcast that you might find useful.  Good luck!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer