Avançar para o conteúdo principal

Pesquisa

State Machine Gadget Support

  • OgTheEnigma

    Just a general suggestion regarding timed sequencing, Timelines can be easier to set up and configure than Timers.

    For the state machine itself, I prefer to use a Variable; start at 0 and count up in integers. Use an = Calculator to power on whatever you need for the current state; ideally just place each state in a separate microchip. If you want a repeatable timed sequence of states, then place Variable Modifiers on the timeline with your required length and order.

  • Skn3--

    https://indreams.me/collection/cbLFjDcxHYj 

    I 100% agree with your suggestion. It would be really nice if there was a Dreams-afied state machine gadget!

    In the meanwhile I have a state machine gadget for you!

  • Lucid_Stew

    There's probably a community version already built.  If anyone knows of one and can provide a link, that would be helpful.

  • Skn3--

    Lol I just did, well a collection that has one.

    https://indreams.me/element/ovZrSNdfiHp

    Here is the direct link.

    Here is teh description from the creation:

    This chips lets you maintain a changeable state without having to use pulses! You can speciffically set the state or use helpful prev/next inputs. The state will remain intact until you either reset the chip or turn off its power.

    Why would you use this over the built in Selector gadget? Simply, control! This chip allows you to have more states, neater logic with a single state output, and continuous flow with no requirement of pulses.

    The best way to utilise this chip is to wire a Calculator from the output. Then in the Calculator check what the state is and then power on a chip for that particular state. So for example "does state = 2 then power on the chip for state 2". This way you can contain all your logic neatly and have as many states as you want.

  • Skn3--

    Can also use this variable gadget as a state machine:

    https://indreams.me/element/ojJJWvTiMud

    A Local Variable with the absolute minimum amount of logic. Get, Set, Add, Subtract (add -1) and Clear (power off).

  • SwarmHammer

    you can already set up complex state machines using variables and selectors (selectors almost work like ENUMs in programming, which are mainly used for state machines already). In programming, or even other game engines, you program your own state machines. I believe that having a dedicated state machine would just be redondant to other gadgets that are mainly used for that.

  • TAPgiles
    Great answers

    I'm not quite clear on why variables are needed at all, unless you want them to be persistent. What kind of setups do selectors not do? Could you explain more about that? 🤔

  • OgTheEnigma

    The main issue for me with Selectors is that they're limited to 10 output ports. Variables also have the benefit of being able to use 'Get' Variable Modifiers anywhere without having visible wires across different microchips.

iniciar sessão para comentar.