pxt-calliope/docs/reference/js/lessons/offset-image/quiz.md
2016-03-25 16:47:20 -07:00

849 B

offset image quiz

shift an image horizontally across the display with offset #offset #screen #variables #docs

Name

Directions

Use this activity document to guide your work in the offset image tutorial.

Answer the questions while completing the tutorial. Pay attention to the dialogues!

1. What is an 'if, then, else statement' ?


2. Write the line condition that if true, will display the message "Push button A". This message appears if the offset is equal -4 then the BBC micro:bit will state "Push Button A".



3. Write the one line of code to show this image



4. Write the two lines of code that trigger the variable offset to increase by one.