Join 2 extracted animation sequences

Blitz3D Forums/Blitz3D Programming/Join 2 extracted animation sequences

Jager(Posted 2004) [#1]
ok, I've extract a few animation sequences, as

attack = ExtractAnimSeq( mesh1, 1, 30 )
threaten = ExtractAnimSeq( mesh1, 46, 64 )

And now I want to join them, having my character attack then threaten in the one loop, as

Agressive = attack + threaten ???


Any help?


Big&(Posted 2004) [#2]
You could use the "play anim once" flag and then test to see if the anim is still playing. When its not, start the next anim


Tom(Posted 2004) [#3]
Try extracting the whole sequence again

both = ExtractAnimSeq(mesh1,1,94)

Tom


jhocking(Posted 2004) [#4]
What Tom suggests should work. I can't test this right now so I'm not 100% certain, but I think you can still call just attack or threaten after extracting both as a single sequence.


Jager(Posted 2004) [#5]
..and what about the bit between 31 and 45 which i don't want to animate?


jhocking(Posted 2004) [#6]
Oops, I missed that. Then do what Big says, play one-shot animations and pay attention when one has stopped in order to start another.