Save system in construct classic

For questions about using Classic.

Post » Sat Jan 21, 2012 12:14 pm

Hi, can you tell how can I put a save system in construct classic?
Thanks...
B
1
Posts: 7
Reputation: 264

Post » Sat Jan 21, 2012 2:05 pm

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
Ramesh2012-01-21 14:21:28
B
21
S
6
G
11
Posts: 30
Reputation: 5,396

Post » Sat Jan 21, 2012 5:36 pm

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...
B
1
Posts: 7
Reputation: 264

Post » Sun Jan 22, 2012 5:14 am

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 cant 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.

Ramesh2012-01-22 05:16:30
B
21
S
6
G
11
Posts: 30
Reputation: 5,396

Post » Sun Jan 22, 2012 9:24 am

Thank you very much, that was very helpful.
B
1
Posts: 7
Reputation: 264


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests