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

#1 2012-08-20 12:42:53

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

How do I....

make a "mute" button?  I have

when gf clicked
forever
if <(sound?) = [false]>
play sound [sound v] until done
else
stop all pinks [which means sounds]

Last edited by Firedrake969 (2012-08-20 12:43:10)


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#2 2012-08-20 13:12:17

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: How do I....

Use this.

when gf clicked
set [play v] to [1]
forever
 if <(play) = [1]>
  play sound [sound v] until done
 end
end
And use this to mute:
set [play v] to [0]
stop all sounds
And to unmute:
set [play v] to [1]


http://i50.tinypic.com/312u714.jpg

Offline

 

#3 2012-08-20 14:33:09

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

Re: How do I....

set volume to (0)%
Simple as that


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

Offline

 

#4 2012-08-20 14:35:53

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: How do I....

technoguyx wrote:

set volume to (0)%
Simple as that

I needed it paused, not muted, but I'm closing topic.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#5 2012-08-20 14:46:34

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: How do I....

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer