How can we make a MD2 animation without looping.This type of animation is used by weapon for shoting and by character for is dead.
I want a animation from frame 1 to frame 5. After I want a frame stop at 5th frame.
Now I check in my Main() loop
if(node->getFrameNr()==endFrame )
by its not very effective.
How I can make it ?
MD2 Animation
Well I'm only new to Irrlicht, but this is what I'd do when I start with that; look in the animation controls for a "stop" command. There would have to be one somewhere.
BTW you are right - your code isn't very effective.
It should be >= not ==
Since the animations are time based, it is more than likley that the exact frame you are waiting for will be skipped. In programming class, we are always taught to program safley, which usually involves using >= or <= instead of ==
BTW you are right - your code isn't very effective.
It should be >= not ==
Since the animations are time based, it is more than likley that the exact frame you are waiting for will be skipped. In programming class, we are always taught to program safley, which usually involves using >= or <= instead of ==