A
A
Akly2020-07-17 09:37:15
C++ / C#
Akly, 2020-07-17 09:37:15

How to set up character jump in Unity?

Tried to make the character move. Left and right it moves normally. He doesn't jump up at all. There are no errors in the script. All tags set up.
5f1146f9aaaa5761693026.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav, 2020-07-17
@Vladlen234

5f116af448309003853243.jpeg

Z
zZaKko, 2020-07-17
@zZaKko

Your OnCollisionEnter2D functions are identical. Look, there are identical function bodies, that is, first one function gives a true value, and then false. And the jump works when true, but the second function gives false.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question