Predict:
A key skill of a computing explorer is to be able to look at some instructions in code and predict what would happen if you asked the computer to do those instructions. Let's practice. Imagine that instead of placing the slackerProm say tile after the turn and move tiles, you placed it in-between the slackerProm turn and move tiles.
[Q1.7.1]: What do you THINK would happen?
See if you predicted correctly. Drag the slackerProm say tile in-between the slackerProm turn and move tiles (i.e., right below the turn 2 revolutions tile). Hit Play. Did it do what you described? Do you think it matters whether he says Aiii! after he spins or after he moves backward? Maybe it does. Maybe it doesn't. But computers are very picky. They will do exactly what you tell them to. And the order in which you give coding instructions affects what it does. Maybe your client, the animation director, really wants him to say Aiii! right after he spins. You need to be able to make him do that. Click here to see other examples where you care that a computer does exactly what you tell it to.
Let's finish up creating our story.
Storyboard:
ringoBeetle moves out from behind the tree
Click on the object called ringoBeetle (you can't see him in the scene since he's behind the tree).
Drag the method tile ringoBeetle move into the code area
a. Choose options left and 3 meters, as shown in the images below.
< click on me to make me bigger >
Press Play to make sure your program is working as expected.
Storyboard:
ringoBeetle says "Sorry, his leash came off."
Drag the method tile ringoBeetle say into the code area and select the other... option.
a. Type Sorry, his leash came off in the box and click OK.
Press Play to make sure your program is working as expected.
Finally, for this section,
[Q1.7.2]: Do you think that the code we've written to model a surprised person matches what a real life surprised person would do? Explain your answer. Remember - we created code to make him spin around, then say Aiii!, then move backward.
How you should have thought about this section:
English:
Spanish: