SlideShare a Scribd company logo
HOW SPRITES INTERACT
By:
Dr. Md. Shahnawaz Shaikh
Introduction to Scratch
Scratch is a programming website created by M.I.T. It
shows a bunch of sprites (the characters/actors of the
program) on a background (the setting of the program). The
characters can be moved using the programming blocks.
There are plenty of blocks including motion, sound and
control blocks. These blocks help the sprites come to life on
the background and help create the program/code.
https://scratch.mit.edu/
SCRATCH is a programming language that lets
you create your own interactive stories,
animations, games, music, and art.
LET’S DO
1. Start Moving To Cat
Drag a MOVE block into the Scripts area.
2. Add a Sound
Drag out a PLAY DRUM and snap it onto the MOVE block.
3. 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.
4. 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.
5. Say Something
Click the LOOKS category and drag out a SAY block
5. Say Something
Click inside the SAY block and type to change the words. Click to try it.
6. Green Flag
Drag out a Green Flag block and snap it on top
7. Change Color
Now try something different...... Drag out a CHANGE EFFECT block.
8. Key Press
9. Add a Backdrop
We can add a backdrop/ Background to the Stage.
9. Add a Backdrop
The new backdrop now appears on the Stage.
10. Add a Sprite
11. Explore!
11. Explore!
Sprites (Characters)
Sprites are the main part of the program. They are the
characters or actors on the screen. The most basic sprite is
an orange and white cat. But there are plenty of others, too.
There are the animal, people and cartoon sprites that do all
the moving. There are also musical instruments, balls, food,
clothes and letter sprites that shouldn’t move. Sprites can be
anywhere on the screen and the moving sprites can move to
wherever they have to be using motion blocks. If you don’t
find the sprite you want, you can draw it on the bottom
right corner. There can be multiple sprites on the screen at
one time.
https://scratch.mit.edu/
Backgrounds (Settings)
Backgrounds are in the background of the screen. They are
the setting of the scene. Backgrounds can be colorful, dull,
spooky, fun etc. The sprites are on the background. Unlike
sprites, there can only be one background on the screen at
one time. There are plenty of backgrounds from beaches to
witch houses. When choosing a sprite to go with the
background, the sprite should fit in with the background.
For example, a butterfly would look better on a background
with flowers rather than a background of a baseball
stadium. If you don’t find the background you want, you
can also draw it on the bottom right corner. Backgrounds
help the viewer understand where the scene is taking place.
Motion Blocks!
These blocks move your sprite! Every motion you’ll need you will find
here. (unless it doesn’t exist)
https://scratch.mit.edu/
Look Blocks!
These blocks are where you can make your sprite talk! You can also change
their appearance.
https://scratch.mit.edu/
Sound Blocks!
As redundant as this is, these blocks make sound! Like instruments for
example.
These are
already filled
in, but you can
do that on your
own later!
https://scratch.mit.edu/
Event Blocks!
Event blocks can only work at the start of your code, they are the reason the code
will go. They indicate the start and when your sprite should listen to your code.
https://scratch.mit.edu/
Control Blocks!
These blocks are where you can find your if then statements and your loops. These may
not be the only reason your sprite does things but they are still a large part of the reason.
https://scratch.mit.edu/
Sensing blocks!
● Senses colors or if its touching
an edge or mouse pointer
● Ask and wait for an answer
● Set date, answer, timer and
username https://scratch.mit.edu/
Operating blocks!
● Blocks that include computing
of integers or other variables,
absolute value and modules.
● Random number
● Booleans
● Find a value of a list
https://scratch.mit.edu/
Variable blocks!
● Make, set, change, show and
hide a variable.
● Make a list https://scratch.mit.edu/
Variable blocks!

More Related Content

What's hot

Scratch Programming
Scratch ProgrammingScratch Programming
Scratch Programming
Bilal Hanbali
 
Lesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingLesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer Programming
SeniorInfants
 
Introduction to Scratch Programming
Introduction to Scratch ProgrammingIntroduction to Scratch Programming
Introduction to Scratch Programming
StorytimeSteph
 
Computer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessonsComputer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessons
SeniorInfants
 
Scratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorScratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint Editor
David Oromaner
 
Scratch Lesson 1
Scratch Lesson 1Scratch Lesson 1
Scratch Lesson 1
Vadim Axelrod
 
