home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / FrogIT.swf / scripts / DefineSprite_262 / frame_20 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  510 b   |  23 lines

  1. w1_x = getProperty("/wasser13", _X) + "50";
  2. w2_x = getProperty("/wasser13", _X) - "50";
  3. frog_x = getProperty("/frosch", _X);
  4. frog_y = getProperty("/frosch", _Y);
  5. if(frog_y < "62" and "48" < frog_y and frog_x < w1_x and w2_x < frog_x)
  6. {
  7.    fscommand("startEffect","drown");
  8.    tellTarget("/frosch")
  9.    {
  10.       gotoAndStop("dead");
  11.       play();
  12.    }
  13.    tellTarget("/steuerung")
  14.    {
  15.       gotoAndStop("aus");
  16.       play();
  17.    }
  18.    tellTarget("/restzeit")
  19.    {
  20.       gotoAndPlay(1);
  21.    }
  22. }
  23.