Scratch Programming - Part 1

Introduction of Scratch and its Components

Scratch is a visual programming language developed to create animations, games, art, stories, etc. It provides various tools such as paint editor, sound editor, etc. for creating different objects like interactive stories, visual lessons and informational texts. Scratch is used as a means of teaching the fundamentals of computer programming in schools and can be easily used by students, teachers and parents. The animation programmes made using Scratch are used for both educational and entertainment purposes.



Scratch and Adobe Air download and installation tutorial 




Download and install Scratch and Adobe Air





Components of the Scratch Editor


Stage

Stage is a platform where objects appear while creating an animation. An effect to any object is visualised on the stage.

Sprite

Each object appearing on the stage is termed as a sprite. Sprite can be posted from the library or can be an image from a camera or created through a paintbrush.

Sprite Area

It is the space at the lower pane of a ‘Sprite Editor’ window. It displays a list of sprites that are visualised on the stage.

Blocks

Blocks refer to a list of effects that can be added to an object. Some blocks are Motion, Looks, Sound, Pen, Control, etc.

Block Palettes

Each block contains a list of commands. The set of commands under each block is listed when a block is clicked. They are called Block Palettes.

Backdrop

Backdrop is the background of the stage on the ‘Scratch’ window which gives the real look of the animation.


Thus, Scratch is a programming language that helps to make presentations. It enables users to create animations by using different picture components. Various properties like costumes, backstage, color, etc. can be added to objects.

Adding Backdrop on the stage

The term 'stage' in Scratch means the same as a stage created for cultural programme. By default, the stage appears white when you start Scratch. You can decorate the stage by adding 'Backdrop'.
To perform this task, you can use the following steps:
  1. Select and click an icon from the list of backdrop icons (say, Choose backdrop from library). A 'Backdrop Library' window will be displayed.
  2. Select a specific category or theme from the left pane of the window. Various backdrop designs matching your category or theme will appear on the right pane of the window.
  3. Select an appropriate backdrop (say, spotlight stage) and click 'OK'.
  4. The backdrop will be displayed on the stage.
  5. You can also set the sprite at an appropriate position on the screen. Take the mouse pointer on the sprite.
  6. Click the left button of the mouse and drag the sprite.

Changing the Backdrop

Suppose, you have created a backdrop but it is not suitable for your animation. Then you have options to change the backdrop.
To change the backdrop follow these steps: -
 
  1. Select and click an icon from the list of backdrop icons (say, Choose backdrop from library). A 'Backdrop Library' window will be displayed.
  2. Select a specific category or theme from the left pane of the window. Various backdrop designs matching your category or theme will appear on the right pane of the window.
  3. Select an appropriate backdrop (say, spotlight stage) and click 'OK'.
  4. The backdrop will be displayed on the stage.

Changing the Sprite

Sprite is an object produced on the stage of scratch window. You may need to remove one sprite and produce another sprite to meet your requirements.

To change a sprite, perform the following steps:
  1. Click on the 'Delete' option on the menu bar of the Scratch window.
  2. Set the mouse pointer on the unwanted sprite and click the left button of the mouse. It will be deleted.
  3. Now, click on may one of the 'New sprite' icons (say, Choose sprite from library). A 'Sprite Library' window will appear on the screen.
  4. Select any category or theme from the list and click on a suitable object to be added on the stage.
  5. Finally, click the 'OK' button on the lower pane of the window. The new sprite will appear on the stage.

Changing the size of a Sprite (Image)

Sprite is an object available on the stage of the 'Scratch Editor'. You can resize a sprite as per your convenience. 

Perform the following steps to resize a sprite:

  1. Click the 'Shrink' or 'Grow' option available on the File tool bar.
  2. Set the mouse pointer on the appropriate sprite and keep clicking the left mouse button.
  3. The sprite will shrink or grow accordingly.
  4. Remove the mouse pointer from the sprite and keep it on the black space of the stage and click the left mouse button once.
  5. Hence, the sprite will be resized as per your requirements.

Customising Stage Components

The stage components can be customised to appear in various forms. You may need customise the following stage components:
  • Customise Sprite
  • Customise Backdrop
Customise Sprite

You can customise a sprite so that it can appear in different forms on the stage.
Follow the given steps to perform the task:
  1. Select the sprite from the list of sprites on the Scratch window.
  2. Click 'Costume' and then click 'Costume from library.'
  3. Select 'Category' or 'Theme'. A list of various costumes will appear in the right pane.
  4. Select an appropriate costume (say, cassy dance -b) and click 'OK'.
  5. Hence, the sprite with other costume will appear.
Customise Backdrop

You can also customise backdrop in the same way you customise a sprite. 
To customise backdrop, perform the following steps: 
  1. Click on the 'Stage 1 backdrop' available at the lower pane of the Scratch window.
  2. Select 'Costume Backdrop' and click 'Choose backdrop from library' option from the 'New Backdrop' menu. A list of backdrops will be displayed on the screen.
  3. Choose 'Category' or 'Theme'. A list of various backdrops will appear on the right side of the window.
  4. Finally, click 'OK'. The backdrop will be customised.

Multiple Sprites on the Stage

Sometimes, you may need to provide multiple sprites on the stage according to your requirements. 
It can be done by following the given steps:
  1. Let one sprite be available on the stage.
  2. Click 'Choose sprite from library'. A list of different sprites will be displayed.
  3. Select an appropriate sprite and click 'OK'.
  4. The next sprite will be displayed on the stage.

0 Comments