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.

Adding Options to Title and Changing Fonts

Hey,

For the sake of trying to not post too much, I wanted to throw these two questions together.

First Question:
How can I add another command below Continue that Goes to a 'Bonus Features' Section that would basically be a blank map that auto-runs a choice screen, that will in turn go to other things? Basically, how do I add the option in the title screen, and then make the option actually connect to that map?

Second Question: This goes with the last one, somewhat, one of the bonus features I want to put in involves changing the font to just Times New Roman, which is NOT the default font. Is there a script I can put in to temporarily change the font, and then change it back to the default?
 

khmp

Sponsor

To add options to the title screen you need to alter one scene in two separate methods. Scene_Title.main, Scene_Title.update and you'll most likely need to add a function.

Not sure how much help you wanted on it so I'll go for the minimum :)

In Scene_Title.main

Go to the lines that list off s1, s2, s3. Add to this s4 = 'Bonus Features'
And in the line below these you will see the creation of the command window. The second set of arguments will now be [s1,s2,s4,s3].

In Scene_Title.update
Code:
...
      case @command_window.index
      when 0  # New game
        command_new_game
      when 1  # Continue
        command_continue
      when 2  # Shutdown
        command_shutdown
      end
...
will now be:
Code:
...
      case @command_window.index
      when 0  # New game
        command_new_game
      when 1  # Continue
        command_continue
      when 2  # Continue
        command_bonus
      when 3  # Shutdown
        command_shutdown
      end
...

Now go all the way to the bottom of Scene_Title. Before the very last end create some room for:
Code:
def command_bonus
...
end

Inside this method you'll want to mimic the behavior found in command_newgame. So copy everything inside the method command_newgame. The lines you'll want to edit are:
Code:
$game_map.setup($data_system.start_map_id)
$game_player.moveto($data_system.start_x, $data_system.start_y)
$data_system.start_map_id becomes the id of the map where bonus features are located. $data_system.start_x, $data_system.start_y will become where ever you want the player to be when the bonus features map starts.

Not exactly sure if you can change the font during runtime. I'm most likely wrong wait for someone more knowledgeable to answer. If you could though the code would be:
Code:
Font.default_name = 'Times New Roman'

Good luck with it Silencher! :thumb:
 

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