Save only certain parts of the game.

Get help using Construct 2

Post » Fri Nov 08, 2013 1:56 am

Hello! I am making a game where the sole goal is to go as far as you can, collecting as much money as you can, while you avoid obstacles along your path. Like classic Nintendo Entertainment System games, I want only the highscores saved, along with the last three attempt's scores. Is this possible? I also want settings (set via global variables) saved as well.
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Sat Nov 09, 2013 12:07 am

Bump!
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Sat Nov 09, 2013 12:24 am

Use webstorage.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Sat Nov 09, 2013 12:45 am

I know that save functions exist, but I only want to save certain parts of the game.
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Sat Nov 09, 2013 12:55 am

Perhaps you misunderstand - webstorage saves specific variables, and is a separate mechanism to the system 'save' and 'load' actions.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Sat Nov 09, 2013 1:00 am

Alright. Will webstorage work for projects that are converted to desktop applications? Will clearing the cache delete the save data?
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Sat Nov 09, 2013 2:29 am

If I am not mistaken, Node webkit export doesn't utilize your browser, so erasing your browser cache won't change anything.

There is also the no save behaviour, but that probably doesn't help in your case. Just wanted to mention that there is another mechanism to prevent saving of specific elements.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 22 guests