• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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