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

#1 2010-07-17 06:59:55

amr03
New Scratcher
Registered: 2010-07-17
Posts: 3

How do I get a sound running throughout the whole thing?

I cant figure out how to make a sound play throughout the whole script, it will let me do a drum, but not one of my recordings, please please help!!
Thanks  smile

Offline

 

#2 2010-07-17 07:04:07

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: How do I get a sound running throughout the whole thing?

Just use the "play sound" block  smile

I'm not entirely sure what your problem is, though - can you post a picture of your script? If you don't know how to do that, there's a great tutorial by coka here.

Offline

 

#3 2010-07-17 07:49:47

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

Re: How do I get a sound running throughout the whole thing?

Are you having trouble getting the recording into Scratch?  It might be because it has to be in a sound format that Scratch recognizes - wav or mp3.


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

Offline

 

#4 2010-07-17 10:44:47

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How do I get a sound running throughout the whole thing?

Try making the script broadcast a message, then have a separate script that plays the entire sound until done when it receives the broadcast.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#5 2010-07-17 13:22:47

amr03
New Scratcher
Registered: 2010-07-17
Posts: 3

Re: How do I get a sound running throughout the whole thing?

coolstuff wrote:

Just use the "play sound" block  smile

I'm not entirely sure what your problem is, though - can you post a picture of your script? If you don't know how to do that, there's a great tutorial by coka here.

Helloo, thank you for the help,but I cannot post pictures in my post because I'm a new scratcher! But all I want is the sound to play throughout the whole script, but at the moment, I dont know where to put it in the script, if i put it at the end it will only play when everythings finished and if I put it in the begining the script wont start until the sound has finished-I hope this has helped  smile

Offline

 

#6 2010-07-17 13:25:14

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: How do I get a sound running throughout the whole thing?

Harakou wrote:

Try making the script broadcast a message, then have a separate script that plays the entire sound until done when it receives the broadcast.

Just use this, then a different sprite can play it. Put the broadcast message at the beginning.


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#7 2010-07-17 13:33:28

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: How do I get a sound running throughout the whole thing?

Oh, I see. Try something like this:

When Green Flag Clicked
broadcast [play a sound!]
[insert script here]

When I recieve [play a sound!]
play sound [sound]

Of course, if it's triggered by the green flag being clicked, you can always just make two scripts and you won't have to use broadcasts at all - but this allows you to play sounds in the middle of a script  smile

That should do the trick. Good luck!

Offline

 

#8 2010-07-17 13:52:42

amr03
New Scratcher
Registered: 2010-07-17
Posts: 3

Re: How do I get a sound running throughout the whole thing?

Ahh thank you, all I had to do was create a new script as everything is triggered by the green flag!! Thanks to everyone for helping me  smile  Oh and the broadcast thing worked too!!  big_smile

Offline

 

#9 2010-07-17 13:55:29

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: How do I get a sound running throughout the whole thing?

No problem! Glad things are working out for you!

Since this topic seems to be solved, I'll close this for you. If you need it reopened, just report this topic and we'll reopen it for you. Thanks!

Offline

 

Board footer