The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: D&P3 on August 13, 2012, 09:45:44 AM

Title: Play BGM on Load Menu
Post by: D&P3 on August 13, 2012, 09:45:44 AM
Play BGM on Loading Menu
Version: 1.0
Author: DiamondandPlatinum3
Date: August 13, 2012



Planned Future Versions

Description

This script allows you to play BGM on the Loading menu. When you select 'Continue' from the title screen and are taken to the file selection screen, new BGM will play instead of the same title screen music.
Similar to Pokemon Gold, Silver, Crystal.

Features

Screenshots

Cannot Screenshot Audio, I'm afraid :o


Instructions

Script


Code: [Select]
# Play BGM on loading menu
# Code snippet by DiamondandPlatinum3

class Scene_Load < Scene_File
  #======================================
  #       Editable Region
  #======================================
  BGM_MUSIC_FOR_LOAD_SCREEN  = "Scene6"
  BGM_VOLUME                 = 100
  BGM_PITCH                  = 100
  #======================================
 
 
 
 
  alias play_music_onloadscreen first_savefile_index
  def first_savefile_index
    RPG::BGM.new(BGM_MUSIC_FOR_LOAD_SCREEN, BGM_VOLUME, BGM_PITCH).play
    play_music_onloadscreen
  end
end

Credit




Thanks





Support


Post in this thread or PM me.

Known Compatibility Issues
I am unaware of any scripts it doesn't work with; if you find any, post in this thread.

Demo


A demo is unnecessary for a script such as this.

Author's Notes

This weeks scripting has been brought to you by the letter C, as in
'Chocolate milk is delicious'.

Terms of Use


If you can find a use for it, this script is free to use in non-commercial games. If you want to use this script in a commercial game, please understand that I expect a free copy (that's means you PM me and let me know that you plan on using it for a commercial game).