Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Sound on/off
- 516Studios
- New to Scratch
5 posts
Sound on/off
i was wondering how do you make it so if you press certain keys it can toggle the sound on/off?
- sonicfan12p
- Scratcher
1000+ posts
Sound on/off
Use these blocks.
when [m v] key pressed //M, for mute. you can change it though
set volume to [0]%
wait until <key [m v] pressed?>
set volume to [100]%
Comeback time? Maybe?
- GadgetAndyMan
- Scratcher
100+ posts
Sound on/off
This would do what you are after
when [up arrow v] key pressed
set volume to (100)%
when [down arrow v] key pressed
set volume to (0)%
Latest project updated: X-Y Coordinates Challenge - 14 Jan 2014: Various improvements.
My Likes Studios [ Animation | Art | Education | Games | Simulation | Stories ]
Please take a look and follow any studios that interest you with the projects I am adding.
- Discussion Forums
- » Help with Scripts
- » Sound on/off