Quick HighScore problem.

Get help using Construct 2

Post » Mon Mar 03, 2014 9:08 pm

Ok My highscore works as long as the app is running on my android phone, but everytime i close the app the highscore resets.

Image

https://www.dropbox.com/s/ns8svfk1plvjrov/capx.png
Last edited by bremen on Tue Mar 04, 2014 9:24 pm, edited 1 time in total.
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Post » Mon Mar 03, 2014 10:57 pm

bump :-(
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Post » Mon Mar 03, 2014 11:05 pm

You need to use webstorage plugin. Somewhere there is a tutorial, but cant find it. If you sign up with Clay.io, you can use there plug ins. its pretty easy. Or else there is a leader board plugin.

https://dl.dropboxusercontent.com/u/421 ... oardsr.zip

I found It! you can get it from me ! Good Luck!
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,273

Post » Mon Mar 03, 2014 11:42 pm

@TheDom

I have both the clay.io and the leaderboard plugins. I like the webstorage and thats what I am currently using, it saves the HighScore as long as the games is running, but when I close the app its not saved anylonger. I'm sure im missing a piece of code someweres :-(
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Post » Mon Mar 03, 2014 11:51 pm

I had a similar problem, but don't remember the particulars. However the Clay.IO worked great when tested, just remember to check not to invoke login option on your Clay.IO dashboard. Wish I had more to help. Good Luck
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,273

Post » Tue Mar 04, 2014 12:02 am

ok thank you TheDom , Hopefully someone else can know what Im doing wrong :-)
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Post » Tue Mar 04, 2014 2:23 am

anyone have a solution?
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Post » Tue Mar 04, 2014 2:33 pm

rex plug ins has a number of data and storage plug ins that you might employ. He has a freeze layout plug in that lets you save the layout or non globals... I was thinking you might save and persist the score only
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,273

Post » Tue Mar 04, 2014 3:03 pm

I am using this logic Image
B
12
S
4
G
1
Posts: 241
Reputation: 1,699

Post » Tue Mar 04, 2014 7:00 pm

well I get a NAN problem if I dont use int(WebStorage.LocalValue("Highscore"

I also use Score > Highscore | Set Local Key to "Highscore" to Score

And every thing works, you can try multiable time and it works, its just not saving the Highscore to the phone, its like saving it just in that session. I dont understand it.
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests