Home    LittleBigPlanet 1 - PSP - Tearaway -Run Sackboy Run    LittleBigPlanet 1    [LBP1] Help! [Archive]
#1

HELP: One-shot pistons

Archive: 8 posts


Hi everybody,

I'm making a spinning circle maze, and I want the entrace to seal up behind the player. I'd like to use a wooden block to plug the entrance. I've connected it to a piston and attached a sensor switch to trigger the piston to move the block into position. It works like a dream, except the piston moves the block backwards and forwards continuously. I just don't seem to be able to get the piston to move the block and then stop permanently.

Can anyone help?
2008-11-07 19:26:00

Author:
FlowersInHisHair
Posts: 126


You'll need to use more than a proxy switch, if that's what you're using. There's two things you could do:

1. Get rid of the proxy switch and put down a red push switch that the player has to press to move forward, or...

2. Have your proxy switch activate another device offscreen, which activates a mag switch (set to direction) that's connected to your trap door. Whatever this new device is will need to be something that will keep the mag switch on permanently when your maze starts rotating AND when your player moves away from the proxy switch. I would suggest using an emitter that drops a mag key with unlimited lifetime into a small enclosed box with the mag switch.
2008-11-07 19:38:00

Author:
Justin Hopewell
Posts: 135


Thanks for answering. What should I use to move the block into place? The piston is just going back and forth over and over.2008-11-07 20:11:00

Author:
FlowersInHisHair
Posts: 126


http://img135.imageshack.us/img135/6938/onlyonceswitchlz3.jpg
The above image is how I would set up such a system. When the player trips the proximity switch it dissolves the block that the magnetic key is on. The matching switch is set to "inverted" so it is only in the "on" position when the key is not present. In your case you would want to make sure that the magnetic switch is also set to direction. Setting a switch to direction makes everything change direction of travel when the switch moves from an off state to an on state. With pistons winches and wobble bolts this means that they will sit at the their respective minimum/maximum extensions until the state of the switch changes.
In simpler terms:
In this manner your piston will be holding the door open until the switch is triggered at that point the switch will be activated and will tell the piston to stop contracting and start extending thus pushing the door closed.

On a side note I apologize for the poor image quality, I am sans capture card!


Edit:
Obviously the dissolve material should be somewhere off screen if you want to make sure everything looks professional.
2008-11-07 20:16:00

Author:
Trader Sam
Posts: 92


I made one where there was a sensor that had a big radius, but too far away from the piston to make it move when you are near it. It was an on/off switch. It only went down. Not up (Unless you move a little way away from it).2008-11-07 20:25:00

Author:
moleynator
Posts: 2914


http://img135.imageshack.us/img135/6938/onlyonceswitchlz3.jpg
The above image is how I would set up such a system. When the player trips the proximity switch it dissolves the block that the magnetic key is on. The matching switch is set to "inverted" so it is only in the "on" position when the key is not present. In your case you would want to make sure that the magnetic switch is also set to direction. Setting a switch to direction makes everything change direction of travel when the switch moves from an off state to an on state. With pistons winches and wobble bolts this means that they will sit at the their respective minimum/maximum extensions until the state of the switch changes.
In simpler terms:
In this manner your piston will be holding the door open until the switch is triggered at that point the switch will be activated and will tell the piston to stop contracting and start extending thus pushing the door closed.

On a side note I apologize for the poor image quality, I am sans capture card!


Edit:
Obviously the dissolve material should be somewhere off screen if you want to make sure everything looks professional.Here is the video to what this guy is explaining. YouTube - EGTV: LittleBigPlanet Expert's Guide: Level Design

It's really interesting and I use it all the time.
2008-11-07 20:35:00

Author:
Voltiare
Posts: 646


Thanks Justin and Trader Sam - that was just the ticket. Thanks ever so much everyone for the assistance! 2008-11-07 22:25:00

Author:
FlowersInHisHair
Posts: 126


I know you already fixed yours, but you could have also used a sensor switch where the person is starting, then make the radius so that the player leaves it as soon as he is on the other side of the door. If you set the sensor switch to Direction and Inverted, the door should close and never open up again unless there is someone on the other side of the door.2008-11-07 22:39:00

Author:
Cloud
Posts: 74


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.