Luawe the Wayfarer Engine's scripting language All pages

camera

The camera. Its children's numbers are read and set by their ids: camera.vignette.density, camera.blur.amount. The theme's colours are theme.water.r and the like.

camera.x

Where the camera looks, from left to right (its path in the level decides: a script can read it).

camera.y

Where the camera looks, from top to bottom.

camera.zoom

The camera's zoom: 1 as the level has it, 2 twice as close.

camera.roll

How far the camera is turned, in degrees.

camera.water

How fast the water flows: 1 as always, 0 still.

camera:effect

camera:effect(kind, strength?, seconds?)

A hit on the screen that fades out: "pulse", "shake", "blur", "rgb" or "flash".

camera:tween

camera:tween(properties, seconds?, ease?, direction?)

Glides the camera's numbers to new values: camera:tween({zoom = 1.5}, 2).