home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / Dyno.swf / scripts / DefineSprite_23 / frame_2 / DoAction.as
Encoding:
Text File  |  2001-07-12  |  508 b   |  22 lines

  1. _Y = _Y + starmove;
  2. starY = _Y;
  3. StarX = _X;
  4. dinoY = getProperty("/green", _Y);
  5. dinoX = getProperty("/green", _X);
  6. if(starY < dinoY + "30" and dinoY - "30" < starY and dinoX - "50" < starX and starX < dinoX + "50" and getProperty("/green", _currentframe) == "4")
  7. {
  8.    tellTarget("")
  9.    {
  10.       gotoAndStop("Intialize Star");
  11.       play();
  12.    }
  13.    tellTarget("")
  14.    {
  15.       set("/score:count",eval("/score:count") + "1");
  16.    }
  17.    tellTarget("/starsound")
  18.    {
  19.       gotoAndPlay(2);
  20.    }
  21. }
  22.