Project 550: Racing Road

10. End the game

If the car is pushed all the way to the bottom of the screen, the game should end.
Starting point file for this challenge

Your goal

Steps

1. Build another if-statement in the car

You'll need a "when green flag clicked" block, a "forever" loop, and a "if _ then _" block. 

2. Check if the car's Y position is near the bottom of the screen

To check this, use a green "operators" block called "__ < __" and put it in the "If" blank. In the first blank, drop a "motion" bubble called "Y Position." In the second blank, type -200.

3. If so, then stop everything as a result

Find a "control" block called "stop all" and drop this in the "then" blank.