0% found this document useful (0 votes)
41 views49 pages

CBSE - IV - Computer Studies - Animating Sprites in Scratch

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views49 pages

CBSE - IV - Computer Studies - Animating Sprites in Scratch

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 49

Subject: Computer

Studies
Topic: Animating Sprites in
Scratch
Std: IV

CB/IV/2021 Animating Sprites in Scratch 1 of 49


Introduction of
Scratch
Programming

CB/IV/2021 Animating Sprites in Scratch 2 of 49


Scratch Programming

Scratch is a programming language


that can be used to create a program
by dragging and dropping blocks of
instructions. You can create your own
interactive stories, animations,
games, music and art. Scratch uses a
visual editor that provides you with
quick output. This makes
programming in scratch fun.
A Scratch program is saved as a
project.
CB/IV/2021 Animating Sprites in Scratch 3 of 49
Technical Guide

Scratch is available as an online and


offline version.
Scratch 3.0 online version –
Create a login using ‘Join Scratch’
Downloading Scratch 3.0 offline
version -
You can download and install the Scratch 3
application on your computer, using the
link
https://scratch.mit.edu/download
CB/IV/2021 Animating Sprites in Scratch 4 of 49
Scratch 3 application window

CB/IV/2021 Animating Sprites in Scratch 5 of 49


Adding a sprite in Scratch

CB/IV/2021 Animating Sprites in Scratch 6 of 49


Deleting a sprite in
Scratch

CB/IV/2021 Animating Sprites in Scratch 7 of 49


Using Event Blocks

CB/IV/2021 Animating Sprites in Scratch 8 of 49


Using Motion Blocks

CB/IV/2021 Animating Sprites in Scratch 9 of 49


Using Looks Blocks

CB/IV/2021 Animating Sprites in Scratch 10 of 49


Costumes of a sprite

CB/IV/2021 Animating Sprites in Scratch 11 of 49


 to use a backdrop
 to create a custom sprite and its
costumes
 to change the size of a sprite
 to apply image effects on a sprite
 to use Control blocks
 to add sound to a sprite
CB/IV/2021 Animating Sprites in Scratch 12 of 49
Creating a custom sprite

You can draw your own sprites (pictures


or text) using the Scratch Paint editor.
CB/IV/2021 Animating Sprites in Scratch 13 of 49
Drawing & painting tools

CB/IV/2021 Animating Sprites in Scratch 14 of 49


It is used to
select an area on
the canvas and
relocate, stretch
or compress it or
modify it.

CB/IV/2021 Animating Sprites in Scratch 15 of 49


It is used to bend
or change the
shape of a sprite.

CB/IV/2021 Animating Sprites in Scratch 16 of 49


It is used for
freehand drawing
by clicking and
dragging the
mouse pointer.

CB/IV/2021 Animating Sprites in Scratch 17 of 49


It is used to
remove (or
erase) a part of
a drawing.

CB/IV/2021 Animating Sprites in Scratch 18 of 49


It is used in filling
colours only in
closed objects.
You
cannot fill in the
blank background
with it.
CB/IV/2021 Animating Sprites in Scratch 19 of 49
It is used to type
letters and
numbers on the
canvas and start
typing when a
cursor appears.

CB/IV/2021 Animating Sprites in Scratch 20 of 49


It is used for
drawing straight
lines. To draw a
line, click and hold
the mouse, and
move it to draw the
line and then
release the mouse.

CB/IV/2021 Animating Sprites in Scratch 21 of 49


It is used to
draw ovals or
perfect circles.

CB/IV/2021 Animating Sprites in Scratch 22 of 49


It is used to
create rectangles.
When the tool is
selected, click and
drag the mouse to
draw a rectangle
on a canvas.

CB/IV/2021 Animating Sprites in Scratch 23 of 49


Costume of a sprite

Costumes are different forms


or poses of the same sprite.
These costumes can be used
to create either animations or
special effects.
CB/IV/2021 Animating Sprites in Scratch 24 of 49
Creating a costume
of a sprite

