Save system in construct classic

This forum is currently in read-only mode.
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hi, can you tell how can I put a save system in construct classic?

    Thanks...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Welcome to the forum!

    In Construct classic there are two built-in system actions available for saving and loading.

    1) Save/Load to disk

    2) Quicksave/Quickload

    1) Save/Load to disk

    This is used when you want to save/load the current state of the game to/from a file on your hard disk. If you use several file names, you can save several game states and load them later.

    Saving to a file:

    1. Create an action on the event sheet by selecting System -> ?Save/Load to disk?

    2. When creating the action select ?Save? as the ?Operation?. Here you have to also give a file name as a parameter.

    Loading from a file:

    1. Create an action on the event sheet by selecting ?System? -> ?Save/Load to disk?

    2. When creating the action select ?Load? as the ?Operation?. Here you have to also give the name of the file (that you specified while saving the game) as a parameter.

    2) Quicksave/Quickload

    This is used when you want to save/load the current state of the game. However you can only save one state of the game (compared to the ability to save several game states in several files when using ?Save/Load to disk?).

    Quick Saving:

    1. Create an action on the event sheet by selecting ?System? -> ?Quicksave/Quickload?

    2. When creating the action select ?Quicksave?

    Quick Loading:

    1. Create an action on the event sheet by selecting ?System? -> ?Quicksave/Quickload?

    2. When creating the action select ?Quickload?

    Following are some relevant forum topics:

    Saving in Games

    http://www.scirra.com/forum/saving-in-games_topic39446.html

    Save System

    http://www.scirra.com/forum/save-system_topic42905.html

    Save games and INI files

    http://www.scirra.com/forum/save-games-and-ini-files_topic40669.html

  • Thank you very much for your attention, that was very helpful but I have a little doubts left. I used quicksave\quickload system and it worked in the game(when the character fell down from the hill it came back on the top of the hill) but when i closed the game and open it again, it started from the begining of the game. How can I make my character start from the top of the hill(not from the begining of the game) when i close the game and start it again. Also in the save/load to disk system which file should I write for the "file" part.

    Thank you again...

  • The Quicksave/Quickload only saves game state temporarily and it is only available during the runtime of the game. If you close the game, then the game state will not available and you can?t load the game state if you start the game again.

    Your save/load requirement can be implemented using ?Save/Load to disk?. If you use that you will be able to load a previously saved game state even after closing and restarting a game.

    About the ?file? parameter in ?Save/Load to disk?:

    You can give any file name. For example you can just give a file name such as ?savefile?.

    If you give a file name without a file path (e.g.: savefile) then the save file will be saved in the same directory where you have your .cap file.

    Also you can give a file name with a relative file path.

    E.g.: savedir\savefile, will save the game in a directory called ?savedir? which is created in the same directory where you have your .cap file (you have to manually create a directory called "savedir" there).

    Or you can give an absolute file path.

    E.g.: C:\savedir\savefile will save the game in a directory called ?C:\savedir\savefile?).

    When you specify a relative or absolute directory path, always make sure that the given directory is available.

  • Thank you very much, that was very helpful.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)