Spine animation problem

J

Jacob

Guest
So i currently have this character which is using his running animation on track 0
skeleton_animation_set_ext("run",0);
Then when i press on the mouse button he will do a melee attack(While he is still running)
skeleton_animation_set_ext("melee",1);

The problem is that the melee animation, does not always start at the beginning. So it lags 90% of the time and it looks very buggy. I've fixed the issue on other objects by setting the image_index to 0 when the animation first starts. But when i do it on this character the running animation restarts aswell, so instead the legs lag when you attack. Anybody know how i should fix this? Maybe just restart the animation for 1 track somehow?

Thanks in advance.
 
Top