Do I have to apply webstorage to each layout or just one?

Get help using Construct 2

Post » Sun Apr 27, 2014 4:36 pm

Do I have to apply webstorage to each layout or just one for it to work? Also, webstorage needs wifi right?
B
37
S
14
G
3
Posts: 263
Reputation: 4,280

Post » Sun Apr 27, 2014 4:46 pm

Webstorage is completelly offline despite his name.
It is like a global value, so applying once and it stays for as long as it is not erased
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Sun Apr 27, 2014 5:05 pm

Once you've dragged the webstorage into your project, then you can access it on any layout as long as your layouts connect to a event sheet. as Aphrodite says, it saves to the players device and not on the web. So no internet needed for it to work.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,728

Post » Sun Apr 27, 2014 9:51 pm

Ok thank you @DUTOIT and @Aphrodite. Just to clarify, I only need it in one layout event sheet and it will work for all event sheets?
B
37
S
14
G
3
Posts: 263
Reputation: 4,280

Post » Mon Apr 28, 2014 12:31 am

Webstorage is a global object, which means that there is no need to insert it on layout.

If you want to use it inside one event sheet, just use it directly
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests