hi all
just dropping a line to see if anyone can help me this is the code i am working on and when i enter the game the gun will never fire
[i]Rem Project: matrix
Sync On
Sync Rate 30
hide mouse
Rem make matrix
Make matrix 1,50000,50000,50,50
Rem Randomize the matrix
randomize matrix 1,125
position camera 24259.4,74.7542,486.431
Set camera range 1,5000
Fog on
Fog distance 3000
backdrop on
Fog color RGB(128,128,128)
Color Backdrop RGB(60,60,60)
Rem texture matrix
Load image "mars.jpg",1
Prepare matrix texture 1,1,2,2
Rem Main loop
rem Make Gun
Make object cylinder 1,2
XRotate Object 1,90
Fix object pivot 1
Scale object 1,100,100,500
position object 1,0,-7,15
Lock object on 1
Rem Make bullet
Make Object Sphere 2,2
Hide Object 2
Mouseclick()=1
Position object 2,X#,Y#+43,Z#
Set object to camera orientation 2
Show object 2
Do
set cursor 0,0
print X#
print Y#
print Z#
Rem Control input for camera
If Upkey()=1
XTest# = Newxvalue(X#,CameraAngleY#,20)
ZTest# = Newzvalue(Z#,CameraAngleY#,20)
If XTest#>0 and XTest#0 and ZTest#