Hi
I was just wandering if you could please help me with a third person shoot/beat em up game.
I was just wandering if you could please help me with a third person shoot/beat em up game.
Graphics3D 800,600 SetBuffer BackBuffer() camera=CreateCamera() EntityType camera,1 CameraRange camera,0.1,100 light=CreateLight() TurnEntity light,45,30,0 wall1=CreateCube() ScaleEntity wall1,15,3,1 PositionEntity wall1,0,0,-15 EntityType wall1,2 EntityColor wall1,50,50,200 wall2=CreateCube() ScaleEntity wall2,15,3,1 PositionEntity wall2,0,0,15 EntityType wall2,2 EntityColor wall2,50,50,200 wall3=CreateCube() ScaleEntity wall3,1,3,15 PositionEntity wall3,15,0,0 EntityType wall3,2 EntityColor wall3,50,50,200 wall4=CreateCube() ScaleEntity wall4,1,3,15 PositionEntity wall4,-15,0,0 EntityType wall4,2 EntityColor wall4,50,50,200 Collisions 1,2,2,3 campivot=CreatePivot() player=CreateCone() EntityParent campivot,player PositionEntity campivot,0,0,-7 EntityType player,1 While Not KeyHit(1) If KeyDown(200) Then MoveEntity player,0,0,0.1 If KeyDown(208) Then MoveEntity player,0,0,-0.1 If KeyDown(203) Then TurnEntity player,0,1,0 If KeyDown(205) Then TurnEntity player,0,-1,0 Gosub updatecamera UpdateWorld RenderWorld Flip Wend End .updatecamera PointEntity camera,campivot MoveEntity camera,0,0,EntityDistance(camera,campivot)/10 PointEntity camera,player Return