Step 13: Bullet Start Position 2

Goal:


The bullet will start out behind the ship no matter where the ship moves on the screen.

When the player presses the mouse button down, the bullet will fire out of the ship.

Steps:

  1. From Motion, place a go to block with a drop down menu option.
  2. Set the block to ship.
  3. From Control, place an IF block.
  4. From Sensing, place a mouse down? block inside the IF block.

Code: