Screen Exits

Get help using Construct 2

Post » Mon Feb 04, 2013 8:36 am

Hey Constructors :)

I just started with Construct 2, had a look at the tutorials and the manual but nothing really helped me with my problem:
I want to make a 2D platformer.
If you exit through the left side of the screen, you get to the right side of the screen before.
If you exit through the top, you get to the bottom of the screen above.
It is going to be open-world-ish, including secrets(examples: Super Metroid, VVVVVV).

Unfortunately, I have no idea how to do that, so I hope somebody helps me with this.
B
9
S
2
G
1
Posts: 7
Reputation: 1,376

Post » Mon Feb 04, 2013 9:10 am

I made this in my game, but I think I over-complicated it a bit.

Here's the code for it:



And here is a video of it working:

http://www.youtube.com/watch?v=3jY1g1quBvA

It's kinda hard to explain what's going on, but if you need any help just ask. I'm sure there must be an easier way though.

Also I just noticed I left it out of the screen, but "lastDoorType" is just there to see which direction the player must be facing when he comes out.

Oh, and those "doorX" and "doorY" variables are there to check where the player must be standing when he enters a screen. Every screen has to have a "On start of layout: set player.x to doorX and player.y to doorY".andreyin2013-02-04 09:12:03
B
106
S
35
G
36
Posts: 793
Reputation: 24,705

Post » Mon Feb 04, 2013 9:40 am

Thanks, I will try that! :)
I'm just very new to Construct 2, so if there are any tutorials you know that could help me, I'd love to read/watch them.
B
9
S
2
G
1
Posts: 7
Reputation: 1,376

Post » Mon Feb 04, 2013 9:52 am

Start by reading this, it has some good tutorials:

http://www.scirra.com/forum/topic45416.html
B
106
S
35
G
36
Posts: 793
Reputation: 24,705


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests