How can I write a code that will start counting the time when I press the "space key" once, and stop counting the time when I press the "space key" once again, and calculate the distance between the time the space key is pressed. Can you help with this? Thanks a lot.
Re: Calculating keypress times
[Re: gamers]
#487101 01/16/2317:1401/16/2317:14
I would use 'on_space' event to toggle the boolean variable from false to true. And then would have an additional function with a loop in it, where the timer would run if boolean is toggled to true and stop (show results, or whatever) when boolean is set to false. Read manual about 'on_' functions that could be assigned to a specific key.