After spending some time watching a few tutorials, and reading through the api docs, I think I understand how to remove a displayed object:
Question, Is it removed from memory too?
local someImageDisplayed = display.newImage("pathToMyImage.png");
function someImageDisplayed:touch(e)
self:removeSelf();
end
Runtime:addEventListener("touch", someImageDisplayed);
So, that works well, and I’m wondering if there’s a way to just hide the image, besides removing it.
The only thing I could imagine was using object:toBack(); And if I wanted to display the image again, I’d move it to the front.
Is there a hide method I’m not seeing? [import]uid: 154122 topic_id: 27316 reply_id: 327316[/import]