Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Help with changing background music volume
#7
You can decrease the volume of the track already playing too, there is no need to stop and re-start it. Besides that, if you use $game_system.<sound>_memorize or restore, it'll override whatever you've memorized via events.

Here's a sample of how you could do it...

Code:
bgm_flag = $game_system.playing_bgm.is_a?(RPG::AudioFile)
bgs_flag = $game_system.playing_bgs.is_a?(RPG::AudioFile)
$game_system.playing_bgm.volume = new_bgm_volume if bgm_flag
$game_system.playing_bgs.volume = new_bgs_volume if bgs_flag

@KasperKalamity: These volume systems are implemented for the player, not the developer. Let's say the player is listening to music (not the game's music), but they're having trouble playing it on mute with no sound effects. That player can go in the menu and turn off the BGM, leaving the sound effects on. Or maybe they really like your game's soundtrack but can't stand the little menu 'blip blips' and such, they can turn off the sounds and still enjoy the game's music.
[Image: Button-BOTB.png]
[Image: Save-Point.gif][Image: Button-You-Tube2.png][Image: Button-Sound-Cloud2.png][Image: Button-Audio-Mack2.png]
[Image: LS-Banner.gif]
NEW ALBUM OUT NOW!

Reply }


Messages In This Thread
RE: Help with changing background music volume - by Kain Nobel - 12-05-2012, 06:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Map as Background in menus jreagan406 2 4,383 03-01-2017, 10:39 PM
Last Post: jreagan406
   [Brainstorming] Pallete Changing. MechanicalPen 6 6,818 02-14-2014, 09:46 PM
Last Post: DerVVulfman
  Changing Window Styles in Game JackMonty 8 9,725 03-22-2013, 11:54 PM
Last Post: JackMonty
   [Atoa SBS] Changing the command window font MegaPowerNinja 3 7,638 04-12-2011, 10:23 PM
Last Post: Victor Sant
   changing stat effects for the defualt batle system? corpsegirl 13 15,596 10-25-2010, 08:15 PM
Last Post: corpsegirl
   Changing the walking animation shadow040 8 10,069 01-30-2010, 04:20 PM
Last Post: shadow040
   XAS Battle System, changing Leader pez 6 8,645 09-17-2009, 06:28 PM
Last Post: Legacy



Users browsing this thread: