stopping FlyStraightAnimator
Posted: Tue Jul 11, 2006 3:32 pm
Hi everybody i've a question in my game i want to stop the FlyStraightAnimator when my class's health is less than 0.
I tried many things but it didn't respond.How can i stop it when my health is less than 0??
That's my code but it didn't work:
Note:"pos" is node's position;
Thanks in advance!
I tried many things but it didn't respond.How can i stop it when my health is less than 0??
That's my code but it didn't work:
Code: Select all
if (health<0)
{
anim = smgr->createFlyStraightAnimator(pos,core::vector3df(16000,350,18000), 0, false);
}
anim = smgr->createFlyStraightAnimator(pos,core::vector3df(16000,350,18000), 10000, false);
node->addAnimator(animaml);
anim->drop();
Thanks in advance!