Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Skipping the Title Screen (Scene_menu)!

Status
Not open for further replies.
Is there anyway to skip the game's title screen (Scene_menu) and begin the game directly as if the person started a "New game" normally?

If yes, please, I really need to know ^^


Thanks in advance!
 
here you go.
Code:
class Scene_Title
  alias alx_command_new_game_scene_title_update update
  def update
    unless @continue_enabled
      command_new_game
    end
    alx_command_new_game_scene_title_update
  end
end
note: this was quickly done and is not properly tested, but should work properly.
 
Well, it kinda worked...

But it seems that if Load Game is available, then it doesnt work properly right?

Is there anyway so the same happens even it Load Game is available but also begins the game directly without this 1 second Title Screen delay?
 
Code:
class Scene_Title
def main
    # If battle test
    if $BTEST
      battle_test
      return
    end
    # Load database
    $data_actors        = load_data("Data/Actors.rxdata")
    $data_classes       = load_data("Data/Classes.rxdata")
    $data_skills        = load_data("Data/Skills.rxdata")
    $data_items         = load_data("Data/Items.rxdata")
    $data_weapons       = load_data("Data/Weapons.rxdata")
    $data_armors        = load_data("Data/Armors.rxdata")
    $data_enemies       = load_data("Data/Enemies.rxdata")
    $data_troops        = load_data("Data/Troops.rxdata")
    $data_states        = load_data("Data/States.rxdata")
    $data_animations    = load_data("Data/Animations.rxdata")
    $data_tilesets      = load_data("Data/Tilesets.rxdata")
    $data_common_events = load_data("Data/CommonEvents.rxdata")
    $data_system        = load_data("Data/System.rxdata")
    # Make system object
    $game_system = Game_System.new
    @continue_enabled = false
    for i in 0..3
      if FileTest.exist?("Save#{i+1}.rxdata")
      @continue_enabled = true
    end
    command_new_game
  end
end

That should work 0_o
 
I don't recommend that Jaberwoky, if someone modifies the main method in anyway, you script ruins what it is suppose to do.

What alexanderpas gave you would be the best bet.

Here's a few varieties of things to do:

If no save file present, new game. If save present, title screen acts normallly.
Code:
class Scene_Title
  alias alx_command_new_game_scene_title_update update
  def update
    unless @continue_enabled
      command_new_game
    end
    alx_command_new_game_scene_title_update
  end
end

If no save file present, new game. If save file present, switches to load scene.class Scene_Title
alias alx_command_new_game_scene_title_update update
def update
unless @continue_enabled
command_new_game
end
command_continue
end
end[/code]
With that 2nd one, there is no way to get to a "New Game" option, since canceling in Scene_Load will just revert it to Scene_Title, which will just bring it back to Scene_Load. You will need to modify Scene_Load to act differently.


I also don't recommend using def update. Otherwise you will get 1 frame of updateness, which you don't need. With the SDK, you can just use main_database / main_variable or something, and you should be alright. If you don't use the SDK, you are stuck doing it with the update method.
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top