Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Direct Saving into last Save

Normally saving invokes Scene_Save requesting where it requests where you wishes to save, and if you choose a slot then it saves your game.

If anyone could make it in such way that if you already have saved your game, it doesn't show the dialog anymore and instead directly saves into the slot.

please try to use $game_temp.last_file_index for the reconition of the last used savegame and $game_system.save_count to reconize if you have saved before.
 
okay, i managed myself and decided to share the code ;)
Code:
#============================================================================
# ** Scene_Save addition
#----------------------------------------------------------------------------
#  Build Date - 2005-12-23
#  Version 0.1 - alexanderpas - 2005-12-23
#  This class performs load screen processing.
#============================================================================
class Scene_Save < Scene_File
  def main
    if ($game_system.save_count != 0)
      on_decision(make_filename($game_temp.last_file_index))
      return
    end
    super
  end
end
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top