Skip to main content

Search

Make a "press and hold button to..." input

  • TAPgiles

    Add a timer, set it to "speed" mode. Now wire a signal into the "play timer" input. It will use whatever you send through there as the speed of the timer. So 1 = 100% = 1 second passes for 1 second of real time. And 0 = 0% = 0 seconds pas for 1 second of real time.

    So while the player is holding up, send it 1 (or just wire straight in). And while the player is holding down, send it -1. (Or whatever speeds you want to use.)

    The timer has a "timer output" that is the percentage through the timer it currently is. So you can use that, or use the "current time."

  • trethacker

    '@TAPgiles Thank you. This almost works as written, but the timer cant send a negative number signal. However, applying a timer to the d-pad down worked the same as to the up when sending the outputs to a counter (I sent 0.1 for both signals as anything larger was too slow).

    I would only add, for those who use this solution, to remember to send the “counter finished” signal back into the “counter reset” signal to be sure the signal is sent more than once.

Please sign in to leave a comment.