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

#1 2012-11-21 14:10:07

sandtf76
New Scratcher
Registered: 2012-11-21
Posts: 2

Music Continues

I would like to know, why the music do not play when i put the command "play sound" between the controls as "repeat and forever".

Offline

 

#2 2012-11-21 15:37:02

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Music Continues

sandtf76 wrote:

I would like to know, why the music do not play when i put the command "play sound" between the controls as "repeat and forever".

"play sound" just plays the sound over and over again. It does not wait for the one it has just started playing to finish. Try using "play sound _______ until done". That will get rid of the problem.

Offline

 

#3 2012-11-23 10:19:34

sandtf76
New Scratcher
Registered: 2012-11-21
Posts: 2

Re: Music Continues

Hi JH1010,

thanks for your answer. I have used "play sound" and "play sound until done", but, with commands only, it does not work. When the song finish, it does not to begin again. Why?

I've had to writte:  one in the thread begins with "when flag clicked", broadcast a start message, begin a new thread "when I receive start", insert the repeat loop, insert "wait___seconds"(the seconds that song plays", and, finally, insert "play sound" again.
Now, when song finishes, it begins again.

Offline

 

#4 2012-11-23 10:33:10

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Music Continues

forever
play sound [something v] until done
should work. If there is a few seconds silence at the end of the sound, it will wait for those to finish too.

Also, shouldn't this be in Help With Scripts?


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5 2012-11-23 11:13:10

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Music Continues

I think it should be in HwS, but it's resolved anyway  smile


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

Board footer