home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / DefineSprite_386 / frame_50 / DoAction.as
Encoding:
Text File  |  2005-08-04  |  636 b   |  42 lines

  1. _root.notdead9 = true;
  2. life = random(2);
  3. if(life < 1)
  4. {
  5.    _root.showlife = true;
  6. }
  7. if(life > 0)
  8. {
  9.    _root.showlife = false;
  10. }
  11. x = random(4);
  12. if(x < 1)
  13. {
  14.    this._x = _root.sheep._x + 1200;
  15. }
  16. if(x > 0)
  17. {
  18.    if(x < 2)
  19.    {
  20.       this._x = _root.sheep._x + 1500;
  21.    }
  22. }
  23. if(x > 1)
  24. {
  25.    if(x < 3)
  26.    {
  27.       this._x = _root.sheep._x + 900;
  28.    }
  29. }
  30. if(x > 2)
  31. {
  32.    this._x = _root.sheep._x + 1000;
  33. }
  34. _root.bot9life = _root.levellife;
  35. _root.notarget9 = true;
  36. _root.hitarea9 = false;
  37. _root.sheeplevel.nextFrame();
  38. _root.score.score1 += 1;
  39. _root.nextbot10 = true;
  40. _root.nextbot9 = false;
  41. gotoAndPlay(1);
  42.