Saving variables locally

Get help using Construct 2

Post » Sat Apr 07, 2012 9:11 pm

Hello everybody.

I posted this same issue a few weeks agom but I wasn't Experienced in construct 2 as I'm now, so I couldn't explain my problem properly.

I looked everywhere, but couldn't find info about this. Maybe I didn't search well enough, but I think it's better to open another thread for it.

Here is my problem:

I have, let's say, this reaction time game for research propourses. Time doesn't need to be quite precise as most reaction time need to be.

Then, this is how i'm registering time:

Every 0.1 Seconds > Add 1 to "TimeScore" (which is a Global Variable)

When Spacebar is pressed, the time stops, that value is registered to another variable (Called TimeScore1, or TimeScore2, depending on the stage) and then the player is taken to another stage, there, "TimeScore" is set to 0, and the trial repeats. I need that values to be registered into a TXT or any text file inside my server, so I can later read and analyze it.

Player Name = (name inputed by the player)
TimeScore1 = 34
TimeScore2 = 21
TimeScore3 = 12

Any ideas?Zerei2012-04-07 22:16:28
B
6
Posts: 56
Reputation: 712

Post » Sat Apr 07, 2012 9:15 pm

Try this plugin maybe?
http://www.scirra.com/forum/plugin-filesaver_topic49803.html

Never used it, but it sounds like what you want to me =)Haematite2012-04-07 21:15:41
B
22
S
6
G
10
Posts: 118
Reputation: 8,005

Post » Sat Apr 07, 2012 10:15 pm

I Forgot to explain. I need the text to be saved inside my server. Or data be sent to me by e-mail, because people will play this game on their computer.

Anyway, i'll check this Plugin and see if I can work with it! But I think that this isn't exactly what I need =\
B
6
Posts: 56
Reputation: 712

Post » Sun Apr 08, 2012 9:59 am

The Ajax-Plugin should be perfect for that purpose. How do I-faqs - "Ajax"

[Edit]Topicname 'Saving variables locally'? Didn't you write yout want to store the variables on your server? The Plugin above is for local storage - Ajax for storing on the server..Joe72012-04-08 10:04:26
B
14
S
6
G
5
Posts: 173
Reputation: 4,742


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 23 guests