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,150
Reaction score
14,206
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 Profile Posts

Ami
--- Stolen Item ---

M.Figher: I want to sell this Stone
Fence: Then...i can buy you 1500G
M.Figher: It's Deal!
(3 Days Later)
F.Fighter: M.Figher,Do you know about Stone that Mayor keep it in his Office? It's missing
M.Figher: Ahh,is that so... (Actually,i Stole it and Sell it to the Fence a few Days ago)
I've spent some cash on foley and other sound effects. I wonder sometimes if I made a poor choice, but I remember that I really want to improve the sound of my games. n...n; My frugalness haunts me sometimes.
elex 50s face.png

Experimenting with an old 50's style face set. I have done about a dozen variations of face sets for my characters, but am never happy with the results for very long. Different attempts. Second one is the same character as the first image. The third is Ivan, another character entirely.

Forum statistics

Threads
108,843
Messages
1,039,990
Members
141,308
Latest member
Zuyuliena
Top