Scratch Programming Notes
Scratch Programming Notes
1. Introduction to Scratch
Scratch is a block-based visual programming language developed by MIT.
Designed for beginners (ages 8-16) but used by all ages to learn coding concepts.
Programs are created by dragging and connecting code blocks (no typing required).
2. Scratch Interface
Main Components:
Looks
Sound
Events
Control
Sensing
Touching (mouse-pointer)?
Ask ("What's your name?") and wait
Answer (stores user input)
Operators
( ) + ( ) (Addition)
Variables
1. Event Block:
scratch
2. Motion Block:
scratch
forever
move (10) steps
if on edge, bounce
1. Event Block:
scratch
5. Key Concepts
Loops: forever, repeat
Conditionals: if-else
Variables: Store data (e.g., score, lives)
Broadcasting: Send messages between sprites
7. Advanced Features
Cloning: Create copies of sprites.
Custom Blocks: Make your own functions.
Extensions: Add pen, music, or video sensing.
8. Resources
Scratch Official Website
Scratch tutorials (built-in & community-made)