[SOLVED] How To Make Script That Allows Player To Jump?

Hi Brandev,

I was just writing the code to show you that you will have to detect a collision when you are on the ground and stumbled upon the following.

This method is the best for stopping the infinity jump. So what I have done is exactly what is described in the code snippet. Give your ground or solid objects like steps, ramps, etc. a tag of ‘ground’.

image

So in summary when the player has the collision you read the tag and set a flag to indicate if the player is on the ground or not

1 Like