home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / FrogIT.swf / scripts / DefineSprite_420 / frame_10 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  372 b   |  15 lines

  1. obj1_x = getProperty("/zunge", _X);
  2. obj2_x = getProperty("/fly", _X);
  3. delta_x = obj1_x - obj2_x;
  4. obj1_y = getProperty("/zunge", _Y);
  5. obj2_y = getProperty("/fly", _Y);
  6. delta_y = obj1_y - obj2_y;
  7. if((radius1 + radius2) * (radius1 + radius2) >= delta_x * delta_x + delta_y * delta_y)
  8. {
  9.    tellTarget("/fly")
  10.    {
  11.       gotoAndStop("dead");
  12.       play();
  13.    }
  14. }
  15.