Command
camera
camera
Controls background camera pan/zoom for map-style scenes.
Syntax
camera <pan_x> <pan_y> <zoom>;
camera reset;
Notes
pan_x/pan_yare world-space pixel offsets.zoommust be greater than0.- Hotspots are transformed with camera automatically, so clicks stay accurate.
Example
label map:
scene image "city_map.png";
camera 180 -60 1.4;
hotspot debug on;
hotspot add park 150 200 220 180 -> park_scene;