Flying instead of Jumping

I’m not sure what happened but my character flies now instead of jumping I’ve done all I can think of, but cant figure it out. Any ideas would be greatly appreciated.


Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture?

Also check if the gravity is enabled in the Rigidbody2D component. If there is no gravity, the player will continue “jumping” because we give it velocity on the y-axis. The difference between jumping and flying is that the latter fights the gravity.

See also:

I figured it out. Im using a different movement script than the tutorial. The jump height had some how gotten reversed. So instead of being a negative it was switched to positive. Thank you though.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms