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

counter that increases and decreases

Archive: 3 posts


I want to create a five digit number counter that can both increase and decrease. the counter will start at 2000 and when you spawn lets say tag A it decreases with 100,tag B decreases with 200 and tag C increases with 50 and it wont decrease anymore when the counter reaches 00000 or increases when it hits 99999.

is this possible?
and when/if you help could you include some pictures or I will have a hard time understanding.
thanks
2011-01-30 14:14:00

Author:
Unknown User


To do math, I would start with a 10 output selector for each digit and wire the mathematical functions so every time it cycles the next digit either increases or decreases. The outputs would turn on holographic material with the corresponding numbers. The problem can come from how fast you want the inputs to register, as simultaneous can be ignored by many circuits. If you are emitting the tags into a queue where they can be read, this won't be a problem. (Example, a column with an impact detector at the bottom that counts and destroys the tag so the next one can land.) If you only want a -100, -200 and +50 I'd make my life easier by putting in a permanent zero for the first digit so you can cut down on the logic. I'd also make the -200 just output 2 -100 tags, which means that data only needs to be wired to the 100's digit. Then the +50 gets wired to the 10's digit, which can just be a 2 output selector (0,5) instead of a 10 output selector.

To create the score minimum/score cap, you would just need to use some more logic to stop it from adding or subtracting when those numbers get reached.

Sorry, no pictures.
2011-01-30 16:02:00

Author:
dcf
Posts: 468


Here's one that I made that should do what you want

https://lbpcentral.lbp-hub.com/index.php?t=45133-Scalable-digital-counter

like dcf said though, you will have to send two negative pulses to the hundreds place to get -200. It has no logic on it to keep from rolling back below 0, but that should be simple enough by activating/deactivating a chip as needed.
2011-01-30 17:34:00

Author:
tdarb
Posts: 689


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.