User Tools

Site Tools


crpl:docs:setscreenpixelcoordy

<- CRPL reference <- Screen Commands

SetScreenPixelCoordY

ArgumentsResultNotation
screen pixel Y coord y1 –

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 (ScreenWidth,ScreenHeight) is the upper right corner, but just modifies the y coordinate. See SetScreenMode for details. Related to SetScreenPixelCoords.

Examples

  #Puts the score, writ large, just above the control panel.
  "SCORE: " GetScore concat SetText

:awake
  #Stick the core to the screen
  TRUE SetScreenMode
  #Goto just above the control panel
  ScreenWidth 2 div SetScreenPixelCoordX
  100 SetScreenPixelCoordY
  #Choose how the text looks
  2 SetTextSize
  "LowerCenter" SetTextAnchor
crpl/docs/setscreenpixelcoordy.txt · Last modified: 2021/02/05 11:45 by Karsten75