maybe this example might shed some light
rem -------------------------------------------------
rem
rem lock object to screen
rem
rem indi jan 2001
rem -------------------------------------------------
` setup
sync rate 0
sync on
cls
hide mouse
` temp image
ink rgb(0,0,0),1
box 0,0,32,32
ink rgb(255,255,0),1
box 4,4,28,28
get image 1,0,0,32,32
` setup text
set text font "verdana"
set text size 14
set text opaque
` matrix
make matrix 1,1000,1000,10,10
position matrix 1,0,0,0
make object cube 1,10
texture object 1,1
` initial position in space
position object 1,0,0,0
` initial rotation
rotate object 1,30,60,30
lock object on 1
` now its locked make the z position a positive so its
` not culled by being to close to the camera
position object 1,0,0,50
` camera
position camera 500,350,-500
point camera 500,0,500
` pretend main loop
do
rem textbook mouselook
cx#=wrapvalue(cx#+mousemovey())
cy#=wrapvalue(cy#+mousemovex())
cz#=wrapvalue(cz#+mousemovez())
rotate camera cx#,cy#,cz#
sync
loop
http://www.lunarpixel.com/ is my new site