How do I store and retrieve data?

Get help using Construct 2

Post » Wed Jul 16, 2014 10:41 am

Hi, suppose I want to make a quiz game. I would like it to display the total percentage of players who got all the questions right.
I guess I would need the game to send info about the score to a central server and then retrieve it? But doese C2 even have this kind of functionality?

Note: using a 'scoreboard' feature of an API won't work because I would like to store numerous values - for different categories of questions or ever per question, which would mean possibly hundreds of scoreboards.

Any tips on how to best approach this?
B
16
S
7
G
1
Posts: 161
Reputation: 3,131

Post » Wed Jul 16, 2014 11:51 am

Use the AJAX plugin to communicate with, for example, a PHP script set on your server.

You can find examples of use and more explanations about the AJAX plugin in the How do I FAQ too.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
292
S
115
G
96
Posts: 7,295
Reputation: 70,795

Post » Thu Jul 17, 2014 9:34 pm

Great! Thanks, I'll do that.
B
16
S
7
G
1
Posts: 161
Reputation: 3,131


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, JackTYGA, MeteoorSC, worm1 and 21 guests