hello, i just bought DBPro and now im trying out a tutorial from this site monster hunt and im having trouble with my matrix.
I seem to be walking of the matrix every time, but according to the tutorial that should not happen.
Didt i do something wrong? I checked it over and over agan cant find it, normaly its for DB classic but it works pretty good so far.
sync on
sync rate 30
make matrix 1,10000,10000,20,20
load image "c:\images\grass2.bmp",1
prepare matrix texture 1,1,1,1
fill matrix 1,0,1
randomize matrix 1,125
do
set cursor 0,0
print x#
print y#
print z#
cameraangleY# = camera angle y()
if upkey()=1
xtest# = newxvalue(x#,cameraangley#,20)
ztest# = newzvalue(z#,cameraangley#,20)
if xtest#>0 and xtest#<1000 and ztest#>0 and ztest#<1000
move camera 10
endif
endif
if leftkey()=1 then yrotate camera wrapvalue(cameraangley#-5)
if rightkey()=1 then yrotate camera wrapvalue(cameraangley#+5)
x# = camera position x()
z# = camera position z()
y# = get ground height(1,x#,z#)
position camera x#,y#+35,z#
sync
loop
thx