Problems with changing an animation
Posted: Thu Mar 13, 2008 11:25 am
The character in the game I'm making changes animation depending on action (run forward, run backward, stop right, stop left, jump right, jump left, shoot right, shoot left), but I have a problem making the jump and shoot animations stop.
When the character is running forward, and I press the space bar (which is the "jump" button), the character changes into the jump animation, but I can't make it change back to the normal running-animation when it hits the ground. So if I, after having pressed the jump button, doesn't release the forward button, the character keeps going forward, but keeps the jump animation...
Sorry if I'm making this a bit confusing...
But what I'd like to do, is make the character change back to the forward (or backward) animation when it hits the ground again. Or when it's about to land, it doesn't really matter...as long as it just keep running normal when it's back on the ground. I tried some animation finish and timers, but none of them worked so I guess that's either not the way I can do it, or I did it wrong.
Any ideas?
When the character is running forward, and I press the space bar (which is the "jump" button), the character changes into the jump animation, but I can't make it change back to the normal running-animation when it hits the ground. So if I, after having pressed the jump button, doesn't release the forward button, the character keeps going forward, but keeps the jump animation...
Sorry if I'm making this a bit confusing...
But what I'd like to do, is make the character change back to the forward (or backward) animation when it hits the ground again. Or when it's about to land, it doesn't really matter...as long as it just keep running normal when it's back on the ground. I tried some animation finish and timers, but none of them worked so I guess that's either not the way I can do it, or I did it wrong.
Any ideas?