Profile image

How do I make delayed input for both activation and deactivation.

4,887 Yoloooooo  6 months ago

I think floor(smooth(Activate1,1/x)) only works for activation, how do I make it work during deactivation too

Nevermind, found out that I don't really need both delayed activation and deactivation on my build.

here's the code for anyone who wants it:

Delay on activate:
ceil(smooth(clamp01(Activate1),1/0.5))

Delay on deactivate:
floor(smooth(clamp01(Activate1),1/3))

Not my code(forgot who's), posted it here for anyone else who needs it.

  • Log in to leave a comment
  • Profile image

    I know that you don't need this anymore but can be helpful in the future

    Activate1>0?ceil(smooth(clamp01(Activate1),1)):floor(smooth(clamp01(Activate1),1))

    There may be (must be) a way simpler way to do this but i should be asleep rn and can't think of it. Basically this checks if you're activating or deactivating and runs the correct code.

    +1 6 months ago