Users Manual

SCRATCH CODING KIT
Tori Secret Safe Problem 4 Commentary
Now let's create a script when we receive the 'Open_Door' and 'Close_Door' broadcasts. 'When you receive the
Open_Door' script, it will open the door and play the sound sensor for 2 seconds. The role of the 'Close_Door
Receiving' script is to close the door and play the sound sensor for 2 seconds. Shall we make it?
Create a script like the one above. It's very similar to the scripts you created earlier, 'Open_Door' and 'Close_Door'.
The acting role is the same as the one we created earlier.
Now, at the end of the script, save 1 in the 'Pointer' variable and return it to its initial state. This is because once
the door is opened or closed, it must be used to store the input number as a password, or to compare the stored
password with the input number. The rest is the same.
Commentary