Global Volume Script
v1.0
Introduction:This is a small script I made that is used to adjust the global volume of music and sound at any time in your game. This is great for those who like to give the player the option to listen to their own music while playing your game.
Using it is easy, simply have a line of script either within your own script or in an Event like this...
Music Volume:
CODE
$game_system.music_volume = HALF_MUSIC_VOLUME
$game_map.autoplay
Sound Volume:
CODE
$game_system.sound_volume = NO_SOUND
These examples use a couple of the built-in constants, but any number between 0 to 100 is valid for use.
Please note, however, that 0 is Max Volume, while 100 is Mute.
Valid constants that you can use are...
MAX_MUSIC_VOLUME
HALF_MUSIC_VOLUME
NO_MUSIC
MAX_SOUND_VOLUME
HALF_SOUND_VOLUME
NO_SOUND
Hopefully this script will be useful, I personally use it in an Options menu, but feel free to find whatever use you can think of for it.
Demo:Download Demo HereThe script itself is stored in the demo, so simply copy and paste it from there into your game just above the Main script.