Sprite.rotation

From MiniScript Wiki
Jump to navigation Jump to search

Sprite.rotation is the rotation of the sprite, in degrees counter-clockwise.

See also: Bounds.rotation, /sys/demo/angles

Example

sp = new Sprite
sp.image = file.loadImage("/sys/pics/Wumpus.png")
display(4).sprites.push sp
sp.rotation = 45