Continuety

i have a game with 2 rooms. 1 room has an enemy and some tables in, when you walk into a table it falls over. But when i go into the other room and come back in everything has reset itself. Is there any code to remember where everything and what frame it is on when you switch rooms?