Try like this.
Good work smallg.
sync on
hide mouse
make object box 1,2,2,2
make matrix 2,100,100,10,10
position matrix 2,-50,0,-50
autocam off
`height of the camera from thr ground-Y axis
position camera 0,85,0
`let the camera looks down
point camera 0,0,0
do
`this bit
if mousemovex()>1 then x=x+1
if mousemovex()<-1 then x=x-1
if mousemovey()>1 then z=z-1
if mousemovey()<-1 then z=z+1
position object 1,x,y,z
`^^^^^^^^^^^
`if you hit the edges of the matrix
if x>50 then x=50
if x<-50 then x=-50
if z>50 then z=50
if z<-50 then z=-50
sync
loop