Lesson

  1. What is a variable?
  2. Examples of variables.
    • Score.
    • Bank balance.
    • Sattelite position.
    • Lots more!
  3. Using variables in Scratch.
    • Making a new variable.
    • Set variable to.
    • Change variable by.
    • Show/Hide variable.
    • Changing appearance of a variable on the stage… Double click on it.
    • Variable scope: Global (all sprites), Local (For this sprite only), Cloud.
  4. Example: Clicking and keeping score.
    • Sprite scores.
    • Total score.

Activity

  1. Remix another project and add a variable.
    • Login to scratch using your class login.
    • Pick a shared project to remix from either our class studio (Name in upper right > My Class > Class Studios) or choose a Starter Project.
    • Add a variable to the stage and make it change.
  2. Post your remix to the class studio: “Variables”

Resources

Videos

MIT Scratch - Introduction to Variables