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

Stick wont turn off

Archive: 4 posts


Im building a tank but I need the left stick to stop moving the tracks and activate somthing else when I press X but Im having alot of problems with this. I tried using a sackbot and using R2 and L2 but Im still having trouble.

thanks =D
2012-01-07 21:45:00

Author:
XxHAMADEHxX
Posts: 113


Would a Selector with X as the cycle work? Have one output go into an AND Gate that goes to turning, then the the other output goes to a different AND Gate that goes into the other thing you need. Then have the Left Stick go to the AND Gates other inputs.2012-01-07 22:17:00

Author:
Speedynutty68
Posts: 1614


Let's see... If I understood well, you need to disable the tank moving while the "X button's function" is working, right? Make this simple chip, it will help. After making it, you should save it in your objects. Thus you'll have it available whenever you need it, it would be like having a new gadget ^^.

http://i0.lbp.me/img/ft/1c03c626e0e2c03e418c766e850a5227d259b95c.jpg

Wire the stick's output to this chip's left input. Then, wire this chip's output to the object intended to be triggered by the left joystick.

So, you can wire a switch to the Activate input (down). If chip is totally wired and NOT activated, the signal will not pass. This simple chip can make it. An AND gate can do the same function, having in mind that, if an AND gate receives different a.nalog values in it's inputs, the output value is the smaller of all of them. But, personally, I prefer this chip for this kind of things. An AND gate used this way could make negative a.nalog signals to be switched to positive, or some other kind of unpredicted failure. This chip won't affect to the signal's value, it's just perfect for this! I love it
2012-01-07 22:58:00

Author:
SebasSBM
Posts: 159


An AND gate used this way could make negative a.nalog signals to be switched to positive, or some other kind of unpredicted failure
Actually, I think it just takes the positive if there are two of the same value (ex, +25 AND -25 would output +25)

Though I guess you want the left stick to do 2 different things depending on if you are pressing X ? I would use a 2-input selector. Wire, as SebasSBM said, each output to a different AND gate, then wire a battery to the selector's 1st input. Wire the X button to the selector's second input. Wire the joystick to the ANDs' other inputs (if you need both UP/DOWN and LEFT/RIGHT, you just need an extra AND gate with the same selector output). Since the selector has a priority check to bottom, when you are holding X it goes to the 2nd input, but as soon as you release it goes back to first.

Hey, I'm in a good mood so I build you a picture, for free ^^
http://img23.imageshack.us/img23/2083/tilsetproject.png
2012-01-08 00:00: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.