Hello
I've been trying to read guides about it but I didnt understand how it works!
I want to do this thing:
The goal of my game is that the user need to click as many times as he can on the "space" key, before running out of time.
When the user clicks starts, the countdown starts from 5 seconds.
Each space click, the variable "score" increases by 1.
I have a variable name : "countdown" that decreases by 1 each second.
After it reached 0, I want to make that it will no more increase the score.
In other "words:"
if ($countdown > 0) { Spacebar increases the score! }
else { Spacebar doesnt! }