1.2 The block palette and scripts area

View

To program a sprite, you drag blocks from the Blocks Palette to the Scripts Area. To run a block, click on it. Create scripts (programs) by connecting blocks together into stacks.


Connecting Blocks

When you drag a block around the Scripts Area, a white/grey area highlight indicates where you can drop the block and form a valid connection with another block.


Figure 8: Connecting blocks in a script

To move a stack, pick it up from the top block. If you drag out a block from the middle of a stack, all the blocks beneath it will come along with it.

To copy a stack of blocks from one sprite to another, drag the stack to the thumbnail of the other sprite in the Sprite List.

Figure 9: Copy a stack of blocks to another sprite


Blocks with Editable Text Files

Some blocks have a white field in which you can edit values.

To change the value, click inside the white area, delete the existing number, and type a new number.


You can also drop rounded blocks inside these areas as shown below:

Figure 10: Dragging the multiplication operator to replace hello (Left).  The sprite says the result from multiplication operator (right)


Blocks with Drop Down Menu

Some blocks have pull-down menus. Just click on them to see the contents, and then click on the value you want to select.


Figure 11: Example of block with pull-down menu

Last modified: Tuesday, 1 March 2022, 1:30 PM