Hello,
I'm very new to Construct 2, but I'm an experienced programmer. I'm researching Construct 2 because I have an aversion to JavaScript, but I need to make a commercial web game for a business.
I'm trying to learn how one might use Construct 2's interface to dynamically build a json string containing variables from a game session, send it to a URL, receive a json response, and access the content of the json.
In Unity and Unreal Engine, this is a piece of cake, but those engines are too heavy for my needs, and their HTML5/JS export is still very experimental. (Plus, ya know, royalties).
Say for instance I have a login page, with two fields: Username, Password. The user fills these in. How would I go about plugging those values into a json string, to end up with this?
{
login : {
username : "abc",
password : "123"
}
}
[/code:27x0e3bh]
And once I have that, I need to send it to my server and receive the json response containing an authentication token, which will be used for all subsequent requests.
I will need to know if the request succeeded/failed and any associated error codes as well.
Is this possible in the current version of Construct 2?
Thanks.