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

#1 2011-09-23 18:48:35

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Problem with music

If you make a script where you press a button then music starts playing, if you add a stop all in the script and press the button the song plays when the green flag is not on.
<when green flag clicked>

<if><mouse down?>
<play sound[ Song ]and waits>
<stop all>


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#2 2011-09-23 21:09:51

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

Re: Problem with music

I think you're saying that the sound keeps playing? Since a script only needs to be active to start a sound playing, it will do that. You need to make sure to add a 'stop all sounds' block before the 'stop script' block to stop playback of the music.


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

Offline

 

#3 2011-09-24 11:03:55

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: Problem with music

Thanks!


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

Board footer