title: Processing Tower Defence Game - Towers attacking Enemies
body: <p>I will keep this short, I am making a Tower Defence game as a mini project while I have some spare time and I am trying to figure out how I can implement the towers to be able to shoot the enimies when they come into range using dist but I just don't know how to implement a method that uses the enimies position and the towers position. I have an ArrayList of CreepSprites and Towers  </p>
  
  <pre><code>CreepSprite[] CreepSprites;
  ArrayList&lt;Tower&gt; AllTowers = new ArrayList&lt;Tower&gt;();
  ArrayList&lt;Creep&gt; AllCreeps = new ArrayList&lt;Creep&gt;();
  </code></pre>
  
  <p>If someone could give me some guidence as to how I would go about making the towers able to shoot the Creeps that would be great, even if it doesn't get rid of them, just able to shoot at them would be great.</p>
  
  <p>Cheers</p>