Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

I have a question with regards to elavators

Archive: 4 posts


To provide some background, I'm currently working on a level, but I'm having some difficulty with the mechanics of my elevator. This is a brief outline of the desired mechanic and performance I'm trying to achieve:

1. Sackboy gets in proximity of the elevator
2. The two elevator doors slide sideways, providing sackboy access to the inside of the elevator (each door is attached to a piston, which is attached to an invisible wall of dark matter)
3. Sackboy steps inside and pulls a 2-way switch mounted on the interior wall of the elevator
4. The two elevator doors slide shut
5. After a pause, a piston carries the elevator upward

Forgive me if this seems like a straight-forward thing to implement, but I just can't seem to get it right :S I also think it would be easier to explain with the aid of an image, so I'll get working on that and I'll post it here afterwards
2011-02-25 17:33:00

Author:
Unknown User


So for number 1 and 2:

Use a player proximity sensor to detect when the player gets close to the elevator. Hook the proximity switch into an XOR gate, and the XOR gate into whatever opens your doors.

Now for number 3 and 4:

Take a counter, set it to 1, and hook that into the other port on the XOR gate. This will be used to disable the opening of the doors when the switch is thrown. Also hook this into your "close doors" mechanism.

So far, when you get close the doors open. When you pull the switch, the doors close.

Step 5:

Take a timer (this is for the pause), set it for "Start count up" and hook your switch into it. Hook the output of it into the mechanism that moves your elevator upwards (piston).

Now when you reach the top, you need to open the doors. Just put a tag sensor in your elevator and a tag on your level so it's activated when the elevator reaches the top. Set the radius and colors correctly, then just hook this into the reset switch of the counter you used to close the doors. They should open now since the player sensor is still active.
2011-02-25 18:42:00

Author:
Shanghaidilly
Posts: 153


http://i.imgur.com/UXNVh.png

Here's what I've managed to map out in MS Paint. Here's a quick explanation of each panel:

#1: Player activates sensor switch, which activates the pistons to draw the doors back (the pistons are set on forwards/backwards)
#2: Player steps inside and pulls the two-way switch down
#3: The doors close, followed by a brief pause
#4: The piston draws the elevator upwards

How would I go about making this work? Unless I've done something wrong, I can only attach one switch to a piston, so I can't have the sensor switch and the 2-way switch hooked up to the pistons at the same time. Any corrections to this logic are highly welcomed!!
2011-02-25 18:48:00

Author:
Unknown User


This is greatly appreciated, I'll definitely have a look at implementing this later on today, thank you!2011-02-25 18:50:00

Author:
Unknown User


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.