Intro To Scratch
Intro To ScratchIntro To Scratch
Intro To Scratch
Patrick Woessner
 
Scratch Lesson Plan
Scratch Lesson PlanScratch Lesson Plan
Scratch Lesson Plan
Erika Hayashi
 
Text field and textarea
Text field and textareaText field and textarea
Text field and textareamyrajendra
 
Scratch Basics
Scratch BasicsScratch Basics
Scratch Basics
St. Petersburg College
 
Scratch Lesson 3 - Interactivity
Scratch Lesson 3 -  InteractivityScratch Lesson 3 -  Interactivity
Scratch Lesson 3 - InteractivityDavid Oromaner
 
09 binary number systems
09   binary number systems09   binary number systems
09 binary number systems
Lee Chadwick
 
Basic Excel PPT Presentation.pptx
Basic Excel PPT Presentation.pptxBasic Excel PPT Presentation.pptx
Basic Excel PPT Presentation.pptx
ClengAP
 
Scratch Lesson 3
Scratch Lesson 3Scratch Lesson 3
Scratch Lesson 3
Vadim Axelrod
 
Scratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditScratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek pandit
BibekPandit2
 
Introduction to Microsoft PowerPoint 2010 for Microsoft Windows Slides
Introduction to Microsoft PowerPoint 2010 for Microsoft Windows SlidesIntroduction to Microsoft PowerPoint 2010 for Microsoft Windows Slides
Introduction to Microsoft PowerPoint 2010 for Microsoft Windows Slides
Saide OER Africa
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
afsheenfaiq2
 
Computer Lessons for Kids: Keyboard Shortcuts
Computer Lessons for Kids: Keyboard ShortcutsComputer Lessons for Kids: Keyboard Shortcuts
Computer Lessons for Kids: Keyboard Shortcuts
RobinAge: Weekly Children's Newspaper
 
Mini Scratch Unit
Mini Scratch UnitMini Scratch Unit
Mini Scratch Unit
Patrick Woessner
 

What's hot (20)

Scratch Programming
Scratch ProgrammingScratch Programming
Scratch Programming
 
Lesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingLesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer Programming
 
Introduction to Scratch Programming
Introduction to Scratch ProgrammingIntroduction to Scratch Programming
Introduction to Scratch Programming
 
Computer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessonsComputer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessons
 
Scratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorScratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint Editor
 
Scratch Lesson 1
Scratch Lesson 1Scratch Lesson 1
Scratch Lesson 1
 
Intro To Scratch
Intro To ScratchIntro To Scratch
Intro To Scratch
 
Scratch Lesson Plan
Scratch Lesson PlanScratch Lesson Plan
Scratch Lesson Plan
 
Text field and textarea
Text field and textareaText field and textarea
Text field and textarea
 
Scratch Basics
Scratch BasicsScratch Basics
Scratch Basics
 
Scratch Lesson 3 - Interactivity
Scratch Lesson 3 -  InteractivityScratch Lesson 3 -  Interactivity
Scratch Lesson 3 - Interactivity
 
09 binary number systems
09   binary number systems09   binary number systems
09 binary number systems
 
Basic Excel PPT Presentation.pptx
Basic Excel PPT Presentation.pptxBasic Excel PPT Presentation.pptx
Basic Excel PPT Presentation.pptx
 
Scratch Lesson 3
Scratch Lesson 3Scratch Lesson 3
Scratch Lesson 3
 
Scratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditScratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek pandit
 
Number System
Number SystemNumber System
Number System
 
Introduction to Microsoft PowerPoint 2010 for Microsoft Windows Slides
Introduction to Microsoft PowerPoint 2010 for Microsoft Windows SlidesIntroduction to Microsoft PowerPoint 2010 for Microsoft Windows Slides
Introduction to Microsoft PowerPoint 2010 for Microsoft Windows Slides
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Computer Lessons for Kids: Keyboard Shortcuts
Computer Lessons for Kids: Keyboard ShortcutsComputer Lessons for Kids: Keyboard Shortcuts
Computer Lessons for Kids: Keyboard Shortcuts
 
Mini Scratch Unit
Mini Scratch UnitMini Scratch Unit
Mini Scratch Unit
 

Similar to How sprites interact in Scratch.pdf

