Difference between revisions of "SpriteDisplay.clear"
Jump to navigation
Jump to search
ZachStrout (talk | contribs) (Created page with "<c>SpriteDisplay.clear</c> Clears all sprites from the display (resetting .sprites to an empty list). It also resets SpriteDisplay.scrollX|.scroll...") |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <c>SpriteDisplay.clear</c> | + | <c>[[SpriteDisplay]].clear</c> clears all sprites from the display (resetting [[SpriteDisplay.sprites|.sprites]] |
to an empty list). It also resets [[SpriteDisplay.scrollX|.scrollX]] and | to an empty list). It also resets [[SpriteDisplay.scrollX|.scrollX]] and | ||
[[SpriteDisplay.scrollY|.scrollY]] to zero. | [[SpriteDisplay.scrollY|.scrollY]] to zero. |
Latest revision as of 16:25, 27 April 2020
SpriteDisplay.clear
clears all sprites from the display (resetting .sprites
to an empty list). It also resets .scrollX and
.scrollY to zero.
Example
display(4).mode = displayMode.sprite
disp = display(4)
disp.clear