home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Kung_Fu.swf / scripts / DefineSprite_705_baddie2 / frame_103 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  3.2 KB  |  135 lines

  1. if(_root.guy.highkick.highkick.hitTest(tosser) and hp eq 0)
  2. {
  3.    this.scores.gotoAndPlay("score800");
  4.    scores._xscale = this._xscale;
  5.    _root.panel.score += 800;
  6.    gotoAndPlay(215);
  7. }
  8. else if(_root.guy.highkick.highkick.hitTest(tosser))
  9. {
  10.    Hita = new Sound();
  11.    Hita.attachSound("Hita");
  12.    Hita.start();
  13.    hp -= 1;
  14.    gotoAndStop(171);
  15. }
  16. else if(_root.guy.lowkick.lowkick.hitTest(tosser) and hp eq 0)
  17. {
  18.    this.scores.gotoAndPlay("score800");
  19.    scores._xscale = this._xscale;
  20.    _root.panel.score += 800;
  21.    gotoAndPlay(214);
  22. }
  23. else if(_root.guy.lowkick.lowkick.hitTest(tosser))
  24. {
  25.    Hita = new Sound();
  26.    Hita.attachSound("Hita");
  27.    Hita.start();
  28.    hp -= 1;
  29.    gotoAndStop(173);
  30. }
  31. else if(_root.guy.punch.punch.hitTest(tosser) and hp eq 0)
  32. {
  33.    this.scores.gotoAndPlay("score800");
  34.    scores._xscale = this._xscale;
  35.    _root.panel.score += 800;
  36.    gotoAndPlay(212);
  37. }
  38. else if(_root.guy.punch.punch.hitTest(tosser))
  39. {
  40.    Hita = new Sound();
  41.    Hita.attachSound("Hita");
  42.    Hita.start();
  43.    hp -= 1;
  44.    gotoAndStop(171);
  45. }
  46. else if(_root.guy.lowpunch.lowpunch.hitTest(tosser) and hp eq 0)
  47. {
  48.    this.scores.gotoAndPlay("score800");
  49.    scores._xscale = this._xscale;
  50.    _root.panel.score += 800;
  51.    gotoAndPlay(215);
  52. }
  53. else if(_root.guy.lowpunch.lowpunch.hitTest(tosser))
  54. {
  55.    Hita = new Sound();
  56.    Hita.attachSound("Hita");
  57.    Hita.start();
  58.    hp -= 1;
  59.    gotoAndStop(172);
  60. }
  61. else if(_root.guy.jumpkick.jumpkick.hitTest(tosser) and hp eq 0 and _root.blood == "on")
  62. {
  63.    this.scores.gotoAndPlay("score1000");
  64.    scores._xscale = this._xscale;
  65.    _root.panel.score += 1000;
  66.    gotoAndPlay(213);
  67. }
  68. else if(_root.guy.jumpkick2.jumpkick.hitTest(tosser) and hp eq 0 and _root.blood == "on")
  69. {
  70.    this.scores.gotoAndPlay("score1000");
  71.    scores._xscale = this._xscale;
  72.    _root.panel.score += 1000;
  73.    gotoAndPlay(213);
  74. }
  75. else if(_root.guy.jumpkick.jumpkick.hitTest(tosser) and hp eq 0 and _root.blood == "off")
  76. {
  77.    this.scores.gotoAndPlay("score1000");
  78.    scores._xscale = this._xscale;
  79.    _root.panel.score += 1000;
  80.    Hit1 = new Sound();
  81.    Hit1.attachSound("Hit1");
  82.    Hit1.start();
  83.    Aouw = new Sound();
  84.    Aouw.attachSound("Aouw");
  85.    Aouw.start();
  86.    gotoAndPlay(224);
  87. }
  88. else if(_root.guy.jumpkick2.jumpkick.hitTest(tosser) and hp eq 0 and _root.blood == "off")
  89. {
  90.    this.scores.gotoAndPlay("score1000");
  91.    scores._xscale = this._xscale;
  92.    _root.panel.score += 1000;
  93.    Hit1 = new Sound();
  94.    Hit1.attachSound("Hit1");
  95.    Hit1.start();
  96.    Aouw = new Sound();
  97.    Aouw.attachSound("Aouw");
  98.    Aouw.start();
  99.    gotoAndPlay(224);
  100. }
  101. else if(_root.guy.jumpkick.jumpkick.hitTest(tosser))
  102. {
  103.    Hita = new Sound();
  104.    Hita.attachSound("Hita");
  105.    Hita.start();
  106.    hp -= 1;
  107.    gotoAndStop(171);
  108. }
  109. else if(_root.guy.jumpkick2.jumpkick.hitTest(tosser))
  110. {
  111.    Hita = new Sound();
  112.    Hita.attachSound("Hita");
  113.    Hita.start();
  114.    hp -= 1;
  115.    gotoAndStop(171);
  116. }
  117. else if(_root.special == "on")
  118. {
  119.    f = [216,217];
  120.    r = random(2);
  121.    frame = f[r];
  122.    gotoAndPlay(frame);
  123. }
  124. else if(_root.pause == "on")
  125. {
  126.    f = [218,219];
  127.    r = random(2);
  128.    frame = f[r];
  129.    gotoAndPlay(frame);
  130. }
  131. else if(_root.killallenemies == "on")
  132. {
  133.    gotoAndStop(170);
  134. }
  135.