Set Camera To Follow - Parameters:
X - This is the X-coordinate of the object you want to follow. It's typically obtained using Object Position X( ID ) where ID is the object you want to follow.
Y - Like above, but for the Y-coordinate.
Z - Like above, but for the Z-coordinate.
Angle - The Y-angle of the object you want to follow. It's typically obtained using Object Angle Y( ID ) where ID is the object you want to follow.
Distance - This is the distance you want the camera to be from the object you're following. Higher values will put the camera farther back.
Height - This is the height you want the camera to be at when following your object. If you set it to a higher value it'll give you a more "top-down" camera style, and a lower value will put the camera behind the character's back.
Smooth - This is the smoothness of the camera when moving. If you use a low value, the camera will follow right behind the object and sway very little. If you set it higher, the camera will lag behind more. Higher settings are more useful in racing games where the smoothness is desired, whereas lower values are better used in RPGs and TPSs where you want the camera to be right behind the character at all times.
Collision - This is a flag which can be set to make the camera adjust itself so that it never collides with your world. It probably won't be useful to you if you're using Sparky's Collision.
Just put the command somewhere in your main loop where it will be called each loop.