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

Perfect tap/hold logic

Archive: 4 posts


After creating a popit system for our Sackbot, X-SPRINGS-X and I found a way to make perfect tap/hold logic. This is perfect cause holding the input does not cause the tap input to work.

http://www.lbpcentral.com/forums/attachment.php?attachmentid=32931

Here the input (R1) is wired to a NOT switch, a timer and a counter. The timer is the output for however long the input is held for, the settings are start/stop and any target time. The counter has target count 1 and is reset by NOT switch connected to the timer. The NOT switch from (R1) wires to an AND switch with the other NOT switch this connects to a timer with target time of 0.1 and Input action: Start count down. Connect this timer with the counter using an AND switch and this becomes the output for tap. The only problem is a 0.1 second delay for the tap output, also i'm sure there must be a more simple way to do this, but I can't find one that works like this every time. Hope it helps <3
2011-04-10 14:28:00

Author:
springs86
Posts: 785


Thats good idea but you can optimize it a bit.

You can replace that 0.1 timer with counter that resets itself and remove that AND gate before it.
2011-04-10 19:49:00

Author:
waD_Delma
Posts: 282


Thats good idea but you can optimize it a bit.

You can replace that 0.1 timer with counter that resets itself and remove that AND gate before it.

Thanks, however what do I connect to the input of that counter? i tried with R1 however this caused the tap output to activate when holding, which the previous version avoids.
2011-04-12 13:35:00

Author:
springs86
Posts: 785


Thanks, however what do I connect to the input of that counter?

Inverted R1 signal.
2011-04-12 15:33:00

Author:
waD_Delma
Posts: 282


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.