; BlendAnim example (an ArcBasic extension) ; Up/Down changes her speed: walk and sprint are mixed to match Graphics3D 640,480 SetBuffer BackBuffer() camera=CreateCamera() PositionEntity camera,0,.8,-2.5 CameraClsColor camera,150,200,240 light=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,0 walk=FindAnimSeq(hero,"walk") sprint=FindAnimSeq(hero,"sprint") Animate hero,1,.5,walk speed#=.5 While 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)" Flip Wend End