remove and recycle

How do i get a object back that has been remove once i go back to the scene  it was originally on.

Re-create it.  Once a display object is removed via display.remove() or obj:removeSelf() it is gone.

The thing is, if you’re using the composer scene manager this is not an issue.  If the scene wasn’t destroyed (by composer) on the last exit, all previously ‘hidden’ objects will be re-presented.  If they were destroyued, then the create code is called again.

So, as long as you’re using composer correctly you’re good to go.

Of course, there are added complexities if you’re trying to maintain ‘game state’ over time, but that is beyond the scope of this answer and a discussion of that would have to be had in a very specific context (i.e. your specific usage and goals for state retention.)

Re-create it.  Once a display object is removed via display.remove() or obj:removeSelf() it is gone.

The thing is, if you’re using the composer scene manager this is not an issue.  If the scene wasn’t destroyed (by composer) on the last exit, all previously ‘hidden’ objects will be re-presented.  If they were destroyued, then the create code is called again.

So, as long as you’re using composer correctly you’re good to go.

Of course, there are added complexities if you’re trying to maintain ‘game state’ over time, but that is beyond the scope of this answer and a discussion of that would have to be had in a very specific context (i.e. your specific usage and goals for state retention.)