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.

New game, Continue, Exit, Credits, at title screen is this possible?

Brody

Member

I have a credits script, how would i make it so in the game title screen i have the New Game, Continue, Exit, Credits and when you click on credits it calls my credits script? thanks, anyone who answers my question and helps me goes in my games credits ;-)
 
well if u'r in rmxp, open the script editor and find the script called Scene_Title
now go to the lines
Code:
    # Make command window
    s1 = "New Game"
    s2 = "Continue"
    s3 = "Shutdown"

and make it
Code:
    # Make command window
    s1 = "New Game"
    s2 = "Continue"
    s3 = "Credits"
    s4 = "Exit"
or something like that

now go down to line 96
Code:
      # Branch by command window cursor position
      case @command_window.index
      when 0  # New game
        command_new_game
      when 1  # Continue
        command_continue
      when 2  # Shutdown
        command_shutdown
      end

and change it to
Code:
      # Branch by command window cursor position
      case @command_window.index
      when 0  # New game
        command_new_game
      when 1  # Continue
        command_continue
      when 2  # Open Credits
        $scene = $scene_credits.new # change to the name of your credits scene name
      when 3  # Shutdown, noticed it changed to 3, since i put shutdown to s4 in the begining
        command_shutdown
      end

should be something like that
 

Brody

Member

it worked in a way, P.S i thought i had to something like that i was pretty close, anyways back on topic, i did scene_credits.new and it gave me this message when i went to use it it said something like NoMethodError occurred undefined method `new' for nil:NilClass and then i took out the .new and it went to my credits background and then it shutsoff? so what do i do?
 
The line should be:
Code:
$scene = scene_credits.new

not:
Code:
$scene = $scene_credits.new

I think that this was the thing that was giving you the error.
Good luck! :thumb:

Over and out - Gando
 

Brody

Member

Gando":3l0xidn1 said:
The line should be:
Code:
$scene = scene_credits.new

not:
Code:
$scene = $scene_credits.new

I think that this was the thing that was giving you the error.
Good luck! :thumb:

Over and out - Gando
yes this worked! il add both of you guys in the credits :) thanks
 

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