DeleteMarkedSprites
Previous Top Next

Removes already deleted sprites from memory.
Syntax: DeleteMarkedSprites
This method removes sprites that were marked for delete using the MarkForDelete property.

Example:
Sub Timer1_Tick
      gw.Tick 'VERY IMPORTANT: causes the GameWindow to advance to the next step.
      tick = tick + 1 'tick is a global variable.
      If tick Mod 50 = 0 Then gw.DeleteMarkedSprites 'Occasionally remove deleted sprites from memory.                                     
End Sub