Advertisement
diamondandplatinum3

Play BGM on loading menu ~ RGSS3

Dec 10th, 2012
856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.10 KB | None | 0 0
  1. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2. #             Play BGM on loading menu
  3. #             Author: DiamondandPlatinum3
  4. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. #  Description:
  6. #
  7. #    This script allows you to play BGM on the Loading menu.
  8. #    When you select 'Continue' from the title screen and are taken to the
  9. #    file selection screen, new BGM will play instead of the same title screen
  10. #    music. Similar to Pokemon Gold, Silver, Crystal.
  11. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12. class Scene_Load < Scene_File
  13.   #======================================
  14.   #       Editable Region
  15.   #======================================
  16.   BGM_MUSIC_FOR_LOAD_SCREEN  = "Scene6"
  17.   BGM_VOLUME                 = 100
  18.   BGM_PITCH                  = 100
  19.   #======================================
  20.  
  21.  
  22.  
  23.  
  24.   alias play_music_onloadscreen first_savefile_index
  25.   def first_savefile_index
  26.     RPG::BGM.new(BGM_MUSIC_FOR_LOAD_SCREEN, BGM_VOLUME, BGM_PITCH).play
  27.     play_music_onloadscreen
  28.   end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement