User Tools

Site Tools


crpl:docs:settextx

<- CRPL reference <- Text Commands

SetTextX

ArgumentsResultNotation
X Coordinate n1 -

Description

Sets the anchor point on the unit for SetText to attach to. SetTextX adjusts the horizontal location of the text in relation to the unit, with 0 being the default and centered on the unit. Used in conjunction with SetTextY and SetTextAnchor. Positive values move the text to the right.

Examples

# Set text to display offset to the right
"Hello Creeper World" SetText
20 SetTextX

# Warp notation
SetText("Hello Creeper World")
SetTextX(20)
crpl/docs/settextx.txt · Last modified: 2015/03/19 03:59 by warren