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 a title screen [I've searched]

I have searched and searched, and I can't find one that doesn't have a error in it. I need one that I can understand, for I am super dumb when it comes to scripting. Can someone please help me?

All I want to do with this script is skip the title screen, tell the intro, then when a player presses a key, it goes to the title screen. :cry:

Please help!

Thanks!
 
MCsephiroth13":dsq7l7kr said:
Zeriab's: viewtopic.php?f=12&t=66143

I literally had the exact same problem as you. This one works like a charm.

Actually, I think what he's after is an attract mode script. In that case, it may be more difficult to find. What you wanted was for the game to wait a while, then go into the game intro, right? And, if the player does anything during this intro, it automatically goes back to the title? Just like pretty much any game made for any system since the Atari?
 

Zeriab

Sponsor

Actually the script I presented in that topic can be used to accomplish your wish.
It allows you to start another place than the normal starting point.
You will then just have to event your way out of it. You can have a parallel process with conditional branches for button presses. One for each.
Just go to the title screen when a button is pressed.

I have included the relevant post with my ugly script snippet:
Zeriab":3ko8jeu9 said:
Aww, thank you :blush:
It really just is me being lazy. You definitely wouldn't say that if you were a scripter.

Anyway what about letting "New Game" send the player to the set starting position and instead specify where to start when you open the game? It's easier that way:
[rgss]class Scene_Title
  alias_method :zeriab_scene_title_main, :main
  def main
    alias :main :zeriab_scene_title_main
    load_database
    # Select the starting map and coordinates
    $data_system.start_map_id = 2
    $data_system.start_x, $data_system.start_y = 5, 9
    command_new_game
  end
 
  def load_database
    # 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
  end
end
[/rgss]

Remember that you must not use leading zeros. $data_system.start_map_id = 09 gives you an error while $data_system.start_map_id = 9 don't.

*hugs*
- Zeriab

*hugs*
- Zeriab
 

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