I'm having a hard time thinking of a way to detect a double key press within X amount of seconds. Can anyone help with my problem?
When the key is pressed once, set a bool or something then set a variable containing the time of the press. If the bool is set, and the current time is x amount of time less than the recorded time, then the key was tapped in the correct amount of time. I'm sure you can modify that concept to suit your needs. Make sure you handle the player pressing the button once then not pressing it again for a certain period of time.
Sorry, you need to Log In to post a reply to this thread.