Hi,
I am trying to implement animations from Spine into my game.
—What I have tried—
I looked at the example that comes with spine and it works, but it only shows how to use a single animation (or multiple but they have to be queued). I looked at the documentation and it looks like it’s for either an old build or the functions for each language are different (documentation is for java). When I try to use the functions in the interpolation section of the documentation page none of them work.
—My Goal—
My game is a platformed and at the moment I only have two animations: run and idle. I want it so that whenever the character moves in a direction the animation interpolates from the idle animation to the running animation. I already have the code for detecting which direction he is moving, how fast he is going etc. I just need to figure out how to change animations smoothly. I also need to be able to change how fast the animation is because I got pretty close at one point but I couldn’t change the animation speed and that made it look really bad.
I am pretty experienced with Corona so if anyone could link me to an example or give me a snippet of code, that would be awesome! Thanks!