Page 176 - Computing E-Book Grade 6
P. 176

The City School  2021-2022




             Toolbox:

             This middle area is the toolbox and each of these blocks is a

             command that directs the player’s actions.







             Workspace


             The white space on the right is called the workspace
             and this is where we’ll build our program.







             moveForward( ) Block



             If we drag the moveForward(); block to our workspace and then click run, what
             happens? Alex moves forward one space on the grid.

































             And what if we want to do something after she has moved forward one space? We can
             add another block to our program. I’m going to choose the turnRight(); block and I’ll drag

             it underneath my moveForward(); block until this orange line appears. Then I’ll drop it
             and the two blocks will snap together. When we press run again, Alex will perform the

             commands that are stacked from top to bottom in our workspace.









                                                                                                                176
   171   172   173   174   175   176   177   178   179   180   181