Sprite.y

From MiniScript Wiki
Revision as of 23:11, 12 April 2020 by JoeStrout (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sprite.y is the vertical position of the sprite, in Screen coordinates (adjusted by SpriteDisplay.scrollY).

Example

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