Problems Moving Player Between Layouts

Get help using Construct 2

Post » Sat Aug 31, 2013 4:52 pm

I'm new to Construct 2, and I have some questions about moving your player between layouts.

In Layout 1, when my player walks through the yellow door, he goes to Layout 2.

When he walks through the door again, he doesn't appear back in Layout 1 in front of the door. (He's on the screen in Layout 1 again because I used "On start of layout" to set his position initially.) How do I fix this?

If you then immediately try to walk through the door again, this time he doesn't appear in Layout 2. What's causing that?

Thank you so much for your help!

https://www.dropbox.com/s/qnz8vm8jc65d12l/LayoutMovementTest.capx
B
7
S
2
Posts: 34
Reputation: 670

Post » Sat Aug 31, 2013 5:13 pm

I updated it for you : here

Please note if you set the location so that it's touching the door it will cause a loop with the collision. You will need to set teleport locations as I have done so they don't touch the doors OR another possible solution is to have a key press for going through doors.
B
47
S
17
G
81
Posts: 2,223
Reputation: 48,093

Post » Sat Aug 31, 2013 5:28 pm

Thank you, Plinkie, but I was not able to open your file. When I tried to open it, a message window says the project was saved in release 142 or newer, and I have 139.
B
7
S
2
Posts: 34
Reputation: 670

Post » Sat Aug 31, 2013 5:39 pm

You can download the beta from here or just wait until the next stable release.
B
47
S
17
G
81
Posts: 2,223
Reputation: 48,093

Post » Sun Sep 01, 2013 12:35 am

Thank you again, Plinkie. I was able to download the beta and run your file successfully. I was then able to use your example in my game, and it works great. Thank you so much!
B
7
S
2
Posts: 34
Reputation: 670

Post » Sun Sep 08, 2013 3:30 am

I have another question. How would I modify the Capx file if there is more than one location to enter/exit from? Thank you.
B
7
S
2
Posts: 34
Reputation: 670


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests