help/commands/3d_examples
BlendAnim.abs
32 lines of ArcBasic. Words in colour that are commands link to their help page. To run it, download ArcBasic, open the file and press F5.
; BlendAnim example (an ArcBasic extension); Up/Down changes her speed: walk and sprint are mixed to matchGraphics3D 640,480SetBuffer BackBuffer()camera=CreateCamera()PositionEntity camera,0,.8,-2.5CameraClsColor camera,150,200,240light=CreateLight()RotateEntity light,45,30,0; a Kenney character (www.kenney.nl, CC0)hero=LoadAnimMesh("../../../media/kenney/mini-characters/character-female-a.glb")TurnEntity hero,0,150,0walk=FindAnimSeq(hero,"walk")sprint=FindAnimSeq(hero,"sprint")Animate hero,1,.5,walkspeed#=.5While Not KeyDown(1) If KeyDown(200) And speed<1 Then speed=speed+.01 If KeyDown(208) And speed>0 Then speed=speed-.01 ; sprint mixed over walk by speed, in step with it (mode 4) BlendAnim hero,sprint,speed,4 UpdateWorld RenderWorld Text 0,0,"Speed: "+Int(speed*100)+"% (Up/Down)" FlipWendEnd
