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

Altering Counter Increment

Archive: 3 posts


I'm trying to make a damage chip using a counter, but since my level's weapons are supposed to have different power percentages, I'm having a lot of trouble doing this. So say, for example, it takes 100 shots to destroy an enemy. A one shot kill would equal 100% power, and a 100 shot kill would equal 1% power. How would I make this to incorporate all the different combinations of weapon powers while only using one counter? I'm guessing it has something to do with batteries? I'll keep working on it, but any suggestions would be greatly appreciated.2012-06-20 02:20:00

Author:
Rainbro Dash
Posts: 121


this is probably your best bet:

LBP2-Torials 02: Signal Addition And Subtraction (http://www.youtube.com/watch?v=6TCbjIm5kSo&hd=1)
2012-06-20 02:33:00

Author:
GribbleGrunger
Posts: 3910


PULSING.
You can't actually make it so that one signal can increment a counter anything different than one, but we can get pretty darn close, and we do that with pulses. Say your 100 health system also has a 2 shot kill, or a shot that increments the counter by 50. You would make a chip that pulses 50 times to increment the counter by 50, or any number (2,10, 15, etc.) depending on your damage type.
HOWZ DUHYA DYOO DHIS!? I hear you scream. Well, here is a logic circuit I build that pulses any number of times you want. It looks like this:
http://if.lbp.me/img/ft/c2fbce0f37d5067f4b736b36458a5c601ec9dfff.jpg
Sexy, isn't it? Especially on that sexy piece of dark matter.
Anyway, the two squares on the bottom right and left of the circuit that look like evil timers in disguise as counters are actually counters. The right on has a target count of one, and the left one has a target count of x, with x being the amount of pulses you want. Simply build this circuit, set the target count of the bottom left counter to the number of times you want to pulse, wire the AND gate to your health counter, and presto; logic has happened! Sure, it's slow as heck when you're pulsing 70 times or something, but it's the principle that counts, so you'll just have to bear it.
2012-06-20 03:46:00

Author:
Kalawishis
Posts: 928


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.