#1
Stack-able Percentage? (logic help)
Archive: 5 posts
me and my friend recently found something out, but in order to get it to work we need something that stacks percentages it gets, and as of now, we are trying to avoid the 100 batteries solution ![]() ![]() ![]() | 2013-08-12 23:00:00 Author: amiel445566 ![]() Posts: 664 |
I really don't know what you are trying to do but it sounds like you are just trying to add up to 100% by increments of 1, so why not just use a counter? | 2013-08-13 01:03:00 Author: koltonaugust ![]() Posts: 1382 |
because counters take render time, and this is used for something that requires percentages | 2013-08-13 08:39:00 Author: amiel445566 ![]() Posts: 664 |
Use a timer for percentages. You can use a timer as an analogue register and pulse it values which it'll add to/subtract from it's self depending on the direction of the input signal flow. What do you mean about stackable though? Using a timer just pools the percentages into a sum. If you want to sample each discrete value, store them, and retrieve them later, you'll have to cook up some pretty nifty logic. It's doable though, but if you're worrying about batteries taking render time, what do you mean by this? Taking thermo, well yeah, or actual clock cycles to deliver? Are you needing it to run @ 30Hz (real time LBP rendering) most networks emulating clocks with a not gate/batteries e.t.c. run @15Hz as the engine needs to register the state switch between values on digital units. Is this what you were refering to? Agh, tbh it's been a while, not played LBP in a good year or so, just thought I'd come back to my old haunt and see what was up and saw this post which interested me, so excuse the vagueness anywho! I built a load of stuff similar to this back when I played, speaking of which, an alternative you could use is binary, feed binary values to a register and simply cap it @100 with a magnitude comparator and call the integers percentages ![]() Could you explain the whole 'stackable' thing though? Not too sure on what you mean, 15%+15%=30%? (simple addition) or something more intelligent as a system? | 2013-08-18 10:04:00 Author: Epicurean Dreamer ![]() Posts: 224 |
A bit ambiguous, but I'm quite sure you're looking for the counter solution. A counter will output it's count state in percentages as analog signal. If you have a counter set to 2, then after ticking it once, it will output 50% as analog signal. If you have a counter set to 4, then after ticking it once, it will output 25% as analog signal, and so on... By using a counter, you can stack percentages in increments as small as 1%, which comes in handy when you, for example, want to make a leveling system, that increases your sackboys defense by 1% after every level-up. | 2013-08-19 04:43:00 Author: Alex-Raven ![]() Posts: 147 |
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.