GenRotateTextTo Text, degrees {, msDuration}


Game Engine Text object to rotate.


The absolute degrees to rotate the Text to. The Text will rotate from the current rotation to the rotation specified by degrees. The text will rotate in the direction closest to degrees.


If this optional parameter is not specified the rotation will be instantaneous. If a duration is specified, in milliseconds, the rotation will take that amount of time to complete.

The text modifier event sub is called on completion of a rotation when msDuration is specified and greater than zero.

The diagram below shows the orientation and the clockwise direction of rotation.


Game Engine Overview

Become a Patron