How do I track data

Get help using Construct 2

Post » Wed Mar 29, 2017 1:08 am

Hi there,
I have a quiz based game.
I would like to track which questions the students get right or wrong.
A function will randomly pick questions from a txt file, so i cannot individually specify to write to a file if the specific question is right or wrong.
Is there other methods, programs or plugins that works well with construct 2 to achieve this analytic function>
Thanks.

p.s
The game will be run using localhost. (I have tried google analytics which didn't work because i don't have a website)
B
12
S
3
Posts: 15
Reputation: 734

Post » Wed Mar 29, 2017 5:10 am

Keep track of scores in your own program, as detailed as you want, analyzed as you want. Use localstorage to save and load your data. You can use the browser object's download as string to save to a file, or use NW.js write to disk and have the student send it to you.
Mistakes were made.
B
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

Post » Fri Mar 31, 2017 1:56 am

@oosyrag

Im not tracking scores, im tracking which questions is done right or wrong by students. specific questions. I want like a game statistic like "the walking dead choice game" It shows how many percent got right and how many get wrong.

sorry if i didnt make it clear
B
12
S
3
Posts: 15
Reputation: 734

Post » Fri Mar 31, 2017 3:09 am

It is the same as tracking score to a certain extent.

Consider that each question in your text file do have an index.

Have an array of 2 columns (X = question (index); Y 0 = Number of displays of the question; Y 1 = Number of correct answers) in your program.

You pick the question randomly, yet you know that question X was asked. So you add 1 display to this question in the array.
Depending on the result, you add one correct answer to X question (second column, Y 1).

Save and load the array to and from local storage, this way you'll be able to do the tracking you are looking for.
Obviously you can then get your statistics out knowing the number of times the question was displayed, the number of times it has been answered correctly and deducing the number of times it was answered wrong.

Save this array to local storage and have it loaded
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,319
Reputation: 87,487


Return to How do I....?

Who is online

Users browsing this forum: SputnikCZ and 3 guests