I'm going to have the game consist of multiple layouts that together make up the game map.
I know how to move from layer to layer, whoever how can i create something like this;
- when i'm in layout 1 and i move to layout 2 i want to be on the left side of layout 2 (because that is the direction i came from)
- now if i move to layout 3 i want to be on the left side of layout 3 again.
- now if i move back to layout 2 i want to be on the right side of the map.
I tried to recreate it with a global variable that remembers which side i existed in last time but i think the code that changes the layout runs and doesn't do any other code..? I also use the same event sheet for every layour if that makes any difference.
So any help?