- Joined
- Jul 13, 2015
- Messages
- 46
- Reaction score
- 9
- First Language
- English
- Primarily Uses
Currently I have it set up for a common event to happen whenever a key/button is pressed. The only problem is that it is spammable. Initially I had set up a variable so that each time it was pressed it would add +5 to the variable (time) and every 5 seconds it would -1 to the variable the button could only be pressed if the variable was = 0. The variable "timer" was put in an if else so that if it was at 0 it would stop ticking down with -1.
It sort of looks like this:
If button is pressed down
If variable Timer = 0
common event
else
variable Timer -1
My question is: Is there an easier way to go about this? Without variables?
It sort of looks like this:
If button is pressed down
If variable Timer = 0
common event
else
variable Timer -1
My question is: Is there an easier way to go about this? Without variables?

