I would like help to create a mechanism in my game.
I have a clock hand in the center of the screen that rotates clockwise. Every 5 seconds his rotation jumps and returns to normal.
What I want to do is:
- when the player presses the space bar while the rotation is normal, he loses 1 point.
- when the player presses the space bar the moment the rotation speeds up, he gains 1 point.
- Measure the reaction time when the bar is pressed.
Any help is very welcome !!