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

Rotate a sprite on this layer of the world.

Parameters:
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
UB.scene.rotateSprite(0,1,45);

See all methods of the api.