I am making a level for a game but strangely I can't move forward or backward. Please help.
sync rate 30
autocam off
rem trees
for x=1 to 120
make object cone x,100
color object x,RGB(0,128,0)
set object collision to boxes x
position object x,rnd(2000),50,rnd(2000)
inc x
next x
rem matrix
make matrix 1,2000,2000,50,50
load image "GRASS.bmp",1
prepare matrix texture 1,1,1,1
fill matrix 1,0,1
rem player
make object sphere 121,50
set object collision to spheres 121
X#=750:Z#=1000
position object 121,X#,30,Z#
rem Make Gun
Make object cylinder 122,2
XRotate Object 122,90
Fix object pivot 122
Scale object 122,100,100,600
Lock object on 122
Rem Make bullet
Make Object Sphere 123,2
Hide Object 123
do
rem gun position
position object 122,X#,30,Z#
aY# = Object angle Y(121)
rem controls
If Upkey()=1 then Move object 121,10
If Leftkey()=1 then Yrotate object 121,Wrapvalue(aY#-5)
If Rightkey()=1 then Yrotate object 121,Wrapvalue(aY#+5)
If downkey()=1 then Move object 121,-8
if Mouseclick()=1 and BulletLife=0
Position object 123,X#,Y#+43,Z#
Set object to object orientation 123,121
BulletLife =40
Show object 123
Endif
If BulletLife > 0
Dec BulletLife
Move object 123,20
If BulletLife = 0 then Hide object 123
Endif
if object collision(121,0)>0 then position object 121,X#,30,Z#
X#=Object position x(121)
Z#=Object position z(121)
cZ#=Newzvalue(Z#,aY#-180,100)
cX#=Newxvalue(X#,aY#-180,100)
Position Camera cX#,100,cZ#
Point camera X#,50,Z#
sync
loop
Mysteries Surround You