How do I Save A Dictionary to JSON File (for Mobile Games)?

Get help using Construct 2

Post » Tue Aug 04, 2015 1:30 pm

I am making a game which uses stars rating that changed everytime the player got a new high score. I load each stages' star as JSON file, but how to save the updated data to the JSON file? Thanks! :D
B
9
S
2
Posts: 18
Reputation: 546

Post » Tue Aug 04, 2015 7:08 pm

Do you want this file on a server or on each user's computer? Because you cannot save files to user's hard-drives (for security reasons).

PHP is a nice easy way to save files on a server though. Java works well too. You might even be able to use an AJAX file transmission kind of scheme too (something like a file upload).
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Thu Aug 13, 2015 2:57 pm

SOLVED:
I'm using LocalStorage, which I loaded at the first time from JSON.

Thanks for replying, @gumshoe2029!
B
9
S
2
Posts: 18
Reputation: 546


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 9 guests