Profile image

How to make something activate if an input has been activated for a few sexonds

4,869 Mikey101234  3.0 years ago

How do you make something like a detacher activate after a few seconds of an input(say vertical g) is equal to or greater than 1 for a few seconds via Funky Trees?

  • Log in to leave a comment
  • Profile image

    smooth(clamp01(INPUT>THRESHOLD),1/TIME)=1
    INPUT is the value tested (e.g. VerticalG)
    THRESHOLD is the threshold that, if the input is greater than, will start the timer
    TIME is the number of seconds the INPUT must exceed the THRESHOLD to trigger it


    Your request would be smooth(clamp01(VerticalG>2),1/2)=1
    2 seconds at above 2 G's will trigger it. Also keep in mind there is always gravity (so VerticalG will always start at 1)

    3.0 years ago