Slider moving at a given speed with TouchUp and TouchDown buttons

Dear all,
As you can see, I have a slider and 4 buttons. If I press the left single arrow, the slider should go down at a speed (+/- 4 sec from 100 to 0, two seconds for the double arrow) but should stop if I release that button. I can’t find out how to do this with the TouchUp and TouchDown buttons.

Thanks for any help

Please show your relevant blocks, what you have done/tried so far

Oh gosh, I tried many things but nothing worked and at the moment I deleted the blocks. I will try to recover it. I tried to trigger a clock for the timing but without succes although it works well for click button, it will go from 0 to 100 or the other way in the given time but it doesn’t work with TouchDown or TouchUp.

Sorry Tim,
While trying to recover the blocks I already used I suddenly saw the light :bulb:
It works now.


I made a simple example

TouchDownCounter.aia (2.8 KB)

This is even better than mine, fewer blocks, I’m going to use this.

Thanks Tim,
And as always, you’re the best.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.