Issue with the local storage

Just started using Construct 2? Post your questions here

Post » Fri Apr 07, 2017 11:59 am

Hi
I have 3 different layouts(start screen,layout 1 and layout 2).I have a global variable say coins.The coins which i collect in layout 1 and layout 2 are added to coins variable and i wanted this earned coins to be displayed on start screen layout and store this value in local storage and when i again earn the coins this newly earned coins should be added to the value which we stored in the local storage and displayed on start screen.
Please help me.
Thanks in advance
B
21
S
8
G
1
Posts: 30
Reputation: 2,035

Post » Fri Apr 07, 2017 12:57 pm

What exactly is your question? Have you tried this?
Are you asking how to do it completely?
Do you have a CAPX to upload for us to look at?
B
42
S
18
G
8
Posts: 495
Reputation: 8,410

Post » Fri Apr 07, 2017 1:06 pm

yes am asking how to do it.Please help me out of this.
B
21
S
8
G
1
Posts: 30
Reputation: 2,035

Post » Fri Apr 07, 2017 1:15 pm

Have you looked at the information on it? https://www.scirra.com/manual/188/local-storage

Or, an example? https://www.scirra.com/tutorials/1461/h ... age-plugin

In general, you need to call the storage, then do a on trigger for it.

For saving the details, same thing. Save it, and then check the trigger for when done.
B
42
S
18
G
8
Posts: 495
Reputation: 8,410

Post » Fri Apr 07, 2017 1:20 pm

Yes i have tried doing this but could not get it.
B
21
S
8
G
1
Posts: 30
Reputation: 2,035

Post » Fri Apr 07, 2017 1:52 pm

what have you tried? Please upload your project.
B
42
S
18
G
8
Posts: 495
Reputation: 8,410

Post » Fri Apr 07, 2017 2:17 pm

could you please give your email id so that i can send you the file
B
21
S
8
G
1
Posts: 30
Reputation: 2,035

Post » Sun Apr 09, 2017 8:30 pm

ImageImage
B
105
S
46
G
23
Posts: 778
Reputation: 22,226


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest