Profile image

Rotator sequence with FT

8,166 consumeroftoasters  4.4 years ago

I need help with this.
I have 4 rotators, moving from 1 to -1 but i want them to do this in a sequence where the first one activates, then the second 2 seconds after, the third 4 seconds after and the fourth 6 seconds after and then it repeats

I’ve tried using smooth functions to do this but it’s too difficult

  • Log in to leave a comment
  • Profile image
    162k spefyjerbf

    @z24zorpx4 I’m not very good with walkers, but I may be able to give you code that fits your specifications.

    4.4 years ago
  • Profile image
    9,819 z24zorpx4

    @spefyjerbf can you help with my walker? https://www.simpleplanes.com/a/EWU86t/walker-WIP-need-help

    4.4 years ago
  • Profile image
    162k spefyjerbf

    No problem! I’ll give you the code when it’s done. If I cannot do it, then I’ll tell you.

    4.4 years ago
  • Profile image

    @spefyjerbf
    That should be right. Thank you for helping me with this, it will make my walker so much better.

    4.4 years ago
  • Profile image
    162k spefyjerbf

    Sounds good. So our sequence is as follows:
    .
    1. Rotator moves from 1 to -1 (1 second)
    .
    2. Rotator moves from -1 to 1 (8 seconds)
    .
    3. Repeat steps 1 and 2 indefinitely
    .
    This sequence greatly simplifies the code. Of course there is the delay, too. That should be manageable though.

    4.4 years ago
  • Profile image

    @spefyjerbf
    Yes that would make it more realistic

    4.4 years ago
  • Profile image
    162k spefyjerbf

    So would we say that it takes 8 seconds to return? That way it returns as slowly as possible.

    4.4 years ago
  • Profile image

    @spefyjerbf In the video it appears to go back very slowly

    4.4 years ago
  • Profile image
    162k spefyjerbf

    Another question - sorry for spamming. The rotator moves from 1 to -1 in one second, but how quickly should it move back to 1?

    4.4 years ago
  • Profile image
    162k spefyjerbf

    That actually helps a lot! So the rotator smoothly goes between the two values (taking one second). Then it waits for 8 seconds, and repeats that motion. The code may be complex, but it can probably be done!

    4.4 years ago
  • Profile image

    @spefyjerbf It would ideally take a second to go from 1 to -1 and then 8 seconds before it repeats. If it helps, i’m recreating the walking sequence from this

    4.4 years ago
  • Profile image
    162k spefyjerbf

    So, just to be clear, it would return to 1 after 8 seconds?

    4.4 years ago
  • Profile image
    162k spefyjerbf

    Hmm. The repeat might be difficult. I’ll try to get back to you on that one.

    4.4 years ago
  • Profile image

    @spefyjerbf It is supposed to go from 1 to -1 once and then repeat after 8 seconds

    4.4 years ago
  • Profile image
    162k spefyjerbf

    It can be done, but I need more info. Does your rotator rotate once when you use an activation group? Or does it go back-and-forth between 1 and -1?

    4.4 years ago