Step 15: TIE-Bomber Start Code 2

Goal:


With our Bomber hidden, in the right costume, and on the right layer, we need to give our sprite a place to live while it is not active.

We are going to place the sprite at the very top of the screen because that is where they are going to spawn from.

After that we will build the first part of the loop that will be our timer for how often a Bomber is spawned.

Steps:

  1. From Motion, place a set y to block, and set the number to 180.
  2. From Control, place a forever block.
  3. From Control, place a wait block inside of the forever block, and set the time to 10 seconds.

Code:


Click to replay