CB/IV/2021 Animating Sprites in Scratch 25 of 49


Customising a backdrop

•Click the Paint option in the ‘Stage’


section to open the Scratch Paint editor.
•Draw and paint your own backdrop using
the drawing and painting tools.
CB/IV/2021 Animating Sprites in Scratch 26 of 49
Creating your own
backdrop

CB/IV/2021 Animating Sprites in Scratch 27 of 49


Script to display
different backdrops
one by one

CB/IV/2021 Animating Sprites in Scratch 28 of 49


Changing the size of
a sprite

Changing the size of a sprite


makes it bigger or smaller. You
can use this feature to show a
growing or shrinking sprite in an
animation or a game.
CB/IV/2021 Animating Sprites in Scratch 29 of 49
Changing the size of
a sprite

‘Set size’ will set the sprite to a


specific size while ‘change size’
will change its size by a specific
amount.
CB/IV/2021 Animating Sprites in Scratch 30 of 49
Applying image
effects on a sprite
We can change
the colour of
the sprite as
well as give
different
effects using
the ‘set …
effect to’
block.
CB/IV/2021 Animating Sprites in Scratch 31 of 49
Applying image
effects on a sprite

CB/IV/2021 Animating Sprites in Scratch 32 of 49


Image effects on a sprite

CB/IV/2021 Animating Sprites in Scratch 33 of 49


Learning by Doing

CB/IV/2021 Animating Sprites in Scratch 34 of 49


Basic Control
Blocks

CB/IV/2021 Animating Sprites in Scratch 35 of 49


repeat

The script held inside this block


will be executed in a loop for a
specified number of times, before
allowing the remaining script to
continue. This block can be used to
execute the same script
repeatedly.
CB/IV/2021 Animating Sprites in Scratch 36 of 49
repeat

For example, in the


adjacent script, the
repeat block is used
to change the
costume of the
sprite after every 5
seconds. It will
repeat this 10 times
before coming to a
stop.
CB/IV/2021 Animating Sprites in Scratch 37 of 49
forever

The script held inside this block


will be executed repeatedly in a
loop until the stop sign is
clicked.

CB/IV/2021 Animating Sprites in Scratch 38 of 49


Example of ‘forever’

For example, in
the adjacent
script, the forever
block will keep
rotating the sprite
in a circular
motion until the
stop sign is
clicked.
CB/IV/2021 Animating Sprites in Scratch 39 of 49
Example of ‘forever’

The adjacent
script will keep
changing the
colour of a sprite
at an interval of
1 second, until
the stop sign is
clicked.
CB/IV/2021 Animating Sprites in Scratch 40 of 49
Sound Blocks

CB/IV/2021 Animating Sprites in Scratch 41 of 49


Sound Blocks

The blocks available in this


category can be used to control
the volume, tempo and other
features of the sound being
played.

CB/IV/2021 Animating Sprites in Scratch 42 of 49


Sound Blocks

CB/IV/2021 Animating Sprites in Scratch 43 of 49


Sound Blocks

CB/IV/2021 Animating Sprites in Scratch 44 of 49


Example of Sound block

For example, this


script will play the
sound ‘Meow’ 5
times, and gradually
decrease the
volume each time.

Note that before executing the above script


once again, you need to run the block
to set the volume to its full value.

CB/IV/2021 Animating Sprites in Scratch 45 of 49


Adding new Sounds

Upload Sound – to upload any sound file that is stored on your


computer.
Surprise – to add any random sound file from the library.
Record – to record your own sound.
Choose a sound – to choose the sound from library.
CB/IV/2021 Animating Sprites in Scratch 46 of 49
Learning by Doing

CB/IV/2021 Animating Sprites in Scratch 47 of 49


Mind Map

CB/IV/2021 Animating Sprites in Scratch 48 of 49


CB/IV/2021 Animating Sprites in Scratch 49 of 49

You might also like