SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
Scratch for Intermediates
Matthew Parry
CAS Master Teacher
@becsalana
matthew.parry@computingatschool.org.uk
• Teaching
•Trained via GTP in Hampshire
•Shirland Primary School
•Swanwick School and Sports College
•Computing at School Master Teacher
• IT career
•15+ years as Programmer, Designer, Project Manager
•Civil Service, AA, Sony, Satellite TV red button
•COBOL, C, C++, VB, Java, Unix, PCs,
• Earlier
•Home: ZX81, ZX Spectrum
•School: BBC Model B
• To investigate advanced elements of Scratch
• To become familiar with some interfaces to
Scratch
• To plan how to use Scratch across the
curriculum
OBJECTIVES
• To make a timetables quiz ...
TASK
Broadcasts
Sends a message to all sprites and stage
But nothing happens unless sprite responds to the message
Green flag is a broadcast message
What is the difference between ...
and
Why use?
•To get other sprites to do something
•Reuse code
•Splits script into manageable parts
KS2 work with variables and various forms of input and output
Control Blocks
Forever Forever if <condition>
Repeat <#>
If <condition> If <condition> else
What difference do these make to your scripts?
Where would you use them?
KS2 …use sequence, selection, and repetition in programs ; use logical reasoning
to explain how some simple algorithms work
Control Blocks
Wait until <condition>
Repeat until <condition>
What about these? How do they differ?
Where would you use them?
KS2 …use sequence, selection, and repetition in programs ; use logical reasoning
to explain how some simple algorithms work
Control Blocks
Stop script
Stop all
Version 2.0
What different effects do these have?
Where would you use them?
KS2 …use logical reasoning to explain how some simple algorithms work
Variables
Variables
A named area of computer memory
A box that stores data
For something that can change (vary)
Variable for all sprites or Just for a sprite?
What difference does that make?
KS2 work with variables and various forms of input and output
Text Handling
Text
Task
Ask for users name.
Then ask five quiz questions. (Make some of answers numeric)
Keep score of correct answers.
At end display “<name>, you got <score> out of 5”
KS3 ... understand how data of various types (including text, sounds and pictures)
can be represented and manipulated digitally
Validation of Inputs
Validation
To ensure the input is what you want
Why?
Task
For quiz numeric answers make sure you get a number.
Ask for input again if not valid.
KS2 ... work with variables and various forms of input and output
Build Your Own Blocks
Build Your Own Blocks (Scratch 2.0 only)
Why?
To reuse code e.g. validation
What is a Parameter?
What is an Argument?
Task
Make number validation block
Pass in range parameters <lower> and <upper>
Extension: pass in number of digits expected
Variable Monitors
Normal Large
Slider
Max/Min
Where could you use each of these?
•For debugging
•As changeable text/numbers – e.g. Score
•To affect an application e.g. Sphere Maths
KS2 work with variables and various forms of input and output
Lists
Lists
A named area of computer memory
A series of boxes that stores data
For things that can change (vary)
For all or For sprite
Import list – text file from computer
Export list – output to computer
Examples: Haikus ...
KS2 ... work with variables and various forms of input and output
KS3 ... make appropriate use of data structures [for example, lists, tables or arrays]
Tips and Tricks - Help
Help
Website
http://scratch.mit.edu/help/
V1.4
Help Menu
Help Page...
Help Screens...
Right click on block
V2.0
Tips
 at right hand side of script area
Blocks
 ? at top of screen
Tips and Tricks - Comments
Comments
V1.4
Right click in background – “add comment”
Drag comment over block to attach
V2.0
Right click on block – “add comment”
Why use?
Gives clarity to script
Shows understanding
Assessment
KS2 ... use logical reasoning to explain how some simple algorithms work and to
detect and correct errors in algorithms and programs
Tips and Tricks – Sprite Control
Control a sprite
V1.4 – at top of sprite scripts
V2.0 – click next to sprite
What do those icons all do?
Run this script and click them as it runs
Watch x and y and direction ...
V1.4 padlock does same as
V2.0 “can drag in player”
What does blue line on sprite/circle do?
Tips and Tricks - Turbo
Turbo Mode
Speeds up all scripts
V1.4 via edit menu
V2.0 shift click on green flag
When would you use this?
When large scripts
Complex maths
Example - Art
Tips and Tricks - Debugging
Debugging
Single Stepping (V1.4 only)
See which block is being processed
KS1 ... create and debug simple programs
KS2 ... use logical reasoning to explain how some simple algorithms work and to
detect and correct errors in algorithms and programs
Tips and Tricks - Drawing
Perfect shapes (circles and squares)
When drawing hold down shift
Transparency
V1.4 – white and grey squares
V2.0 – red diagonal line
Tips and Tricks – Animated gifs
Animated gifs
V1.4
Drag gif onto costumes tab of an existing sprite
Or import gif onto costumes tab of an existing sprite
V2.0
Create new sprite using gif
New costume is created from each frame
http://heathersanimations.com/index.html
Need an account on http://scratch.mit.edu/ first
V1.4
Upload project to scratch website via Share menu
V2.0
Need to share project
Use “Embed” button below project to create html code
Cut and Paste into website
More information
V1.4
http://wiki.scratch.mit.edu/wiki/Embedding_Projects_(1.4)
V2.0
http://wiki.scratch.mit.edu/wiki/Embedding_Projects
Embed projects in own websites
Interfaces to Scratch
Lego Wedo - education.lego.com
Picoboards (Scratch 1.4) - www.sparkfun.com/products/10311
Kinect2Scratch (Scratch 1.4- scratch.saorog.com/
Scratcher Control for Android - khanning.com/scratchercontrol/
Makey Makey - makeymakey.com/
Resources
Scratch website/forums - scratch.mit.edu/
CAS website - http://community.computingatschool.org.uk/
Scratch website - Lesson Plans & Resources - scratch.ie/home
Derbyshire Computing Share Drive - goo.gl/ucNR17
BOOKS
Learn to Program with Scratch
by Majed Marji
ISBN: 9781593275433
Adventures in Raspberry PI
by Carrie Anne Philbin
ISBN: 9781118751251

Mais conteúdo relacionado

Mais procurados

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_primaryschoollessonsSeniorInfants
 
An introduction to Scratch
An introduction to ScratchAn introduction to Scratch
An introduction to ScratchPiers Midwinter
 
Scratch Lesson 3 - Interactivity
Scratch Lesson 3 -  InteractivityScratch Lesson 3 -  Interactivity
Scratch Lesson 3 - InteractivityDavid Oromaner
 
Scratch: Programming for everyone
Scratch: Programming for everyoneScratch: Programming for everyone
Scratch: Programming for everyoneAkshar Desai
 
Scratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorScratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorDavid Oromaner
 
Lesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingLesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingSeniorInfants
 
Programming in scratch
Programming in scratchProgramming in scratch
Programming in scratchHussam Mostafa
 
Introduction to Scratch Programming
Introduction to Scratch ProgrammingIntroduction to Scratch Programming
Introduction to Scratch ProgrammingStorytimeSteph
 
Introduction to scratch
Introduction to scratchIntroduction to scratch
Introduction to scratchemreyz
 
Scratch and pair programming
Scratch and pair programmingScratch and pair programming
Scratch and pair programmingjtelss10
 
Scratch Parrot Game
Scratch Parrot GameScratch Parrot Game
Scratch Parrot Gamejenloudun
 

Mais procurados (20)

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
 
Mini Scratch Unit
Mini Scratch UnitMini Scratch Unit
Mini Scratch Unit
 
An introduction to Scratch
An introduction to ScratchAn introduction to Scratch
An introduction to Scratch
 
Scratch Lesson 3 - Interactivity
Scratch Lesson 3 -  InteractivityScratch Lesson 3 -  Interactivity
Scratch Lesson 3 - Interactivity
 
Scratch
ScratchScratch
Scratch
 
Scratch: Programming for everyone
Scratch: Programming for everyoneScratch: Programming for everyone
Scratch: Programming for everyone
 
Scratch Programming
Scratch ProgrammingScratch Programming
Scratch Programming
 
Scratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorScratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint Editor
 
Lesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingLesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer Programming
 
Scratch Lesson 2
Scratch Lesson 2Scratch Lesson 2
Scratch Lesson 2
 
Programming in scratch
Programming in scratchProgramming in scratch
Programming in scratch
 
Scratch Lesson 1
Scratch Lesson 1Scratch Lesson 1
Scratch Lesson 1
 
Introduction to Scratch Programming
Introduction to Scratch ProgrammingIntroduction to Scratch Programming
Introduction to Scratch Programming
 
Introduction to scratch
Introduction to scratchIntroduction to scratch
Introduction to scratch
 
Scratch and pair programming
Scratch and pair programmingScratch and pair programming
Scratch and pair programming
 
scratch.pptx
scratch.pptxscratch.pptx
scratch.pptx
 
Scratch Project
Scratch ProjectScratch Project
Scratch Project
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Scratch Lesson Plan
Scratch Lesson PlanScratch Lesson Plan
Scratch Lesson Plan
 
Scratch Parrot Game
Scratch Parrot GameScratch Parrot Game
Scratch Parrot Game
 

Semelhante a Scratch for intermediates course

Hacking the Kinect with GAFFTA Day 1
Hacking the Kinect with GAFFTA Day 1Hacking the Kinect with GAFFTA Day 1
Hacking the Kinect with GAFFTA Day 1benDesigning
 
Open frameworks 101_fitc
Open frameworks 101_fitcOpen frameworks 101_fitc
Open frameworks 101_fitcbenDesigning
 
Core .NET Framework 4.0 Enhancements
Core .NET Framework 4.0 EnhancementsCore .NET Framework 4.0 Enhancements
Core .NET Framework 4.0 EnhancementsRobert MacLean
 
Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2Daniel Egan
 
Introduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdfIntroduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdfAnassElHousni
 
Introduction to programming - class 2
Introduction to programming - class 2Introduction to programming - class 2
Introduction to programming - class 2Paul Brebner
 
A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010Abram John Limpin
 
Designing A Project Using Java Programming
Designing A Project Using Java ProgrammingDesigning A Project Using Java Programming
Designing A Project Using Java ProgrammingKaty Allen
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0Aarti P
 
01 Database Management (re-uploaded)
01 Database Management (re-uploaded)01 Database Management (re-uploaded)
01 Database Management (re-uploaded)bluejayjunior
 
Ppt on visual basics
Ppt on visual basicsPpt on visual basics
Ppt on visual basicsyounganand
 
Linq To The Enterprise
Linq To The EnterpriseLinq To The Enterprise
Linq To The EnterpriseDaniel Egan
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxAASTHA76
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxAnasYunusa
 
Getting Started in Custom Programming for Talent Sourcing
Getting Started in Custom Programming for Talent SourcingGetting Started in Custom Programming for Talent Sourcing
Getting Started in Custom Programming for Talent SourcingGlenn Gutmacher
 
C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#Hawkman Academy
 

Semelhante a Scratch for intermediates course (20)

Hacking the Kinect with GAFFTA Day 1
Hacking the Kinect with GAFFTA Day 1Hacking the Kinect with GAFFTA Day 1
Hacking the Kinect with GAFFTA Day 1
 
scratch-3-tutorial.pdf
scratch-3-tutorial.pdfscratch-3-tutorial.pdf
scratch-3-tutorial.pdf
 
Open frameworks 101_fitc
Open frameworks 101_fitcOpen frameworks 101_fitc
Open frameworks 101_fitc
 
Core .NET Framework 4.0 Enhancements
Core .NET Framework 4.0 EnhancementsCore .NET Framework 4.0 Enhancements
Core .NET Framework 4.0 Enhancements
 
Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2
 
Introduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdfIntroduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdf
 
Introduction to programming - class 2
Introduction to programming - class 2Introduction to programming - class 2
Introduction to programming - class 2
 
A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010
 
Designing A Project Using Java Programming
Designing A Project Using Java ProgrammingDesigning A Project Using Java Programming
Designing A Project Using Java Programming
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Visual basic
Visual basicVisual basic
Visual basic
 
01 Database Management (re-uploaded)
01 Database Management (re-uploaded)01 Database Management (re-uploaded)
01 Database Management (re-uploaded)
 
Ppt on visual basics
Ppt on visual basicsPpt on visual basics
Ppt on visual basics
 
Linq To The Enterprise
Linq To The EnterpriseLinq To The Enterprise
Linq To The Enterprise
 
ELAVARASAN.pdf
ELAVARASAN.pdfELAVARASAN.pdf
ELAVARASAN.pdf
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
 
Getting Started in Custom Programming for Talent Sourcing
Getting Started in Custom Programming for Talent SourcingGetting Started in Custom Programming for Talent Sourcing
Getting Started in Custom Programming for Talent Sourcing
 
C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#
 
Ms vb
Ms vbMs vb
Ms vb
 

Último

Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptxmary850239
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfChristalin Nelson
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroomSamsung Business USA
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxAvaniJani1
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineCeline George
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
DiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfDiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfChristalin Nelson
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxMadhavi Dharankar
 

Último (20)

Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdf
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
 
Chi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical VariableChi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical Variable
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptx
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command Line
 
CARNAVAL COM MAGIA E EUFORIA _
CARNAVAL COM MAGIA E EUFORIA            _CARNAVAL COM MAGIA E EUFORIA            _
CARNAVAL COM MAGIA E EUFORIA _
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
DiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfDiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdf
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptx
 

Scratch for intermediates course

  • 1. Scratch for Intermediates Matthew Parry CAS Master Teacher @becsalana matthew.parry@computingatschool.org.uk
  • 2. • Teaching •Trained via GTP in Hampshire •Shirland Primary School •Swanwick School and Sports College •Computing at School Master Teacher • IT career •15+ years as Programmer, Designer, Project Manager •Civil Service, AA, Sony, Satellite TV red button •COBOL, C, C++, VB, Java, Unix, PCs, • Earlier •Home: ZX81, ZX Spectrum •School: BBC Model B
  • 3. • To investigate advanced elements of Scratch • To become familiar with some interfaces to Scratch • To plan how to use Scratch across the curriculum OBJECTIVES
  • 4. • To make a timetables quiz ... TASK
  • 5. Broadcasts Sends a message to all sprites and stage But nothing happens unless sprite responds to the message Green flag is a broadcast message What is the difference between ... and Why use? •To get other sprites to do something •Reuse code •Splits script into manageable parts KS2 work with variables and various forms of input and output
  • 6. Control Blocks Forever Forever if <condition> Repeat <#> If <condition> If <condition> else What difference do these make to your scripts? Where would you use them? KS2 …use sequence, selection, and repetition in programs ; use logical reasoning to explain how some simple algorithms work
  • 7. Control Blocks Wait until <condition> Repeat until <condition> What about these? How do they differ? Where would you use them? KS2 …use sequence, selection, and repetition in programs ; use logical reasoning to explain how some simple algorithms work
  • 8. Control Blocks Stop script Stop all Version 2.0 What different effects do these have? Where would you use them? KS2 …use logical reasoning to explain how some simple algorithms work
  • 9. Variables Variables A named area of computer memory A box that stores data For something that can change (vary) Variable for all sprites or Just for a sprite? What difference does that make? KS2 work with variables and various forms of input and output
  • 10. Text Handling Text Task Ask for users name. Then ask five quiz questions. (Make some of answers numeric) Keep score of correct answers. At end display “<name>, you got <score> out of 5” KS3 ... understand how data of various types (including text, sounds and pictures) can be represented and manipulated digitally
  • 11. Validation of Inputs Validation To ensure the input is what you want Why? Task For quiz numeric answers make sure you get a number. Ask for input again if not valid. KS2 ... work with variables and various forms of input and output
  • 12. Build Your Own Blocks Build Your Own Blocks (Scratch 2.0 only) Why? To reuse code e.g. validation What is a Parameter? What is an Argument? Task Make number validation block Pass in range parameters <lower> and <upper> Extension: pass in number of digits expected
  • 13. Variable Monitors Normal Large Slider Max/Min Where could you use each of these? •For debugging •As changeable text/numbers – e.g. Score •To affect an application e.g. Sphere Maths KS2 work with variables and various forms of input and output
  • 14. Lists Lists A named area of computer memory A series of boxes that stores data For things that can change (vary) For all or For sprite Import list – text file from computer Export list – output to computer Examples: Haikus ... KS2 ... work with variables and various forms of input and output KS3 ... make appropriate use of data structures [for example, lists, tables or arrays]
  • 15. Tips and Tricks - Help Help Website http://scratch.mit.edu/help/ V1.4 Help Menu Help Page... Help Screens... Right click on block V2.0 Tips  at right hand side of script area Blocks  ? at top of screen
  • 16. Tips and Tricks - Comments Comments V1.4 Right click in background – “add comment” Drag comment over block to attach V2.0 Right click on block – “add comment” Why use? Gives clarity to script Shows understanding Assessment KS2 ... use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs
  • 17. Tips and Tricks – Sprite Control Control a sprite V1.4 – at top of sprite scripts V2.0 – click next to sprite What do those icons all do? Run this script and click them as it runs Watch x and y and direction ... V1.4 padlock does same as V2.0 “can drag in player” What does blue line on sprite/circle do?
  • 18. Tips and Tricks - Turbo Turbo Mode Speeds up all scripts V1.4 via edit menu V2.0 shift click on green flag When would you use this? When large scripts Complex maths Example - Art
  • 19. Tips and Tricks - Debugging Debugging Single Stepping (V1.4 only) See which block is being processed KS1 ... create and debug simple programs KS2 ... use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs
  • 20. Tips and Tricks - Drawing Perfect shapes (circles and squares) When drawing hold down shift Transparency V1.4 – white and grey squares V2.0 – red diagonal line
  • 21. Tips and Tricks – Animated gifs Animated gifs V1.4 Drag gif onto costumes tab of an existing sprite Or import gif onto costumes tab of an existing sprite V2.0 Create new sprite using gif New costume is created from each frame http://heathersanimations.com/index.html
  • 22. Need an account on http://scratch.mit.edu/ first V1.4 Upload project to scratch website via Share menu V2.0 Need to share project Use “Embed” button below project to create html code Cut and Paste into website More information V1.4 http://wiki.scratch.mit.edu/wiki/Embedding_Projects_(1.4) V2.0 http://wiki.scratch.mit.edu/wiki/Embedding_Projects Embed projects in own websites
  • 23. Interfaces to Scratch Lego Wedo - education.lego.com Picoboards (Scratch 1.4) - www.sparkfun.com/products/10311 Kinect2Scratch (Scratch 1.4- scratch.saorog.com/ Scratcher Control for Android - khanning.com/scratchercontrol/ Makey Makey - makeymakey.com/
  • 24. Resources Scratch website/forums - scratch.mit.edu/ CAS website - http://community.computingatschool.org.uk/ Scratch website - Lesson Plans & Resources - scratch.ie/home Derbyshire Computing Share Drive - goo.gl/ucNR17
  • 25. BOOKS Learn to Program with Scratch by Majed Marji ISBN: 9781593275433 Adventures in Raspberry PI by Carrie Anne Philbin ISBN: 9781118751251