;Name of application AppTitle "My First Terrain And First animated Character" ;******************* ;GRAPHICS ;******************* Graphics3D 800,600 SetBuffer BackBuffer() Camera=CreateCamera() PositionEntity camera,30,1,-3,True Light=CreateLight() RotateEntity Light,90,0,0 terrain=CreateTerrain(512) Grass=LoadTexture("texture.jpg") EntityTexture terrain,Grass box=LoadAnimMesh("model\BOX.B3D") ScaleEntity box,.1,.1,.1 TranslateEntity box,30,0,-.51 Animate box player=CreatePivot() EntityParent(box,player) EntityParent(camera,player) While Not KeyHit(88) ;this moves and turn's the box around If KeyDown( 32 )=True Then TurnEntity player,0,-1,0 If KeyDown( 30 )=True Then TurnEntity player,0,1,0 If KeyDown( 31 )=True Then MoveEntity player,0,0,-0.05 If KeyDown( 17 )=True Then MoveEntity player,0,0,0.05 UpdateWorld RenderWorld Flip Wend End
try to figure this out