Now that you’re well aware of the stage, sprite, and their palettes, it is now time to take out the blocks and the palettes and set the table.
You might ask ‘But, what is a block? How am I supposed to take it out if I don’t know what it is in the first place?’
Well yeah, you’ve got a point there.
A block is like a jigsaw puzzle piece using which you can create your own projects, i.e. write programs/codes. Since they are like puzzle pieces, blocks have slots in them, and they fit into each other, which makes programming an easy-peasy task. The advantage of learning programming using blocks is that there is no room left for typing errors (known as syntax errors), and you can give your undivided attention to the problem and figuring out its solution; this helps immensely in developing problem-solving skills and makes learning programming in other languages child’s play. Yay!
Now you know what blocks are. But where to find them? You guessed it right! In the block palette. The block palette takes up the area in the center. At the top, you’ll find three tabs:
For now, let’s shift our focus to the Code tab. This tab is what you’ll be using the most because it is here that you’ll find all the blocks you’ll be using for writing programs.
Under the Code tab, you’ll see different palettes with a name and color assigned to each palette. Each palette has different blocks in it. The name of each palette signifies the type of function the blocks under that palette will perform; e.g. the blocks under the Motion palette will perform functions related to motion, or movement, like move ()steps, turn ()degrees, point in direction(), etc. The color will help you recognize what type of block it is, and find related blocks easily. Let’s dig a bit deeper into the palettes now.
|Motion Block||Medium Blue||To control sprite's movement|
|Looks Block||Violet||To control sprite's appearance|
|Sound Block||Light Purple||To play sound. Explore Sounds tab to record, upload a music or edit sounds.|
|Control Block||Burnt Orange||To control the flow of script (using conditions)|
|Event Block||Occur Yellow||To sense events, which trigger scripts to run. These are essential for every project|
|Sensing Block||Light Blue||To detect different factors of a project|
|Operator Block||Light Green||To do math calculations and handle strings|
|Variables Block (Data Block)||Orange||To hold values and string in variables and display them on the screen|
|My Blocks||Light Pink||To make custom blocks|
Since you now know what palettes are, and what they do, let’s tinker a bit with them.
Go ahead and put on your artist’s cap and create new art pieces. Who knows, you might become the first ‘programartist’!