Dev - Lua Libraries

Lua Command: s3sprite.setRotation

Parameters

Return Values

void

- no return values

Signature

s3sprite.setRotation(int spriteID, float rotation)

Description

Changes the rotation of the sprite with the given spriteID. rotation is specified as float in degrees (0-360). 0 (no rotation) is the default value of newly created sprites.