Let's think in portals

Get help using Construct 2

Post » Tue Aug 13, 2013 9:06 pm

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?
B
9
S
2
G
2
Posts: 59
Reputation: 1,024

Post » Tue Aug 13, 2013 9:31 pm

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.
B
91
S
31
G
102
Posts: 5,231
Reputation: 67,248

Post » Wed Aug 14, 2013 6:33 am

@R0J0hound
Wow, that helps a whole lot
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
Also nice touch with the cake idea
B
9
S
2
G
2
Posts: 59
Reputation: 1,024


Return to How do I....?

Who is online

Users browsing this forum: mtnboy22, user5487, Yahoo [Bot] and 3 guests