Any simple way to store data online?

Get help using Construct 2

Post » Thu Jul 11, 2013 6:55 am

Hi,

I was wondering if there is any simple way you can store simple text data online. I just want to store something like "level = 5" in a text file somewhere on the internet. Then i want to be able to read that text file later and put the user on level 5.

Thanks for the help!
B
11
S
4
G
2
Posts: 20
Reputation: 1,412

Post » Thu Jul 11, 2013 7:41 am

use the webstorage object :)
B
44
S
13
G
7
Posts: 603
Reputation: 7,936

Post » Thu Jul 11, 2013 5:22 pm

Hey EncryptedCow! Thanks for the suggestion but the webstorage object doesn't guarantee permanent storage...once the user deletes the cookies, its gone!
B
11
S
4
G
2
Posts: 20
Reputation: 1,412

Post » Thu Jul 11, 2013 6:36 pm

The Webstorage object doesn't store data online, but it does store it locally, and it isn't cleared when the user clears their cache. So it is relatively permanent.
Scirra Founder
B
381
S
222
G
84
Posts: 23,975
Reputation: 189,160

Post » Thu Jul 11, 2013 7:06 pm

Hey Ashley, Thanks for the help!

But I want to create a facebook game that keeps track of what level you are on no matter what computer or device you are using. So local storage isn't really an option for me. Is there no simple way to read something from an online text document?
B
11
S
4
G
2
Posts: 20
Reputation: 1,412

Post » Fri Jul 12, 2013 12:48 pm

It is quite simple, if you have some knowledge in either Perl or PHP.

You have to set up a script, that stores the file or an entry in a database. In Construct, you have to call that URL with all the parameters you like to store.

Done
B
44
S
10
G
7
Posts: 437
Reputation: 5,963

Post » Fri Jul 12, 2013 7:46 pm

Ubivis,

I am familiar with a tiny bit of PHP and MySQL databases. But I do not know how to integrate this with Construct.

Could you, kind sir, possibly make a quick .capx showing the simplest way to do this? :D I would be forever indebted to you.
B
11
S
4
G
2
Posts: 20
Reputation: 1,412


Return to How do I....?

Who is online

Users browsing this forum: Phoenixbowman, skrotar and 9 guests