Lesson 22 - Comparing Numbers
Objective: To learn how to determine whether a number is less than, equal to, or greater than a second number.
Scratch Activity: Reproduce the actions in the tutorial. Experiment by modifying the settings and parameters used in the tutorial.
Extensions: Experiment by using variables and comparison of numbers to change the background when the sprite moves close to the edges (for example: distance = 40.)Experiment by using variables and comparison of numbers to play a sound when two moving sprites have the same vertical coordinate.Experiment by using variables and comparison of numbers to change the size of a sprite if it is smaller than a certain reference.
|