I've been trying to make animation of the main character of mine, but some troubles appeared.

I’ve made an animation of standing, running and jumping, written code using bool to attach the animations and everything is fine excepting jumping, i mean, it doesn’t work at all. I do not notice any mistakes in the code or in animator or transition, so I ask you for some help. Could you please be so kind and give a piece of advice? Thank you in advance.


Well, one thing I notice right away is that you have code that says

if (grounded && (some keys pressed)) {
   ...
   if (!grounded) {
       // stuff here that will never happen
   }
}

That inner block of stuff could only execute if grounded is both true and false, which of course is impossible.

So, you should probably begin by rethinking your logic there.

1 Like

Thank you, I gave it up and made another way, but still thnk you :slight_smile:

1 Like