Introduction To Scratch (Computer)
Introduction To Scratch (Computer)
""
EU~ ple ~
~
Move to th e left from the class and go straight .
After crossing·five classes, take a left turn.
Then , go forward and after crossing six classes.
take a righ t turn .
C) Starting S"Talrh
' l(l stnrt Srrn h.:h, follmv the steps given below :
·• • I
t## ·l i
r.;c:E.l
~
1' ' -=:i
'
I ~ oe
'
. j_ l'.ll'[J
11
Raa::t -
Figure 6.1: Starting Scratch II ' ~
. .. . a ~e... u40\\e.~, ~~
(') _Mam Components ot Scratch ',-I 'NJ"'" c,..~t.. ,,.t. lk ~ ~,.'L.. "'-"ll
Following are the main components of' the Scratch window. ·-, ..__,
Full Scree n
LMenu Bar ) lTitle Berl Control~
1!!111 ., ,. ,.. • - ..... ""'-'. .
•• ~
l Scripts Area ]
[ Sprite List • •
~~
Choose a Choose a
~ Extension - ~ ; ckdrop B,non
It==
~ t- Figure 6.2: Components of Scratch Window
Sprite ~
~rite is a small graphic charact~r that p:rforms _act_ions in a Scratch projefij Scratch provides
a number of inbuilt sprites{Cat 1s the default spnte m ScratcD _~ I I ~
Sta ~ W~ t~ ~ tt~t,.v.U-- ~~k \\\. H ~ ·
(ft isg! e main working area where the sprite moves and performs actions, as per the given
instruction})On it, you can watch stones, play games, and run projects that you have created.
Blocks Palette
\.!!
--
!)e.~ -AL
r.-r1The Blocks palette contains a set of blocks that is used to prooram the
o
. d . . ns
spnte an give ac 0 o
Script_ ..bt~'"'-e___--
{i. script i :collection of step-wise instructions that is given to a sprite to do a specific ta~, ,. /I
script consists of at least two blocks.) A. k~r-t- ~~~J ol W ~IJ IMA-0 .b~.9
Scripts Area \J~ ~~ I
@e Scripts Area is the place where you create a script for a sprite to do a particular task.)
The script is created by dragging the instructions from the blocks palette an~ dropping th em •
step-wise one below the other.~ script is also called a Program.) ~ °'- f wivJ- r&J~M.~?
~ .
Let us learn how to drag and drop the blocks in the Scripts Area:
II '
'
• .if::11&
Left Click Drop
;5\
(, ., I j
\ I /
- - -- - - - - - - -· "'- -------------
Figure 6.3: Drag and Drop Blocks in the Scripts Area
·
This .
block moves the sprite 20 steps m c
the 1orward d'1rection. To move the sprite
in the backward direction, type a negative number, for example, -20 ·
I
This block is used to turn the sprite in the clock-wise direction. To turn th e sprite
in the anti-clockwise direction, use the ._...- - block. \
~ Keep clicking on any of the blocks in the Scripts Area till the
sprite completes its colourful circle. L______ ____
Let us understan d the use of the Pen blocks that you have used in Figure 6.5: Drawing a
Colourful Circle
the project.
- .
1111 s block puts the
.
h s rite moves on the stage.
pen down and draws a line as t · c P
Th" Q;j-·1 ··'; ·-• block is in the Motion blocks palette. It is used to turn the
sprite in the opposite direction as it reaches the edge of the stage.
e Adding Sound 1-\t,l,J t- (!_I).... ~O"- ~.u_ M IA...J._ i" ti('r ,.nirl ?\
Q!_le Sound blocks palette has different blocks that you can use to add sounds in r_our scrip...s)
Let's simply add the Meow sound in a script. For this, follow the given steps:
~ Make the script by dragging out the blocks as shown in Figure 6.7 and stack th~m
on top
of each other.
~ Click on the script to play the project.
------ ---- --
Figure 6 .7 : Adding Sound in a Project
play sound Meow • ta1til done This block plays a specified sound. The script will pause until the sound has
finished playing.
I ·--
o ~c::Dm oc::,a
..., ..., ..., ...., ...,
I
0 0 0 i
0 0
I ·- ... r .. ._. " r:>w<-.. .,_,.._ .,_,
Choose a Sound 0 0 0 0 0
Rotord Sound •
•Record
0 To listen to the recording, click on the Play button O. availab1e 'n 40 cifu:rent
la,gLages.
0 The recorded sound will be added to the sound list and in the play
sound block with the name recording 1, automatically.
ploy sound Meow • unbl done
Ell
I U!RM
To record your own sound in the project, you need a microphone attached
to your computer system.
~ Click on the File tab. Select the Save to your computer option from The official w ebsite of
Scratch is:
the drop-down list.
lwww ~LratLh m1t .edu
~ Choose the desired location where you want to save your Scratch project.
0
Assign a name to your project in the File name text box.
~ Click on the Save button.
Q
t,,,, ......"'4
l- l. JC' • •••v
1.11:.·,1<'1.1"')
UT"1f..H\l"-'
-••
Figure 6.11 : Saving a Project Figure 6.12: Save As Dialog Box
0 Your Scratch project will be saved. You can open it whenever required.
a:, . CJ oI
l,,6/2019 ,U'> h ,1 f·"'f°'~h1
S,m lch"'"'rt<tt P.15,/lOlit-OolPM f ilt lo&.111
11nmo,t \-!10 Pr..1 folrloldN
~::. ~
1 v,._
'f., Locll o.t: (C.:)
_ LoulDla;(O.)
•
• l oc.10 . (b) •
~• BRAIN DEVELOPER)))
4. The blocks of the ...........~...e..\1 ...... ............... ..blocks palette allow the sprite to draw lines on the stage,
change the colour, and thickness of lines.
5. In Scratch, the sprite moves on the .......... $.±~.i ~ . . .. . . when you run a program.
4P 0 Stage 0 Pen 0 Scratch 0 Script 0 Sprite
2. Blocks palette is the area where the sprite performs a specific task. C¢'l
3. A script consists of at least two blocks.
=-,=',
•........... :
..... ·-.
4. You can turn the sprite only in the clock-wise direction. F ·'
'·............
I
to rrogram th e sprite.
✓ Block s Pakt k c. Scripts Area
h. Stage
~- . ............. ....... l)loL·k' pu Is IIle pen I
v ....-..
.• .~ ........... ..... town an(I c.Iraws a 1inc
· a.,, 1he ·spr·1te move s on the stage
·
C.
4
· Blocks related 10 move ment of sprite arc give n in th e .
..... catego ry.
/Mo tion
b. Pl'.ll c. Both a and b
5. Whk h of the following palett e has the sound blocks?
a. Motion
b. Music Ao und
D. Application-based ques tions.
l. Aarav ,vants to make a Scratch project wherein he wants
to move the sprite in forwa rd direction by
20 steps. Suggest him an appropriate block to perform this action
.
························· ················•····························· ····················•···························· ···························
2. What is a sprite?
··•····•·"·'•"··"·········· .. ............. . .... ... ... • • • • • . .. . . . . . . • .. • .... • .... ... ... • . . .. .. . .. .... . ... . .. . . . . . . .... ..... .. . .
. . . . . . . . .. . .. .. .. ...
....... . . . ...... . ... .
.. .. . .... ..... . u ..... .