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

learn the feedback loop... seriously...

Archive: 15 posts


When people are asking me
"how does your health system work... WITHOUT TIMERS :O"
I promptly respond with
"-_- feedback loops duh"

What is a feedback loop?
A feedback loop is a memory latch that allows things to add or subtract into after the fact, (kind of the +/- things on calculators )

For example
Lets say you put in 50% for one tick, then 10 more after, the output will be 60% (and yes same for negatives)

How would you use these?
I use them in EVERYTHING instead of timers and counters, they are more programmable, and better suited for many situations like ammo counting in weapons, or health logic

OK HOW DO YOU MAKE THEM amiel445566?!
The main piece is an OR gate set to "+" looped into itself with one wire, and the input value into another port in the OR gate

You can modify outputs by putting splitters with and gates and looping that into the OR gate, in case you wanted to have +/- limits (if you do this, use the output of the combiner when you are finished putting the % back into the OR gate, because the OR gate can still go past your limits for a tick after inputted)

How does it work?
When you add 10% the or gate is saying
"ok 10+0 = 10, good, now 10+0=10 ok, next 10+0=10" forever UNTIL you add something then it says to itself
"10+3=13, ok 13+0=13, 13+0=13"
and it stores the value after, so you can use that for whatever you need.
Thanks to the OR gate update, you can even use this for health systems that go over 100%, output-wise (you could achieve this pseudo-wise by inputting smaller %'s and saying it was bigger than it was)

Mostly I made this tutorial because I like contributing, and while I was thinking what to do next, I remembered feeling frustrated because I still saw a lot of people using timers in their health, and it was really frustrating

comphermc made some tutorials on this, with splitters and combiners, you can find it here (https://www.youtube.com/watch?v=c4GaCQ1eRVE) and here (https://www.youtube.com/watch?v=k0sbxogAcDo)
2014-05-11 08:10:00

Author:
amiel445566
Posts: 664


Always looking for new logic implementations and methods 2014-05-12 07:09:00

Author:
Tipico
Posts: 25


This is such a great tool that I haven't gotten around putting into my "active logic usage" yet. Thanks for the info 2014-05-18 17:26:00

Author:
Mnniska
Posts: 531


Here's the real beauty of feedback loops for me: They are vastly more easy than any other system I know of to memorize with the memorizer. You can literally just plug the loop into a gate, and run it back through when you activate the memorizer. I use this for skills, experience counts, health, and various other things you might want to remember.

Another good thing is that now, with the updates you can easily multiply/divide signals, which can be applied to things like experience or health counts to allow them to grow or decline the amounts received as you level up. (Just an example coming from a level I've been making)
2014-07-30 23:09:00

Author:
Tynz21
Posts: 544


I joined this forum not too long ago, and in the 3 years that I have been creating on LBP, I hadn't even heard about feedback loops. Now that I watched the comphermc tutorials, I feel like I've been missing out on a lot... Now I have a lot of catching up to do xD2014-08-01 03:06:00

Author:
osvaldo_mtz
Posts: 19


These are extremely useful but I was wondering, how do you turn extremely small analogue signals to binary? Like 1/1000th? I'm not too well acquainted with this logic and that seems to be the hardest part for me to grasp. From what I can tell sequencers only mange to get 2-3/1000ths with maxed positional settings.2014-08-01 03:37:00

Author:
koltonaugust
Posts: 1382


These are extremely useful but I was wondering, how do you turn extremely small analogue signals to binary? Like 1/1000th? I'm not too well acquainted with this logic and that seems to be the hardest part for me to grasp. From what I can tell sequencers only mange to get 2-3/1000ths with maxed positional settings.

That's where you get into building more advanced logic probes, which can be quite a pain. The theory behind it is you break the signal up and handle it piece by piece, but if youre not well acquainted with this sort of logic, I'm.not the guy to try to explain it in text. Im not sure if there's any logic probe tutorials, but Id recommend you grab a very accurate logic probe and contact it's creator to go over it piece by piece.
2014-08-01 04:45:00

Author:
Tynz21
Posts: 544


[I]
OK HOW DO YOU MAKE THEM amiel445566?!
The main piece is an OR gate set to "+" looped into itself with one wire, and the input value into another port in the OR gate.



The "Add inputs" tweak is only in LittleBigPlanet PS Vita. Are you incorrectly posting to the LittleBigPlanet 2 forum?
2014-08-05 21:10:00

Author:
EleoMod
Posts: 122


The "Add inputs" tweak is only in LittleBigPlanet PS Vita. Are you incorrectly posting to the LittleBigPlanet 2 forum?

Actually they added it to LBP2 at least a few months ago. They also have multiplication in AND gates which is pretty much a dream come true.
2014-08-05 21:31:00

Author:
Tynz21
Posts: 544


What types of stuff can you use the feedback loop for. I know you can do health bars, but what else?2014-08-06 06:03:00

Author:
Darthvadre11
Posts: 134


What types of stuff can you use the feedback loop for. I know you can do health bars, but what else?

Health bars, ammo counts, skill levels, exp bars, player levels, simulating conservation of energy, money systems, clocks, locks, quest progressions, anything that you need to manipulate numbers for basically... you can essentially build a more saveable selector using feedback loops.
2014-08-06 06:53:00

Author:
Tynz21
Posts: 544


When people are asking me
"how does your health system work... WITHOUT TIMERS :O"
I promptly respond with
"-_- feedback loops duh"

What is a feedback loop?
A feedback loop is a memory latch that allows things to add or subtract into after the fact, (kind of the +/- things on calculators )

For example
Lets say you put in 50% for one tick, then 10 more after, the output will be 60% (and yes same for negatives)

How would you use these?
I use them in EVERYTHING instead of timers and counters, they are more programmable, and better suited for many situations like ammo counting in weapons, or health logic

OK HOW DO YOU MAKE THEM amiel445566?!
The main piece is an OR gate set to "+" looped into itself with one wire, and the input value into another port in the OR gate

You can modify outputs by putting splitters with and gates and looping that into the OR gate, in case you wanted to have +/- limits (if you do this, use the output of the combiner when you are finished putting the % back into the OR gate, because the OR gate can still go past your limits for a tick after inputted)

How does it work?
When you add 10% the or gate is saying
"ok 10+0 = 10, good, now 10+0=10 ok, next 10+0=10" forever UNTIL you add something then it says to itself
"10+3=13, ok 13+0=13, 13+0=13"
and it stores the value after, so you can use that for whatever you need.
Thanks to the OR gate update, you can even use this for health systems that go over 100%, output-wise (you could achieve this pseudo-wise by inputting smaller %'s and saying it was bigger than it was)

Mostly I made this tutorial because I like contributing, and while I was thinking what to do next, I remembered feeling frustrated because I still saw a lot of people using timers in their health, and it was really frustrating

comphermc made some tutorials on this, with splitters and combiners, you can find it here (https://www.youtube.com/watch?v=c4GaCQ1eRVE) and here (https://www.youtube.com/watch?v=k0sbxogAcDo)

Heh, I've read this three times and I'm still not sure what you are saying.

I'm sure it's me. I'm still trying to grasp the binary/analog thing and why anyone cares.

These days the topics in this section confuse me, let alone the content of the threads themselves.
2014-09-17 02:20:00

Author:
Biv
Posts: 734


Biv, there are some people in the community that really only develop logic, so it can get really technical.

I am in the same boat. My best advise is to watch the video--study it and this will make sense. All you need to really know is how it works and what you can use it for. But its really a great tool and I hope you find a good use for it.
2014-09-17 03:53:00

Author:
Rpg Maker
Posts: 877


binary = 1 AND 0, 1 OR 1, 1 XOR 0

analog = 2% + 5% >= X?, 35% * X = ?

Kind of like binary is simple math, and analog is more algebra
2014-09-17 06:00:00

Author:
amiel445566
Posts: 664


Biv, there are some people in the community that really only develop logic, so it can get really technical.

I am in the same boat. My best advise is to watch the video--study it and this will make sense. All you need to really know is how it works and what you can use it for. But its really a great tool and I hope you find a good use for it.
Yeah, I'll check those out. Trying to dip my toes in a bit.


binary = 1 AND 0, 1 OR 1, 1 XOR 0

analog = 2% + 5% >= X?, 35% * X = ?

Kind of like binary is simple math, and analog is more algebra

Someone once told me that if you are trying to get from point A to point B, binary/digital is stairs, analog is a slide.

I guess I've never (to my knowledge) been in a place where I needed these skills. That being said, I've probably been in spots on levels where this knowledge would've helped immensely if I knew I needed it.
2014-09-17 15:43:00

Author:
Biv
Posts: 734


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.