How to use Scratch in ICT and Computer coding
How to use Scratch in ICT and Computer codingHow to use Scratch in ICT and Computer coding
How to use Scratch in ICT and Computer coding
YvonnieTzul1
 
Scratch software for kid logic development
Scratch software for kid logic developmentScratch software for kid logic development
Scratch software for kid logic development
muhammadbilal31983
 
Scratch an Editing App
 Scratch  an Editing App  Scratch  an Editing App
Scratch an Editing App
CHARANJEET SIDHU
 
Getting started--Scratch Programming
Getting started--Scratch ProgrammingGetting started--Scratch Programming
Getting started--Scratch Programming
Manjula Fernando
 
Blue Orange and Yellow Geometric Flat Shapes Scavenger Hunt Ice Breaker Class...
Blue Orange and Yellow Geometric Flat Shapes Scavenger Hunt Ice Breaker Class...Blue Orange and Yellow Geometric Flat Shapes Scavenger Hunt Ice Breaker Class...
Blue Orange and Yellow Geometric Flat Shapes Scavenger Hunt Ice Breaker Class...
LaurenMichelle11
 
Getting started-guide-scratch2
Getting started-guide-scratch2Getting started-guide-scratch2
Getting started-guide-scratch2
Solange Zambrano
 
Guide scratch2
Guide scratch2Guide scratch2
Guide scratch2
Laura Gomensoro
 
Scratch2
Scratch2Scratch2
Getting started-guide-scratch2
Getting started-guide-scratch2Getting started-guide-scratch2
Getting started-guide-scratch2
Botol Budu
 
GS_Q1_Computer5_WK1.pptx
GS_Q1_Computer5_WK1.pptxGS_Q1_Computer5_WK1.pptx
GS_Q1_Computer5_WK1.pptx
ArchivaldJohnAnonuev
 
Scratch
ScratchScratch
3. proposal mv 2018
3. proposal mv 20183. proposal mv 2018
3. proposal mv 2018
Andrew Downes
 
Lab a
Lab aLab a
Lab a
sam-pee
 
5. pre production
5. pre production5. pre production
5. pre production
Leah Ellis
 
Scratch Parrot Game
Scratch Parrot GameScratch Parrot Game
Scratch Parrot Game
jenloudun
 
Pre production vg
Pre production vgPre production vg
Pre production vg
Abbie Nicholls
 

Similar to How sprites interact in Scratch.pdf (20)

How to use Scratch in ICT and Computer coding
How to use Scratch in ICT and Computer codingHow to use Scratch in ICT and Computer coding
How to use Scratch in ICT and Computer coding
 
Scratch software for kid logic development
Scratch software for kid logic developmentScratch software for kid logic development
Scratch software for kid logic development
 
Scratch_Reference_Guide.pdf
Scratch_Reference_Guide.pdfScratch_Reference_Guide.pdf
Scratch_Reference_Guide.pdf
 
Scratch an Editing App
 Scratch  an Editing App  Scratch  an Editing App
Scratch an Editing App
 
Getting started--Scratch Programming
Getting started--Scratch ProgrammingGetting started--Scratch Programming
Getting started--Scratch Programming
 
Blue Orange and Yellow Geometric Flat Shapes Scavenger Hunt Ice Breaker Class...
Blue Orange and Yellow Geometric Flat Shapes Scavenger Hunt Ice Breaker Class...Blue Orange and Yellow Geometric Flat Shapes Scavenger Hunt Ice Breaker Class...
Blue Orange and Yellow Geometric Flat Shapes Scavenger Hunt Ice Breaker Class...
 
Scratching the surface
Scratching the surfaceScratching the surface
Scratching the surface
 
Scratching the surface
Scratching the surfaceScratching the surface
Scratching the surface
 
Getting started-guide-scratch2
Getting started-guide-scratch2Getting started-guide-scratch2
Getting started-guide-scratch2
 
Guide scratch2
Guide scratch2Guide scratch2
Guide scratch2
 
Scratch2
Scratch2Scratch2
Scratch2
 
Getting started-guide-scratch2
Getting started-guide-scratch2Getting started-guide-scratch2
Getting started-guide-scratch2
 
GS_Q1_Computer5_WK1.pptx
GS_Q1_Computer5_WK1.pptxGS_Q1_Computer5_WK1.pptx
GS_Q1_Computer5_WK1.pptx
 
Scratch
ScratchScratch
Scratch
 
