Step 9: Bomb Start Code 2

Goal:


Our bomb now looks correct at the beginning of our game but we still have a bit more set up code to do.

Now we need to tell our game how many bombs we start off with and where the bomb needs to fire from.

Steps:

  1. From Variables, place a set block.
  2. Set the variable to Bombs and the amount to 4.
  3. From Control, place a forever block.
  4. From Motion, place a go to random block and set it to X_Wing.

Code:


Click to replay