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

Getting Started With Scratch

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

GETTING STARTED WITH SCRATCH!

Introduction :
Scratch is an easy-to-use programming language that allows anyone, of any ages, to
create their own interactive stories, games, animations, videos, art, and music on the computer.
Scratch was created by the Lifelong Kindergarten group at MIT Media lab and is available for
free download at http://scratch.mit.edu.

Elements of scratch
There are four main elements of Scratch: the stage, the sprites, the script and the
programming/blocks palette.

Figure 1: Scratch user interface


1. Stage- is a "sprite" that represents the background of its project.This is where everything will
take place.No sprites can move behind the Stage — the Stage is always at the
back layer, and it also cannot move itself.
2. Sprites- are the objects that perform actions in a Scratch project.

3. Scripts -Blocks from the Programming Palette are dragged into the Scripts Area. These then
can be combined with other blocks to form scripts, and eventually a project.These
also tells the actor what to do.
4. Programming Palette- elements used to program the sprite to do or say something. Sprites
must be programmed to carry out every function you want them to perform.
Table 1 : Programming Palettes blocks
Block Palettes Description
Motion controls the up, down, left, right, and rotation movement of the sprites.
Looks affects the appearance of your sprite such as color and costume.
Sound control sounds, pitches, and volume.
Pen pen functions allows you to draw lines and objects on the stage.
Data Code blocks that can be used to store data used by applications when they
execute.
Events are blocks that control events and the triggering of scripts.
Control allows you to specify things such as what starts and stops your sprites, how
you can move the object, conditional operators such as if/then and repetition
Sensing Code blocks that can be used to determine the location of the mouse-
pointer, its distance from other sprites, and whether a sprite is touching
another sprite.
Operators  Logic operators including tools to perform match functions, select a random
number, greater than, less than, equal to, etc.
Make blocks are user-made custom blocks.

Figure 2 : Block Palettes


Coding with Scratch

Lesson Title : If-then statement

Grade : Grade 8

Subject Area : Mathematics

Prerequisite : Variable, Rectangular coordinate system,Integers

Introduction

Justifying statements is an integral part of learning geometry and in real life, often, these
statements are conditional statement, if-then statement . In everyday language,an if-then
statement may suggest causality such “ If the clouds are dark, then it will rain”.It may also
suggest a consequence, “ If you have time, then you can help me.” Conditional statement is
also an important aspect of many programming languages like scratch.Conditions are a key
part of the decision-making process for computers. Scratch is a free visual programming
language developed to help simplify the process of creating and programming animations,
games, music, interactive stories and more.In this activity, you will explore different scratch
blocks , making use of conditional statement in creating scratch project!

OBJECTIVES

At the end of the activity, you will learn to :

1. Illustrate if-then statement through scratch programming language.

2. Determine the relationship between the hypothesis and the conclusion of an if-then
statement.

3. Appreciate the application of mathematics concept in computer language and in real


life.

MATERIALS
Worksheets Projector
Laptop

Activity 1
SCRATCH Eplore!
Time Duration : 10 mins

Driving Question : CAN YOU MAKE THE SCRATCH CAT DO SOMETHING


SURPRISING?

Start Here
1. Open scratch software located on your desktop.
2. Click on the “New” tab located at the top left of the software
to start a new project.
3. Time to explore! Try clicking on different parts of the Scratch
interface to see what happens.

4. Play with different Scratch blocks! Drag and drop Scratch blocks
into the scripting area. Experiment by clicking on each block to
see what they do or try snapping blocks together.

Guided Question :

1. Did the cat move? What

References :
https://portal.sd38.bc.ca/public/8zd3fg5/Pages/scratch_interface.aspx#/=

You might also like