Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Global Volume Script, v1.0
Pink
post Jun 4 2008, 03:21 PM
Post #1


Level 2
Group Icon

Group: Member
Posts: 27
Type: Event Designer
RM Skill: Skilled




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 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.


__________________________
Check out my RPG Maker XP project, Moonlite Shadows, at its homepage!
Go to the top of the page
 
+Quote Post
   
skaterdoggy
post Aug 6 2008, 10:52 AM
Post #2


Level 2
Group Icon

Group: Member
Posts: 20
Type: Event Designer
RM Skill: Skilled




nice idea
i want this script...but download don't work...
can you re-upload download?


__________________________
<a href="http://www.pricemyname.net/"><img src="http://www.pricemyname.net/wendigous.jpg" /></a>

[Show/Hide] My Projects
Ages Of Xordia



Go to the top of the page
 
+Quote Post
   
lamiae
post Aug 6 2008, 09:37 PM
Post #3


Level 1
Group Icon

Group: Member
Posts: 7
Type: None
RM Skill: Beginner




cool script the download is working...

Click here to feed me!
Get your own at Pokeplushies!
Go to the top of the page
 
+Quote Post
   
Pink
post Aug 11 2008, 08:10 AM
Post #4


Level 2
Group Icon

Group: Member
Posts: 27
Type: Event Designer
RM Skill: Skilled




The download's still functioning correctly. Perhaps sis's server had a small blip when you were trying to access it.

Hope you find a good use for my little script, though.


__________________________
Check out my RPG Maker XP project, Moonlite Shadows, at its homepage!
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 02:39 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker