Animation fuss

Blitz3D Forums/Blitz3D Programming/Animation fuss

Tyler(Posted 2003) [#1]
Most games have multiple animations for one character, and mine is no different. He walks, runs, and idles. The problem is, I want to set the idle as the default (if nothing else is happening) and use the others appropriately, but it seems that I'm having trouble figuring a solution to spamming the animate command ... which sets the animation back to frame 0 hundreds of times per second at best. Anyone got a one-shot statement that can switch up animation sequences in this way easily? Thanks all.


(tu) sinu(Posted 2003) [#2]
if not animating(entity)
animate entity,1,1,walk,1
endif

i think that's right, simplest way i can think of, i don't use it myself.


Tyler(Posted 2003) [#3]
Would that still work even if my idle animation's looping from the start?


(tu) sinu(Posted 2003) [#4]
you mean if you set your model of to animate as idel from the beginning when you create it? yes if that's what you mean even though you wouldn't need to.