Set Camera To Follow X, Y, Z, Angle, Distance, Height, Smooth, Collision
Angle = will position the camera around x,y,z (think of a circle).
Distance = how far behind the position (the radius of the circle).
Height = height above ground.
Smooth = applies a form of damping effect when the camera moves, 0 = no smoothing.
Collision = "allows the camera to detect whether it is hitting any of the static collision boxes and if set to one will automatically adjust so as not to enter these collidable areas." - I've never used this effectivly to be honest.
This is one of my little test programs. Feel free to pick it apart.
sync on : sync rate 40
autocam off
make matrix 1,1000,1000,20,20
make object cube 1,50 : position object 1,500,25,500
distance# = 200
height# = 150
smooth# = 10
do
` object controls
if leftkey() then turn# = curvevalue(-5.0,turn#,10.0)
if rightkey() then turn# = curvevalue(5.0,turn#,10.0)
if upkey() then move# = curvevalue(10.0,move#,10.0)
if downkey() then move# = curvevalue(-5.0,move#,10.0)
move object 1,move#
yrotate object 1,wrapvalue(object angle y(1)+turn#)
turn# = curvevalue(0.0,turn#,20.0)
move# = curvevalue(0.0,move#,10.0)
x# = object position x(1)
y# = object position y(1)
z# = object position z(1)
a# = object angle y(1)
set camera to follow x#,y#,z#,a#,distance#,height#,smooth#,0
point camera x#,y#,z#
sync
loop
Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.