Sprite.x

From MiniScript Wiki
Revision as of 21:45, 12 April 2020 by ZachStrout (talk | contribs) (Created page with "<c>Sprite.x</c> Horizontal position of the sprite, in Screen coordinates (adjusted by SpriteDisplay.scrollX. == Example == <ms>sp = new Sprite sp.image = file.loadIm...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sprite.x Horizontal position of the sprite, in Screen coordinates (adjusted by SpriteDisplay.scrollX.

Example

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