New Node: Switch-states-controller

Discussion in 'Buildbox General Discussion' started by mohamed awad, Jun 12, 2020.

  1. mohamed awad

    mohamed awad Avid Boxer

    Joined:
    Mar 10, 2019
    Messages:
    281
    Likes Received:
    151
    Hi there,
    I saw many boxers ( just 2 actually) asking for Switch Node with more than 2 outputs, So I have built this node,
    The special thing on this node is you can control on switch outputs up to 8 output
    let's talk about it
    We have 2 attributes
    Emit On Start to enable first output on start
    Number of States to control the output states ( A, B, C, D, E, F, G, H)
    let's say we set it 3
    then it will trigger A B C
    and back to A and so on
    so easy right?
    you can set Number of States up to 8,
    if you need more, just ask on the comments
    15e49597c416a35a27807bb3f632af8f.png

    here is the download link

    https://drive.google.com/file/d/1W-a7oTfOLPwHiXEEGqbXwLefX0xlx5Am/view?usp=sharing
     
    Last edited: Jun 12, 2020
  2. kipasgajah

    kipasgajah Boxer

    Joined:
    Oct 5, 2015
    Messages:
    18
    Likes Received:
    4
    thank you very much sir !!
     
    mohamed awad likes this.
  3. Thud

    Thud Boxer

    Joined:
    Apr 9, 2019
    Messages:
    88
    Likes Received:
    49
    Thank you so much for sharing this! It's people like you that are helping people like me make better games!
     
    mohamed awad likes this.
  4. Thud

    Thud Boxer

    Joined:
    Apr 9, 2019
    Messages:
    88
    Likes Received:
    49
    Kooky idea. What about making this into a combo counter? Maybe add a time value to be the window of opportunity to advance to the next state. There could be an option for total time that the counter will be open or a time that each state will allow to receive the next signal. If the next state is not advanced to before the next signal then it will reset to start back at state 0.
     
  5. mohamed awad

    mohamed awad Avid Boxer

    Joined:
    Mar 10, 2019
    Messages:
    281
    Likes Received:
    151
    I think it doesn't require a lot of script editing to become an option, you can use time node to achieve this, new input for switch node - reset switch if true.
     
    Thud likes this.

Share This Page