<- 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