camera_2d

2D: the view of a 2D scene, orthographic over X/Y. Smooth and sub-pixel by default (any resolution); pixel_perfect draws at a fixed virtual resolution scaled up by whole numbers. Follows an object with a deadzone and look-ahead, kept inside bounds.

In scene text

camera_2d { view_height 1  follow "…"  deadzone (0, 1, 0) }

Add it in the Inspector (Add Component), in scene text as above, or ask your AI. Fields you leave out keep their defaults.

Fields 19

FieldTypeUnit / rangeWhat it does
view_heightnumberunits, 1 … 100000World units the screen shows top to bottom (the width follows the window).
followtext—The object it follows while playing (its name).
deadzone(x, y, z)unitsThe box around the middle the target moves in before the camera follows (width, height).
look_aheadnumberunits, 0 … 10000How far ahead of a moving target it looks.
smoothingnumbers, 0 … 5Seconds to catch up (0 snaps).
bounds_min(x, y, z)unitsLower-left corner the screen stays inside (with bounds_max; both zero: no limit).
bounds_max(x, y, z)unitsUpper-right corner the screen stays inside.
backgroundcolour (r, g, b)—The colour behind everything.
pixel_perfecttrue / false—Pixel-art mode: draw at virtual_width x virtual_height, scaled up by whole numbers.
virtual_widthnumberpx, 16 … 4096Pixel-art mode: the virtual screen's width.
virtual_heightnumberpx, 16 … 4096Pixel-art mode: the virtual screen's height.
palettetext—Retro palette every pixel snaps to: "" none, "pocket" (4 greens), "dusk" (8), "arcade" (16).
light(x, y, z)—The key light's direction on screen (toward the light; x right, y up): rims, emboss and shading follow it.
exposurenumber0 … 8Grading: brightness multiplier.
contrastnumber0 … 4Grading: contrast (1 as is).
saturationnumber0 … 4Grading: colour strength (1 as is, 0 grey).
vignettenumber0 … 1Grading: darker corners.
shadow_tintcolour (r, g, b)—Grading: multiplies the dark tones (split toning).
highlight_tintcolour (r, g, b)—Grading: multiplies the bright tones.
Arcwright Beta 2 (0.4.0) · generated from the engine source (25e375c86)Something wrong or missing? Tell us
Download Arcwright free