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

  1. w1_x = getProperty("/ziel2", _X) + "10";
  2. w2_x = getProperty("/ziel2", _X) - "10";
  3. frog_x = getProperty("/frosch", _X);
  4. frog_y = getProperty("/frosch", _Y);
  5. if(frog_y < "42" and frog_x < w1_x and w2_x < frog_x)
  6. {
  7.    fscommand("startEffect","bonus");
  8.    tellTarget("/ziel2")
  9.    {
  10.       gotoAndStop("ziel");
  11.       play();
  12.    }
  13.    setProperty("/frosch", _X, "175");
  14.    setProperty("/frosch", _Y, "225");
  15.    tellTarget("/restzeit")
  16.    {
  17.       gotoAndStop("bonus");
  18.       play();
  19.    }
  20.    tellTarget("/score")
  21.    {
  22.       score += "200";
  23.    }
  24.    tellTarget("/steuerung")
  25.    {
  26.       gotoAndStop("aus");
  27.       play();
  28.    }
  29.    tellTarget("/ziel2aus")
  30.    {
  31.       gotoAndStop("aus");
  32.    }
  33. }
  34.