I have a character files that contain 2 separate animations. Here's the code I use (that works) for the first animation:
That works okay, but when I try to add an additional animation it will animate only "temp", not "tempbody"
I've checked the files (load "sneak" first, and then animSeq "death") I see the same problem: only the first loaded "loadAnimMesh" gets animated properly.
The "tempbody" won't animate more sequences.
Is this a blitz3d bug, or is there some certain way how the animations should be added?
Should I try to create separarate files for animations (for both the "temp" and for the "tempbody")?
temp = LoadAnimMesh("assassin_death.b3d") ScaleEntity mesh, 15, 15, 15 tempbody = FindChild(temp, "body") tempsword = FindChild(temp, "Knife") tempholster = FindChild(temp, "Knife_holder") tex = LoadTexture("assassin5.png") EntityTexture tempbody, tex EntityTexture tempsword, tex EntityTexture tempholster, tex Animate temp, 1, .42, 0, 5 Animate tempbody, 1, .42, 0, 5
That works okay, but when I try to add an additional animation it will animate only "temp", not "tempbody"
temp = LoadAnimMesh("assassin_death.b3d") ScaleEntity mesh, 15, 15, 15 tempbody = FindChild(temp, "body") tempsword = FindChild(temp, "Knife") tempholster = FindChild(temp, "Knife_holder") tex = LoadTexture("assassin5.png") EntityTexture tempbody, tex EntityTexture tempsword, tex EntityTexture tempholster, tex LoadAnimSeq(temp, "assassin_sneak.b3d") LoadAnimSeq(tempbody, "assassin_sneak.b3d") Animate temp, 1, .42, 1, 5 Animate tempbody, 1, .42, 1, 5
I've checked the files (load "sneak" first, and then animSeq "death") I see the same problem: only the first loaded "loadAnimMesh" gets animated properly.
The "tempbody" won't animate more sequences.
Is this a blitz3d bug, or is there some certain way how the animations should be added?
Should I try to create separarate files for animations (for both the "temp" and for the "tempbody")?