Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nice game over script
#1
Mog Scene Game Over Karen
V1.5

by Moghunter
Jul 18 2007

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.


Instroduction
It's just a neat game over screen I found in a portougese site =]
It desplays a load game that allowes you to load a game when you lose instead of going back to the title screen.

Script

Code:
#_______________________________________________________________________________
# MOG Scene Game Over Karen V1.5            
#_______________________________________________________________________________
# By Moghunter
# http://www.atelier-rgss.com
#_______________________________________________________________________________
module MOG
#Transition Time.  
GTT = 90
#Transition Type(Name).  
GTN = "020-flat01"
#Tipo de Game Over.
#0 = Usa o Battleback como fundo.
#1 = Usa o mapa como fundo. (ABS Mode)
GTYPE = 0
end
#_______________________________________________________________________________
$mogscript = {} if $mogscript == nil
$mogscript["game_over_karen"] = true
class Scene_Gameover
include MOG
def main
s1 = ""
s2 = ""
@com = Window_Command.new(192, [s1, s2])
@com.opacity = 0
@com.visible = false
@com.contents_opacity = 0
if GTYPE == 0
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.battleback($game_map.battleback_name)
@status_window = Window_BattleStatus.new
else
@spriteset = Spriteset_Map.new
end  
@gover_lay = Sprite.new
@gover_lay.bitmap = RPG::Cache.gameover("Gover_lay")
@gover_lay.y = 480
@gover_lay.opacity = 0
@gove_com = Sprite.new
@gove_com.bitmap = RPG::Cache.gameover("Gover_com01")
@gove_com.x = 220
@gove_com.y = -480
$game_system.bgm_play(nil)
$game_system.bgs_play(nil)
$game_system.me_play($data_system.gameover_me)
if GTYPE == 0
Graphics.transition
else
Graphics.transition(MOG::GTT, "Graphics/Transitions/" + MOG::GTN )  
end  
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
if GTYPE == 0
@sprite.dispose
@status_window.dispose
else
@spriteset.dispose
end
@gover_lay.dispose
@com.dispose
@gove_com.dispose
Graphics.transition(MOG::GTT, "Graphics/Transitions/" + MOG::GTN )
Graphics.freeze
if $BTEST
$scene = nil
end
end
def update  
if GTYPE == 0  
if @sprite.zoom_y < 1.5
@sprite.zoom_y += 0.01
end
if @sprite.zoom_x < 1.5
@sprite.zoom_x += 0.01
end
if @status_window.y < 480
@status_window.y += 3
elsif @status_window.y >= 480
@status_window.y = 480
end
end
if @gover_lay.y > 0
@gover_lay.y -= 5
@gover_lay.opacity += 5
@gove_com.y += 8
@gove_com.opacity += 5
elsif @gover_lay.y <= 0
@gover_lay.y = 0
@gover_lay.opacity = 255
@gove_com.y = 290
@gove_com.opacity = 255
end  
@com.update
case @com.index
when 0
@gove_com.bitmap = RPG::Cache.gameover("Gover_com01")
when 1
@gove_com.bitmap = RPG::Cache.gameover("Gover_com02")
end
if Input.trigger?(Input::C)
case @com.index
when 0
$game_system.se_play($data_system.decision_se)
$scene = Scene_Load.new
when 1  
$game_system.se_play($data_system.decision_se)
Audio.bgm_fade(800)
Audio.bgs_fade(800)
Audio.me_fade(800)
$scene = nil
end
end
end
end


Demo

and a demo: Demo

Don't forget to give credits to Moghunter
Enjoy
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Modified Audio Encryption Script avatarmonkeykirby 0 2,310 07-28-2008, 01:00 PM
Last Post: avatarmonkeykirby
  Rotimikid's Enemy level Script ShockWave 0 2,406 08-24-2007, 01:00 PM
Last Post: ShockWave
  Script switch management GubiD 0 2,164 08-19-2007, 01:00 PM
Last Post: GubiD
  Animated Options Script Samo the thief 0 2,237 06-18-2007, 01:00 PM
Last Post: Samo the thief
  Teleportation Script Digi 0 2,200 05-01-2007, 01:00 PM
Last Post: Digi
  Luck Script Darklord3652 0 2,204 04-10-2007, 01:00 PM
Last Post: Darklord3652
  Advanced Game over to inn Slanter 0 2,176 03-23-2007, 01:00 PM
Last Post: Slanter
  GameOver Menu Script sasuke89 0 2,137 06-08-2006, 01:00 PM
Last Post: sasuke89
  Weapon Levelling Script GoldenShadow 0 2,147 07-05-2005, 01:00 PM
Last Post: GoldenShadow
  Ammo Script Dubealex 0 2,158 05-27-2005, 01:00 PM
Last Post: Dubealex



Users browsing this thread: