- Home /
Player Stops Midair When Input Key Released
I have a great movement system setup in my 2d game, and it works just as intended. I am able to control my player in the air, which is something that I want. However, whenever I let go of the A or D keys in midair, the player drops strait to the ground without maintaining velocity. I've been trying to figure out a way for the player to realistically fall on the jump, i.e. maintain their velocity, while ALSO being able to control the player slightly in the air. This has been messing with many mechanics I have in the game, and I can't figure out a way to get it to work properly. Any help would be greatly appreciated. (If this seems confusing, please let me know and I will attach a video of my game).
Are you using a rigidbody controller? If you are, and you are adding force onto the rigidbody, when a key isn't pressed, it should still maintain a velocity rhat slows down gradually (due to air resistance) until stopping.
need to see your code and what you are currently doing.
Your answer
![](https://koobas.hobune.stream/wayback/20220613023127im_/https://answers.unity.com/themes/thub/images/avi.jpg)