I loaded a .x mesh and I can find only 'setFrameLoop' function that can set range of animation.
but I do the animation loop forever,
how can I set it do just only 1 time?
How to play animation without looping?
Thanks cartoonit.
Here, the link if anyone want to the same,
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2511
anyway, I really don't want to re-complie the engine.
if anyone could figure out another way of doing this, please tell me.
Here, the link if anyone want to the same,
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2511
anyway, I really don't want to re-complie the engine.
if anyone could figure out another way of doing this, please tell me.
why not just make a new int outside like startframe = -1;
endframe = "whatever frame it stops on " say 100
like niko does with the FPS counter in many examples
increment inside the main loop, and just call the
if(startframe < endframe)
setframeloop(frame)
startframe ++;
then you could reset the start frame with an event from the keyboard?
like onevent(key_forward)
startframe = 0;
inside the main drawing loop?
that would make it where each frame is played once a frame right?
then again, i havent slept... so this might not be readable... yea...
endframe = "whatever frame it stops on " say 100
like niko does with the FPS counter in many examples
increment inside the main loop, and just call the
if(startframe < endframe)
setframeloop(frame)
startframe ++;
then you could reset the start frame with an event from the keyboard?
like onevent(key_forward)
startframe = 0;
inside the main drawing loop?
that would make it where each frame is played once a frame right?
then again, i havent slept... so this might not be readable... yea...