Writing a camera system is harder than it looks, but a very simple parented camera goes something like this:
Now instead of moving the object *and* the camera, just move the object and the camera will follow, as it's attached to its parent. This isn't a very good camera system, but it should explain what joker means by parenting the camera to the object...
object = CreateCube () cam = CreateCamera (object) ; Make 'object' camera's parent... MoveEntity cam, 0, 1, -10 ; Move camera up and back from cube...
Now instead of moving the object *and* the camera, just move the object and the camera will follow, as it's attached to its parent. This isn't a very good camera system, but it should explain what joker means by parenting the camera to the object...