How do I add time take and typing accuracy

Get help using Construct 2

Post » Sat Oct 28, 2017 7:22 am

Hey,
I am making a keyboard game i have the game ready but i am stuck in 2 things time taken so when a player reaches to last stage a game complete screen will came and there it will show the time taken i have added globle variable and over there i have made every 1 second add one to timer but i am not able to stop it once the player reaches the last stage
another issue is i want a system which can calculate the accuracy the player had on typing i don't have any idea to make these two things work can anyone please help i am new to construct 2

I am sorry if i am not much descriptive and thank you in advance
B
22
S
6
G
1
Posts: 23
Reputation: 1,873

Post » Sat Oct 28, 2017 2:47 pm

Hey @maddy467!

1. I would suggest you use the "time" expression (check https://www.scirra.com/manual/126/system-expressions) instead of creating your own time counter. Also, there's a nice tutorial on displaying elapsed time, you should check it (https://www.scirra.com/tutorials/1374/h ... es-seconds).

2. Accuracy is very simple. You create two variables (say, correctKeys and totalKeys). Every time a player hits a key, add 1 to totalKeys and, if the key is correct, also add 1 to correctKeys. When the level finishes, the accuracy (in %) will be correctKeys / totalKeys * 100.

Hope this helps. Cheers!
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
22
S
6
G
3
Posts: 722
Reputation: 4,026

Post » Sun Oct 29, 2017 9:58 pm

brunopalermo wrote:Hey @maddy467!

1. I would suggest you use the "time" expression (check https://www.scirra.com/manual/126/system-expressions) instead of creating your own time counter. Also, there's a nice tutorial on displaying elapsed time, you should check it (https://www.scirra.com/tutorials/1374/h ... es-seconds).

2. Accuracy is very simple. You create two variables (say, correctKeys and totalKeys). Every time a player hits a key, add 1 to totalKeys and, if the key is correct, also add 1 to correctKeys. When the level finishes, the accuracy (in %) will be correctKeys / totalKeys * 100.

Hope this helps. Cheers!



Hey thanks for the reply this helped me
B
22
S
6
G
1
Posts: 23
Reputation: 1,873


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests