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
Company name changed to avoid Facebook-type shenanigans

"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
22
S
6
G
1
Posts: 1,414
Reputation: 4,822

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: ivanski1983, KTML5, Yahoo [Bot] and 3 guests