User Tools

Site Tools


crpl:docs:setscreencoordx

<- CRPL reference <- Screen Commands

SetScreenCoordX

ArgumentsResultNotation
screen X coord x1 –

Description

Only makes sense if SetScreenMode has been set. Otherwise has no effect. Positions this core on the screen, where (0,0) is the lower left corner and (1,1) is the upper right corner, but just modifies the x coordinate. See SetScreenMode for details. Related to SetScreenCoords.

Examples

  #Puts the score, writ large, in the upper left corner of the screen, just behind the visibility button.
  "SCORE: " GetScore concat SetText

:awake
  #Stick the core to the screen
  TRUE SetScreenMode
  #Goto the upper left corner
  0 1 SetScreenCoords
  #Choose how the text looks
  2 SetTextSize
  "UpperLeft" SetTextAnchor
crpl/docs/setscreencoordx.txt · Last modified: 2021/02/05 11:45 by Karsten75