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

#1 2011-01-15 13:37:45

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Music Playing

I want to make a sound play forever, but I always hear a stop occasionally! Can someone tell me how to fix it?

My Script:

[blocks]<when green flag clicked>
<forever>
<play sound[ whatever ]and waits>
<end>


HEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELP!

Last edited by Robot_Maniac (2011-01-15 14:06:21)


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#2 2011-01-15 15:37:47

martianshark
Scratcher
Registered: 2008-03-24
Posts: 1000+

Re: Music Playing

I don't know. That script should work. Is there something in your project that has the block "stop all sounds" ? If there is, that would explain it. Every time the stop all sounds block is activated, it makes the script you posted start over.


http://img.geocaching.com/stats/img.aspx?txt=martianshark&amp;uid=e6cdc2c8-2476-4abd-9994-27f857396579&amp;bg=1

Offline

 

#3 2011-01-15 16:56:08

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Re: Music Playing

yeah, it doesn't work. (This piece of information might help...) I'm using the sounds DrumMachine, Hip-Hop, Techno, Techno 2, and Jungle.


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#4 2011-01-15 17:06:24

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Music Playing

Your script is fine, but Scratch takes a while to repeat. Instead of using the "and wait" block just use a regular "play sound" block. Then, see how long the song is and add a "wait () secs" block for the little bit less than the length of the song. You'll have to experiment to get it exactly right.


http://i48.tinypic.com/2z5pqad.png

Offline

 

#5 2011-01-15 17:47:24

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Re: Music Playing

wow! Thanks!


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#6 2011-01-15 18:40:18

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: Music Playing

Scratch takes a while to start playing a sound, but there shouldn't be any delay online.


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

Board footer