Change "master volume" via Script Call

Status
Not open for further replies.

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
231
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
231
Reaction score
20
First Language
Spanish
Primarily Uses
RMMV
It works great!
Thanks!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,149
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

The light has gone out of my life.

About time they finally press the kill switch button for older makers.
Sorry everyone, I am here sporadically. After 6 years of delays after delays in my life, I try to do all mat once and that means that I spread thin everywhere because it just is impossible to crunch 6 years in one or even two, but I try! I wish many of that I would already given you and put behind but... well...
I'm looking for an experienced gamer who has played a few games created with RPG Maker, who knows what an alpha build is, who may remember the old days when cliché was the favorite word on Creation Asylum, who, if a reviewer, would ask for my permission before making a review to post on YouTube, or whatever, since I will be messaging you a 10 minute, or so, DEMO based on an alpha build of Effervesce Fallacy™.
No matter how many times I listen to him, I know this is Joker speaking, but my brain can only hear Dagda.

Forum statistics

Threads
108,821
Messages
1,039,814
Members
141,279
Latest member
SawYuuki
Top