I’m currently working on an aerial dodge mechanic inspired by Kingdom Hearts 2’s. If the left stick isn’t moved, the dodge sends you vertically, but when you move the left stick it will launch the player in that direction. How do I detect whether or not the left stick axis is being pressed so I can set up an if statement when the character hits the dodge button?
Here’s what the dodge looks like in KH2 in case my explanation wasn’t clear:
Determined different actions when “Dodge” input is down.
Do you want to account for character’s accumulated speed or just by current input? Do your function(s) with these variables.
The concept is to make 2 inputs with the same button and different modifier. It is easier to detect stationary. Directional input you will need to convert input values according to your player control setup.