GroundCheck Help

Use code tags when posting code: Using code tags properly

The issue is that you never use the “isTouchingGround” bool variable.

You set the value of “isTouchingGround” in Update(), but you don’t actually do anything with it; you need to disable jump somehow when it’s set to false.

An easy way to spot these kinds of issues if you’re using something like Visual Studio is to look at the variable name:

8594728--1152556--Capture.JPG

White means it’s being used, and gray means it isn’t.