GenGetSpriteDirectionAngle()


angle = GenGetSpriteDirectionAngle(sprite)

Returns the angle in which the sprite is currently traveling or facing. The angle is in degrees.


The diagram below shows sprite angle and orientation. Sprites rotate in a clockwise direction. The rotation angle shown below is also the direction angle.


Game Engine Overview







Become a Patron