home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / DefineSprite_292 / frame_93 / DoAction.as
Encoding:
Text File  |  2005-08-04  |  526 b   |  33 lines

  1. _root.bot1._visible = false;
  2. x = random(4);
  3. if(x < 1)
  4. {
  5.    this._x = _root.sheep._x + 1500;
  6. }
  7. if(x > 0)
  8. {
  9.    if(x < 2)
  10.    {
  11.       this._x = _root.sheep._x + 1700;
  12.    }
  13. }
  14. if(x > 1)
  15. {
  16.    if(x < 3)
  17.    {
  18.       this._x = _root.sheep._x + 1000;
  19.    }
  20. }
  21. if(x > 2)
  22. {
  23.    this._x = _root.sheep._x + 1300;
  24. }
  25. _root.bot1life = _root.levellife;
  26. _root.notarget = true;
  27. _root.hitarea = false;
  28. _root.sheeplevel.nextFrame();
  29. _root.score.score1 += 1;
  30. _root.nextbot1 = false;
  31. _root.nextbot2 = true;
  32. gotoAndPlay(1);
  33.