title: Collision Detection of Sprites in Actionscript 3.0 Flash
body: <p>I am making an achtung die kurve-like game in AS3.0. So far I've done the movements of the 4 different players, and it works alright. </p>
  
  <p>I am now to make collision detection, in order to test if a 'worm'-so to speak, is colliding with eachother or its own tail. </p>
  
  <p>As I understand it, if I use hitTestObject(); it will use the registration area of the whole object, which would be a huge problem, seeing since this registration makes a 4-sided registration that contains all of the object. So if this is used, it will 'collide' just by entering this rectangle instead of hitting the actual worm. Is this correctly understood? </p>
  
  <p>I've been looking through different methods of collision detection, and can't seem to find an optimal one for my project. </p>
  
  <p>My thought were to check if the 'worms' are drawing their new sprites on a white background.  if they aren't, then it must have hit something. </p>
  
  <p>You can see how I used my code here: <a href="http://pastebin.com/KZd8QRHW" rel="nofollow">code in .as format linked to an .fla file</a></p>
  
  <p>Sorry for my ill-formulated question, hope it makes somewhat sense. 
  Any help is greatly appreciated!! </p>
  
  <p>Best regards - Jesper </p>