Hi. I am making a game where the player, among other things, can sprint. So, the player can sprint every 3 seconds when the A or D + SHIFT is pressed, for a period of 1.5 seconds. The problem I encounter is that when the player is jumping (is in the air) and the period of 1.5 sec has passed, the player reduces his speed while is in the air and that's not realistic at all.
I want the player to not change his max speed while is in the air only after he touches the ground. How can I do that ?
I added a ss with my event sheet