Animation Frustration
Blitz3D Forums/Blitz3D Programming/Animation Frustration
| ||
I'm trying to load animation from .3ds and .x files by following the Help text, but the meshes are frozen. Is there a trick to getting them to animate? Here is the code: Graphics3D 640,480 SetBuffer BackBuffer() camera=CreateCamera() PositionEntity camera,0,1,0 light=CreateLight() RotateEntity light,90,0,0 Global Hero = LoadAnimMesh("media/Babe-Idle.3DS") LoadAnimSeq(Hero, "media/Babe-Move.3DS") attack = LoadAnimSeq(Hero, "media/Babe-Attack.3DS") PositionEntity Hero,0,0,15 Animate Hero,1,1.0,attack While Not KeyDown(1) UpdateWorld RenderWorld Text 0,10,"Animation " + Animating(Hero) + " Sequence: " + AnimSeq(Hero) Flip Wend The output claims that the character is animating, on sequence 2, but no motion is visible. I know that the animation in the file does function and I have seen it work under Blitz3d, but this simple example fails. Can anyone help? Thanks. |
| ||
don't use attack this way, instead simply say loadanimseq(... without an asignement and then use the sequence INDEX with the Animate command: animate hero,1,1.0,2 or attack=2 animate hero,1,1.0,attack |