you need the Point Object command, this example should show you
sync on : sync rate 60
autocam off : position camera 200,40,200
make matrix 1,1000,1000,20,20
make object plain 1,50,50 : color object 1,rgb(255,0,0)
position object 1,500,50,500
repeat
if leftkey() then turn camera left 1
if rightkey() then turn camera right 1
if upkey() then move camera 2
if downkey() then move camera -2
if inkey$()="q" then position camera camera position x(),camera position y()+1,camera position z()
if inkey$()="a" then position camera camera position x(),camera position y()-1,camera position z()
point object 1,camera position x(),camera position y(),camera position z()
sync
until spacekey()
end
"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)