Step 8: Bomb Start Code 1

Goal:


Now that our bomb has its action code, we need to code how the bomb starts before it’s fired.

We need to make sure that the bomb has the correct costume when it’s fired, that its not behind our background, and that we can’t see it until it’s actually fired.

Steps:

  1. From Events, place a when green flag clicked block.
  2. From Looks, place a hide block.
  3. From Looks, place a switch costume to block and set it to Bomb.
  4. From Looks, place a go to layer block, and set it to front.

Code:


Click to replay