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

  1. obj1_x = getProperty("/frosch", _X);
  2. obj2_x = getProperty("/schild7", _X);
  3. delta_x = obj1_x - obj2_x;
  4. obj1_y = getProperty("/frosch", _Y);
  5. obj2_y = getProperty("/schild7", _Y);
  6. delta_y = obj1_y - obj2_y;
  7. if((radius1 + radius2) * (radius1 + radius2) >= delta_x * delta_x + delta_y * delta_y)
  8. {
  9.    fscommand("startEffect","lilypad");
  10.    setProperty("/frosch", _X, getProperty("/schild7", _X));
  11. }
  12.