I would like to detect when the spacebar is pressed and released (tap of the spacebar), which would then fire a roll. I am also assigning Sprint on the spacebar so not wanting to use GetButtonUp or GetButtonDown for doing the roll. It would simply be a tap of the spacebar, then the player rolls. What action is necessary to do this?
I have tried GetButton, GetButtonDown, GetButtonUp, Get Key, GetKeyDown and GetKeyUp. The Get Button and Get Key works good for storing the result in a variable. The rest works good for detecting when a button is pressed down, or when the button is released, and alternatively storing in variable if needed.
However, I'm not finding a way to detect when a key is pressed and released immediately. So from the idle, run, or sprint the spacebar is tapped (pressed and immediately released), and the player rolls. Any ideas?