-
Notifications
You must be signed in to change notification settings - Fork 0
AND
An AND scripting node is used to see if two conditions are 'true' at the same time.
1> Signal 1: An incoming signal that moves between 0 and 1
2> Signal 2: An incoming signal that moves between 0 and 1
1> Output: 1 only if both incoming signals are non-zero.
This node is used if you want to check if two things are happening at the same time.
If you have more than two different conditions, you can nest several AND nodes together (where one AND node takes an input from another AND node).
If you have two coins in your level, you might want to block the Finish with a Door that only opens when the Player has collected both.
You can get the IS ACTIVATED from each coin and put them into an AND node, then connect the output of the AND into the ACTIVATE for the door.
This will then only open the door if the player has collected both coins.