Difference between revisions of "Sprite.image"

From MiniScript Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
<c>Sprite.image</c>: [[Image]] displayed by the sprite.
+
<c>[[Sprite]].image</c> is the [[Image]] displayed by the sprite.
  
 
See also: [[file.loadImage]]
 
See also: [[file.loadImage]]

Latest revision as of 23:11, 12 April 2020

Sprite.image is the Image displayed by the sprite.

See also: file.loadImage

Example

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