SCRATCH PROGRAMMING ch-1
SCRATCH PROGRAMMING ch-1
GETTING STARTED
With SCRATCH FOR Scratch is a visual programming language that is perfect for
CREATING GAMES making games, animations, interactive stories and other visually
ANIMATION rich programs. Scratch can be used to play digital music and
INTERACTIVE STORIES
sound effects
&
MORE.
WHAT IS PROGRAMING LANGUAGE
WhyScratch?
You don’t have to remember or type any commands.
Error messages are rare.
The commands are color-coded and categorized,so you
can easily find a command when you need it.
The commands in Scratch simplify common activities.
Who is developer of Scratch?
Scratcher Jocelyn with Scratch co-creator Mitchel Resnick, who heads the Lifelong Kindergarten group at the
MIT Media Lab, home base of the Scratch team.
Here it is clearly mentioned either you want to download it for windows operating system or
others. So click on Windows 10+ link here.
CREATING A NEW SCRATCH PROJECT
The first step in creating a new Scratch application is to click on the New button located at the top of the
Scratch IDE. The Scratch IDE is organized into a number of separate components as shown in next page.
For starters, the code block area contains code blocks, organized into different collections.You will uses
elected code blocks to create a script that makes the sprite talk. The main parts of the Scratch IDE,as
shown in the figure below
TABS
BLOCK
PALATTE
STAGE
AREA
SCRIPT
AREA
SPRITE
LIST
ADD NEW
ADD SPRITE
EXTENSION
ADD BACKDROP
Stage Area
This is a place where everything takes place, such as animations, turtle graphics either in a small or
normal size, with a full-screen option also available. It uses X and Y coordinates to monitor action with
0, 0 being the stage center. All the action by a sprite is performed here.
Sprite List-The cat is a “sprite”, which is like a character or object in a game. Your project might include
lots of sprites, such as the player’s spaceship, invading aliens and a missile. Sprite List displays thumbnails
of all the sprites in the current Scratch project . For each sprite, it shows the sprite’s name, how many
scripts it has, and how many costumes it has.
Blocks Palette-In Scratch,you give the computer commands by using blocks, which are instructions that fit together
like jigsaw pieces. The Blocks Palette presents you with all the blocks you can use. When you start Scratch, you can
see the Motion blocks, which are color-coded in dark blue, and are used for moving sprites around the Stage.You can
browse a different set of blocks in the Blocks Palette by clicking one of the buttons, such as the Looks button or the
Sound button.You can also scroll through all the blocks in the different categories in the Blocks Palette.
Script Area/Code Area-The Code Area is where you make your programs, by joining instruction blocks
together.When you join blocks together,the result is called a script.The CodeArea expands to fill
the screen space available,so if you use a larger monitor, the Code Area will be bigger.
Add New Sprite-This option help you in adding new sprite by uploading, paint, and select from
library option.
Add New Backdrop-This option help you in changing background by uploading,paint and select
from library option.
Add Extension-An extension is a category of blocks that can be added to the Block Palatte and
extends the scope of the Scratch Editor. Extensions make it possible to connect Scratch projects
with external hardware such as sources of information on the web (such as Google Translate and
Text to Speech), pen,music,video sensing or blocks allowing for more advanced functionality.
In Scratch, any character or object is called a sprite. Every new project in Scratch starts with the Cat sprite.
First, select the sprite by clicking thumbnail in the Sprite List. Then,
SCRATCH BLOCKS
The Scratch blocks are arranged into color coded categories:
Events:Event blocks are used to control events and helps in triggering scripts.
Control-This block used to control the execution of script using loop ,repeat option.
=go to any position by giving x and y values,x lies between -240 and 240 and y lies between
-180 and 180.
1. DragoutaPLAYDRUMandsnapitontotheMOVEblock.
Clickonthisandlistensound
Differentdrumscanbechosenfrompull down.
HOWTODANCEASPRITE
HOWTOSAVEAPROJECT
ThisisdonebyclickingontheSavebuttonlocatedatthetop oftheScratchIDE. Inresponse, the Save
Project window displays, allowing you to assign a name to your project and store it on your
computer.
PROJECTS
BASED ON
SCRATCH
STEPS :
A.SELECT A BACKDROP
B.SELECT A SPRITE
3.Type building in search option and select building from sprite library.
1
2
3
STEPS:
A.MOVE SPRITE IN LEFT DIRECTION
1
3
SAVING A PROJECT
1.Click on the File menu in the menu bar and select the Save option from
the drop-down list.
2.Choose the location where you want to save your project ant type a
suitable name in the File name box.
1. Click on the File menu in the menu bar and select the Load from
your computer option from the list.
1
2
ACTIVITY
TIME
Write Scratch code for touching circle 1 to circle 5 using motion block.
(Note:Add Sound after touching each circle)