Page 1 of 1

Power Switch

PostPosted: Mon Feb 16, 2015 11:15 pm
by semerien
Power Switch

Description: The Power Switch is a physical switch that a player can interact with to change it's state. A Power Switch is a switch with two states: On or Off. When an Input is sent to the switch, it will go out Output (if on) or Input Blocked (if off).

Properties: None

Inputs :
On - Switch to the on state
Off - Switch to the off state
Input - Send an input into the switch which will go out Output or Input Blocked depending on state of Power Switch.

Outputs:
On - Send a signal when the Power Switch is set to on*
Off - Send a signal when the Power Switch is set to off*
Output - The signal from input will go out Output if the switch is on
Input Blocked - The signal from input will go out Input Blocked if the switch is off

* - This signal is momentary and only happens at the exact time that the state of the switch is changed to on or off.

Example:

Place a Power Switch, an action button and a Party Cannon.

Power Switch:Output => Party Cannon:Fireworks
Power Switch:Input Blocked => Party Cannon:Conefetti
Action Button:Pressed => Power Switch:Input

Power Switchs default to on. Push the Action Button and the input signal will go out Output and fire the Fireworks from the Party Cannon.
Step on the power switch. This will turn off the Power Switch. Push the Action Button and the input signal will go out Input Blocked and fire the confetti from the Party Cannon.
Step on the power switch. This will turn on the Power Switch again. Push the Action Button and the input signal will again go out Output and fire the Fireworks.