Font size
WorksheetsSCR1 Recap Day 3
Total questions: 8
Worksheet time: 4mins
What are variables used for?
To send a message
To store a value
To change a costume
To clone a sprite
What can you do with a variable?
Set the variable value
Increase the variable value
Decrease the variable value
Delete the variable
What is the value of the ‘total’ variable?
0
1
10
20
Which of the following features uses a variable?
A sprite moving up when the arrow key is pressed
A game timer that starts at 60 and counts down to 0
A clone that disappears after 5 seconds
A score that increases every time the sprite catches a ball
Where do you find thiss block?
Events
Motion
Control
Looks
What are conditionals used for?
To do something when green flag is clicked
To do something when an event happens
To do something when a condition is true or false
To do something when a variable has changed
What does this code block do?
If the total variable is smaller than 20, switch costume to “costume2”
If the total variable is greater than 20, switch costume to “costume1”
If the total variable is equal to 20, switch costume to “costume1”
If the total variable is greater than 20, switch costume to “costume2”
What does this code block do?
If the sprite is touching another sprite, set the colour to red and total to zero
If the sprite is touching the colour red, move sprite to [X:0, Y:0] and set the total to zero
If the total is zero and the sprite is in [X:0, Y:0], change the colour to red
If the sprite is at [X:0, Y:0], set total to zero and change colour to red
