If the save is present, back to the title

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
154
First Language
Italy
Primarily Uses
RM2k
Hi all,
I use this script for skip the title:
Code:
#==============================================================================
# Skip Title Screen                                           JV Master Script
#------------------------------------------------------------------------------
# Skip Title Screen, going to first game map.
#==============================================================================

#==============================================================================
# Scene Title
#==============================================================================
class Scene_Title < Scene_Base
  def start
    SceneManager.clear
    Graphics.freeze
    DataManager.setup_new_game
    $game_map.autoplay
    SceneManager.goto(Scene_Map)
  end
 
  def terminate
    SceneManager.snapshot_for_background
    Graphics.fadeout(Graphics.frame_rate)
  end
end
#==============================================================================
It is possible in some way, if there is a save, start the game from title?
The operation has to be this:
- The game starts without the title, with an intro on the map.
- When the player makes the first save and close the game, when it re-opens, the title appears to start a new game or load your last save.
 

vFoggy

Veteran
Veteran
Joined
Nov 3, 2012
Messages
71
Reaction score
31
Primarily Uses
This script I wrote should help you.
Code:
class Scene_Title < Scene_Base
  def start
    if DataManager.save_file_exists?
      super
      SceneManager.clear
      Graphics.freeze
      create_background
      create_foreground
      create_command_window
      play_title_music
    else
      SceneManager.clear
      Graphics.freeze
      DataManager.setup_new_game
      $game_map.autoplay
      SceneManager.goto(Scene_Map)
    end
  end
 
  def terminate
    if DataManager.save_file_exists?
      super
      SceneManager.snapshot_for_background
      dispose_background
      dispose_foreground
    else
      SceneManager.snapshot_for_background
      Graphics.fadeout(Graphics.frame_rate)
    end
  end
end
 
Last edited:

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
154
First Language
Italy
Primarily Uses
RM2k
class Scene_Title < Scene_Base def start if DataManager.save_file_exists? super SceneManager.clear Graphics.freeze create_background create_foreground create_command_window play_title_music else SceneManager.clear Graphics.freeze DataManager.setup_new_game $game_map.autoplay SceneManager.goto(Scene_Map) end end def terminate if DataManager.save_file_exists? super SceneManager.snapshot_for_background dispose_background dispose_foreground else SceneManager.snapshot_for_background Graphics.fadeout(Graphics.frame_rate) end end end
Thank you @vFoggy :D
Work perfectly!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top