Hi
Try using the
NEWXVALUE command and related commands. For example:
`Make sphere
make object sphere 1,50
REM MAIN PROGRAM LOOP
sync on : do
`Control rotation
if leftkey()=1 then yrotate object 1,wrapvalue(object angle y(1)-3.0)
if rightkey()=1 then yrotate object 1,wrapvalue(object angle y(1)+3.0)
`Control movement
if upkey()=1 then move object 1,10
`Calculate camera position based on 150 units BEHIND player
x#=newxvalue(object position x(1),object angle y(1)+180,150.0)
z#=newzvalue(object position z(1),object angle y(1)+180,150.0)
`Point camera at object and position it
point camera object position x(1),0,object position z(1)
position camera x#,50,z#
sync : loop
You should also check out the DBC tutorials on
NEWXVALUE and related commands
Hope this helps
HelloWorld Tommorrow