When we play the game we have created so far, we may want more to happen when the red bar hits a ball. Let's follow this recipe to make the ball disappear from the stage.
Continue with the game we've been making all along in this chapter. There isn't much we need to prepare, as long as you've been following the recipes up until now.
Apply the following to each bouncing ball sprite:
By adding these two simple blocks we can make it so that each time the game starts, all of the bouncing balls are brought back on the stage. As soon as they touch the red bar, they will disappear for the remainder of the game.
You might notice, though, that the score will keep increasing. This is because those bouncing...