I have an animation sequence that I am changing in a function which is called from onComplete from transition.to. The problem is that if this happens to get called when my animation sequence is in the middle, it seems like it is not finishing out the sequence, but immediately changing to the next sequence and it does not look right.
I would like to finish out the current animation frames (just one iteration) so that it ends at the end of the sequence before starting the next one.
Is there a way to do this?
Currently in the transition.to onComplete function I have this code:
local function stopAnim()
bb_anim:setSequence(“stand”)
bb_anim:play()
end
When it switches to the new “stand” sequence it sometimes looks weird because the prior sequence did not finish. I’m sure there is a very easy way to do this but I wasn’t having any luck.
Thanks!