Screen Exits

  • 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.

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

    Here's the code for it:

    <img src="http://i.imgur.com/RxgA9Qr.png" border="0" />

    And here is a video of it working:

    youtube.com/watch

    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".

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • Start by reading this, it has some good tutorials:

    scirra.com/forum/topic45416.html

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)