How do I load JSON from a server

Get help using Construct 2

Post » Wed Mar 01, 2017 9:28 am

I have been struggling with this one for a bit. I know how to use Ajax, PHP and all that. But the JSON I am referring to is the one I get from saving - SaveStateJSON
I get the JSON, but it's super-long and when downloading it via Array or Dictionary, I get 5 json files, each with different strings. What gives?

But, to make it easier, I will explain what I am trying to do. I wish to create a level, save it and share it with other people playing the same game. However, I wish to do that via PHP or any other way so, when at the start, it reads the info from the internet and constructs the level for the player the way I saved it. How can I do this? Thank you.

Edit: I get the JSON and I tried saving it to Variables, as a project item / file, etc. Tried using PHP to GET the data or to read it from a textbox. I can't get it to work.
Posts: 20
Reputation: 840

Return to How do I....?

Who is online

Users browsing this forum: Horence, oosyrag and 28 guests