Hi there, I need some help with my roll dodge animation that plays through a Montage Play on the character BP and I set up a timer so animation will not get spammed, anyway I just want my character not Roll dodge while the character is jumping.
what that timer actually does?, and btw you could just add delay after montage play, before roll dodge boolean gets disabled, so you could not spam it anyway.
Well if you want character to stop roll dodge when you press jumping, you should make a little func with check (if roll dodge bool is true, then stop montage from anim instance reference, and set roll dodge to false directly, call it when you press jump) if you want to be not able to jump while roll dodging, you should just add boolean check if roll dodge is false before jump happens.
here is a better way to handle dodge event, if you are not dodging it will start dodge anim, and will disable it by delay so you can dodge later again, delay is going by montage duration(multiplied by 0.8) so it means like after 80% of animation it will go to false so you can dodge again.