Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / walking of the matrix

Author
Message
mythos
18
Years of Service
User Offline
Joined: 21st Apr 2006
Location:
Posted: 22nd Apr 2006 00:12
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
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 22nd Apr 2006 17:41


TDK_Man

vampyre
21
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 22nd Apr 2006 18:44 Edited at: 22nd Apr 2006 18:51
I had this problem as well I can get my model to follow the hilly bumps and dips on the matrix but it still drives off the matrix

Login to post a reply

Server time is: 2024-09-24 21:40:34
Your offset time is: 2024-09-24 21:40:34