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

Temporarily Disable Movement (while controlling sackbot)

Archive: 6 posts


Hey guys, I'm working on a custom sackbot and I'm trying to make it so I can temporarily disable certain buttons in certain situations. I got it to work fine for the X button, but the left analog stick is giving me a problem.

Here's a simple recreation of the problem:

http://i2.lbp.me/img/ft/0f271585f052e3f445cb7e4391757c3b7c5f50df.jpg

Controllinator #1 is wired to controllinator #2, but it only passes the signals on if the button on the floor is not pressed. This works great for X -- when you step on the button with the sackbot you can no longer jump. It also works for the left stick left/right movement -- once you step on the button you are stuck there.

The problem is that when you are just walking on the floor, it messes up standard movement if you only push the stick a little. For example, if I push the left stick about 25% of the way left, the sackbot will slowly move to the right instead! It's not until you push it a lot harder (maybe 50-75%) that the wire actually lights up and he moves to the left like you want. Oddly enough, movement to the right seems uneffected.

Anyone know what's going on here? I suspect it's something I don't understand with how the game handles analog vs digital signals. Or is it just an unfortunate bug? Or is there a better way to do this altogether?
2011-03-17 03:07:00

Author:
Roo5676
Posts: 62


Make an extra microchip for each control you want to be able to disable, then wire a circuit node onto each chip and from the node to whatever it controls.

Then wire a wire onto the microchip's on/off input. The main wire will only be able to carry signal when the bottom input is active.

Aka Microchip used as a Relay.

Your welcome.


For more information, see http://wiki.lbpcentral.com/Microchip.
2011-03-17 03:56:00

Author:
Fishrock123
Posts: 1578


Darn a minute late I was going to answer something for once >.<2011-03-17 03:59:00

Author:
TheBlackKnight22
Posts: 695


Fishrock's solution is the easiest.

As for exactly why you're having a problem, it's because the thumbstick outputs a positive or negative signal depending on which direction you push it. When you're dealing with a purely analog signal, then left 25% on the stick is -25%, but when you run it through an AND gate, the other signal (which is positive) takes priority. It's not until about -40% or so that the negative aspect of the signal will transfer through an AND gate into an analog component. The solution is to run the signal through a splitter and run whatever processes you need to on each signal separately (separate AND gates for positive and negative) and then run it through a combiner once the signal processing is finished. Or, as Fishrock suggested, since this is a simple enable/disable situation, use a microchip with a node as a circuit breaker.
2011-03-17 04:13:00

Author:
Sehven
Posts: 2188


That is perfect, thank you guys! And thanks for the extra explanation about digital/analog, that helps.2011-03-17 05:50:00

Author:
Roo5676
Posts: 62


You'll always have problems wiring the analog stick signals through AND gates. If you have to, use direction splitters in front of the logic and direction combiners behind it.2011-03-17 21:30:00

Author:
Discosmurf
Posts: 210


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.