How do I find replacement for Local Storage functionality

Get help using Construct 2

Post » Thu Dec 22, 2016 1:09 pm

So far I had a good variable-exchange system that worked great in desktop and mobile games using Local Storage.

Unfortunately the system is not functioning correctly (not functioning at all) on Chrome browser.

The elements of my system:

A – The main game made with Construct 2 (Local Storage and Global variables).
B – The additional app made with any other program (Pano2VR, Twine 2, Cyberix3D…)
C – The ‘link’ app made with Construct 2 (Local Storage variables).

This is my system:

1. App A has default Local Storage variables and Global variables.
2. App B is being iframed into app A.
3. Player reaches the needed goal in app B.
4. App B opens (iframes) app C with new Local Storage variable values.
5. App A detects changes in Local Storage variable values and changes its Global variables accordingly.

Can anyone think of a way to do this with some other method so that apps don’t use Local Storage feature? Any suggestion would be great.
B
21
S
11
G
2
Posts: 37
Reputation: 2,856

Post » Thu Dec 22, 2016 2:17 pm

PavleNikolic wrote:So far I had a good variable-exchange system that worked great in desktop and mobile games using Local Storage.


just to clarify..when you say Local Storage.
do think
WebStorage?
or
localForage?
:)
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Thu Dec 22, 2016 2:35 pm

Local Storage :) I think Web Storage is no longer supported but I'm not sure, I never used it.

This is the one I use:
https://www.scirra.com/manual/188/local-storage
B
21
S
11
G
2
Posts: 37
Reputation: 2,856

Post » Thu Dec 22, 2016 2:56 pm

Image
c2 Local Storage


for browser Local storage use WebStorage no c2 Local storage..

---------------------------------

c2 Local Storage = localForage
c2 WebStorage = Local Storage

:lol:

Image
Image
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Thu Dec 22, 2016 3:24 pm

I'm sorry, I'm not sure what you mean :(
Do you mean that Web Storage and Local Storage are the same? In manual it's written "...as of r206, WebStorage is deprecated in favour of the new Local Storage plugin".


Or should I download localForage plugin that you mentioned from Github?
B
21
S
11
G
2
Posts: 37
Reputation: 2,856


Return to How do I....?

Who is online

Users browsing this forum: dop2000, RandomlyMooN and 6 guests