Change "master volume" via Script Call

Status
Not open for further replies.

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
232
Reaction score
20
First Language
Spanish
Primarily Uses
RMMV
I'm working on my own menu system. Would it be possible to change the game's volume via script call?
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
972
Reaction score
566
First Language
Poland
Primarily Uses
RMMV
@KotoYama
Code:
AudioManager.bgmVolume = x
AudioManager.bgsVolume = x
AudioManager.meVolume = x
AudioManager.seVolume = x

x - your value in number
these methods controls volume different sounds, to control strictly master volume use
Code:
AudioManager.masterVolume = r
where r - is real number ranged from 0 to 1
(e.g : 0.1, 0.2, 0.23, etc)
 
Last edited:

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
232
Reaction score
20
First Language
Spanish
Primarily Uses
RMMV
It works great!
Thanks!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,192
Reaction score
14,233
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Observation Log 1 on the planet of "RPGMAKERWEB": Local RMXP community seems to have very few survivors. Their script tech-level is in the early Stone Age(about the same as 66RPG in 2007).
Some cats/wolves/squirrels are spotted, they are likely friendly. :3
Keep working on establishing more meaningful contacts.
May try to use the "I Come in Peace" protocol if encounter any hostiles.
Using hiddenone's QTE tutorial I've been able to setup a simple fishing system. Instead of just the pointer moving, the goal moves as well. Holding the action button scrolls the pointer and pressing the down arrow key hooks the fish. The speed of both is variable as well as the number of successful hooks needed for a catch.
When someone helps you solve a problem, it's good to report the thread so it can be closed, but it's also nice to go back and post in the thread to let them know their suggestion actually worked. And, you know, to say thanks for helping.

Forum statistics

Threads
108,925
Messages
1,040,631
Members
141,375
Latest member
semih4472
Top