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

Logic help

Archive: 11 posts


I am trying to make a button bring down my winch and when you grab on the winch it brings you up. Trying to do this with an OR switch but it's not working. May someone help, I am online right now. Psn: Freedomna

Edit: Sorry about not being more indepth, was typing this on my Ipad.

My problem is that no matter what I use (button or grab switch on the object connected to the winch) the winch does not move at all. The OR Switch is on inverted if that helps.
2011-02-11 18:28:00

Author:
Unknown User


Uhh, so you're trying to make the winch move as soon as you grab it?
Does it move at all? (Does it work as of now, just not the way you want it to?)
If it does, look if you set up the winch to 'forward/backward' instead of 'on/off'.
Hope that helps!
2011-02-11 18:30:00

Author:
iArekusu
Posts: 402


The winch dosnt move at all.2011-02-11 18:34:00

Author:
Unknown User


sent an add friend request, i'll come help 2011-02-11 19:16:00

Author:
Epicurean Dreamer
Posts: 224


I had this problem when working on my first level, took me forever to figure it out but the solution is deceptively simple. For some reason, it's not possible to attach two different sensors/buttons/etc to a piston/winch/, which is a shame as that would make this a lot easier. So instead, you have to find a way to deactivate the winches previous input, which thankfully is simple using an X-OR gate.

1) Place an X-OR gate somewhere convenient
2) Hook your button output to one of the X-OR gates inputs
3) Attach a grab sensor to the grabbable material on the end of your winch, and attach the output of this sensor to your other X-OR gate input
4) Hook the X-OR gates output to your winch, and tweak the winches settings to forward/backward

I hope I've explained this correctly, but to put it in laymans terms, the X-OR gate means that the winch will only operate according to one of the two inputs. Essentially what that means is when you push the button, the winch will activate and move down. When you grab the winch, however, the grab sensor will activate, which deactivates the winches previous input and sends it back up again. Alternatively, you could do like I did in my level, and use a platform instead of a winch - the logic is the same, but instead of a grab sensor and winch I used a player sensor and piston, so when your Sackboy stands on the platform that activates the player sensor and deactivates the pistons previous input.

Hope this has helped
2011-02-11 21:18:00

Author:
agsrule
Posts: 89


You could run your button and grab switch through a direction combiner then set your winch to directional, and connect the combiner to that.

That way, when you press the button it moves the winch one way. Then, when you grab the grab switch, it goes the other way.
2011-02-11 21:33:00

Author:
tdarb
Posts: 689


You could run your button and grab switch through a direction combiner then set your winch to directional, and connect the combiner to that.

That way, when you press the button it moves the winch one way. Then, when you grab the grab switch, it goes the other way.

would you not need to define direction of the analogue signal inputting into either side of the direction combiner? Simply a button and grab sensor, i believe simply trigger a
a true digital output. if both signals are essentially a true state (+1) digital output its basically the same as using an OR gate with the winch set to directional.

I could be wrong though, how are you defining which direction the analogue signal is flowing through each side of the direction combiner? or are you simply using the digital out instead?
2011-02-12 00:01:00

Author:
Epicurean Dreamer
Posts: 224


Nah, with a direction combiner it doesn't matter. If both are 1 or 0 (on off), and you trigger the positive one, the combiner has 0 input on the negative pole. 1-0=1 If you trigger the negative pole it has nothing on the positive, so 0-1=-1.

As far as I can tell, the directional setting on a winch only has three states anyway (forward,neutral,backward) when connected to a three way switch or combiner, so any analog values will just be treated as a digital forward or backward signal.
2011-02-12 01:13:00

Author:
tdarb
Posts: 689


Hi Freedomna! I'm pretty sure we have met and I'm not quite sure you have figured this out yet but I think the best way to do this is to use a selector with 2 inputs, connect the button to input one and the grab sensor to the other. ( Or the other way around). Then connect the 2 outputs of the selector to the positive and negative inputs on a direction combiner and connect the combiner to the winch. If the button and grab sensor are doing the opposite you want them to do (for example hitting the button to go up but it goes down) then reverse the winch. Lastly tweak the winch the directional and you are done! See ya around!2011-09-01 01:47:00

Author:
Wolffy123
Posts: 406


if you want the button to make the winch go down with the buttun and up with the grab, use a selector. connect the buttun to the 1st input, and the grab to the 2nd input. use a direction combiner and attach the output of the combiner to the winch

Contact me for help.
2011-09-01 03:25:00

Author:
Unknown User


Thanks all for the help.2011-09-02 01:14: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.