User Tools

Site Tools


crpl:docs:setcameraposition

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Screen Commands

SetCameraPosition

ArgumentsResultNotation
map pixel coordinates i1 i2 –

Description

Recenters the view at coordinates of the mapmaker's choosing. If you indicate a position out of range for normal scrolling, the position will be adjusted to the nearest in range position.

Examples

:destroyed
  #Centers the screen on this core when it is destroyed.
  CurrentCoords CellToPixel SetCameraPosition
  "Survival pod was destroyed!" "OK" "" ShowMessageDialog
  PauseGame
crpl/docs/setcameraposition.1547637250.txt.gz · Last modified: 2025/02/14 14:56 (external edit)