Difference between revisions of "Sprite.image"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>Sprite.image</c>: Image displayed by the sprite. == Example == <ms>sp = new Sprite sp.image = file.loadImage("/sys/pics/Wumpus.png") display(4).sprites.push sp</ms>...")
 
 
(One intermediate revision by one other user not shown)
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]]
  
 
== Example ==
 
== Example ==

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