In Director + Lime, I think is very important (to free the textureMemory) to destroy the tilesets of the map before changing the scene. I’m afraid that map:destroy() doesn’t do it properly.
I’ve tried…:
[lua]function clean (event)
local tileset = map:getTileset(“bars”)-- name of my tileset
tileset:destroy()
map:destroy()
end[/lua]
and the terminal says:
“attempt to call method ‘getTileset’ (a nil value)”
Could somebody help me? I would appreciate it very much! [import]uid: 12618 topic_id: 9542 reply_id: 309542[/import]