SpriteDisplay.clear

From MiniScript Wiki
Revision as of 21:36, 12 April 2020 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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