Skip to main content

Search

How Can I Make Simple Toggle Logic?

  • spezy93

    I made a demo for you to look at. I shared it to you on Dreams. It uses a basic puppet, a light, a text gadget, trigger zone, signal manipulator, a wireless transmitter and wireless receiver, and an AND gate.
    Place the trigger zone and wire it to the power port of the text gadget. Open up the puppet's logic until you get to the controller sensor.
    Add a wireless transmitter and change its name to whatever you want ( I like to use something like "interact" so I can use this for many different purposes in my level).
    Wire up the x button output of the controller sensor to the input of the wireless transmitter.
    Back out to your scene again and add a wireless receiver. Open the tweak menu on it and use the d-pad up or down to select the label you made for the transmitter. Under the "zone size" tab, select "scene" for the shape.
    Now wire the outputs of both the trigger zone and the wireless receiver into the AND gate, and the AND gate into the signal manipulator.
    Under "Remap Mode" go to "Custom Remapper. Then under "Edge Mode" select "Toggle Output on On".
    Finally wire the output from the signal manipulator into the power port of the light, and you're done!

  • CLOUD1985

    I think you could wire a switch into your light and wire the x button into the switch to toggle the light on and off. That's the simplist way I can think to do what you want.

Please sign in to leave a comment.