Also notice that the cube will return to red as soon as you release the L Button!.Notice that the cube only turns blue after pressing the L Button!.In other words the command to the right side of does will trigger while the L Button is pressed. The L Button action is now a condition.With the cube still selected, drag the L Button action to the left side of Does on the second row.Open the Actions tab of the Build Panel.Notice that because both commands trigger simultaneously the last command will take precedent and the cube will appear to turn and stay blue.Notice that both commands are set to trigger with the same condition.Drag the color Blue to the right side of Does on the second row.Select the cube and if necessary drag the Action Panel out so that it is fully visible again.Cube programmed to constantly turn red and turn blue while the L Button is pressed. Return to Build Mode by pressing the build button in the upper left corner (crossed wrench and screwdriver).Notice that as soon as you enter Play Mode the cube turns red! This is because we programmed the cube with the command to turn Red.Start Play Mode by pressing the play button in the upper left corner.Drag the color Red to the right side of Does on the first row.Open the Colors tab of the Build Panel.The Action Panel will constantly check for conditions and trigger commands.When you drag an action to the right of Does it becomes a Command.When you drag an action to the left of Does it becomes a Condition.Both commands are being triggered at the same time so ultimately the cube will turn and apparently stay blue because that is the last command. Notice that the the Action Panel has a green tile labeled Does with an arrow pointing to the right.However, it is only visible when a block is selected. The Action Panel is a small grey tab on the left-most side of the screen.With the cube selected drag the Action Panel out so that it is fully visible.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |