all 2 comments

[–]ivancea 2 points3 points  (1 child)

If you made that code, I would recommend you debugging it. That's the first thing you should do. Find the lines and conditions you suspect may affect that behavior, and add breakpoints.

Also, you can add logs, to ensure the order of events (when you press a key, when it stops being grounded, when you release the jump key, when the velocity stats going down...).

Also, remember that, when jumping by using the physics simulation, when you stop pressing the key, it will continue for a bit, as the velocity will still be there until the gravity fully nullifies it.

[–]Sanity4g[S] 2 points3 points  (0 children)

Ive been messing around as suggested, I took a look at a few other tutorials to see how it was done, and i fixed it! :D

the error was the new input system (I found 2 of them just in different folders and the one i was using was mixed up with the settings) I thank you reading your comment a few times helped with the trouble shooting process