Saving variables

Get help using Construct 2

Post » Wed Dec 07, 2011 1:30 am

hey guys

how can i save my variables so player can get them when he start game

thanks
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Wed Dec 07, 2011 1:40 am

Sorry for bumping your thread as I don't have any answers but I'd like to know that as well! Maybe saving to the disk to reload preferences, variables, save games from it? Thanks for asking, I'll be watching this thread :)
B
6
G
2
Posts: 43
Reputation: 1,211

Post » Wed Dec 07, 2011 3:08 am

The Amazing Webstorage Object.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Dec 07, 2011 8:33 am

Is there any example that explain the use of the amazing Webstorage Object?
B
31
S
8
G
6
Posts: 29
Reputation: 6,718

Post » Wed Dec 07, 2011 9:30 am

Hi, this is the way i do.I Dont know if it's the easiest way.

http://dl.dropbox.com/u/46383802/HTML5/load_autosave.capxcesisco2011-12-07 09:37:01
B
33
S
11
G
9
Posts: 381
Reputation: 10,153

Post » Wed Dec 07, 2011 10:43 am

I don't think there is much documentation of it at the moment. Think of it as a variable which saves its value even when the game is not playing. The 'key' is the name and the 'value' is the stored value.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Dec 07, 2011 8:50 pm

In the how do I FAQ there are a few examples for webstorage and there is a full level editor (using webstorage) example.

Check those out.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793


Return to How do I....?

Who is online

Users browsing this forum: WhosWho and 23 guests