Moving Camera
By Richard Clark
The moving camera is, as the name implies, a camera that moves along a predetermined path. The movement is quite smooth and is perfect for creating those cut scenes found in most games today. The sample wad, movecam.wad illustrates the use of the camera.
The moving camera (9072) takes four parameters:
The moving camera uses a set of Interpolation points (9070) that define a path to follow. They operate similar to the pathnode of a monster patrol route.
Parameter 4 has the low byte, and parameter 5 has the high byte, so the tid is parm4+(parm5*256). This lets you use more than 255 points for all paths. For example, if the next point had a tid of 4 then the low byte is 4 and the high byte is 0.
In addition, there is now a SymbioticPoint (9075) that will activate when any InterpolationPoint with its same TID is used by any of the moving objects (MovingCamera, PathFollwer or ActorMover). The thing special for the SymbioticPoint will be triggered. It will be repeatable, so if you only want it to trigger once, handle that in scripting.
Figure 2 shows a sample layout of interpolation points.
The camera in the example is activated by a switch which in turn calls a script that executes the Thing_Activate and ChangeCamera specials.
The Thing_Activate takes a single parameter, the tid of the thing to activate.
The ChangeCamera special has three parameters:
To stop a moving camera use Thing_Deactivate. Thing_Deactivate takes one parameter, the tid of the thing to deactivate. If the camera is restarted using Thing_Activate, it will automatically start at the beginning of the path. You can use ChangeCamera as often as you like to view the camera.