User Tools

Site Tools


crpl:docs:settextrotation

This is an old revision of the document!


~~DISCUSSION~~ <- 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.1609947153.txt.gz · Last modified: 2021/01/06 10:32 by nathanaelps