Thanks for the advice.
I am using spritesheets for everything. So I am trying to remove the sprite sheets. I do use the following code to remove objects from groups.
for i=paralax1.numChildren,1,-1 do
local child = paralax1[i]
child.parent:remove( child )
child = nil
end
-- and I use this at the end of my unload function to dispose of the spritesheet and collect garbage
spriteSheet:dispose()
local function collect ()
collectgarbage( "collect")
end
timer.performWithDelay(1, collect)
Although, It seems that not everything gets removed, really don’t know why. What tools can I use to help me with performance? and tracking down what is slowing things down.
I am also declaring the variables local at the beginning of each file to make sure they have scope. [import]uid: 8192 topic_id: 4324 reply_id: 13487[/import]