How can I add a "cooldown" for a key press?
beckb
Member Posts: 16
Currently a key press shoots a special kind of missile, but I only want to allow for this once every few seconds. How can that be done?
Comments
Then have a rule if boolean is off; when key is pressed; fire missile (also start timer and toggle boolean on).
I hope that makes sense.
Hi @beckb
Yes, similar to what @SearleSama wrote...
Something like:
Rule: When key is down
Rule: --- nested in above--- When ShotGo is false
Change Attribute ShotGo to true
Spawn missile
Timer: After 2 seconds
Change Attribute ShotGo to false
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps