Local Storage Question

Get help using Construct 2

Post » Wed Nov 04, 2015 9:25 pm

I just started learning Local Storage and have a question:

Are all the Local Storage events suppose to be put into the first layout of the game?

So when the game starts, the values load right then and there, right?

Because I have things such as Player Coins, Player Power Ups, and Player Score that need to be saved (Which is why I'm using the Local Storage) but am I suppose to run the events that control these in the first layout of the game?

Of course events pertaining to saving the Local Storage Keys when they are changed happen on different layouts because there might be change on that layout.
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Wed Nov 04, 2015 10:11 pm

I guess you'll need to load the storage before you need what's in it...
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Nov 04, 2015 11:00 pm

LittleStain wrote:I guess you'll need to load the storage before you need what's in it...


Aha! So would you recommend creating a dedicated event sheet just for the loading of the those values?
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests