Workshop
Quiz
When you define a broadcast in Scratch, which assets can receive the broadcast message and therefore take action upon it?
Only the sending sprite
Only the receiving sprite
Only the Stage and its backdrops
The Stage and all sprites
Which of the following is a valid way to test for two or more conditions in a Scratch script?
A Boolean block
A nested if C block
A repeat C block
A broadcast block
Which of the following Scratch graphical effects can be used to fade in or fade out a sprite on the Stage?
Color
Pixelate
Mosaic
Ghost
Answers
The correct answer is choice D. In Scratch 2.0, any broadcasts that are sent out from a sprite or the Stage are receivable by both the Stage as well as all sprites in the project. Recall that the sending sprite can also receive its own message. However, a sprite or the Stage is not obligated to receive a message.
The Scratch Wiki (http://cbt.gg/1bop3og) includes a hack or workaround that does enable you to effectively target specific sprites with broadcast messages.
The correct answer is choice B. By default, an if C block tests for the truth or falsity of a single condition (although you can certainly embed multiple operator blocks—you’ll see how to do that in Hour 10, “Using Operators Blocks.” An easy approach to solving this problem that you discovered in this chapter is nesting one or more if C blocks inside of the outer, original C block.
The correct answer is choice D. The ghost graphic effect works well for fading in or fading out a sprite on the Stage. Changing the color effect can make a sprite look like it’s flashing. The pixelate effect makes a sprite look retro or old-fashioned. The mosaic graphic effect is useful for transitioning a sprite between costumes.