Save Just a Variable

Get help using Construct 2

Post » Thu Apr 11, 2013 11:01 pm

Hi
The new save function is awesome, is really complete
However I have this issue.

I want to save an array which has all the information of my game. Can I save only the array and not all my game using this method? Because When I load it always load inside the layout where I saved.

I want to use this method because I'm using Construct 2 with cocoonJs and Webstorage can give me some problems.

Thanks in advance
See ya!
B
15
S
3
G
3
Posts: 37
Reputation: 3,627

Post » Wed Apr 17, 2013 6:10 pm

@akumaGouki

Actually i'm using webstorage with CocoonJS and I have no issues.

This is the way I use it :

Store in Webstorage :

Set Local value -> Key "YourKeyName" -> YourArray.AsJSON

to load it in your array :

JSON Load -> Webstorage.LocalValue("YourKeyName")


Hope it will help.

B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Fri Apr 19, 2013 4:22 pm

That works!
Thank you very much!

It's not related with this subject, but somebody knows how can I know the current time of the application?

I will open a topic later, but is just in case

PD: I found it, it's called "Time"akumaGouki2013-04-19 18:11:57
B
15
S
3
G
3
Posts: 37
Reputation: 3,627


Return to How do I....?

Who is online

Users browsing this forum: flemmig, MisterAqua, Nifl, Yahoo [Bot] and 29 guests