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

  1. _Y = _Y + bonusstep;
  2. shieldX = _X;
  3. shieldY = _Y;
  4. dinoX = getProperty("/green", _X);
  5. dinoY = getProperty("/green", _Y);
  6. if(shieldY < dinoY + "35" and dinoY - "35" < shieldY and dinoX - "50" < shieldX and shieldX < dinoX + "50" and getProperty("/green", _currentframe) == "4")
  7. {
  8.    tellTarget("/green")
  9.    {
  10.       gotoAndStop("safety");
  11.       play();
  12.    }
  13.    gotoAndPlay(1);
  14. }
  15.