Nothing Special   »   [go: up one dir, main page]

Scratchbilalnew 191206065255

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 24

This work is licensed under a Creative Commons Attribution 4.0 International License.

An intro to programming
concepts with Scratch

Prepared By Bilal Hanbali


SCOPE
What is scratch? Why ? How ?

Scratch is a free object- • Scratch does NOT Scratch can either be used
oriented software online in a web browser, or
require syntax
development kit (SDK) that downloaded and used
allows children age 8-16 to • Scratch can be used to offline.
create animations, create sophisticated Online
interactive stories, games programs https://scratch.mit.edu/
and music without needing Offline
to know a specific • Scratch is extensible https://scratch.mit.edu/
programming language. download
What is Scratch?
• Scratch is a simple environment designed by the Kindergarden
Lifelong Learning Group at MIT.

• In Scratch, sprites (objects) are manipulated on the stage


(background) using various scripts (small program segments).
Each sprite has its own set of scripts to control its behaviors and
how it interacts with other sprites and events.
What is Programming
• Programming is the art of making a computer do what you want it to do

• A computer program is simply a set of instructions to Tell computer how to perform a task.

• It is like a recipe: a set of instructions to tell a cook how to make a dish.


Why Scratch
• Help kids become fluent with
Digital media
Express themselves creatively
Make connections to powerful ideas.
Learn important computational ideas.
Reason systematically.
Let’s Get Started!
e
Stag BASIC INTERFACE
De Blo
scr ck
ipt
i on
Scr
i pt
Are
a

Sprite List
MENU:
• This is how you can create a ‘New’ project, ‘Open’ or ‘Save’ an
existing project, ‘Save (a new project) as’ whatever name you choose,
‘Undo’ a previous action, and obtain ‘Help’.

BLOCK DESCRIPTIONS:
The block categories are all color coded so
when you see a block of a specific color,
you can quickly determine which category it
came from.
GREEN FLAG / RED STOP
• Typically you click on the Green Flag to start your main program(s) and
the Red Stop sign to end them.
LEARNING TO SCRATCH
• The best way to learn Scratch is through experimentation. As it is an
interactive environment, feel free to stop and experiment as you work
through this tutorial.

WRITING SIMPLE SCRIPTS


• To create a script, we simply drag a block from the Blocks Palette onto
the Scripts Area. To run it, we can double-click it and observe what
happens on the stage. Let’s try…
Can be an number
Training Objective

Dancing CAT
STEPS

Step 1 Step 2 Step 3 Step 4

• Start • Add a • Start a • Loop


Moving Sound Dance
Double click on the desktop icon
Drag a MOVE block into the Scripts area Add a Sound

Click on the block to make the cat move. Drag out a PLAY DRUM and snap it onto the MOVE block.
Behind the code
• Drag out a PLAY DRUM and snap it onto the MOVE block.

Click and listen.


If you can’t hear it,
check that the
You can choose different
sound on your
drums from the pull-down
computer is on.
menu.
Start a Dance
Add another MOVE block. Click
inside the block and type in a
minus sign.

Click on any of the


blocks to run the
stack.
Add another PLAY
DRUM block, then
choose a drum
from the menu.
Click to run.
Again and Again
Drag out a REPEAT block and drop it on top of the stack. You want the mouth of
the REPEAT to wrap around the other blocks.
To drag a stack, pick it up from the top block.
Green Flag

Whenever you click the green flag, your script will start.
To stop, click the stop button.
Add a Background
Where to find Scratch
• Online Verison - http://scratch.mit.edu

• Offline Version - https://scratch.mit.edu/download

• Requirements- Adobe AIR - https://get.adobe.com/air/

• Support Materials -

 https://scratch.mit.edu/scratchr2/static/sa/Scratch2StarterProjects.zip

 https://cdn.scratch.mit.edu/scratchr2/static/__709da8e5f3d72129538a4
ccdbcbf5f2a__/pdfs/help/Getting-Started-Guide-Scratch2.pdf

 https://cdn.scratch.mit.edu/scratchr2/static/__709da8e5f3d72129538a4
ccdbcbf5f2a__/pdfs/help/Scratch2Cards.pdf
Try Your First Project!

You might also like