RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
DT's GameOver +

0 Members and 1 Guest are viewing this topic.

****
Rep:
Level 71
DT's GameOver +
Version: 1.0.0
Author: DoctorTodd
Date: 4/27/2012

Version History


  • Version 1.0.0  2012/27/22 - Original Release

Planned Future Versions

  • None planned, you tell me.

Description


Adds an option window to the GameOver screen.

Features

  • Plug and play

Screenshots



Instructions

Paste above main.

Script


Code: [Select]
#===============================================================================
#
# DT's GameOver +
# Author: DoctorTodd
# Date (04/27/2012)
# Version: (1.0.0) (VXA)
# Level: (Simple)
# Email: Todd@beacongames.com
#
#===============================================================================
#
# NOTES: 1)This script will only work with ace.
#
#===============================================================================
#
# Description: Adds an option window to the GameOver screen.
#
# Credits: Me (DoctorTodd)
#
#===============================================================================
#
# Instructions
# Paste above main.
#
#===============================================================================
#
# Contact me for commercial use, other wise just credit me and don't repost
# without my permission.
#
#===============================================================================
#
# Editing begins 37 and ends on 41.
#
#===============================================================================
module DTGOP
 
  #The Y coordinate of the Command Window
  COMWINY = 300
 
  #The X coordinate of the Command Window
  COMWINX = 180
 
end
#==============================================================================
# ** Window_MenuCommand
#------------------------------------------------------------------------------
#  This command window appears on the menu screen.
#==============================================================================

class Window_GameOverCommand < Window_Command
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0)
  end
  #--------------------------------------------------------------------------
  # * Get Window Width
  #--------------------------------------------------------------------------
  def window_width
    return 160
  end
  #--------------------------------------------------------------------------
  # * Get Number of Lines to Show
  #--------------------------------------------------------------------------
  def visible_line_number
    item_max
  end
  #--------------------------------------------------------------------------
  # * Create Command List
  #--------------------------------------------------------------------------
  def make_command_list
    add_load_command
    add_title_command
    add_original_commands
    add_quit_command
  end
  #--------------------------------------------------------------------------
  # * Add load to Command List
  #--------------------------------------------------------------------------
  def add_load_command
   add_command("Load", :load)
  end
  #--------------------------------------------------------------------------
  # * For Adding Original Commands
  #--------------------------------------------------------------------------
  def add_original_commands
  end
  #--------------------------------------------------------------------------
  # * Add Title to Command List
  #--------------------------------------------------------------------------
  def add_title_command
    add_command("Title", :title)
  end
  #------------------------------------------------------------------------
  # * Add quit Game to Command List
  #--------------------------------------------------------------------------
  def add_quit_command
    add_command("Shutdown", :quit)
  end
end
#==============================================================================
# ** Scene_Gameover
#------------------------------------------------------------------------------
#  This class performs game over screen processing.
#==============================================================================

class Scene_Gameover < Scene_Base
  #--------------------------------------------------------------------------
  # * Start Processing
  #--------------------------------------------------------------------------
  def start
    super
    play_gameover_music
    fadeout_frozen_graphics
    create_background
    create_command_window
  end
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_background
  end
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    @command_window =  Window_GameOverCommand.new
    @command_window.set_handler(:load,      method(:command_load))
    @command_window.set_handler(:title,     method(:command_title))
    @command_window.set_handler(:quit,      method(:command_quit))
    @command_window.y = (DTGOP::COMWINY)
    @command_window.x = (DTGOP::COMWINX)
    end
  #--------------------------------------------------------------------------
  # * Execute Transition
  #--------------------------------------------------------------------------
  def perform_transition
    Graphics.transition(fadein_speed)
  end
  #--------------------------------------------------------------------------
  # * Play Music on Game Over Screen
  #--------------------------------------------------------------------------
  def play_gameover_music
    RPG::BGM.stop
    RPG::BGS.stop
    $data_system.gameover_me.play
  end
  #--------------------------------------------------------------------------
  # * Fade Out Frozen Graphics
  #--------------------------------------------------------------------------
  def fadeout_frozen_graphics
    Graphics.transition(fadeout_speed)
    Graphics.freeze
  end
  #--------------------------------------------------------------------------
  # * Create Background
  #--------------------------------------------------------------------------
  def create_background
    @sprite = Sprite.new
    @sprite.bitmap = Cache.system("GameOver")
  end
  #--------------------------------------------------------------------------
  # * Free Background
  #--------------------------------------------------------------------------
  def dispose_background
    @sprite.bitmap.dispose
    @sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Get Fade Out Speed
  #--------------------------------------------------------------------------
  def fadeout_speed
    return 60
  end
  #--------------------------------------------------------------------------
  # * Get Fade In Speed
  #--------------------------------------------------------------------------
  def fadein_speed
    return 120
  end
  #--------------------------------------------------------------------------
  # * [Load] Command
  #--------------------------------------------------------------------------
  def command_load
    SceneManager.call(Scene_Load)
  end
  #--------------------------------------------------------------------------
  # * [Title] Command
  #--------------------------------------------------------------------------
  def command_title
    SceneManager.call(Scene_Title)
  end
  #--------------------------------------------------------------------------
  # * [Quit] Command
  #--------------------------------------------------------------------------
  def command_quit
    fadeout_all
    SceneManager.exit
  end
end

Credit


  • DoctorTodd

Support


Post here for quickest support, or send an email to Todd@beacongames.com.

Known Compatibility Issues

None known of.

Demo


I don't think it's really necessary but let me know if you want one.

Restrictions

Check the header of the script.