sorry but not all my codes are showing i'll see if i can sort it:
Sync On
Sync Rate 30
hide mouse
Backdrop on
Set camera range 1,5000
Color Backdrop RGB(0,0,0)
`Color Backdrop RGB(128,128,128)
Rem make matrix
Make matrix 1,10000,10000,20,20
Rem texture matrix
Load image "floor.bmp",1
Prepare matrix texture 1,1,1,1
Fill matrix 1,0,1
rem Make Gun
`Make object cylinder 1,2
load object "h-mp5-static.3ds",1
`XRotate Object 1,90
Fix object pivot 1
Scale object 1,4500,2500,3500
position object 1,0,-10,15
Lock object on 1
Rem Make bullet
Make Object Sphere 2,1
Hide Object 2
rem Crosshair
make object plain 3,21,21
load image "crosshair.bmp",2
texture object 3,2
delete image 1
move object 3,400
ghost object on 3
lock object on 3
rem health
load image "health.bmp",3
make object cylinder 4,100
`XRotate Object 4,90
Fix object pivot 4
`Scale object 4,100,100,500
Scale object 4,10,0,10
`position object 4,0,-7,15
position object 4,-8,-6,10
rotate object 4,90,0,0
texture object 4,3
ghost object on 4
Lock object on 4
rem make walls for level
load image "wall4.bmp",4
load image "ceil2.bmp",5
load image "floor.bmp",6
load image "door.bmp",7
make object box 5,25,150,1500
position object 5,-10,75,750
make object box 6,25,150,1300
position object 6,200,75,650
make object box 7,195,10,1500
position object 7,90,150,750
make object box 8,205,150,25
position object 8,95,75,1500
make object box 9,25,50,200
position object 9,195,20,1400
make object box 10,300,5,200
position object 10,320,100,1400
rotate object 10,0,0,25
make object box 11,500,5,200
position object 11,705,165,1400
make object box 12,300,100,5
position object 12,320,150,1300
rotate object 12,0,0,25
make object box 13,300,100,5
position object 13,320,150,1500
rotate object 13,0,0,25
make object box 14,290,5,200
position object 14,315,200,1400
rotate object 14,0,0,25
make object box 15,205,150,25
position object 15,95,75,10
make object box 16,500,5,200
position object 16,695,260,1400
make object box 17,520,100,5
position object 17,700,210,1300
make object box 18,520,100,5
position object 18,700,210,1500
make object box 19,120,5,200
position object 19,1010,195,1400
rotate object 19,0,0,25
texture object 5,4
texture object 6,4
texture object 7,5
texture object 8,4
texture object 9,4
texture object 10,6
texture object 11,6
texture object 12,4
texture object 13,4
texture object 14,4
texture object 15,7
texture object 16,4
texture object 17,4
texture object 18,4
rem make first weapon to pick up
load object "h-mp5-static.3ds",20
scale object 20,6500,6500,6500
position object 20,50,10,1400
Rem Main loop
Do
yrotate object 20,wrapvalue(object angle y(20)+2)
set cursor 0,0
oldcAY# = cAY#
oldcAX# = cAX#
oldX#=X#
oldY#=Y#
oldZ#=Z#
cAY# = WrapValue(cAY#+MousemoveX()*0.2)
cAX# = WrapValue(cAX#+MousemoveY()*0.2)
caZ# = Camera angle Z()
Rem Control input for camera
If Upkey()=1
XTest# = Newxvalue(X#,cAY#,15)
ZTest# = Newzvalue(Z#,cAY#,15)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
X#=XTest#
Z#=ZTest#
Endif
Endif
If Downkey()=1
XTest# = Newxvalue(X#,Wrapvalue(cAY#-180),15)
ZTest# = Newzvalue(Z#,Wrapvalue(cAY#-180),15)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
X#=XTest#
Z#=ZTest#
Endif
Endif
If Leftkey()=1
XTest# = Newxvalue(X#,Wrapvalue(cAY#-90),5)
ZTest# = Newzvalue(Z#,Wrapvalue(cAY#-90),5)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
X#=XTest#
Z#=ZTest#
Endif
Endif
If Rightkey()=1
XTest# = Newxvalue(X#,Wrapvalue(cAY#+90),5)
ZTest# = Newzvalue(Z#,Wrapvalue(cAY#+90),5)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
X#=XTest#
Z#=ZTest#
Endif
Endif
if Mouseclick()=1 and BulletLife=0
Position object 2,X#+25,Y#-7,Z#+25
Set object to camera orientation 2
BulletLife =25
show object 2
Endif
If BulletLife > 0
Dec BulletLife
Move object 2,20
if BulletLife = 0 then Hide object 2
Endif
Rem Rotate camera
cTestX#=WrapValue(cAX#-180)
if cTestX# > 225 then cAX#=45
if cTestX# < 135 then cAX#=315
YRotate camera CurveAngle(cAY#,oldcAY#,24)
XRotate camera CurveAngle(cAX#,oldcAX#,24)
Rem Position Camera
Y# = Get ground height(1,X#,Z#)+35
Position Camera x#+25,Y#,z#+25
Rem Refresh Screen
Sync
Loop