How do I ignore falling animation to play another?
I am trying to make the character play a backflip animation on Overlap, but when the player falls off the edge, is plays the falling animation.
How do i ignore the "is falling" for this?
(ignore my blueprint method, it was only to show the problem...)
Might be abit messy
Hmmm, from the additional info it seems you are working with paper2D (correct me if I'm wrong). I have never worked with Paper2D before, so I am not sure whether this will work. Since you want to ignore the falling bit only when the character is supposed to do a backflip, a potential solution would be something like this (your bool being the backflip one);
That being said, so many branches look kinda risky and hard to edit to boot. Have you considered using an enum for your various animation states? That way, you could reduce all those branches into a single switch statement. Granted, you would be stuck to a single enum value rather than a collection of bools, but considering your current implementation it probably won't have any adverse effects at least. It would save you on a lot of variables and clutter. Anyway, just some food for thought.
Follow this question
Once you sign in you will be able to subscribe for any updates here