how to get full animation with 1 button press?
Posted: Tue Jun 22, 2004 7:55 am
i'm using the following code
EPA_ACTION_JUMP is mapped to spacebarkey
problem is i have to keep it pressed to play the whole animation
want it to get so that when i press the spacebar 1 time
it plays the animation 1 time
anybody got any clues?
Code: Select all
if(KeyStates[EPA_ACTION_JUMP])
{
if(State != EPS_JUMPING)
{
State = EPS_JUMPING;
amNode->setMD2Animation(irr::scene::EMAT_JUMP);
}
}
problem is i have to keep it pressed to play the whole animation
want it to get so that when i press the spacebar 1 time
it plays the animation 1 time
anybody got any clues?