Profile image

Rotator sequence with FT

8,082 consumeroftoasters  3.8 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
    161k spefyjerbf

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

    3.8 years ago
  • Profile image
    9,801 z24zorpx4

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

    3.8 years ago
  • Profile image
    161k spefyjerbf

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

    3.8 years ago
  • Profile image

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

    3.8 years ago
  • Profile image
    161k 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.

    3.8 years ago
  • Profile image

    @spefyjerbf
    Yes that would make it more realistic

    3.8 years ago
  • Profile image
    161k spefyjerbf

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

    3.8 years ago
  • Profile image

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

    3.8 years ago
  • Profile image
    161k 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?

    3.8 years ago
  • Profile image
    161k 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!

    3.8 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

    3.8 years ago
  • Profile image
    161k spefyjerbf

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

    3.8 years ago
  • Profile image
    161k spefyjerbf

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

    3.8 years ago
  • Profile image

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

    3.8 years ago
  • Profile image
    161k 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?

    3.8 years ago