ArcBasicDocs

samples/mak/anim/makbot

MAK-sfx.abs

52 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.

Download MAK-sfx.absAll files in this folder

MAK-sfx.abs
; you will notice the animation gradually; drives itsself out of sync. this is because; the start and end frames are not identical.;; looks like he's swimming after a whileGraphics3D 640,480,16,2camera=CreateCamera()PositionEntity camera,0,25,-60light=CreateLight()AmbientLight 128,128,128;load flareflare=LoadSprite("flare.bmp",1)ScaleSprite flare,5,5HideEntity flare;load robotTextureFilter "shine",65mak=LoadAnimMesh( "mak_running.x" )EntityShininess mak,0.5;attach flares to bits. needs adjustment.eyepos=FindChild(mak,"eye")flareposa=FindChild(mak,"thrustA")flareposb=FindChild(mak,"thrustB")eyeflare=CopyEntity(flare,eyepos)MoveEntity eyeflare,0,0,-1.5flarea=CopyEntity(flare,flareposa)MoveEntity flarea,0,-2,0flareb=CopyEntity(flare,flareposb)MoveEntity flareb,0,-2,0AnimateEntity mak,1,.25While Not KeyHit(1)	If KeyDown(203) TurnEntity mak,0,-3,0	If KeyDown(205) TurnEntity mak,0,+3,0	UpdateWorld	RenderWorld	FlipWendEnd