How do I save global variables using Local Storage?

Get help using Construct 2

Post » Mon Sep 14, 2015 8:00 pm

Hi guys! So the game I'm building relies pretty heavily on global variables for a number of tasks, such as changing playable characters, tracking progression through the levels for each individual character, and saving the high scores for each character as well.

The variables work perfectly, but I'm wanting to use Local Storage to save them and I'm finding it incredibly complicated and fiddly! Can anyone help me find a simple solution that can be used to save and retrieve the assorted global variables? I would be incredibly grateful, thank you in advance!
B
4
S
2
Posts: 5
Reputation: 415

Post » Mon Sep 14, 2015 8:16 pm

Oh, I forgot to mention that in many instances I am needing to save or retrieve the information from multiple global variables at a time! For instance, at a given checkpoint I need to save "Character A Level Progress", "Character A Score", and "Character B Unlocked". I'm not sure if that changes anything or makes things more difficult!

Again, thanks for your time!
B
4
S
2
Posts: 5
Reputation: 415


Return to How do I....?

Who is online

Users browsing this forum: beohs, bilgekaan, Elliott and 17 guests