Part+1+Write+First+Block+of+Code

=Part 1 Write First Block of Code using 1.4=

Getting started
Watch this Video Tutorial of creating a Dog chasing a Cat: Link Getting started with Scratch. When it first starts you will see a multi-pane IDE (Integrated Development Environment)  with the Scratch cat graphic in the white area called the **Stage**. Scratch is a language that is mostly about working with Sprites that are controlled by the scripts you write - which are listed in the Scripts area. You don't create scripts by typing in commands but by dragging and dropping selected blocks listed in the blocks area to the left of the IDE (Integrated Development Environment) 

First we need to specify when the script should be run. Scratch doesn't come with a default "main" routine which is the entry point for all processes. Instead you associate scripts with various starting events. In the case of our first script let's start it when the green Go Flag is clicked. This isn't the only way of starting a script but it is the one that corresponds to a programmers expectation of there being a Run button. To do this select the Control palette of blocks:  In the list of control blocks drag-and-drop the top one that starts when the green flag is clicked:  Next we need a block that makes the sprite do something. Select the Looks palette of blocks and drag-and-drop the one with the label say Hello!  Now you have a complete program but you need to change the message from Hello! to Hello World. Click on the text within the block and you should find that you can enter a new message. The program should now look something like:  <span style="background-color: #ffffff; color: #333333; font-family: Verdana,Geneva,sans-serif; font-size: 14px;">If you now click on the green flag above the stage area then the script will run and the Sprite1 will display a speech bubble with Hello World in it: <span style="background-color: #ffffff; color: #333333; font-family: Helvetica,Arial,sans-serif; font-size: 12px;"> <span style="font-family: Verdana,Geneva,sans-serif; font-size: 110%;">That's all there is to it. You have your first working Scratch program. It should now be easy for you to explore the blocks that are available to construct more complex scripts. <span style="font-family: Verdana,Geneva,sans-serif; font-size: 110%;">There are a few points to make clear. The first is that you associate a script with a particular sprite by selecting it in the Sprite List. You can have multiple sprites and the scripts determine the behavior of each one. You can think of the scripts that belong to a sprite as its methods if you want to emphasize object-oriented programming.

Reference Guide
<span style="font-family: Verdana,Geneva,sans-serif; font-size: 110%;">This Reference Guide provides an overview of the Scratch software. If you are just getting started with Scratch, we encourage you to try the Getting Started Guide first (we will start with this). Link I have printed copies. <span style="font-family: Verdana,Geneva,sans-serif; font-size: 110%; line-height: 0px; overflow: hidden;">

<span style="font-family: Verdana,Geneva,sans-serif; font-size: 110%;">The Scratch website has many other resources to help you learn Scratch: Video tutorials, Scratch cards, and Frequently Asked Questions (FAQs). Please see []

BLOCKS PALETTE and SCRIPTS AREA
<span style="font-family: Verdana,Geneva,sans-serif; font-size: 14px;">To program a sprite, drag blocks from the Blocks Palette to the **Scripts** Area. To run a block, click on it. <span style="font-family: Verdana,Geneva,sans-serif; font-size: 14px;">Create scripts (programs) by snapping blocks together into stacks. Click anywhere on the stack to run the whole script, from top to bottom. <span style="font-family: Verdana,Geneva,sans-serif; font-size: 14px;">To find out what a block does, right-click (Mac: Ctrl+click) on it, then select help from the pop-up menu. When you drag a block around the Scripts Area, a white highlight indicates where you can drop the block and form a valid connection with another block. <span style="font-family: Verdana,Geneva,sans-serif; font-size: 14px;">To move a stack, pick it up from the top block. If you drag out a block from the middle of a stack, all of 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. <span style="font-family: Verdana,Geneva,sans-serif; font-size: 14px;">Some blocks have white editable text fields inside, such as. To change the value, click inside the white area and type in a number. You can also drop rounded blocks, like, inside these areas. <span style="font-family: Verdana,Geneva,sans-serif; font-size: 14px;">Some blocks also have pull-down menus, such as. Click to see the menu, then click again to make a selection. <span style="font-family: Verdana,Geneva,sans-serif; font-size: 14px;">To clean up the Scripts Area, right-click (Mac: Ctrl+click) and select clean up from the menu. To export a screenshot of the Scripts Area, right-click and select save picture of scripts. <span style="font-family: Verdana,Geneva,sans-serif; font-size: 14px;">To add a comment to the Scripts Area, right-click (Mac: Ctrl+click) and select add comment. A yellow comment area will appear, and you can type in text.

<span style="font-family: Verdana,Geneva,sans-serif; font-size: 14px;">o resize the width of the comment area, use the handle on the right edge. Click the triangle at the top-left to collapse or expand the comment area.