Hey, why you make your life so hard with this code?
Use Animation blueprint, this is exactly why epic did Animation Blueprint!
Animation blueprint is a state machine animation system which works with different states and you dont need handle blends or anything else between animations, you need only do the logic what and where can blend!!!
From other side, your code is totally wrong… because you looped the animations and play simple anim asset should be not override each others…
If you really wanna handle animation playing from code instead of Animation Blueprint (REALLY REALLY NOT SUGGESTED)
you should play anim montages instead of anim assets…
Hello. I am working at movement animations. I have Bind Axis (which means the function is called in every frame). If Value = 0 then there is no movement, if 1 or -1 then character is moving. But the animations are played non-stop.
I need check what animation is already playing or something like this, but idk how. Now the animations is overlap and this is not working correctly.
Go ahead sir!
Dont be afraid using blueprints as finsl configurable class or animbp for your characters!
Blueprints is great tool to avoid hardcoding and if you use them smart, you never notice any performance difference between blueprint and c++
I mean obviously do not spawn 10000 blueprint actor with tick enabled in your world. If you need 10k ticking actor just use pure c++ classes (or nativize your bp)
But using animbp and exposing variables from your c++ class to bp for easy setup make sense