DeleteAllSprites will delete all sprites from memory
FACTS:
* Also See DeleteSprite, DeleteSpriteRange
Mini Tutorial:
Create 10 sprites and display each srites status before and after deleting them all.
; Create 10 sprites For lp=1 To 10 CreateSprite lp Next ; Display the Status of each sprite For lp=1 To 10 Print "Sprite ("+Str$(lp)+") Status ="+Str$(GetSpriteStatus(lp)) Next ; Delete all the sprites have been created so far. DeleteALLSprites ; Display the Status of each sprite For lp=1 To 10 Print "Sprite ("+Str$(lp)+") Status ="+Str$(GetSpriteStatus(lp)) Next ; Display the Screen and wait for the user to press a key Sync WaitKey |
This example would output. Sprite (1) status= 1 Sprite (2) status= 1 Sprite (3) status= 1 Sprite (4) status= 1 Sprite (5) status= 1 Sprite (6) status= 1 Sprite (7) status= 1 Sprite (8) status= 1 Sprite (9) status= 1 Sprite (10) status= 1 Sprite (1) status= 0 Sprite (2) status= 0 Sprite (3) status= 0 Sprite (4) status= 0 Sprite (5) status= 0 Sprite (6) status= 0 Sprite (7) status= 0 Sprite (8) status= 0 Sprite (9) status= 0 Sprite (10) status= 0 |
|