Step 6

Introduction:


Now with our basic controls complete, we will learn about how Sprites interact with one another using conditions.

Our Goals:

  •  Create rules for the Mandalorian.

Part 2 Template:

Click here to start: Maze Part 2 Template Skip this template if you have already started from previous part! Continue to the next step.

Goal:


Click to replay

Let’s create a new block of code that will run our rules inside of a forever block.

We will need to program 2 IF statements. One for losing and one for winning.

Steps:

  1. Create a new When clicked and forever block.
  2. Drag 2 IF blocks into the forever loop.

Code:


Click to replay