How do I load JSON from a server

0 favourites
  • 1 posts
From the Asset Store
Create your own wss server and ws server with ssl and without ssl.
  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)