I am trying to make an open game world where the player can move through different screens at the top, bottom, left or right of the screen. I am able to do this for the initial world, but I don't know how I would then move to new worlds from the ones I have moved to. For example in the starting world I would move to the top of the screen which would take me to a new world, then if I went to the top of the screen in the new world I would end up in a third new world.
The transitions I currently have a written within the player class, and was wondering if they would be able to be put in the world class so that each world would just have a few lines of code, rather than the player having many lines.
Is this possible to create (The full game I intend to have will have a total of 25 screens)
Cheers

