Step 15: Bullet Fire Direction

Goal:


This code is a bit different then what we usually do with clones when they start. Usually we would have the clone show itself before doing anything else.

Instead, we have to move the clone out from behind the ship first or else the bullet will hit the ship and delete itself before it can hit any of the asteroids!

Steps:

  1. From Control, place a when I start as a clone block.
  2. From Motion, place a point towards mouse-pointer block.
  3. From Motion, place a move 10 steps block.

Code: