IceDragon200

Change gameover ME

Sep 23rd, 2011
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.63 KB | None | 0 0
  1. # // $game_system.gameover_me.name = "filename"
  2. # // $game_system.gameover_me.volume = volume
  3. # // $game_system.gameover_me.pitch = pitch
  4.  
  5. class Game_System
  6.  
  7.   attr_accessor :gameover_me
  8.  
  9.   alias igmov_initialize initialize unless $@
  10.   def initialize( *args, *block )
  11.     igmov_initialize( *args, *block )
  12.     @gameover_me = $data_system.gameover_me.clone
  13.     #RPG::ME.new()
  14.   end
  15.  
  16. end
  17.  
  18. class Scene_Gameover < Scene_Base
  19.  
  20.   def start
  21.     super
  22.     RPG::BGM.stop
  23.     RPG::BGS.stop
  24.     $game_system.gameover_me.play
  25.     Graphics.transition(120)
  26.     Graphics.freeze
  27.     create_gameover_graphic
  28.   end
  29.  
  30. end
Advertisement
Add Comment
Please, Sign In to add comment