(SOLVED) WebStorage Local and Cocoonjs for Highscore

Get help using Construct 2

Post » Sat Feb 22, 2014 12:08 pm

I have a problem here.
I know session web storage doesn't work so i use local ones for highscore.
When it's game over a text appears saying the best score.

It works perfectly in my construct but when it comes to cocoonjs it simply doesn't appear.
So I would like to know what should i do to make highscore appear correctly in cocoonjs.


EDIT: And yeah it doesn't even work in HTML export so i have a big problem!

Solved with adding "int" to WebStorage.LocalValue()
The thing is web storage was storing strings and then converting to int. For some reasons writing directly "int" to the code solves the problem.

Image
Last edited by vagaev on Sat Feb 22, 2014 1:36 pm, edited 2 times in total.
B
13
S
4
G
1
Posts: 241
Reputation: 1,724

Post » Sat Feb 22, 2014 12:27 pm

Maybe are you using textbox? cocoonjs doesn't support it, you need use Text. If not, don't know... :?:
B
17
S
5
G
2
Posts: 173
Reputation: 2,085

Post » Sat Feb 22, 2014 1:15 pm

Nope it's a simple text.
Here is what i'm using

Image
B
13
S
4
G
1
Posts: 241
Reputation: 1,724

Post » Sat Feb 22, 2014 1:35 pm

SOLVED
B
13
S
4
G
1
Posts: 241
Reputation: 1,724


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests