How do I use the LocalStorage Plugin?

Get help using Construct 2

Post » Mon Oct 12, 2015 4:47 am

this is version 200

https://www.dropbox.com/s/4yfw5s6zmokop ... .capx?dl=0

i'll really thankful to you for you helping hand
Image
B
72
S
42
G
48
Posts: 688
Reputation: 34,392

Post » Mon Oct 12, 2015 3:40 pm

luckyrawatlucky wrote:this is version 200

https://www.dropbox.com/s/4yfw5s6zmokop ... .capx?dl=0

i'll really thankful to you for you helping hand


I checked your capx file.
Go to event sheet 2 and then delete "Load Save Game from Slot..."
Then it should work.

The Save Game function has nothing to do with localstorage.
Image Image iTunes: Match3 | Google Play: Match3
B
109
S
40
G
31
Posts: 1,177
Reputation: 29,418

Post » Tue Oct 13, 2015 4:42 am

but i want to save 2nd Layout's animation frame
i have used local storage for that with
exit, get if get - set "BG" to system>sprite.animation frame
but this is not working
Image
B
72
S
42
G
48
Posts: 688
Reputation: 34,392

Post » Fri Dec 11, 2015 10:07 am

I followed your tut and Local storage work fine on browser but when i test it on xdk app preview I get some big random delay when I switch betewn player skin.. I'm using a variable and events like if variable is 1 change frame to 1 ecc... I did not use array here...
Do you have faced the same issue?
B
6
S
1
Posts: 55
Reputation: 545

Post » Fri Dec 11, 2015 12:55 pm

sandronize wrote:I followed your tut and Local storage work fine on browser but when i test it on xdk app preview I get some big random delay when I switch betewn player skin.. I'm using a variable and events like if variable is 1 change frame to 1 ecc... I did not use array here...
Do you have faced the same issue?


Actually yes. Same happens to me if I use the Firefox browser for testing. It seems like the LocalStorage works on the first read/write, but then it tooks very long to get the data.
I also get a JavaScript Error than. I guess this is an issue with the LocalStorage or with Firefox (and the InApp Browser for Cordova).

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
109
S
40
G
31
Posts: 1,177
Reputation: 29,418

Post » Fri Dec 11, 2015 1:04 pm

AndreasR wrote:
sandronize wrote:I followed your tut and Local storage work fine on browser but when i test it on xdk app preview I get some big random delay when I switch betewn player skin.. I'm using a variable and events like if variable is 1 change frame to 1 ecc... I did not use array here...
Do you have faced the same issue?


Actually yes. Same happens to me if I use the Firefox browser for testing. It seems like the LocalStorage works on the first read/write, but then it tooks very long to get the data.
I also get a JavaScript Error than. I guess this is an issue with the LocalStorage or with Firefox (and the InApp Browser for Cordova).

Regards
Andy



one way it could be to change the variable and then during the gameplay save the variable with the localstorage. I will try this
thanks Andy
B
6
S
1
Posts: 55
Reputation: 545

Post » Fri Dec 11, 2015 1:24 pm

it's working now ! seem that like so it's working, I do not have any delay no longer anymore and when I restart the layout the localstore works as expeted even I you leave the game instantly !
B
6
S
1
Posts: 55
Reputation: 545

Post » Sun Dec 20, 2015 1:17 pm

I have opened a bug report, because the LocalStorage still crash when I'm using Chrome. All other browsers are working fine.
Here is the link to the topic.

localstorage-seems-to-crash-in-chrome-x64_t165599
Image Image iTunes: Match3 | Google Play: Match3
B
109
S
40
G
31
Posts: 1,177
Reputation: 29,418

Post » Wed Jan 06, 2016 2:08 am

pls help dont work :( my file : https://www.dropbox.com/s/4ev7ekcecchrg ... ?dl=0&s=sl
B
14
S
5
Posts: 23
Reputation: 1,070

Post » Wed Jan 06, 2016 12:27 pm

inkfalcon wrote:pls help dont work :( my file : https://www.dropbox.com/s/4ev7ekcecchrg ... ?dl=0&s=sl



Hi,
can you please recheck your link. It seems to be cutted.

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
109
S
40
G
31
Posts: 1,177
Reputation: 29,418

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 26 guests