My god man! I have looked at this for 2 days and cant figure out why this doesnt work. If I press 1,2,3,4 it should change the animation to whats noted.
can anyone take a look at this and see if they find anything that would lead to the animations not changing when I press 1,2,3,4 keys?
Thanks for any help.
Graphics3D 1024,768, 32,1 SetBuffer BackBuffer() Global Play1 = LoadAnimMesh("Man_idle.b3d") PositionEntity Play1,0,0,-150 RotateEntity Play1,0,180,0 LoadAnimSeq(Play1,"Man_walk_Forward3.b3d.") LoadAnimSeq(Play1,"Man_Chop.b3d.") LoadAnimSeq(Play1,"Man_Pick.b3d.") LoadAnimSeq(Play1,"Man_Fight_Fists.b3d.") Global Lite = CreateLight() Global Cam = CreateCamera() PositionEntity Cam,0,20,-100 PointEntity Cam,Play1 CameraClsColor Cam,255,255,0 While Not KeyHit(1) If KeyHit(2) Then Animate Play1,1,.5,0 EndIf If KeyHit(3) Then Animate Play1,1,.5,1 EndIf If KeyHit(4) Then Animate Play1,1,.5,2 EndIf If KeyHit(5) Then Animate Play1,1,.5,3 EndIf If KeyHit(6) Then Animate Play1,1,.5,3 EndIf UpdateWorld() RenderWorld() Color 0,0,0 Text 10,10,"Animating: "+Animating(Play1) Text 10,30, "Anim Seq: "+AnimSeq(Play1) Flip Wend ClearWorld() End()
can anyone take a look at this and see if they find anything that would lead to the animations not changing when I press 1,2,3,4 keys?
Thanks for any help.