How to send game statistics to server?

Get help using Construct 2

Post » Wed Sep 11, 2013 5:46 pm

I'm about to finish my first Android (export to CocoonJS)game and want to have an overall statistics about the game like:
- most played level
- average score and time spent on each level
- average time spent on the game

I want all those variables sent from each user to a server and my wish is to have only one file on the server side for easy viewing (xml, txt)

Can I build a serverside code in c2 ?
Does DropBox support serverside execution?
Can I use DropBox to receive data from user?

As a last resort it can be done with individual files from each user, but the above questions still remains.

Any ideas how to do that?
[EDIT:] Google docs is any good?Cipriux2013-09-11 18:03:17
B
84
S
21
G
23
Posts: 521
Reputation: 18,789

Post » Wed Sep 11, 2013 6:05 pm

You must use the "AJAX" object...

I'm not sure CocoonJD supports it...

With the AJAX you do a "post" that send the information in a "cgi" file that you code, by using something like cfm or php, wich will receive your variables and send them into a xml file or database...

That's the only way I know...
I made 2 games so far: www.ID-Games.net
B
11
S
2
Posts: 54
Reputation: 1,403

Post » Wed Sep 11, 2013 6:14 pm

@DavidA13 thanks for the suggestions. I will dig deeper in to that. Never used Ajax, it's a mystery to me.
B
84
S
21
G
23
Posts: 521
Reputation: 18,789


Return to How do I....?

Who is online

Users browsing this forum: irina, max2612 and 7 guests