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

Help with 2 buttons = 1 action

Archive: 9 posts


I've got a controlinator on a sackbot and I want him to do something but I only want him to do it when two buttons are pressed at the same time. I've tried using an AND gate but it just negates both and nothing happens. Can anyone help me do this? Thanks2011-01-24 20:05:00

Author:
idontknow92
Posts: 29


Are you sure you are using an and gate, "negates both" sounds like you are using an "Xor" gate. hmm

If you are using an and gate which you probably are make sure it isn't inveted, an inverted and gate will activate when neither input is pressed.
2011-01-24 20:21:00

Author:
robotiod
Posts: 2662


And AND gate should work. Sounds like you have something either hooked up wrong or you have something inverted.2011-01-24 20:22:00

Author:
RSQViper
Posts: 302


If it doesn't try hooking the two buttons up to 0.1 timers and then hook the outputs to an and. To make it reset hook the buttons up to a not and then to the reset switch. I ran into a problem similar to this and although I couldn't find the reason the timer suggestion worked. The Not switch is just common sense though, but yeah- the above method should work2011-01-24 20:26:00

Author:
I_PUNT_KNOMES
Posts: 42


Are you sure you are using an and gate, "negates both" sounds like you are using an "Xor" gate. hmm

If you are using an and gate which you probably are make sure it isn't inveted, an inverted and gate will activate when neither input is pressed.

Yeh it's definetly an AND gate. Basically I can get my sackbot to move with the controlinator when it's just connected to the analog stick but when I want the user to have to hold down the circle button and the analog stick for the sackbot to move, then it just doesn't move at all. I'm pretty sure I'm doing it right by connecting the circle and analog left/right to the inputs and then the output to the advanced mover. Then the same for circle and up/down.


And AND gate should work. Sounds like you have something either hooked up wrong or you have something inverted.

Double checked and there's nothing inverted. Does the above set up sound right?


If it doesn't try hooking the two buttons up to 0.1 timers and then hook the outputs to an and. To make it reset hook the buttons up to a not and then to the reset switch. I ran into a problem similar to this and although I couldn't find the reason the timer suggestion worked. The Not switch is just common sense though, but yeah- the above method should work

I'm pretty rubbish when it comes to all the new advanced controls so I don't really understand this. I tried to put a timer on but I couldn't get any of the option to go to 0.1
2011-01-24 20:40:00

Author:
idontknow92
Posts: 29


I haven't done much messing with controlling sackbots with advanced movers other than getting double jump and body slam working. I wish I could be more help. It might be a problem with the advanced mover rather than the "and" but I'm not sure.2011-01-24 20:45:00

Author:
robotiod
Posts: 2662


Are you splitting the directional output from the analog sticks? If you use a directional splitter, you should get a positive and a negative output (left and right). If you connect each of these to a seperate AND gate, with the other input being from the O button, it should work. After the gates, you could use a directional combiner to join the signals back together and you should have an analog stick which only works when O is pressed.
You should.. Haven't tested it

If this is nothing to do with what you're tring to do, sorry
2011-01-24 21:18:00

Author:
Unknown User


Are you splitting the directional output from the analog sticks? If you use a directional splitter, you should get a positive and a negative output (left and right). If you connect each of these to a seperate AND gate, with the other input being from the O button, it should work. After the gates, you could use a directional combiner to join the signals back together and you should have an analog stick which only works when O is pressed.
You should.. Haven't tested it

If this is nothing to do with what you're tring to do, sorry

You are a genius! Thank you so much!
2011-01-24 22:46:00

Author:
idontknow92
Posts: 29


No problem 2011-01-24 22:47: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.