Whenever you use the dash attack in the game, instead of playing the animation for the dash attack, sometimes the animation doesn’t play. (dash by double tapping left or right)
please help if you can
Some tips for you bc I had a stroke looking at the code because its unnecessarily complicated
For example instead of this:
And instead of this:
This only works with true/false
What I did is that instead of putting the animation in a variable I put it into the do animation directly!
Try this please, is it resolve your issue?
Just adding one line (line 351)
If it does, the reason of this issue probably is:
I saw you called the same in function animation2() when higlag==true, but according to line 347, the hitlag back to false after about 375ms, so the characterAnimations of P1 enabled again.
BTW, it would be a hard work to set so many kind of action animations in one character, very impressive! Keep on your great work, good luck!
Yes. it works! Thank you for helping me solve this problem.
Ok, thank you for the simplifying tips!