Serious issue, please help

I have a question, using “display.remove(obj)” my object really is removed? or just disappeared(cant view)?

display.remove(object) destroys the object and you can no longer use it after that.

If you want to hide it you can do

object.isVisible = false

or

object.alpha = 0

thank you, that was exactly what I wanted to know

This method removes the object, but does not free up the memory used by the object. This can result in memory leaks. To prevent this, you should always ‘nil’ out the object as well, destroying the reference to it.

-- This method does not check if the object is already nil object:removeSelf() object = nil --OR-- -- This method first checks if the object is already nil. If it isn't, it removes it. display.remove(object) object = nil

display.remove(object) destroys the object and you can no longer use it after that.

If you want to hide it you can do

object.isVisible = false

or

object.alpha = 0

thank you, that was exactly what I wanted to know

This method removes the object, but does not free up the memory used by the object. This can result in memory leaks. To prevent this, you should always ‘nil’ out the object as well, destroying the reference to it.

-- This method does not check if the object is already nil object:removeSelf() object = nil --OR-- -- This method first checks if the object is already nil. If it isn't, it removes it. display.remove(object) object = nil