I'm doing a program where if I go to a door, the background switches. After that, I want all of the objects from the previous background to be removed except for the hero. How do I do this?
Just save the hero, the world it is in and the coordinates within the world it is at in local variables. Then remove all objects, change the background and add the hero back in at the saved coordinates.