Could it be that your ‘Jump Up’ state is not changed yet, when you are already be able to jump again?
CharacterController.prototype.onCollisionStart = function(result){
this.canJump = true;
this.character.anim.setBoolean("isJumping", false);
};
This is my code snippet to allow to the player to jump again.
I’ve tried several things, but I can’t really figure out what causes this delay sometimes.
Is there a good example with a somewhat complex anim state graph at which I can take a look at?
Wow, I just figured it out
I need to let the transitions between the running states get interrupted by next transition
But now I have to accept that the transition between my running animations will look choppy.
Perhaps there is a way to fix this
Probably the same result if you remove the duration time of the transition (instead of using the interruption)?
But I need the transition duration so the character animation looks more natural
What I try to say is using the interruption will probably give the same result as not using a duration time.
I understand this is not a solution. I don’t know at the moment what could be a good alternative.
Alright then, I guess I will have to live with the situation for now
I suggest to use a duration time of 0.2
to get the best result on both.