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?
B
4
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:
https://www.scirra.com/manual/107/ajax

And for how to handle the data, w3schools has a good tutorial here:
http://www.w3schools.com/php/php_mysql_intro.asp
Nothing goes unanswered!
B
24
S
5
G
1
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.
B
4
Posts: 22
Reputation: 246


Return to How do I....?

Who is online

Users browsing this forum: Darth Crusher, NN81, plinkie, TsubaRu and 10 guests