Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> My Simple Gameover Menu
CociCookie
post Aug 3 2008, 12:39 PM
Post #1


Level 6
Group Icon

Group: Member
Posts: 79
Type: Developer
RM Skill: Skilled




To quote my post from RMXP.org:

QUOTE
This is my first script that works, and it's only a simple script that adds a menu to the gameover screen that allows the player to choose between loading a game (which goes back to the title menu, aswell as playing that music) going to the title screen and shutting down.

Copy and paste into a new script in the 'Materials' section.



CODE
#============================================================================
# VX Scene_Gameover edit by CociCookie
#----------------------------------------------------------------------------
#     Includes a menu on the Game Over screen for loading or going to title
#============================================================================
class Scene_Gameover
  def create_command_window
    s1 = Vocab::continue
    s2 = Vocab::to_title
    s3 = Vocab::shutdown
    @command_window = Window_Command.new(172, [s1, s2, s3])
    @command_window.x = (544 - @command_window.width) / 2
    @command_window.y = 288
    @command_window.openness = 255
  end
# -----
  def start
    super
    RPG::BGM.stop
    RPG::BGS.stop
    $data_system.gameover_me.play
    Graphics.transition(120)
    Graphics.freeze
    create_gameover_graphic
    create_command_window
  end
# -----
  def update
    super
    @command_window.update
    if Input.trigger?(Input::C)
      case @command_window.index
      when 0 #Load Game
        $scene = Scene_File.new(false, true, false)
        close_command_window
      when 1 #To Title
        $scene = Scene_Title.new
        close_command_window
      when 2 #Shutdown
        $scene = nil
      Graphics.fadeout(120)
    end
  end
# -----
  def close_command_window
    @command_window.close
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 0
  end
  end
end


The only script it doesn't seem to be compatible with is Vlad's ABS, it fades into the map before exiting. However that was a few versions back, so I don't know about the new abs versions


__________________________
Rawr? Rawr!

I'm a Chipvire, a cross between a Chip and a Vampire.

Go to the top of the page
 
+Quote Post
   
Grandhoug
post Aug 3 2008, 05:03 PM
Post #2


Level 5
Group Icon

Group: Member
Posts: 70
Type: Developer
RM Skill: Undisclosed




i'll try it out


__________________________
Fly like a rhino, sting like shock paddles.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 10:32 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker