Let's think in portals

0 favourites
  • 3 posts
From the Asset Store
About 900+ game portals: 400 e-mails, 514 contact/submit forms (last update: 2022, October, +275 contacts)
  • Let's theoretically say one were to make a feature, quite similar to the portals in, what is in my opinion, one of the coolest games made, Portal by Valve... But in 2D

    How would one do so? It exceeds my own current capabilities, as I would like for the player to be able to stand half in one portal and half through the other, if you have an idea of what I mean. Also I'd like to maintain physics like jumping through one portal and falling out through the other.

    I'm not asking for a final product, just guidelines - is it at all doable? and where would I even start?

    And how would I make my cake a lie?

  • For the math on the speeds and directions of moving through portals there is a capx here:

    http://www.scirra.com/forum/portal-vector-realignment_topic48791_post306636.html#306636

    For standing halfway through the portal and being seen on both ends it's doable with layer masking effects to hide a portion of the player. You'll be using two player sprites at that point for each portal. The most complicated bit will be handling collision detection for the player when moving through the portal. The main example of the problem would be a portal mounted on a solid wall, the wall will have to be set to not be solid or something when passing through. This is where some ingenuity and creativity will be required to get something working.

    For your last question... Put frosting on a loaf of rye bread. If that cake isn't a lie I don't know what is.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • R0J0hound

    Wow, that helps a whole lot <img src="smileys/smiley20.gif" border="0" align="middle" />

    I'll have a look into it. You sure helped me get a better idea of where to start and how to deal with the different obstacles. I'll give it a go <img src="smileys/smiley14.gif" border="0" align="middle" />

    Also nice touch with the cake idea <img src="smileys/smiley36.gif" border="0" align="middle" />

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