I want to make a door at the end of the layout that the player go through. I want player to go back and forth between these door and not restart at the beginning of the layout.
See if this helps you:
Develop games in your browser. Powerful, performant & highly capable.
I think you're probably looking for this type of solution: scirra.com/tutorials/747/zo ... a-movement
Unless your layouts are big enough to hog memory, introducing zones into your layout can optimize the space especially if you use sloped tiles in your project.
For changing layouts when player comes into contact with a door, you can look at this tutorial: scirra.com/tutorials/744/pl ... starterkit