Ive got a couple of characters sharing the same script, they use the same animation tree but with different animations loaded for the movements.
I have tried to add some variation to their actions by adding a random number
var choice = randf_range(0.0, 1.0)
if choice > 0.5:
#anim A
else:
#animB
But animA keeps playing and even loops when other animations should be playing.
What is going on, how can they get stuck in an animation loop?
I must apologize, i am tired and i should have set the blend back to zero. i also have not checked that the animations are finished before changing. I cannot remember how to await for an animation to finish. Now they are flickering between two and they dont finish before the change. Perhaps its because the animation tree has the animations set up in series but they should be selected with a blend 3.