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.

A credit script matches with another

Landarma made me a script to show the credit option in the title screen,
Code:
#SDK2 Edit
module SDK::Scene_Commands
  #============================================================================
  # ** Scene_Title
  #============================================================================
  module Scene_Title
    New_Game = 'New Game'
    Continue = 'Continue'
    Credit = 'Credits'
    Shutdown = 'Shutdown'
  end
end


#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
#  This class performs title screen processing.
#==============================================================================

class Scene_Title < SDK::Scene_Base
  #--------------------------------------------------------------------------
  # * Main Processing : Window Initialization
  #--------------------------------------------------------------------------
  def main_window
    super
    # Make command window
    s1 = SDK::Scene_Commands::Scene_Title::New_Game
    s2 = SDK::Scene_Commands::Scene_Title::Continue
    s3 = SDK::Scene_Commands::Scene_Title::Credit
    s4 = SDK::Scene_Commands::Scene_Title::Shutdown
    @command_window = Window_Command.new(192, [s1, s2, s3, s4])
    @command_window.back_opacity = 160
    @command_window.x = 320 - @command_window.width / 2
    #@command_window.y = 288
    @command_window.y = 256
    # If continue is enabled, move cursor to "Continue"
    # If disabled, display "Continue" text in gray
    if @continue_enabled
      @command_window.index = 1
    else
      @command_window.disable_item(1)
    end
  end
  #--------------------------------------------------------------------------
  # * Main Command Input
  #--------------------------------------------------------------------------
  def main_command_input
    # Branch by command window cursor position
    case @command_window.command
    when SDK::Scene_Commands::Scene_Title::New_Game  # New game
      command_new_game
    when SDK::Scene_Commands::Scene_Title::Continue  # Continue
      command_continue
    when SDK::Scene_Commands::Scene_Title::Shutdown  # Shutdown
      command_shutdown
    when SDK::Scene_Commands::Scene_Title::Credit
      command_credit
    end
  end
  #---------------------------------
  def command_credit
    # Show Credit Scene
  end
end
This one, and now I need a script to show the credits text in it.
 

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