User Tools

Site Tools


crpl:docs:settextrotation

<- CRPL reference <- Text Commands

SetTextRotation

Arguments Result Notation
rotation in radians f1 --

Description

Sets the rotation of the text (in radians). Rotation occurs around the anchor point of the text.

Examples

  • Rotate Text

    This updates the text's rotation every frame, giving the appearance that it's spinning continuously.

    # Set the text 
    "SpinningText" SetText
    
    # Make it spin around
    
    GetGameTimeFrames asfloat 100 div SetTextRotation


crpl/docs/settextrotation.txt · Last modified: 2021/02/05 11:45 by Karsten75