Hi peoplez. Please tell me why this code gives weird ground heights.
sync on : sync rate 90
center text 320,240, "Loading Blast Compile..."
sleep 500
load image "doit.bmp", 1
Rem ***** Main Source File *****
dim gravity#(0) : gravity#(0)=0.1
`add gravity value
dim ySpeed#(4)
make matrix 1,5000,5000,100,100
randomize matrix 1,50
prepare matrix texture 1,1,1,1
update matrix 1
Rem Now, load the player.
player=1
`load object "sphere.3ds", player
make object sphere 1, 10
Rem TEXTURE THE STUPID PLAYER WHY WONT THIS WOIK?!
`scale object 1,10,10,10
position object 1,2500,100,2500
do
`auto
set camera to follow playerX,playerY,playerZ,0,30,playerY+15,4,1
color object 1,rgb(red,grn,blu)
oldX=playerX
oldY=playerY
oldZ=playerZ
playerX=object position x(1)
playerY=object position y(1)
playerz=object position z(1)
move object 1, player_speed
if player_speed > 25 then player_speed = player_speed - 1
if upkey()=0 and player_speed > 0 then player_speed = player_speed - 1
if red >253 then player_speed = player_speed - 5 : red = red - 100
rotate object 1,0,yRot,0
print "x:";
print playerX
print "y:";
print playerY
print "z:";
print playerZ
print get ground height(1,playerX,playerZ)
`interactive
if upkey()=1 then player_speed = player_speed + 1 : if red get ground height(1,playerX,playerZ)+5
position object 1,playerX,playerY-1,playerZ
endif
sync
loop
`end
plz help...

-THE FUZZ
