Programming Concepts in Scratch PDF
Programming Concepts in Scratch PDF
In the process of creating interactive stories, games, and animations with Scratch, young people
can learn important computational skills and concepts.
say
2 secs to x:
for secs
conditional statements if and if-else check for a condition. if x position > 200
set x to -200
http://scratch.mit.edu
Concept Explanation Example
event handling when key pressed and when
sprite clicked are examples of event when left arrow key pressed
move 10 steps
triggered by the user or another part
of the program.
threads Launching two stacks at the same
(parallel execution) time creates two independent
threads that execute in parallel.
coordination and broadcast and when I receive can For example, Sprite1 sends the message
winner when this condition is met:
synchronization coordinate the actions of multiple
wait until score > 100
sprites. Using broadcast and wait
broadcast
allows synchronization. winner
random numbers pick random selects random set x to pick random -100 to 100
http://scratch.mit.edu