diamondandplatinum3

Delay Time Transitions ~ RGSS3

Dec 10th, 2012
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.75 KB | None | 0 0
  1. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2. #             Delay Time Transitions
  3. #             Author: DiamondandPlatinum3
  4. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. #  Description:
  6. #
  7. #    This script will allow you to delay when the title screen and battle
  8. #    scene will enter their phase. Its only usefulness is for sound purposes.
  9. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10.  
  11.  
  12.  
  13. module QueMusicWaitTime
  14.   #===============================
  15.   #    Editable Region
  16.   #===============================
  17.  
  18.   TITLESCREEN_WAIT_TIME = 400 # you'll need to play around with this.
  19.  
  20.   BATTLESCENE_WAIT_TIME = 400 # you'll need to play around with this.
  21.  
  22.   #===============================
  23.  
  24. end
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. class Scene_Title < Scene_Base
  32.   #--------------------------------------------------------------------------
  33.   # * Start processing
  34.   #--------------------------------------------------------------------------
  35.   alias quemusicwaittime_scntitl_start_47cn37 start
  36.   def start
  37.     # Start Playing Music
  38.     play_title_music
  39.  
  40.     # Wait for Music
  41.     Graphics.wait(QueMusicWaitTime::TITLESCREEN_WAIT_TIME)
  42.    
  43.     # Run Original Method
  44.     quemusicwaittime_scntitl_start_47cn37  
  45.   end
  46. end
  47.  
  48.  
  49.  
  50. class Scene_Battle < Scene_Base
  51.   #--------------------------------------------------------------------------
  52.   # * Start Processing
  53.   #--------------------------------------------------------------------------
  54.   alias quemusicwaittime_scnbttl_start_47cn37 start
  55.   def start
  56.     # Wait For Music
  57.     Graphics.wait(QueMusicWaitTime::BATTLESCENE_WAIT_TIME)
  58.    
  59.     # Run Original Method
  60.     quemusicwaittime_scnbttl_start_47cn37
  61.   end
  62. end
Advertisement
Add Comment
Please, Sign In to add comment