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

  1. _Y = _Y + ystep;
  2. bubbleY = _Y;
  3. bubbleX = _X;
  4. dinoY = getProperty("/green", _Y);
  5. dinoX = getProperty("/green", _X);
  6. if(bubbleY < dinoY + "35" and dinoY - "35" < bubbleY and dinoX - "50" < bubbleX and bubbleX < dinoX + "50" and getProperty("/green", _currentframe) == "4")
  7. {
  8.    tellTarget("/green")
  9.    {
  10.       gotoAndStop("hit");
  11.       play();
  12.    }
  13.    gotoAndPlay(1);
  14. }
  15. else if(bubbleY < dinoY + "35" and dinoY - "35" < bubbleY and dinoX - "50" < bubbleX and bubbleX < dinoX + "50" and getProperty("/green", _currentframe) == "5")
  16. {
  17.    gotoAndPlay(4);
  18. }
  19.