View Full Version : Portal Gun

02-21-2011, 12:16 AM

This is my Portal Gun. It spawns a sackbot that looks like Chell. It has a reticle. And it is controlled by a controlinator. L2 shoots orange portals and R2 shoots blue portals. L3 removes any open portals or flying projectiles. Triangle zooms out. L1 picks up cubes.

r10 - Added momentum and removed all DLC by changing sound effect.

r7-9 - Added companion and storage cube. You can grab them with L1. Also made the energy ball emitter and capture thing from the real portal. The cubes teleport and so does the energy ball. The energy ball emitter and capture thing must be linked together once you spawn them. If you are going to have more than 1 set of energy ball things, YOU MUST SPAWN THEM ALL AT THE SAME TIME! Change the portal's look so its more appropriate for a side-scroller. Changed remove portals to L3. Added Zoom Out by pressing triangle (if there is a speech bubble open the press triangle while its open). And I made the projectile good enough to detect walls (even slanted ones) so portals will face the right direction (not facing you like before).

r6 - Thanks to LukeCF for the bug report that helped me figure out that... CREATE MODE IS DIFFERENT FROM PLAY MODE!!! For some reason, the gun I used in create mode was different in play mode. Well, I made a work-around. So Let me know if it fails again.

r5 - This is my 5th revision of my Portal Gun. This revision fixed the bug where portals would spawn in such a way that you could not teleport to them. This bug happened because in LBP2, I had on my projectile a material tweaker that made it sticky and 100% friction. I thought that when my projectile hit the wall, there would be NO WAY it would move or bounce or anything like that. But, while testing I noticed that my projectiles, when hitting the wall at the right angle, would roll in place. This rolling caused my portals to be spawned in the wrong direction; which, sometimes, made them end up inside the wall. I had a system set up in r4 that made it so when you jumped through a portal and the receiver was blocked, you would be thrown out of the controlinator for a second. Then you would be put back in and Chell would respawn. Unfortunately this happened a lot, so it became frustrating to the users and the comments showed that. So I got to work yesterday and I think I found a fix for it. I was looking at the logic for the projectile and found that I didn't even need a material tweaker. My projectile is set to disappear on any collision. So I got rid of that and started testing again. This time, when shooting I noticed it curved in mid air as I moved my reticle. This is because I have it set to follow the reticle and then stop following it when it touches it. This was to make the portal gun more accurate. I decided to scrap the following mechanism and just emit the projectile straight out at the same speed it used to follow me at. This, I am pretty sure, fixed the issue. Now when I fire a portal, there is no curving what so ever. I have tested this revision quite a few times, trying to shoot at the same angle I did before that made the projectile roll. I have yet to be forced out of the controlinator.

I would like to let everyone know now that my level itself is not very good. It is just a test level for the gun.

I need people to try and break the gun and to message me, post here, or leave a comment on the level what they did and what happened.

Also, I am looking for a REALLY good level designer to design a level for my gun. Or, if someone already has a cool level that I can put it in, that would be OK too. Just message me or post here.


02-23-2011, 08:29 AM
what type of level are you looking for. i can help you build a lab or testing area themed level for it if you want

02-25-2011, 04:30 PM
Actually, I was looking to make the levels from the real game. I know it wouldn't be the same but my gun has the same features as the real portal gun (except a few visual aspects and holding a cube through a portal and being able to pull it back).

04-14-2011, 07:36 PM
hi, awesome level you have there i was just wondering if you could remove the DLC thats on the portal gun? it says i can use it :( i was all set to make realistic portal level too. thanks tomato.

04-14-2011, 09:10 PM
I'm interested in seeing this...
Hopefully I can help you out where possible?

04-15-2011, 04:46 PM
added momentum?
does this mean.. what goes in.. must go out.. with same speed and direction?

if not.. the portal gun is still fail.