rotateSprite(layer,id,angle) , method of scene

Rotate a sprite on this layer of the world.

name type description
layer int layer of the world (must be >= 0)
id int identifier of the sprite (must be >= 0)
angle num degrees of the new rotation.
// rotate Sprite 1 on layer 0 to 45 degrees

See all methods of the api.