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.

How do you start on a map without using the Start here command?

Status
Not open for further replies.
I know the title is a little long, but how do you start on a map withOUT using the "Start Position" Command?
i know theres a way to do this I''ve seen it before. I just can't seem to find it now.
 
Isn't there a way to start on a map using a script? Or editting the Main Script?

Actually I just thought of a way I can do it.... I'm going to try it. Be right back.


EDIT: Hey it worked..... Awesome. I guess this question is answered as well.
 
Under the line
Code:
$scene = Scene_Title.new
In Main, add this code:
Code:
# 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
    # Make title graphic
    @sprite = Sprite.new
    
    $game_temp          = Game_Temp.new
    $game_system        = Game_System.new
    $game_switches      = Game_Switches.new
    $game_variables     = Game_Variables.new
    $game_self_switches = Game_SelfSwitches.new
    $game_screen        = Game_Screen.new
    $game_actors        = Game_Actors.new
    $game_party         = Game_Party.new
    $game_troop         = Game_Troop.new
    $game_map           = Game_Map.new
    $game_player        = Game_Player.new
    # Set up initial party
    $game_party.setup_starting_members
    # Set up initial map position
    [B]$game_map.setup(40)[/B]
    # Move player to initial position
    $game_player.moveto(1,1)
    # Refresh player
    $game_player.refresh
    # Run automatic change for BGM and BGS set with map
    $game_map.autoplay
    # Update map (run parallel process event)
    $game_map.update
    # Switch to map screen
    $scene = Scene_Map.new
    end

After you add all this then you just make a map... Make sure you remember the ID number of the map and make an event on it. Now come into the Script Editor agian and put the Map ID in the bold area above.

Now Erase the
Code:
$scene = Scene_Title.new
or comment it.

In the event on the map, make sure you call the titlescreen [unless you don't want the titlescreen to appear for some reason].

Enjoy.
 
This topic has been resolved. If Firestalker5 or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
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