IceDragon200

Quickmap Transition

May 28th, 2011
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.50 KB | None | 0 0
  1. # // 05/26/2011
  2. class Scene_Map < Scene_Base
  3.  
  4.   #--------------------------------------------------------------------------
  5.   # * Execute Transition
  6.   #--------------------------------------------------------------------------
  7.   def perform_transition
  8.     if Graphics.brightness == 0       # After battle or loading, etc.
  9.       fadein(30)
  10.     else                              # Restoration from menu, etc.
  11.       Graphics.transition(15)
  12.     end
  13.   end
  14.  
  15.   #--------------------------------------------------------------------------
  16.   # * Player Transfer  Processing
  17.   #--------------------------------------------------------------------------
  18.   def update_transfer_player
  19.     return unless $game_player.transfer?
  20.     fade = (Graphics.brightness > 0)
  21.     Graphics.freeze
  22.     #fadeout(30) if fade
  23.     @spriteset.dispose              # Dispose of sprite set
  24.     $game_player.perform_transfer   # Execute player transfer
  25.     $game_map.autoplay              # Automatically switch BGM and BGS
  26.     $game_map.update
  27.     #Graphics.wait(15)
  28.     @spriteset = Spriteset_Map.new  # Recreate sprite set
  29.     #fadein(30) if fade
  30.     Graphics.transition(30)
  31.     Input.update
  32.   end
  33.  
  34.   #--------------------------------------------------------------------------
  35.   # * Execute Pre-battle Transition
  36.   #--------------------------------------------------------------------------
  37.   def perform_battle_transition
  38.     #Graphics.transition(80, "Graphics/System/BattleStart", 80)
  39.     #Graphics.freeze
  40.   end
  41.  
  42. end
Advertisement
Add Comment
Please, Sign In to add comment