try this see if does what you might be thinking.
Rem Project: movewithmouse
Rem Created: 26/11/2005 20:28:28
Rem ***** Main Source File *****
objectnumber=1000
gosub makehiddenobject
make object cube 1, 10
make object sphere 2,10
make object plain 3,100,100
rotate object 3,-90,0,0
make object cube 4,10
position object 2,0,10,0
position object 3,0,-6,0
position object 4,50,0,50
do
gosub moveview
loop
moveview:
if spacekey()=1 then camy#=0:camx#=0
CAMY#=CAMY#+MOUSEMOVEX()*.1
CAMX#=CAMX#+MOUSEMOVEY()*.1
`Position the camera at the dummy object's limb
POSITION CAMERA LIMB POSITION X(objectnumber,1),LIMB POSITION Y(objectnumber,1),LIMB POSITION Z(objectnumber,1)
`Point the camera at the object to be looked at
POINT CAMERA OBJECT POSITION X(objectnumber),OBJECT POSITION Y(objectnumber),OBJECT POSITION Z(objectnumber)
YROTATE OBJECT objectnumber,CAMY#
XROTATE OBJECT objectnumber,CAMX#
return
makehiddenobject:
MAKE OBJECT TRIANGLE objectnumber,0,0,0,0,0,0,0,0,0
`Make a mesh from the object
MAKE MESH FROM OBJECT 217,objectnumber
`Add a limb onto the object using the mesh we just made
ADD LIMB objectnumber,1,217:objectnumber,1,217
`Offset the limb 180 units away
OFFSET LIMB objectnumber,1,0,0,-180
`Hide the limb for lag reduction
HIDE LIMB objectnumber,1
`Hide the dummy object for lag reduction
HIDE OBJECT objectnumber
position object objectnumber,0,0,0
return
and as a function
Rem Project: movewithmouse
Rem Created: 26/11/2005 20:28:28
Rem ***** Main Source File *****
global objectnumber camy# camx#
objectnumber=1000
gosub makehiddenobject
make object cube 1, 10
make object sphere 2,10
make object plain 3,100,100
rotate object 3,-90,0,0
make object cube 4,10
position object 2,0,10,0
position object 3,0,-6,0
position object 4,50,0,50
do
moveview()
loop
function moveview()
if spacekey()=1 then camy#=0:camx#=0
CAMY#=CAMY#+MOUSEMOVEX()*.1
CAMX#=CAMX#+MOUSEMOVEY()*.1
`Position the camera at the dummy object's limb
POSITION CAMERA LIMB POSITION X(objectnumber,1),LIMB POSITION Y(objectnumber,1),LIMB POSITION Z(objectnumber,1)
`Point the camera at the object to be looked at
POINT CAMERA OBJECT POSITION X(objectnumber),OBJECT POSITION Y(objectnumber),OBJECT POSITION Z(objectnumber)
YROTATE OBJECT objectnumber,CAMY#
XROTATE OBJECT objectnumber,CAMX#
endfunction
makehiddenobject:
MAKE OBJECT TRIANGLE objectnumber,0,0,0,0,0,0,0,0,0:`261
`Make a mesh from the object
MAKE MESH FROM OBJECT 217,objectnumber:
`Add a limb onto the object using the mesh we just made
ADD LIMB objectnumber,1,217
`Offset the limb 700 units away
OFFSET LIMB objectnumber,1,0,0,-180:
`Hide the limb for lag reduction
HIDE LIMB objectnumber,1:
`Hide the dummy object for lag reduction
HIDE OBJECT objectnumber:
position object objectnumber,0,0,0
return
I'm not getting you down am I, Ho Look! another fancy Door?