0% found this document useful (0 votes)
120 views

cl 6 scratch programming

Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views

cl 6 scratch programming

Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

CLASS 6

COMPUTER APPLICATION

Scratch
programming-
Introduction to game
creation
Working with Blocks

 Blocks are puzzle-piece like shapes that are


used to create a program in scratch.
 Different types of blocks have their own shapes
and a slot for it to be inserted.
Motion Blocks
 It is used to control a
sprite’s movement.
 Used to move, turn, set
position and define the
motion of a sprite.
 Steps:
From script tab -> click on
motion block -> select the
block click and drag in the
script area
Looks Block
 Itis used to control the
appearance of the
sprite. They are
available only for
sprites.
Control Blocks
 It is used to control the
scripts.
 It available only for sprites,
and can be done using
forever script of the control
block.
Using the Pen
The pen script of the Action library is used to
draw a line to trace a path where an object
moves.
Steps:
1. Start with new program by clicking on file-
>new
2. From sprite area right click on the cat
sprite and from the popup menu select the
delete option. Other common commands:
3. From scripts area click on choose sprite 1.Clear
from library. From that choose arrow and
click ok button.
2.Stamp
3.Pen up
4. From the events library click on the drop
down list in (when space key pressed) when 4.Set pen color to
green flag clicked command. 5.Set pen size to
5. From the pen script click and drag pen
down in the script area.
Sound scripts
 The sound scripts are
used to produce the
sound effect with the
sprite object.
 Simplycan click and
drag the sound effect
commands to produce
the sound effect with
the sprite.
Adding a new sprite
 Clickthe choose new
sprite from file button,
the new sprite dialog
box appears.
 Click
the costumes
button
 Select
a sprite from a
category
 Click ok button
Create your own sprite
 Delete sprite 1
 Click
paint new sprite.
The paint editor
window appears.
 Draw the character of
your choice.
Make the sprite change its
color
Click the looks block
from the blocks
palette
 Drag the change color
effect by block to the
scripts area.
Working with multiple


sprites
Delete the old sprite and choose a new sprite.
Click the costume tab, next to the scripts tab
 Click the import button. The import costume
dialog box appears.
 From people category. Choose the break-dancer –
1
 Click ok you will notice that breakdancer 1
appears under the costumes tab
 Repeat steps 3,4,5.
 In script area, create a block stack
 Click the green flag to see the movements, press
stop everything button to stop the movement.
Change the background of the


stage
Click the stage icon to the left of the sprite list
Click the backgrounds tab, next to the scripts
tab
 To create your own background click the paint
button, the paint editor window appears. Draw
using the tools. Click ok.
 To choose from the available list of
backgrounds, click import button. The import
background dialog box appears.
 Click the background button. Choose category
and select background.
 Click ok button.
Book back questions 1-3
3 ans:
Using multiple sprites in Scratch allows for more complex and
interactive projects. Each sprite can handle different tasks, like moving
characters, backgrounds, or displaying scores. This makes the code
more organized and enables dynamic interactions between elements,
like collisions or event triggers.
Extra questions:
4. Explain working with blocks in detail?
5. how will you add a new sprite?
6. write the steps to change sprite color?
7. Name the various blocks used in the sprite.

Lab activities:
create a underground sea and write the steps for adding sprite and
adding background and also draw blocks given in page no 117 exercise
A

You might also like