Page 1 of 1

Jump Animation

PostPosted: Tue Jul 19, 2011 9:06 pm
by Kasmblam
Hey,
I am majorly stuck in a game I'm developing, I've tried looking around these forums for some my answers to my problem but nothing really conclusively answers it.
Ok, here goes...

I'm trying to sort out my main character's movement, and everything was going smoothly. I've got him to run left and right and stop again pretty much perfectly. I've gotten him to jump, and it's all fine until he lands again and carries on moving from a directional jump. When I hold left or right and jump, everything works smoothly until he lands and the jump animation changes back again. I can't seem to be able to write any working code for different animations to be triggered depending on the direction he is moving in (or whether he is stationary).

Any ideas would be greatly appreciated,
Thanks :)

Re: Jump Animation

PostPosted: Tue Jul 19, 2011 10:05 pm
by Kasmblam
Don't worry, sorted it now :)

Re: Jump Animation

PostPosted: Wed Jul 20, 2011 12:07 am
by SuperSonic
I was about to give you the answer Image

Re: Jump Animation

PostPosted: Wed Jul 20, 2011 11:36 am
by Kasmblam
Ah many thanks mate, yeah I eventually looked at a couple of demos that were up on here and saw some people using animindex to sort the same kind of problems, so incorporated that.
But thanks anyway for being about to help :P