Lastly, let’s code the Laser in the game. It will be very similar to the code we just made for the Storm Trooper.
The Laser is actually an invisible sprite behind the Storm Trooper that will be cloned whenever we want to shoot the blaster.
The movement of the Laser will start in the same position and move at the same speed as the Trooper.