Use an Exclusive Gate
I really don't understand what an exclusive gate does 🤷♂️
I was going to try to use it because I have a bunch of objects with the same microchip on them and I need one of them to be active by default and switch the active chip. I can't use a selector or variables because there could be infinite copies of this object.
Not sure if this is the right application for it, or even if that's what it's there for?
-
AND gate - ALL of the inputs must be true for the output to be true
OR gate - ANY of the inputs can be true for the output to be true
XOR gate - Only ONE of the inputs should be true for the output to be true -
You could use a transmitter and receiver for this I think, put receivers on each of the objects and name them with unique names, then wire them into the power port of thre.microchips. Then have a load of transmitters, one for each one of your receivers. You can then turn the transmitters on and off using what ever method you like. Not sure if this is applicable to your situation or not.
-
So Exclusive Gate Gadgets.
If you have multiple exclusive gates that all have the same name, they will all be closed, except for one, the one with either the highest priority rating, or the one with the strongest signal.
Here's something you can do to get you jump started with them
https://indreams.me/scene/ZNfywvHAdkg
Have a Trigger Zone on your player that looks for a tag called Potential Target.
Drop the Zone range to zero and instead turn the Zone Falloff range up.
On a microchip, make a tag 'Potential Target'. The closer this tag gets to the center of the trigger zone, the stronger the output value that will come from it.
Wire the output of the tag into an Exclusive Gate called 'Target Filter', and then have the output of the Exclusive Gate power another tag, called MyTarget.
Set the exclusive gate to 'Interrupt' (the little lightning bolt icon).
Now, if you copy this chip to different targets around your scene, each of the Potential Target tags will change how strong their output is based on proximity to the player. The neat thing is that only one of the Exclusive gates will be open at a time, so that MyTarget is only active on one object at a time, which you can use to make homing missiles, or look towards a certain target, or for whatever other use you could have.
Again, this is just an example of something that you can do with them, and you can use that knowledge to fit to yours and choose which thing you need active for your logic. -
Thanks everyone! I'm going to have another go at using an Exclusive Gate. From what StankyDino said, I think I should be able to get it to work.
-
For me the basic usage is pretty clear. One gate receives signal and other stay closed until the signal is gone. I found this very handy when creating by dungeon game with step movement and until one movement (is forward) is finished I had to made sure no other move will be triggered.
exclusive gate is easier that using lots of logic stuff.
But.. can osmeone explain what the settings like gate synch and queue are for? How exactly to they behave?
Please sign in to leave a comment.