Is it possible to draw data from the games onto websites

Get help using Construct 2

Post » Tue Jan 27, 2015 12:34 am

For example, I'd to make a browser game. On the website, one page will just have the game on it, and then another web page on the site would have a list of the top 50 highest level players. In Construct 2, how would I go about retrieving the levels of each player, and then having that information sent to a webpage?
Posts: 22
Reputation: 246

Post » Tue Jan 27, 2015 12:52 am

so you could store player data into a database from Construct. This can be done using the AJAX object which can post data to a webpage. So if you want to simply store level against username you can post to a page called, submitlevel.php in which you handle the post data and add it to a database of level against username. Then on this secondary webpage you can use more php code to get the top 50 rows in the database when ordered by level and then display the data onto the page.

If you are unfamiliar with the AJAX object see here:

And for how to handle the data, w3schools has a good tutorial here:
Nothing goes unanswered!
Posts: 434
Reputation: 3,446

Post » Tue Jan 27, 2015 12:55 am

Ah, okay thanks. I was assuming it was one of those objects ( AJAX, Web Storage or XML object ) but didn't know which one exactly.
Posts: 22
Reputation: 246

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests