SpriteDisplay.clear

From MiniScript Wiki
Revision as of 21:37, 12 April 2020 by ZachStrout (talk | contribs)
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