Lesson
- What is a variable?
- Examples of variables.
- Score.
- Bank balance.
- Sattelite position.
- Lots more!
- 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).
- Example: Clicking and keeping score.
- Sprite scores.
- Total score.
Activity
- 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.
- Post your remix to the class studio: “Week 7: Variables”
- Show it to Chris!
Resources
Videos
MIT Scratch - Introduction to Variables