Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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,387 03-01-2017, 10:39 PM
Last Post: jreagan406
   [Brainstorming] Pallete Changing. MechanicalPen 6 6,831 02-14-2014, 09:46 PM
Last Post: DerVVulfman
  Changing Window Styles in Game JackMonty 8 9,746 03-22-2013, 11:54 PM
Last Post: JackMonty
   [Atoa SBS] Changing the command window font MegaPowerNinja 3 7,642 04-12-2011, 10:23 PM
Last Post: Victor Sant
   changing stat effects for the defualt batle system? corpsegirl 13 15,625 10-25-2010, 08:15 PM
Last Post: corpsegirl
   Changing the walking animation shadow040 8 10,078 01-30-2010, 04:20 PM
Last Post: shadow040
   XAS Battle System, changing Leader pez 6 8,665 09-17-2009, 06:28 PM
Last Post: Legacy



Users browsing this thread: