home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / DefineSprite_355 / frame_43 / DoAction.as
Encoding:
Text File  |  2005-08-04  |  448 b   |  30 lines

  1. x = random(4);
  2. if(x < 1)
  3. {
  4.    this._x = _root.sheep._x + 1200;
  5. }
  6. if(x > 0)
  7. {
  8.    if(x < 2)
  9.    {
  10.       this._x = _root.sheep._x + 1500;
  11.    }
  12. }
  13. if(x > 1)
  14. {
  15.    if(x < 3)
  16.    {
  17.       this._x = _root.sheep._x + 900;
  18.    }
  19. }
  20. if(x > 2)
  21. {
  22.    this._x = _root.sheep._x + 1000;
  23. }
  24. _root.bot5life = _root.levellife;
  25. _root.notarget5 = true;
  26. _root.hitarea5 = false;
  27. _root.sheeplevel.nextFrame();
  28. _root.score.score1 += 1;
  29. gotoAndPlay(1);
  30.