Logic Gate
Description: The logic gate is an exact duplicate of the power switch, but with no physical form for the player to interact with. A logic gate is a switch with two states: Open or Closed. When an Input is sent to the gate, it will go out Output (if gate is open) or Input Blocked (if gate is closed).
Properties: None
Inputs :
Open - Switch the gate to the open state
Close - Switch the gate to the close state
Input - Send an input into the gate which will go out Output or Input Blocked depending on state of logic gate.
Outputs:
Open - Send a signal when the logic gate is opened*
Close - Send a signal when the logic gate is closed*
Output - The signal from input will go out Output if the gate is Open
Input Blocked - The signal from input will go out Input Blocked if the gate is closed
* - This signal is momentary and only happens at the exact time that the state of the gate is changed to open or close.
Example:
Place a logic gate, an action button, 2 trigger areas and a Party Cannon.
Logic Gate:Output => Party Cannon:Fireworks
Logic Gate:Input Blocked => Party Cannon:Conefetti
Action Button:Pressed => Logic Gate:Input
Trigger Area 1:Entered:Any => Logic Gate:Close
Trigger Area 2:Entered:Any => Logic Gate:Open
Logic Gates default to open. Push the Action Button and the input signal will go out Output and fire the Fireworks from the Party Cannon.
Go through Trigger Area #1. This will close the logic gate. Push the Action Button and the input signal will go out Input Blocked and fire the confetti from the Party Cannon.
Go through Trigger Area #2. This will open the logic gate again. Push the Action Button and the input signal will again go out Output and fire the Fireworks.