Difference between revisions of "Sprite.y"
Jump to navigation
Jump to search
ZachStrout (talk | contribs) (Created page with "<c>Sprite.y</c> is the vertical position of the sprite, in Screen coordinates (adjusted by SpriteDisplay.scrollY. == Example == <ms>sp = new Sprite sp.image = file.l...") |
|||
Line 1: | Line 1: | ||
− | <c>Sprite.y</c> is the vertical position of the sprite, in [[Screen coordinates]] | + | <c>[[Sprite]].y</c> is the vertical position of the sprite, in [[Screen coordinates]] |
− | (adjusted by [[SpriteDisplay.scrollY]]. | + | (adjusted by [[SpriteDisplay.scrollY]]). |
== Example == | == Example == |
Latest revision as of 23:11, 12 April 2020
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