nio_kasgami

Scene_title_skip

Apr 14th, 2015
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.00 KB | None | 0 0
  1. #==============================================================================
  2. # ■ Nio Kasgami Engine Ace "Skip_to_new_game"
  3. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  4. # Simple script who skip the title screen if they don't have any save
  5. # Created by Nio Kasgami.
  6. # Data : 2015/04/14
  7. # Version : 1.0.0
  8. #==============================================================================
  9.  
  10. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  11. # Scene_Title
  12. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  13. class Scene_Title < Scene_Base
  14.  
  15.   #--------------------------------------------------------------------------
  16.   # ● overwrite method: start
  17.   #--------------------------------------------------------------------------
  18.   def start
  19.     super
  20.     SceneManager.clear
  21.     Graphics.freeze
  22.     if DataManager.save_file_exists?
  23.     create_background
  24.     create_foreground
  25.     create_command_window
  26.     play_title_music
  27.   else
  28.     new_game_without_title
  29.   end
  30. end
  31.    
  32.   #--------------------------------------------------------------------------
  33.   # ● overwrite method: terminate
  34.   #--------------------------------------------------------------------------
  35.   def terminate
  36.   super
  37.   if DataManager.save_file_exists?  
  38.  
  39.     SceneManager.snapshot_for_background
  40.     dispose_background
  41.     dispose_foreground
  42.   else
  43.     return
  44.     end
  45.   end
  46.  
  47.   #----------------------------------------------------------------------------
  48.   # ○ new method: new_game_without_title
  49.   #----------------------------------------------------------------------------
  50.   def new_game_without_title
  51.     DataManager.setup_new_game
  52.     fadeout_all
  53.    Graphics.transition(100)
  54.     $game_map.autoplay
  55.     SceneManager.call(Scene_Map)
  56.   end
  57.  
  58. end
  59. ################################################################################
  60. # END OF SCRIPT
  61. ################################################################################
Advertisement
Add Comment
Please, Sign In to add comment