I can jump infinitely

Updated on March 14, 2020 in [A] 2D
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on March 14, 2020

So, I watched Brackey’s “2D Movement In Unity (Tutorial)” and i did everything right, but my player keeps infinite jumping. I changed the code a bit with the help of a person in unity forums, but i still jump infinitely.

The changed code :

  if (Input.GetButtonDown("Jump") && jump !=true)
  • Liked by
Reply
0 on March 14, 2020

Please provide the whole code. It is perhaps a wrong boolean or order, but as long as I see not the whole code, I can’t tell for sure.

 

  • Liked by
Reply
Cancel