Answer the question
In order to leave comments, you need to log in
C# Unity2d, I can't write normal character control code, what should I do?
Give me the character control code, maybe someone uses it? To be with the Ground check, here I have a code with a jump, but the problem is that when a character falls on a wall, he can jump endlessly. How to fix???
Answer the question
In order to leave comments, you need to log in
If the problem is only with the jump, then you only need to assign a separate tag to the ground and check the collision only by the tag - then there will be no jumping from the walls and ceiling.
if (collision.gameObject.CompareTag("Your earth tag")) {...}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question