Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Counters versus Timers
Archive: 8 posts
I have a problem. If I have a Selector with 20 in/outputs, and the first one is selected, how do I instantly make it go from input 1 to input 5 or 12 or 17. Instantly, without the use of 0.1 second timers. Here is an example (what I'm really working on): I have a gun with ammunition. The gun has 5 bullets so input 5 is selected. I pick up an ammunition box with 5 bullets inside. How do I make it go from 5 to 10 bullets? Or 7 to 12 and so on. I see a long way that will take WAY TOO LONG where I use an AND gate on each and every input. The AND gate's 2 inputs are: the output that is 5 less, and a tag sensor that senses that you picked up an ammunition box. If there's a shorter way please tell me. | 2012-09-12 22:54:00 Author: minifat Posts: 75 |
I don't think there is an easier way using a selector. However, How come you are using a selector for ammunition? I too have a level with guns and I have a much easier/better way to do ammunition. Would you like me to tell you or...? | 2012-09-13 01:42:00 Author: airide101 Posts: 141 |
First, there are ways to fire off pulses faster than 0.1s. For instance, by using a NOT gate wired into itself; or a 2-gate selector where you input an ON signal into input #1, wire output #1 to input #2 and wire output #1 to the desired action; set it to #2 active per default, then when you send a continuous signal to input #1, it will output a rapid pulse on ouput #1. That said, what you really need is a feedback loop - a continuous analog signal (between 0 and 1) going in a circle to which you add and subtract other analog signals (between 0 and 1). Check out CompherMC's video tutorial in the Tutorials forum for a start. The harder part will be to display the analog value. | 2012-09-13 07:52:00 Author: Antikris Posts: 1340 |
I have a way, if you don't want to use feedback loops. A bit hard to describe at the moment, but once my kids are in bed, i can post pictures, or you can join me in create mode. It is pretty simple, though. EDIT: I just noticed, you said "without the use of .1 sec timers". Is there a reason they can't be used? | 2012-09-14 00:43:00 Author: Brannayen Posts: 438 |
A 0.1 second timer is, I believe three times as slow as a feed back loop (not gate looped back on itself) comphermc does a pretty darn good job of explaining this in his tutorials about feedback loops, but I guess it's a bit too advanced for some players, but basically, the feed back loop is the quickest 'pulse' you can get ( it's actually 1 frame, the game runs at 30 frames a second, so in one second you can get thirty individual 'on off siganals) the second fasted pulse is a sequencer set to 0.1 seconds per strip, with a small battery placed on the sequencer (half a strip long) that will give you a pulse that is quicker than 0.1 seconds as the sequencer will trigger the battery BEFORE it's gone all the way across the first strip.... Makes sense? Not good at examining stuff!!!! If I had the skills of being concise coherent, then I'd love to do some YouTube tutorials for some advanced logic, but That's a skill I'm severely lacking in | 2012-09-14 11:46:00 Author: Shade_seeker Posts: 328 |
Hum, by feedback loop, Antikris meant looping a combiner into itself. Then you can subtract percentages by plugging (Battery AND pulser) into the negative input. To avoid negative signal, add a splitter in the loop, and connect the splitter's positive in the combiner's positive. Then to add back to the loop, instead of connecting back, connect to a not gate, make the same subtraction operation, then another not gate. A picture might help, I think I have one... http://id.lbp.me/img/ft/8dde7386cb76f2d6aa3efd3c01becde53080b921.jpg There, this one is what I use in my health meter toolkit. Then you can say 5% is one bullet, so the max would be 20. You can override a timer or use a probe to diplay it. Best thing would be to watch compher's tutorial, or wait up to a month for me to publish the final version of the meter toolkit, which allows you to count bullets too | 2012-09-14 17:04:00 Author: Unknown User |
Before I read everyone's replies I used a Sequencer and batteries for a .05 second pulse. I'll be trying the feedback loop now , thx everyone who could help! | 2012-09-15 02:38:00 Author: minifat Posts: 75 |
That yellow timer, btw, in Pivott's excellent screenshot, is set to 0.1s Speed Scale. It will effectively display the fractional signal (analog between 0 and 1) that is invisibly looping around in the upper section of the screenshot. The batteries contain fractional signals of their own which you add to or subtract from the loop by pulsing the 1-shot counters next to them. | 2012-09-15 15:32:00 Author: Antikris Posts: 1340 |
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.