How to Create a Homing Missile Part 1

  1. The projectile needs to target the enemy and set an optional bit so another missile will not target the same enemy. This can be disabled when attacking stronger enemies.
  2. Ability to adjust the speed of the missile.
  3. If there are no enemies in range the missile should come to a stop to save fuel and wait for an enemy during the “Stop and Wait” mode. Turn off the missile exhaust flame during the “Stop and Wait” mode.
  4. Set a duration time for the missile “Stop and Wait” If the time is set to zero then disable the “Stop and Wait” mode and the missile will continue in a straight line.
  5. “When the missile is close to the target increase the speed using an “InKillRange” and “RammingSpeed” variables.
  6. Increase the length of the missile exhaust flame during “Ramming Speed”.
  7. Apply sound effects for all flight modes, enemy collision, and self-destruct.
  8. Test functionality by launching 3 missiles at a time. Each missile should attack a different target.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store