Forum Discussion
Logic Gates for Physics lovers!
For example, to create the AND gate pictured above:
Setup:
Create the graphic, with four parts: the A input circle and line (A input), the B circle and line (B input), the output circle and line, and the body. They can all sit together on the slide just as they are. Do NOT group them.
For the A and B inputs, create a state named Selected showing the red circle and the red arrow. Normal will show the black form.
Create a red state for the output named Active. Normal will show the black form.
Logic: This depends on you being able to create trigger conditions that mimic the action of a logic gate.
Create these triggers:
Change state of output to Normal when user clicks A input if the state of A input is not equal Selected OR the state of B input is not equal Selected
Change state of output to Active when user clicks A input if the state of A input is equal Selected AND the state of B input is equal Selected
Change state of output to Normal when user clicks B input if the state of A input is not equal Selected OR the state of B input is not equal Selected
Change state of output to Active when user clicks B input if the state of A input is equal Selected AND the state of B input is equal Selected
- AlinMariaGeorge3 years agoCommunity Member
Thank you