Not Loop Animation?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Not Loop Animation?

Post by Electron »

I apologize if there's some easy way to do this that I missed, but does anyone know an efficient, simple way to set animation for a modal without looping IAnimatedMeshSceneNode->setFrameLoop doesn't appear to give a way to have an animation played once and I can find no other function to do that. It seems to me that there should be an easy way since probably a large proportion of animations, at least in games, should only play once at a time.
Luke923
Posts: 59
Joined: Wed Nov 05, 2003 5:26 am

Post by Luke923 »

Not that I know of. What I ususally end up doing is after I run an animation for whatever length required, I set it back to EMAT_STAND or whatever idle animation I might have.

But, then again, someone else might have a better solution.
"Object-oriented programming is an exceptionally bad idea which could only have originated in California."
- E.W. Dijkstra
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

yeah, that'll work,but it just seems inefficient to me to have to worry about that timing. I'm surprised the engine doesn't have something to only play animation once.
LordNaikon
Posts: 164
Joined: Wed May 05, 2004 5:34 pm
Location: Germany Berlin
Contact:

Post by LordNaikon »

i am surprised too

it has to be possible to end an animation after 1 loop
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

It does now. I just modified it. Look here http://irrlicht.sourceforge.net/phpBB2/ ... 0480b401e3
Post Reply