Step 2: Bomb Ammo Check IF Statement 1

Goal:


Unlike with our lasers that have infinite ammo, we only have so many bombs.

We need to set up an IF statement that checks if we have any bombs left before we can fire them.

Steps:

  1. From Control, place an IF block.
  2. From Operators, place a >(Greater Than) block into the IF block.
  3. Change the right side of the >(Greater Than) block to zero.

Code:


Click to replay