How do I move between layouts and remember position?

Just started using Construct 2? Post your questions here

Post » Thu Jan 07, 2016 6:18 pm

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?
Last edited by littanana on Thu Jan 07, 2016 6:30 pm, edited 1 time in total.
B
9
S
2
G
1
Posts: 51
Reputation: 823

Post » Thu Jan 07, 2016 6:21 pm

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Jan 07, 2016 6:41 pm

.. actually i just got it to work and came back to post the .capx lol
Code: Select all
https://drive.google.com/file/d/0Bw7sth_-pQTXZWtIbTN0dWtRRVU/view?usp=sharing


Thanks either way! I'm gonna check that out and see which code is better!
B
9
S
2
G
1
Posts: 51
Reputation: 823


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest