Animation Probs

Blitz3D Forums/Blitz3D Beginners Area/Animation Probs

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,
i have an animated Raptor loaded with "LoadAnimMesh" and
added AnimSequences with "LoadAnimSeq".
First i animate the Raptor with this:
Animate raptor,1,0.4,2,1.
Now i shoot at the Raptor and countdown a raptorhealth variable(from 100).
If the Variable=0 the Raptor should play another AnimSequence. But after the Raptorhealth Variable reaches 0
the first Anim stops and if i shoot one more time (raptorhealth=-10) the next animseq is playing. Why this?

If raptorhealth=0 ;Animation Stops - if raptorhealth is -10
;the next animation plays
Animate raptor,3,0.4,3,0
;EntityAlpha raptor,0.5
;HideEntity raptor
;PlaySound(raptordie)
ChannelVolume raptorchannel,0
EndIf

Thank you