Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Save/Load Scene BGMs

Umm.. I was wondering if it was possible to get a different music in the saving and loading screens.... Thanks to anybody that helps. ;)


:edit: Oh no, I just realised this is in the wrong forum section. Could this please be moved?
 
Okay, in Scene_Load find these lines:
Code:
  def initialize
    # Remake temporary object
    $game_temp = Game_Temp.new
    # Timestamp selects new file

Now before $game_temp = Game_Temp.new add this line:
Code:
Audio.bgm_play("Audio/BGM/012-Theme01")

Just change 012-Theme01 with the name of your BGM.

Now in Scene_Save find these lines:
Code:
  def initialize
    super("Which file would you like to save to?")
  end

Now before "super("Which file would you like to save to?")"
add the line:
Code:
Audio.bgm_play("Audio/BGM/012-Theme01")

And again change 012-Theme01 with the name of your BGM.

Now find these lines in Scene_Save:
Code:
  def on_cancel
    # Play cancel SE
    $game_system.se_play($data_system.cancel_se)
    # If called from event
    if $game_temp.save_calling
      # Clear save call flag
      $game_temp.save_calling = false
      # Switch to map screen
      $scene = Scene_Map.new
      return
    end
    # Switch to menu screen
    $scene = Scene_Menu.new(4)
  end

Now before $scene = Scene_Menu.new(4) add:
Code:
    Audio.bgm_stop
    $game_map.autoplay

That's all, hope it helped. ^_^
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top