Logging user actions to a text file

Get help using Construct 2

Post » Wed Mar 08, 2017 5:28 am

Hi there, My project is a game based quiz. I'm required to have an output text file that records every user actions.
e.g SinglePlayer selected
Question 1 correct
Question 2 wrong
Player pickup Gun
Player Killed Monster
Stage 2 Unlocked
Basically, this will help me to identify which questions student get wrong often.
It would be greatly appreciated if you can help me as I'm new to construct 2.
Thank you!
B
12
S
3
Posts: 15
Reputation: 734

Post » Wed Mar 08, 2017 3:15 pm

@sebastiangohhy

I just happened to make a log system for a project I am working on last night.

I have a global text variable called Log.

at every point in the event sheet where I want to add something to the log I do a "System > Add to Global variable Log" and add NewLine & "whatever text to add"

Then at the end you can do what ever you want with the results: display it, save it, send it to a database, etc
B
98
S
35
G
20
Posts: 438
Reputation: 17,875

Post » Fri Mar 10, 2017 9:26 am

@AllanR
Thanks for replying. I understand what you said, but it is possible to make it live?
B
12
S
3
Posts: 15
Reputation: 734


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests