Difference between revisions of "Sprite.rotation"
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
		
		
		
		
		
	
ZachStrout (talk | contribs)  (Created page with "<c>Sprite.rotation</c>: Tint color to apply to the sprite image.  A tint of <c>color.red</c>, for example, will make white pixels in the sprite image appear red; other col...")  | 
				ZachStrout (talk | contribs)   | 
				||
| Line 1: | Line 1: | ||
| − | <c>Sprite.rotation</c>:   | + | <c>Sprite.rotation</c>: Rotation of the sprite, in degrees counter-clockwise.  | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== Example ==  | == Example ==  | ||
| Line 13: | Line 6: | ||
sp.image = file.loadImage("/sys/pics/Wumpus.png")  | sp.image = file.loadImage("/sys/pics/Wumpus.png")  | ||
display(4).sprites.push sp  | display(4).sprites.push sp  | ||
| − | sp.  | + | sp.rotation = 45</ms>  | 
[[Category:Mini Micro]]  | [[Category:Mini Micro]]  | ||
Revision as of 23:07, 12 April 2020
Sprite.rotation: Rotation of the sprite, in degrees counter-clockwise.
Example
sp = new Sprite
sp.image = file.loadImage("/sys/pics/Wumpus.png")
display(4).sprites.push sp
sp.rotation = 45