RotateSprite()

Syntax

RotateSprite(#Sprite, Angle.f, Mode)
Description
Rotates the specified #Sprite to the given 'Angle'.

Parameters

#Sprite The sprite to rotate.
Angle.f Angle value, in degree (from 0 to 360). The rotation is performed clockwise.
Mode It can be one the following values:
  #PB_Absolute: the angle is set to the new angle.
  #PB_Relative: the angle is added to the previous angle value.

Return value

None.

Supported OS

All

<- LoadSprite() - Sprite Index - SaveSprite() ->