I’ve imported an animation from Spine and want the animation to change according to the actions of my player.
I’ll use an if statement for it but I don’t know how to change the state of the animation from within the code…
I’m a real noob so go easy on me…(=
I am assuming you are using a FPS kit because this is a script. So basically, you would make another script and in the update function or another function, you would write:
Since that script is in C# I will provide my answer in C#.
Im having a problem with this... specifically this part: enumNameOfTheAnimationThingy.walk Where exactly are you talking about? This is what I currently have. if (Input.GetKey ("space")) { this.GetComponent<SkeletonAnimation>().animation = Animation.jump;
Great! Thank you so much!
– ViperXIm having a problem with this... specifically this part: enumNameOfTheAnimationThingy.walk Where exactly are you talking about? This is what I currently have. if (Input.GetKey ("space")) { this.GetComponent<SkeletonAnimation>().animation = Animation.jump;
– kyrill91