HomeIndex

Camera Functions

The camera in a room is centered on the point, actor, or object it is tracking and is bound by the room bounds defined in the .wimpy file.
Each actor can have a camera_offset that offsets the camera focal point from their feet.
cameraFollow(actor[,snap_camera)
The camera starts following an actor
If the actor is not in the current room, nothing will happen.
cameraAt(point|object|actor)
The camera is positioned at a point, object, or actor
If the object or actor is not in the current room, nothing will happen.
cameraZoom(factor)
The zooms the camera around the screen center.
A zoom of 1.0 is normal, Larger number zoom in, small zoom out. A zoom of 2.0 would be twice as close.
Nothing stops the zoom from being too far out and seeing black bars.
Zoom is reset on room transition.
cameraZoomFromTo([type,]time,start,end)
Smoothly zooms the camera from start to end over time seconds.