Goal:
Bosses are not just about winning, you can also lose if you don’t defeat them fast enough.
We are going to add some code to our Star Destroyer that will trigger a Game Over Screen if it gets to the bottom of the screen.
Steps:
- From Control, place an IF statement block under the IF statement we just worked on.
- From Operators, place a <(Less Than) block and set the right side to -220.
- From Motion, place a round y position block in the left side of the <(Less Than) block.
- From Events, place a broadcast block into the IF block and set it to lose.