Hey guys,
just a quick question on disposing imageSheets on scene exit using storyboard.
When I load my scene I require the spriteSheet data, forward reference the spriteSheet and call graphics for the imageSheet in my create:scene(event).
That works fine.
Then in my exitScene(event) I dispose of it but when I call display.remove(spriteSheet) or spriteSheet:removeSelf() I get an error;
attempt to index upvalue ‘spriteSheet’ (a userdata value)…
if I just do
spriteSheet = nil
then it doesn’t trow an error, Is it enough to just nil out the reference for it to be removed from texture memory when I exit scenes?