Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skip the title menu
#1
Skip the title menu
by Aoshiwik
Nov 21 2004

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


These ruby snippets skip the title menu, useful for faster game testing.

Insert this on line 33 of the Scene_Title class, right after the "$game_system = Game_System.new" on line 32.

Code:
# Skip the title menu and go strait to a new game.
   command_new_game
   return


to continue a game, insert this instead.
Code:
# Skip the title menu and go strait to continue.
  @continue_enabled=true
  command_continue
  return


Optional: comment out the first line of the command_new_game method to get rid of an annoying sound.
Code:
def command_new_game
   # 決定 SE を演奏  
   #$game_system.se_play($data_system.decision_se)
   # BGM を停止
   Audio.bgm_stop


speedy fox @ Nov 21 2004, 04:56 PM
That is usefull for testing, but it is a bit unhandy, after you created the entire game you still know where you had put it?




I agree, it is was a bit of a hack.
The following code is a new version. Make a new script file in the rmxp script editor, name it something you can remember and past this code in there, then follow the usage instructions in the header comments to activate it.

Code:
=begin

    This class can skip the title scene.
    Configure this class by setting the ACTION constant to either NEW_GAME, CONTINUE, or MENU
    
    Usage:
    add the following line to the original Scene_Title class line 33
    return skipTitleScene! if skipTitleScene?
    
    it should look like this
$game_system = Game_System.new
return skipTitleScene! if skipTitleScene?
   # タイトルグラフィックを作成
@sprite = Sprite.new    
  
=end

class Scene_Title
    
# start a new game
    NEW_GAME = 1    
    # continue a game
    CONTINUE = 2    
    # display a menu of start a new game, continue or shutdown
    MENU = 3
    
    # Set the ACTION constant to one of the three constants defined above
    ACTION = NEW_GAME    
    
    def skipTitleScene!
case ACTION

when NEW_GAME  
     command_new_game      

when CONTINUE
     @continue_enabled=true
     command_continue      
end  
    end
    
    def skipTitleScene?  
ACTION != MENU
    end
end
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Screen Fog Debug menu Leon Westbrooke 0 2,205 07-01-2009, 01:00 PM
Last Post: Leon Westbrooke



Users browsing this thread: