A float is a real number. The dbpro help should be but isn't consistant in how it refers to floats. Sometimes they are floats and other times reals.
This code works fine for me.
sync rate 60 : autocam off
`get an image for the matrix
line 1,0,1,10 : line 3,0,3,10 : line 5,0,5,10 : line 7,0,7,10 : line 9,0,9,10
get image 1,0,0,10,10
xoffset as float
yoffset as float
zoffset as float
xoffset = -25.0
yoffset = 0.0
zoffset = -25.0
`make the matrix
make matrix 1,50,50,10,10
prepare matrix texture 1,1,1,1
randomize matrix 1,7
position matrix 1,xoffset,yoffset,zoffset
update matrix 1
do
if upkey() then move camera 0.5
if downkey() then move camera -0.5
if leftkey() then rotate camera camera angle x(),camera angle y()-1,camera angle z()
if rightkey() then rotate camera camera angle x(),camera angle y()+1,camera angle z()
position camera 0,camera position x(),get ground height(1,camera position x()-xoffset,camera position z()-zoffset)+2,camera position z()
loop
Are you remembering to use UPDATE MATRIX after changing the height data?
Also posting some of your code will help people work out what the problem is.
you ain't the cops