Help with changing background music volume
#3
I've created a menu screen which has a volume slider to increase and decrease the background music volume here is the script:



Code:
#--------------------------------------------------------------------------
  def update_se_regulation
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @se_regulation = false
      @command_window.active = true
      return
    end
    if Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      @se_regulation = false
      @command_window.active = true
      return
    end
    if Input.repeat?(Input::RIGHT) and $game_system.se_volume < 100
      $game_system.se_play($data_system.cursor_se)
      $game_system.se_volume += 1
      @option_window.refresh
    end
    if Input.repeat?(Input::LEFT) and $game_system.se_volume > 0
      $game_system.se_play($data_system.cursor_se)
      $game_system.se_volume -= 1
      @option_window.refresh
    end
  end
  #--------------------------------------------------------------------------

The menu is supposed to allow the user to decrease or increase the background music - the problem is it only takes affect when the background music stops and starts again - not if it is currently playing, which is why I need to try and incorporate a stop and start value into this.
Reply }


Messages In This Thread
RE: [XP Script] Help with changing background music volume - by JackMonty - 11-30-2012, 10:50 PM

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



Users browsing this thread: 1 Guest(s)