I want the game to load the latest save point after getting a game over rather than the title screen. Does it need code?
Will credit properly for codes. Thank you.
Will credit properly for codes. Thank you.
# ==============================================================================
# Script by: vFoggy
# Loads latest save file on gameover instead of going to the title screen.
# If it fails to load the save file it goes to the title screen.
# ==============================================================================
class Scene_Gameover < Scene_Base
def update
super
if Input.trigger?(:C)
index = DataManager.latest_savefile_index
if DataManager.load_game(index)
fadeout_all
$game_system.on_after_load
SceneManager.goto(Scene_Map)
else
go_to_title
end
end
end
end
Original thread: https://forums.rpgmakerweb.com/threads/save-point-after-game-over.79357/