Hi guys,
I have following problem.
I have a 100 sprites in my level.lua file.
They are consuming a lot of memory.
They are declared in sprite.lua like this:
local Sprites = {
{ image_sheet = myImageSoliderSheet, sequence_data = sequenceSoliderData },
{ image_sheet = myImageEnemiesSheet, sequence_data = sequenceEnemiesData },
– etc…
}
Then later called in level.lua like this:
local sprite_info = Sprites[math.random(#Sprites)]
sprite = display.newSprite( sprite_info.image_sheet, sprite_info.sequence_data)
My question:
Is there a way I can declare 10 of them at a time, and destroy previous 10 of them, and so on in a circle?
I do not want to destroy them permanetly, just free memory and call them later on.
Sorry for not highlighting my code (I post this by cellphone) 
Thank you.
Ivan