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

Logic

Archive: 12 posts


I suck at making logic in LBP. The only logic I've ever made and used in my levels are magnetic keys on pistons and permanent switches, anything more complicated makes my head spin.

I'm making a vehicle and thought it would be neat if you didn't have to hold down R1 when you wanted to go forwards or backwards. I want two grab switches on either side of the player. If they tap to the right they go forwards, if they tap to the left they go backwards.

I tried attaching a toggle switch to each grab switch, and those toggle switches to winches attached to a three-way switch. I felt stupid afterwards because this won't work if a player leaves one of the toggle switches on and goes to activate the other one, as both winches will then be pulling on the three-way switch.

Does anyone know how to go about getting this to work?
2010-02-26 15:21:00

Author:
Ayneh
Posts: 2454


You can create a resettable toggle out of the parrallel piston toggle design, by attaching a winch to the piece with the directional piston on. 2 of these where the activation of one would reset the other would probably. I haven't thought about what would happen if two players tried to screw around with it though.2010-02-26 15:33:00

Author:
rtm223
Posts: 6497


Edit: wait, what I wrote won't turn it off... give me a second.2010-02-26 15:43:00

Author:
comphermc
Posts: 5338


You can create a resettable toggle out of the parrallel piston toggle design, by attaching a winch to the piece with the directional piston on. 2 of these where the activation of one would reset the other would probably.
I'm not sure I understand. I know it's a lot to ask but could you draw a picture in MSPaint or in text/ASCII?


I haven't thought about what would happen if two players tried to screw around with it though.
That's ok, as long as it works if one person is being sensible with it that's enough for me.
2010-02-26 15:55:00

Author:
Ayneh
Posts: 2454


Out of curiosity, how would the player stop the vehicle? 2010-02-26 16:02:00

Author:
Rogar
Posts: 2284


Out of curiosity, how would the player stop the vehicle?
Ideally it would be one tap to go and another tap to stop.
2010-02-26 16:10:00

Author:
Ayneh
Posts: 2454


Ok, I made something which is not exactly what you ordered. Basically either one of them resets it to a stop, but they toggle otherwise. So, if you are going forward, a backwards tap stops it, and a second tap makes it go backwards. And visa-versa. Give me a little bit to post some pictures.

Edit: okay, I got it to work how you wanted. This is what the default setup looks like:

http://img194.imageshack.us/img194/4354/aphoto1l.jpg

I just glued the 3-way switch behind the strip of DM to cut down on vertices. And here are all of the components. The left side is a copy of the right side, so you can just copy/paste once you make one of them.

http://img99.imageshack.us/img99/7685/aphoto2r.jpg

Note: there are 4 moving blocks in this picture, each which contains either a key or a key switch.

Anyways, all connectors run from .1 to 10.0 and the pistons are stiff. The left piston is flipper out, with a mag key on it. The middle piston is is connected from the mag key switch on itself, and the switch is inverted, directional. The winch is set to flipper in. All timings are .1 and all strengths are 10. Make sure you line up your mag key switch so it just covers the key when they are side-by-side, and it should have an angle of approx 60 degrees. It is directional.

For your inputs, they are one-shot, and the left grab is wired to the piston on the left and the winch on the right. Flip it for the right grab switch. You'll just have to trust me that this is a toggle setup, as explaining why it works is a bit confusing. Try it out and let me know how it goes. It's hopefully clear how the 3-way plays into all of this...
2010-02-26 16:26:00

Author:
comphermc
Posts: 5338


Ok, I made something which is not exactly what you ordered. Basically either one of them resets it to a stop, but they toggle otherwise. So, if you are going forward, a backwards tap stops it, and a second tap makes it go backwards. And visa-versa.
Thank you for taking the time to cook this up.

I've followed your instructions to the letter but I'm having some problems. The switches don't toggle, they either remain in an on or off position depending on the trigger radius and degree settings of the magnetic switches. Could you post the exact settings you have on yours?
2010-02-27 19:15:00

Author:
Ayneh
Posts: 2454


I haven't the time right now, but you just have to fiddle with the switch sensor area. It needs to be pretty small, but not too small.2010-02-27 19:37:00

Author:
comphermc
Posts: 5338


I have a few unique ways to operate vehicles in my poppit and my logic examples level.

#1: (One grab switch) Grab to toggle between forwards, backwards, and rest. It will continue to go in that direction until grabbed again.

#2: (One grab switch) Grab to toggle between forwards and backwards. So each time you grab, it goes in a different direction. (Sorta obviously) If you double-tap you won't switch directions when you have to start driving again.

#3: (One grab switch)(Not my idea) Tap-grab to toggle the direction in which you will go once you hold-grab. (Or, if you want, vice-versa)

Those are just examples of a lot of fancy ways you can drive a car. If you want one of those I'll send it to you, unless you still want your idea. But if you still have trouble with that I'll make you one, if you want.
2010-02-27 21:14:00

Author:
Incinerator22
Posts: 3251


I haven't the time right now, but you just have to fiddle with the switch sensor area. It needs to be pretty small, but not too small.
I haven't been able to do anything with it, probably because I don't understand how it's supposed to work.


I have a few unique ways to operate vehicles in my poppit and my logic examples level.

#1: (One grab switch) Grab to toggle between forwards, backwards, and rest. It will continue to go in that direction until grabbed again.

#2: (One grab switch) Grab to toggle between forwards and backwards. So each time you grab, it goes in a different direction. (Sorta obviously) If you double-tap you won't switch directions when you have to start driving again.

#3: (One grab switch)(Not my idea) Tap-grab to toggle the direction in which you will go once you hold-grab. (Or, if you want, vice-versa)

Those are just examples of a lot of fancy ways you can drive a car. If you want one of those I'll send it to you, unless you still want your idea. But if you still have trouble with that I'll make you one, if you want.
These are all neat ideas but to me tapping in one direction to cycle between forwards/backwards/stop doesn't seem intuitive. If you can get the design that comphermc suggested working let me know, I've spent enough frustrating hours playing with the magnetic switches on that for now.
2010-03-01 15:54:00

Author:
Ayneh
Posts: 2454


@comphermc:

http://img194.imageshack.us/img194/4354/aphoto1l.jpg

http://img99.imageshack.us/img99/7685/aphoto2r.jpg

Lol I saw you putting this together the other day. This looks to be a bit complicated for the purpose, however. Correct me if I'm wrong (or if I'm blabbering out the exact thing you did, cos I can't tell ) but I think there is a simpler solution.

All you should need are two XOR gates and a three-way switch. Each grab switch is connected to one input on each XOR, and the XORs are connected to the winches. That way, when ONLY the left grab switch is grabbed the left winch pulls the three-way switch over, and vice versa. Actually, I think you may have done something very similar (if so sorry!), but I just didn't know what the extra winches were for.

EDIT: Just realised that this setup would make one grab switch activate both winches. Don't think this should be too hard to correct with a few extra ORs or whatnot, but that's probably what the extra winches are for (implied logic ftw)

@Ayneh: If I can get online tonight I'll help you out personally, because it's easier to show than tell with LBP, if you know what I mean.
2010-03-01 16:20:00

Author:
Holguin86
Posts: 875


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.