Studiocode Tutorials | 3.30 Code Window - Exclusive Link (Code to Code)
Transcript
In this tutorial we will cover exclusive links between code buttons.
An exclusive link between two code buttons means that it is not possible for both code buttons to be activated at the same time. Common examples for buttons that are useful to have exclusive links between our offense and defense or zones of the playing surface.
To exclusively link a button with another button open up the inspector for one of the buttons. At the bottom of the behavior tab you see the exclusive link drop-down. Click on this drop-down and then click on the button that you want to exclusively link with the currently selected button.
You see the purple line appear between the two buttons denoting the exclusive link. Now if I go into code mode and activate the offensive zone button I can then simply click on the neutral zone button to deactivate the offensive zone button. One button will deactivate another.
You can also have exclusive links between more than two code buttons and a sort of cluster of exclusivity. In situations like this you only need to link one button to another in the cluster but not each button to every other button. So I'll open up the inspector for the neutral zone button and exclusively link it the defensive zone button. When I go back into code mode I can activate the offensive zone button and then activating the defensive zone button will also deactivate the offensive zone button even though they are not directly linked to one another.