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

#1 2010-03-26 12:27:37

schwarzkasi
Scratcher
Registered: 2010-01-21
Posts: 1

music in scratch

I have a mp3 file that i want to play until i tell it to stop.
it is only 38 seconds long and i need to to play the length of my game, or until it recieves a broadcasted message.

any suggestions>

Offline

 

#2 2010-03-26 15:33:43

climber59
Scratcher
Registered: 2009-12-15
Posts: 100+

Re: music in scratch

Use the stop all sounds block <stop all sounds>


Check out my projects if you have a chance.

Offline

 

#3 2010-03-26 19:22:19

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: music in scratch

Something like this should work, if you use the stop all block when the game ends:

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


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

Board footer