Webstorage?

Get help using Construct 2

Post » Wed Apr 01, 2015 7:16 am

Hey guys!

I'm wondering if can something like this idea:
"Inside the game for example, a shooter game kill ducks.. Every 5 ducks get 1 star. All good now, webstorage autosave, perfect! BUT inside game there is a button with name: NoADs.... For example to work need 100 stars.. Yes i know when i get 100 stars, webstorage can save automatically, and when i quit from the game and open again.. NoADs is working well!"

My question: When i clear the browser, or clear the android cache.. Is there any tip to keep this kind of programming (In example: NoADs button) every time?

Thanks!!!
B
50
S
30
G
11
Posts: 226
Reputation: 10,547

Post » Wed Apr 01, 2015 11:43 am

You would have to use a separate save type and save out to a file that is persistent on a server somewhere.

Check this tutorial, its about highscores but the principle is the same.. persistent data: https://www.scirra.com/tutorials/346/online-high-score-table-ajax-php-mysql
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
65
S
17
G
8
Posts: 635
Reputation: 9,331

Post » Wed Apr 01, 2015 1:23 pm

Hmmm... Thanks mate!
I will check the tutorial. : -)
B
50
S
30
G
11
Posts: 226
Reputation: 10,547


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests