11.6.15

Scratch - Variable

Project One

1. Please see inside the project. How many variables does it have?


2. Why do we need a variable here? (Hint: 3 shots only)

3. Where is the variable initiated? (Starting value for the variable)

4. How does the variable change? Which triggers the change of the variable?

Exercise:

1. This game needs an end. When the mosquito is sprayed, what should happen?




Project Two



1. Each time you click over the mosquito the count will raise by 1. Try to catch it as many times as possible.

2. Please remix the project by adding another variable - second count. Which should count the seconds. (Hint: wait for 1 second and change by one)

3. Please modify the project so that the variables start from 0 each time a user starts the game. (Initiate the variables)