Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Looking to add or multiply several inputs
Archive: 4 posts
Hey all, hope you're enjoying this amazing game as much as I am. What I'm looking for is a way to take two inputs, say R1 and a direction on the left stick, and combine them so that I get a value 1 if both are pressed, and .5 if only one is pressed (or a range of 1-2 if the inputs aren't dulled, either way would be great). I ran into this dilemma trying to put a "turbo" button on a controllable vehicle, either doubling the speed or turning it up to full blast from half. This is just one example but there's a ton of things you can do by modifying one input with another. I've made another vehicle with a turbo by switching to a faster mover when both controls are pressed, this is a way to fix the "turbo" feature, but not other uses I have in mind. My last attempt at this was using combiners and splitters to invert an already negative value, piping it into another combiner and hopefully making both inputs positive, but no luck. Splitters output 2 positive values (even tho the icon is labeled "-" for sanity). Combiners don't care what the polarity of it's inputs are, it changes the values to positive then flips the negative pole internally. BTW, a great way to see your values is to hook up two .1sec timers. One is the reset timer, hook it's output to both resets. The others' input is set to Time scale. Put any input you want to see into the timescale timer, and the timer will rise halfway before being reset if your input is .5. It's flickery but it gets the job done. You can make a third timer (same as the 2nd) and pipe the negative pole of a splitter to see positive and negative values. Add two more and you have a complete pressure diagram of your control stick's axis'. At any rate I hope someone here has conquered this question and can share. It's fun using the logic stuff, but simple math nodes would be oh so handy. | 2011-01-24 05:50:00 Author: Unknown User |
i haven't exactly used it in this situation, but try using a "not" switch, it can probably reverse one of your inputs or outputs into negative or positive. i wouldn't know where the switch would go, but try experimenting with it | 2011-01-24 06:22:00 Author: Shuriken_Star Posts: 114 |
Check out the lbp2 parts of Rtm's logic blog (https://lbpcentral.lbp-hub.com/index.php?t=19365-Logic-Blog-updated-2010-10-10). It'll tell you all about adding and subtracting analog values. | 2011-01-24 07:05:00 Author: Sehven Posts: 2188 |
Awesome link, looks like that'll do the trick | 2011-01-24 07:17: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.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.