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

#1 2008-04-08 23:36:41

keithbraafladt
Scratcher
Registered: 2007-03-14
Posts: 25

Volume control in the web player...

[blocks]Hi I tried the set sound volume block and posted it ...
http://scratch.mit.edu/projects/keithbraafladt/130754
but it doesn't seem to work in the web player...
Keith
<play sound[ [/blocks]

Offline

 

#2 2008-04-09 01:46:47

MasterOfMac
Scratcher
Registered: 2008-02-01
Posts: 62

Re: Volume control in the web player...

You used the "Loudness" block.
Instead, create a variable named "Volume" and make it viewable as a slider on the stage.
Next, put the following blocks into every sprite that plays music/sounds:

[blocks]
<when green flag clicked>
<forever>
set volume to <{ Volume }> %
[/blocks]

You will find the "Set volume to ___ %" in the Sounds category; the [blocks]<{ Volume }> [/blocks] block will be in the Variables category- after you create it.

Good luck!


*sarcasm*

Offline

 

Board footer