Difference between revisions of "Sprite.x"
Jump to navigation
Jump to search
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...") |
|||
Line 1: | Line 1: | ||
− | <c>Sprite.x</c> | + | <c>[[Sprite]].x</c> is the horizontal position of the sprite, in [[Screen coordinates]] |
(adjusted by [[SpriteDisplay.scrollX]]. | (adjusted by [[SpriteDisplay.scrollX]]. | ||
Revision as of 23:11, 12 April 2020
Sprite.x
is the 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