Hi i am having trouble rigging animations together. For example when a user goes right or left the running animation should play, and when the jump button is pushed the jump animation should kick in. etc.
what happens with my animations is that when for example i run and jump, jump doesn't kick in until im on the ground or it doesn't kick in at all depending whether i used add or set animation.
So i guess i am looking for a really simple tutorial using add and set animations. I know there is the spineboy game, but it doesn't even use the add or set animations and I cant really follow the code, but what from what i can understand it seems like i would have to rewrite thousands of lines of code.
if any one of you can write a piece of code on how you change animations would be great! something simple like
walkRight(){
// for index i always use 0 is that good?
// is there anything i should call before this?
// should i use addAnimation instead of setAnimation?
// HEEEEEEELP! lol seriously though i need help i been trying to tackle this problem for a long time now. :bang:
setAnimation((index, nameOfAnimation_right, loop);
}
walkLeft(){
setAnimation((index, nameOfAnimation_left, loop);
}