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

#1 2012-07-24 18:50:58

medog
Scratcher
Registered: 2012-07-20
Posts: 90

How to stop a sound

I'm creating a music game. I was making great progress until- i realized I couldn't change music! All I could find was this:
[scratchblocks]
stop all sounds
[/scratchblocks
What I mean is I couldn't stop 1 sound, and then go to another one!
If this problem was fixed, my game won't be finished.
Please tell me how to fix this, or if it's even possible!

Offline

 

#2 2012-07-24 18:55:18

medog
Scratcher
Registered: 2012-07-20
Posts: 90

Re: How to stop a sound

I'm creating a music game. I was making great progress until- i realized I couldn't change music! All I could find was this:

stop all sounds
What I mean is I couldn't stop 1 sound, and then go to another one!
If this problem was fixed, my game won't be finished.
Please tell me how to fix this, or if it's even possible!

Offline

 

#3 2012-07-24 18:56:41

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: How to stop a sound

Well.. It's not possible...
But, it may be in 2.0...


Get ready for domination of:  tongue

Offline

 

#4 2012-07-24 18:58:04

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: How to stop a sound

it's possible.


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#5 2012-07-24 19:00:43

medog
Scratcher
Registered: 2012-07-20
Posts: 90

Re: How to stop a sound

how is it possible? What script do I write?

Offline

 

#6 2012-07-24 19:04:00

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: How to stop a sound

Um...
Well...
I think you...
Make a sound, put it in a sprite, put another sound (non-silence) in the background, and then you stop all sounds of one sprite.


Get ready for domination of:  tongue

Offline

 

#7 2012-07-24 19:05:05

medog
Scratcher
Registered: 2012-07-20
Posts: 90

Re: How to stop a sound

No, what I mean is, is it possible to change background music?

Offline

 

#8 2012-07-24 19:07:50

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: How to stop a sound

In the middle of a music thing?

No, you'd have to do the process above...  smile   hmm


Get ready for domination of:  tongue

Offline

 

#9 2012-07-24 19:16:54

medog
Scratcher
Registered: 2012-07-20
Posts: 90

Re: How to stop a sound

Nope. Doesn't work  sad

Offline

 

#10 2012-07-25 03:50:53

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: How to stop a sound

Try this.

when gf clicked
set [snd v] to [1]
forever
 play sound (snd) until done
end

when key [space v] pressed
change [snd v] by (1)
if <(snd) > (3)> // Set that 3 to your amount of sounds.
 set [snd v] to [1]
end
stop all sounds


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&amp;display=small

Offline

 

Board footer