title: How to program missile pathfinding correctly?
body: <p>I am currently programming a tower defense and the missiles tend to miss the enemy instead of following/hitting them like they do in desktop tower defense. This is because they shoot without giving the enemy any lead so by the time it reaches the enemy position, the enemy is already 3-5 pixels away. I looked up on how to fix this and found that I need to use vector math to resolve the problem. This site <a href="http://www.helixsoft.nl/articles/circle/sincos.htm" rel="nofollow">http://www.helixsoft.nl/articles/circle/sincos.htm</a> for example has some code on how to program homing missiles, but I am uncertain whether this is the kind of math that I need to resolve my problem.</p>
  
  <p>seems like the posts on stackoverflow recommend something called "Command Guidance" but have no idea how that would work with a 2d game.</p>
  
  <p>so at the moment, im pretty confused as to what to do. Any direction/guidance would be much appreciated.</p>