Step 18: TIE-Bomber Edge of Screen Code 1

Goal:


Our TIE-Bomber is a powerful enemy, and because of that we are going to lose points if we don’t stop them before they get past us.

This code will play a more important role later in our lessons, but for now we are just going to make it a way to lose more points then just dying.

Steps:

  1. From Control, place an IF statement block.
  2. From Operators, place a <(Less Than) block and set the right side to -180.
  3. From Motion, place a round y position block in the left side of the <(Less Than) block.

Code:


Click to replay