Here's another version with full x,y,z. No sin/cos is used. This uses keys.
` this is designed to give a full, mobile, 3rd person view around the main object
` use arrow keys for x/y axis. use shift & control for z axis.
x#=0
y#=0
z#=-10
sync on
hide mouse
position camera 0,x#,y#,z#
autocam off
` un-rem the command if you would like to solidify the objects with regard to the camera
rem automatic camera collision 0,2,0
cls
color backdrop black
make object cube 1,2
make object sphere 2,1
position object 1,0,0,0
position object 2,0,0,30
do
sync
gosub _cameraposition
if escapekey()=1 then end
loop
_cameraposition:
if upkey()=1 then inc y#,0.1 : position camera 0,x#,y#,z# : point camera 0,0,0,0
if downkey()=1 then dec y#,0.1 : position camera 0,x#,y#,z# : point camera 0,0,0,0
if leftkey()=1 then inc x#,0.1 : position camera 0,x#,y#,z# : point camera 0,0,0,0
if rightkey()=1 then dec x#,0.1 : position camera 0,x#,y#,z# : point camera 0,0,0,0
if shiftkey()=1 then inc z#,0.1 : position camera 0,x#,y#,z# : point camera 0,0,0,0
if controlkey()=1 then dec z#,0.1 : position camera 0,x#,y#,z# : point camera 0,0,0,0
return
I have an XP3000+, 1.5gb DDR333, a 6600GT and I'm programming 3k text-based exe's?!