Intro to Scratch
Intro to ScratchIntro to Scratch
Intro to Scratch
 
3. proposal mv 2018
3. proposal mv 20183. proposal mv 2018
3. proposal mv 2018
 
Lab a
Lab aLab a
Lab a
 
5. pre production
5. pre production5. pre production
5. pre production
 
Scratch Parrot Game
Scratch Parrot GameScratch Parrot Game
Scratch Parrot Game
 
Pre production vg
Pre production vgPre production vg
Pre production vg
 

Recently uploaded

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 

Recently uploaded (20)

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 

How sprites interact in Scratch.pdf

  • 1. HOW SPRITES INTERACT By: Dr. Md. Shahnawaz Shaikh
  • 2. Introduction to Scratch Scratch is a programming website created by M.I.T. It shows a bunch of sprites (the characters/actors of the program) on a background (the setting of the program). The characters can be moved using the programming blocks. There are plenty of blocks including motion, sound and control blocks. These blocks help the sprites come to life on the background and help create the program/code. https://scratch.mit.edu/ SCRATCH is a programming language that lets you create your own interactive stories, animations, games, music, and art.
  • 3.
  • 5. 1. Start Moving To Cat Drag a MOVE block into the Scripts area.
  • 6. 2. Add a Sound Drag out a PLAY DRUM and snap it onto the MOVE block.
  • 7. 3. 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.
  • 8. 4. 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.
  • 9. 5. Say Something Click the LOOKS category and drag out a SAY block
  • 10. 5. Say Something Click inside the SAY block and type to change the words. Click to try it.
  • 11. 6. Green Flag Drag out a Green Flag block and snap it on top
  • 12. 7. Change Color Now try something different...... Drag out a CHANGE EFFECT block.
  • 14. 9. Add a Backdrop We can add a backdrop/ Background to the Stage.
  • 15. 9. Add a Backdrop The new backdrop now appears on the Stage.
  • 16. 10. Add a Sprite
  • 19. Sprites (Characters) Sprites are the main part of the program. They are the characters or actors on the screen. The most basic sprite is an orange and white cat. But there are plenty of others, too. There are the animal, people and cartoon sprites that do all the moving. There are also musical instruments, balls, food, clothes and letter sprites that shouldn’t move. Sprites can be anywhere on the screen and the moving sprites can move to wherever they have to be using motion blocks. If you don’t find the sprite you want, you can draw it on the bottom right corner. There can be multiple sprites on the screen at one time. https://scratch.mit.edu/
  • 20. Backgrounds (Settings) Backgrounds are in the background of the screen. They are the setting of the scene. Backgrounds can be colorful, dull, spooky, fun etc. The sprites are on the background. Unlike sprites, there can only be one background on the screen at one time. There are plenty of backgrounds from beaches to witch houses. When choosing a sprite to go with the background, the sprite should fit in with the background. For example, a butterfly would look better on a background with flowers rather than a background of a baseball stadium. If you don’t find the background you want, you can also draw it on the bottom right corner. Backgrounds help the viewer understand where the scene is taking place.
  • 21. Motion Blocks! These blocks move your sprite! Every motion you’ll need you will find here. (unless it doesn’t exist) https://scratch.mit.edu/
  • 22. Look Blocks! These blocks are where you can make your sprite talk! You can also change their appearance. https://scratch.mit.edu/
  • 23. Sound Blocks! As redundant as this is, these blocks make sound! Like instruments for example. These are already filled in, but you can do that on your own later! https://scratch.mit.edu/
  • 24. Event Blocks! Event blocks can only work at the start of your code, they are the reason the code will go. They indicate the start and when your sprite should listen to your code. https://scratch.mit.edu/
  • 25. Control Blocks! These blocks are where you can find your if then statements and your loops. These may not be the only reason your sprite does things but they are still a large part of the reason. https://scratch.mit.edu/
  • 26. Sensing blocks! ● Senses colors or if its touching an edge or mouse pointer ● Ask and wait for an answer ● Set date, answer, timer and username https://scratch.mit.edu/
  • 27. Operating blocks! ● Blocks that include computing of integers or other variables, absolute value and modules. ● Random number ● Booleans ● Find a value of a list https://scratch.mit.edu/
  • 28. Variable blocks! ● Make, set, change, show and hide a variable. ● Make a list https://scratch.mit.edu/