How Can I Make Simple Toggle Logic?
I have been enjoying the heck out of this game since launch of early access. But lately, I'm noticing that making logic here, is not so simple.
What I would love to just figure out, is how to make logic, that you can toggle on or off, for simple things....let's say a light fixture.
Those are one of my favorite things to make, and I'm having trouble starting off.
I want it to be something involving a trigger zone, text displayed, a selector, and a "toggle" feature.
Here's how I see it in my head:
Trigger zone - you enter the set zone, and it activates the text displayed which will obviously say "X on/off", and you can hit X to toggle the light. Off and on.
I was going to use an actual light gadget, but I can't seem to snap any logic to it, and so I moved onward to the next best thing. A little sculpted light piece that has a bit of glow to it.
After searching through the dreamiverse for helpful things, I ran into a light logic piece someone made, and when I inspected it, I saw my worst fear...Nodes. definitely something I'm not looking forward to using!
So, yeah. One could say that I'm a bit desperate for clues, and help lol.
Any sort of feedback, would be much appreciated!
Thanks!
-
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! -
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.
請登入寫評論。