Unity 2D Jump Animation C# -


i'm activating trigger parameter cycle jump animation using:

isgrounded 'is player grounded bool', i'm using determine wether or not player allowed jump. i'm using child player object , using physics2d.linecast(myplayer, myplayerground, playermask) so.

i'm triggering jump animation (using trigger parameter transfer jump animation run or idle, 2 other animations i'm using work flawlessly) using spacebar, same way tap in y axis jump velocity.

i can't figure out reliable way reset trigger. tried resetting if isgrounded returned true, i'm assuming i'm getting false positive, trigger in first place if isgrounded returns true? tried triggering animation on running check see if isgrounded returns false, if that's case, jump animation play if fall off ledge, jumping, of course doesn't make sense.

i put couple of conditions, including velocity direction , isgrounded state. reset jump animation, must moving downward, , isgrounded must triggered.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -