How do we store a High Score variable in Android

Get help using Construct 2

Post » Sun Sep 29, 2013 2:25 am

Hello,

How do we create a HighScore variable to be stored in Android, even if the game is closed, and then have it retrieved when re-opened?

Does someone know how to do this?

Thanks.
B
6
S
1
G
1
Posts: 9
Reputation: 394

Post » Sun Sep 29, 2013 5:03 am

Read the manual and the turorials, there are plenty that cover saving information. You can use the save game option, web storage, etc... all of these save it locally and work on every platform not just android.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,573

Post » Sun Sep 29, 2013 8:11 am

Use the WebStorage object: that's the simplest solution for storing only a few variables: it will save them locally and then you can retrieve the data any time.

cheers,
Image Image Image
B
82
S
21
G
8
Posts: 163
Reputation: 11,516

Post » Mon Sep 30, 2013 12:51 am

BluePhaze and Roberto,

Thanks for helping. I read the page about WebStorage in the manual, and already did what I wanted.

The name is confusing so I wouldn't figure it out by myself.

Thanks!
B
6
S
1
G
1
Posts: 9
Reputation: 394


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests