Global Volume ScriptIntroduction:
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...
$game_system.music_volume = HALF_MUSIC_VOLUME
$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...
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 Here
The script itself is stored in the demo, so simply copy and paste it from there into your game just above the Main script.