First off, sorry if this question has already been asked. I’ve searched the docs and this site and can’t find what I’m looking for!
Right now I have a variable that I would like to increase, or decrease, every time a specific key is released I know how to use
Keyboard.isKeyDown()
and all that, but that doesn’t work for what I’m looking for. I need a function that will only increment the variable once every time the key is pressed. Right now, the variable increases constantly while the key is pressed. I need it to only increase by one every time the key is pressed. Is there any function out there that can do this? Or do I just have to make my own(which I can do).
Thanks!