Difference between revisions of "SpriteDisplay.scrollY"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>SpriteDisplay.scrollY</c>: Vertical scroll amount subtracted from the position of all sprites on the display. This is the standard way of making it appear that the world i...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<c>SpriteDisplay.scrollY</c>: Vertical scroll amount subtracted from the position of all
+
<c>[[SpriteDisplay]].scrollY</c>: Vertical scroll amount subtracted from the position of all
 
sprites on the display.  This is the standard way of making it
 
sprites on the display.  This is the standard way of making it
 
appear that the world is scrolling past.
 
appear that the world is scrolling past.
  
See also: [[SpriteDisplay.scrollX]]; [[PixelDisplay.ScrollY]]; [[TileDisplay.ScrollY]]
+
See also: [[SpriteDisplay.scrollX]]; [[PixelDisplay.scrollY]]; [[TileDisplay.scrollY]]
  
 
== Example ==
 
== Example ==

Latest revision as of 17:14, 8 July 2021

SpriteDisplay.scrollY: Vertical scroll amount subtracted from the position of all sprites on the display. This is the standard way of making it appear that the world is scrolling past.

See also: SpriteDisplay.scrollX; PixelDisplay.scrollY; TileDisplay.scrollY

Example

sp = new Sprite
sp.image = file.loadImage("/sys/pics/Wumpus.png")
display(4).sprites.push sp
for i in range(0,500,10)
	display(4).scrollY = -i
	wait 0.2
end for