Okay so I figured all that out, but when I try to load stuff it doesn't work, here is my code...
Sync On
Sync Rate 60
Hide Mouse
autocam Off
Backdrop On
Set Camera range 1,5000
Color Backdrop RGB(255,238,128)
Rem texture matrix
Load image "C
ocuments and SettingsCompaq_OwnerDesktoptesttestbmp.bmp",1
rem Load object
Load object "C
ocuments and SettingsCompaq_OwnerDesktoptesttestmap.x",2
Loop object 2
Rem Main loop
Do
set cursor 0,0
print X#
print Y#
print Z#
Rem Store Object angle
CameraAngleY# = Camera angle Y()
Rem Control input for camera
If Upkey()=1
XTest# = Newxvalue(X#,CameraAngleY#,20)
ZTest# = Newzvalue(Z#,CameraAngleY#,20)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
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#
Rem Refresh Screen
Sync
Loop