Instance of Symbol 45 MovieClip "tut" in Frame 1
on (rollOver) {
if (this._currentframe == 1) {
this.play();
}
}
on (rollOut) {
this.gotoAndStop(1);
}
Frame 2
gotoAndStop (3);
Frame 3
stop();
var modeselect = SharedObject.getLocal("ModeSelect");
var roll1;
Instance of Symbol 73 MovieClip in Frame 3
on (rollOver) {
if (rolling == -1) {
this.gotoAndPlay(2);
rolling = 1;
}
}
onClipEvent (load) {
var rolling;
rolling = -1;
}
on (rollOut) {
if (rolling == 1) {
this.gotoAndPlay(18);
rolling = -1;
}
}
Instance of Symbol 77 MovieClip in Frame 3
on (rollOver) {
if (rolling == -1) {
this.gotoAndPlay(2);
rolling = 1;
}
}
onClipEvent (load) {
var rolling;
rolling = -1;
}
on (rollOut) {
if (rolling == 1) {
this.gotoAndPlay(18);
rolling = -1;
}
}
on (release) {
_root.modeselect.data.modeselection = -1;
_root.gotoAndPlay("fix");
}
Instance of Symbol 81 MovieClip in Frame 3
on (rollOver) {
if (rolling == -1) {
this.gotoAndPlay(2);
rolling = 1;
}
}
onClipEvent (load) {
var rolling;
rolling = -1;
}
on (rollOut) {
if (rolling == 1) {
this.gotoAndPlay(18);
rolling = -1;
}
}
on (release) {
_root.modeselect.data.modeselection = 1;
_root.gotoAndPlay("fix");
}
Instance of Symbol 126 MovieClip "opbut" in Frame 3
on (rollOver) {
if (rolling == -1) {
this.gotoAndPlay(2);
rolling = 1;
}
}
onClipEvent (load) {
var rolling;
rolling = -1;
}
on (rollOut) {
_root.lowq._visible = false;
_root.medq._visible = false;
_root.highq._visible = false;
_root.ControlMenu._visible = false;
if ((rolling == 1) or (rolling == 2)) {
this.gotoAndPlay(18);
rolling = -1;
}
}
on (release) {
if (rolling == 1) {
rolling = 2;
this.gotoAndPlay(23);
}
}
Instance of Symbol 129 MovieClip "lowq" in Frame 3
on (release) {
this._quality = "LOW";
}
onClipEvent (load) {
this._visible = false;
_root.ControlMenu._visible = false;
}
on (rollOver) {
_root.opbut.gotoAndStop(60);
}
on (rollOut) {
_root.opbut.gotoAndStop(60);
}
Instance of Symbol 131 MovieClip "medq" in Frame 3
on (release) {
this._quality = "MEDIUM";
}
onClipEvent (load) {
this._visible = false;
}
on (rollOver) {
_root.opbut.gotoAndStop(60);
}
on (rollOut) {
_root.opbut.gotoAndStop(60);
}
Instance of Symbol 133 MovieClip "highq" in Frame 3
on (release) {
this._quality = "HIGH";
}
onClipEvent (load) {
this._visible = false;
}
on (rollOver) {
_root.opbut.gotoAndStop(60);
}
on (rollOut) {
_root.opbut.gotoAndStop(60);
}
Frame 4
var p1moves = SharedObject.getLocal("Player1Moves");
var p2moves = SharedObject.getLocal("Player2Moves");
keyListener1 = new Object();
keyListener1.onKeyDown = function () {
if (_root.upmc1.select == 1) {
_root.upmc1.UP1 = Key.getCode();
_root.upmc1.select = -1;
}
if (_root.downmc1.select == 1) {
_root.downmc1.DOWN1 = Key.getCode();
_root.downmc1.select = -1;
}
if (_root.leftmc1.select == 1) {
_root.leftmc1.LEFT1 = Key.getCode();
_root.leftmc1.select = -1;
}
if (_root.rightmc1.select == 1) {
_root.rightmc1.RIGHT1 = Key.getCode();
_root.rightmc1.select = -1;
}
if (_root.normmc1.select == 1) {
_root.normmc1.atnum1 = Key.getCode();
_root.normmc1.select = -1;
}
if (_root.guardmc1.select == 1) {
_root.guardmc1.block1 = Key.getCode();
_root.guardmc1.select = -1;
}
if (_root.specmc1.select == 1) {
_root.specmc1.spec1 = Key.getCode();
_root.specmc1.select = -1;
}
};
Key.addListener(keyListener1);
keyListener2 = new Object();
keyListener2.onKeyDown = function () {
if (_root.upmc2.select == 1) {
_root.upmc2.UP2 = Key.getCode();
_root.upmc2.select = -1;
}
if (_root.downmc2.select == 1) {
_root.downmc2.DOWN2 = Key.getCode();
_root.downmc2.select = -1;
}
if (_root.leftmc2.select == 1) {
_root.leftmc2.LEFT2 = Key.getCode();
_root.leftmc2.select = -1;
}
if (_root.rightmc2.select == 1) {
_root.rightmc2.RIGHT2 = Key.getCode();
_root.rightmc2.select = -1;
}
if (_root.normmc2.select == 1) {
_root.normmc2.atnum2 = Key.getCode();
_root.normmc2.select = -1;
}
if (_root.guardmc2.select == 1) {
_root.guardmc2.block2 = Key.getCode();
_root.guardmc2.select = -1;
}
if (_root.specmc2.select == 1) {
_root.specmc2.spec2 = Key.getCode();
_root.specmc2.select = -1;
}
};
Key.addListener(keyListener2);
stop();
Instance of Symbol 142 MovieClip "upmc1" in Frame 4
on (release) {
select = 1;
_root.downmc1.select = -1;
_root.leftmc1.select = -1;
_root.rightmc1.select = -1;
_root.normmc1.select = -1;
_root.specmc1.select = -1;
_root.guardmc1.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var UP1;
UP1 = 117;
}
Instance of Symbol 144 MovieClip "downmc1" in Frame 4
on (release) {
select = 1;
_root.upmc1.select = -1;
_root.leftmc1.select = -1;
_root.rightmc1.select = -1;
_root.normmc1.select = -1;
_root.specmc1.select = -1;
_root.guardmc1.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var DOWN1;
DOWN1 = 113;
}
Instance of Symbol 146 MovieClip "leftmc1" in Frame 4
on (release) {
select = 1;
_root.downmc1.select = -1;
_root.upmc1.select = -1;
_root.rightmc1.select = -1;
_root.normmc1.select = -1;
_root.specmc1.select = -1;
_root.guardmc1.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var LEFT1;
LEFT1 = 97;
}
Instance of Symbol 148 MovieClip "rightmc1" in Frame 4
on (release) {
select = 1;
_root.downmc1.select = -1;
_root.leftmc1.select = -1;
_root.upmc1.select = -1;
_root.normmc1.select = -1;
_root.specmc1.select = -1;
_root.guardmc1.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var RIGHT1;
RIGHT1 = 117;
}
Instance of Symbol 150 MovieClip "normmc1" in Frame 4
on (release) {
select = 1;
_root.downmc1.select = -1;
_root.leftmc1.select = -1;
_root.rightmc1.select = -1;
_root.upmc1.select = -1;
_root.specmc1.select = -1;
_root.guardmc1.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var atnum1;
atnum1 = 117;
}
Instance of Symbol 152 MovieClip "specmc1" in Frame 4
on (release) {
select = 1;
_root.downmc1.select = -1;
_root.leftmc1.select = -1;
_root.rightmc1.select = -1;
_root.normmc1.select = -1;
_root.upmc1.select = -1;
_root.guardmc1.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var spec1;
spec1 = 117;
}
Instance of Symbol 154 MovieClip "guardmc1" in Frame 4
on (release) {
select = 1;
_root.downmc1.select = -1;
_root.leftmc1.select = -1;
_root.rightmc1.select = -1;
_root.normmc1.select = -1;
_root.specmc1.select = -1;
_root.upmc1.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var block1;
block1 = 117;
}
Instance of Symbol 156 MovieClip "upmc2" in Frame 4
on (release) {
select = 1;
_root.downmc2.select = -1;
_root.leftmc2.select = -1;
_root.rightmc2.select = -1;
_root.normmc2.select = -1;
_root.specmc2.select = -1;
_root.guardmc2.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var UP2;
UP2 = 117;
}
Instance of Symbol 158 MovieClip "downmc2" in Frame 4
on (release) {
select = 1;
_root.upmc2.select = -1;
_root.leftmc2.select = -1;
_root.rightmc2.select = -1;
_root.normmc2.select = -1;
_root.specmc2.select = -1;
_root.guardmc2.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var DOWN2;
DOWN2 = 113;
}
Instance of Symbol 160 MovieClip "leftmc2" in Frame 4
on (release) {
select = 1;
_root.downmc2.select = -1;
_root.upmc2.select = -1;
_root.rightmc2.select = -1;
_root.normmc2.select = -1;
_root.specmc2.select = -1;
_root.guardmc2.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var LEFT2;
LEFT2 = 97;
}
Instance of Symbol 162 MovieClip "rightmc2" in Frame 4
on (release) {
select = 1;
_root.downmc2.select = -1;
_root.leftmc2.select = -1;
_root.upmc2.select = -1;
_root.normmc2.select = -1;
_root.specmc2.select = -1;
_root.guardmc2.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var RIGHT2;
RIGHT2 = 117;
}
Instance of Symbol 164 MovieClip "normmc2" in Frame 4
on (release) {
select = 1;
_root.downmc2.select = -1;
_root.leftmc2.select = -1;
_root.rightmc2.select = -1;
_root.upmc2.select = -1;
_root.specmc2.select = -1;
_root.guardmc2.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var atnum2;
atnum2 = 117;
}
Instance of Symbol 166 MovieClip "specmc2" in Frame 4
on (release) {
select = 1;
_root.downmc2.select = -1;
_root.leftmc2.select = -1;
_root.rightmc2.select = -1;
_root.normmc2.select = -1;
_root.upmc2.select = -1;
_root.guardmc2.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var spec2;
spec2 = 117;
}
Instance of Symbol 168 MovieClip "guardmc2" in Frame 4
on (release) {
select = 1;
_root.downmc2.select = -1;
_root.leftmc2.select = -1;
_root.rightmc2.select = -1;
_root.normmc2.select = -1;
_root.specmc2.select = -1;
_root.upmc2.select = -1;
}
onClipEvent (load) {
var select;
select = -1;
var block2;
block2 = 117;
}
Instance of Symbol 171 MovieClip "set1" in Frame 4
on (release) {
var p1moves = SharedObject.getLocal("Player1Moves");
p1moves.data.upbut = _root.upmc1.UP1;
p1moves.data.downbut = _root.downmc1.DOWN1;
p1moves.data.leftbut = _root.leftmc1.LEFT1;
p1moves.data.rightbut = _root.rightmc1.RIGHT1;
p1moves.data.normbut = _root.normmc1.atnum1;
p1moves.data.specbut = _root.specmc1.spec1;
p1moves.data.guardbut = _root.guardmc1.block1;
p1moves.flush();
}
onClipEvent (load) {
var p1moves = SharedObject.getLocal("Player1Moves");
if (p1moves.data.upbut == undefined) {
p1moves.data.upbut = 87;
}
if (p1moves.data.downbut == undefined) {
p1moves.data.downbut = 83;
}
if (p1moves.data.leftbut == undefined) {
p1moves.data.leftbut = 65;
}
if (p1moves.data.rightbut == undefined) {
p1moves.data.rightbut = 68;
}
if (p1moves.data.normbut == undefined) {
p1moves.data.normbut = 71;
}
if (p1moves.data.specbut == undefined) {
p1moves.data.specbut = 72;
}
if (p1moves.data.guardbut == undefined) {
p1moves.data.guardbut = 32;
}
p1moves.flush();
}
Instance of Symbol 171 MovieClip "set2" in Frame 4
on (release) {
var p2moves = SharedObject.getLocal("Player2Moves");
p2moves.data.upbut = _root.upmc2.UP2;
p2moves.data.downbut = _root.downmc2.DOWN2;
p2moves.data.leftbut = _root.leftmc2.LEFT2;
p2moves.data.rightbut = _root.rightmc2.RIGHT2;
p2moves.data.normbut = _root.normmc2.atnum2;
p2moves.data.specbut = _root.specmc2.spec2;
p2moves.data.guardbut = _root.guardmc2.block2;
p2moves.flush();
}
onClipEvent (load) {
var p2moves = SharedObject.getLocal("Player2Moves");
if (p2moves.data.upbut == undefined) {
p2moves.data.upbut = 38;
}
if (p2moves.data.downbut == undefined) {
p2moves.data.downbut = 40;
}
if (p2moves.data.leftbut == undefined) {
p2moves.data.leftbut = 37;
}
if (p2moves.data.rightbut == undefined) {
p2moves.data.rightbut = 39;
}
if (p2moves.data.normbut == undefined) {
p2moves.data.normbut = 100;
}
if (p2moves.data.specbut == undefined) {
p2moves.data.specbut = 101;
}
if (p2moves.data.guardbut == undefined) {
p2moves.data.guardbut = 96;
}
p2moves.flush();
}
Instance of Symbol 173 MovieClip in Frame 4
on (release) {
var p1moves = SharedObject.getLocal("Player1Moves");
_root.upmc1.UP1 = p1moves.data.upbut;
_root.downmc1.DOWN1 = p1moves.data.downbut;
_root.leftmc1.LEFT1 = p1moves.data.leftbut;
_root.rightmc1.RIGHT1 = p1moves.data.rightbut;
_root.normmc1.atnum1 = p1moves.data.normbut;
_root.specmc1.spec1 = p1moves.data.specbut;
_root.guardmc1.block1 = p1moves.data.guardbut;
var p2moves = SharedObject.getLocal("Player2Moves");
_root.upmc2.UP2 = p2moves.data.upbut;
_root.downmc2.DOWN2 = p2moves.data.downbut;
_root.leftmc2.LEFT2 = p2moves.data.leftbut;
_root.rightmc2.RIGHT2 = p2moves.data.rightbut;
_root.normmc2.atnum2 = p2moves.data.normbut;
_root.specmc2.spec2 = p2moves.data.specbut;
_root.guardmc2.block2 = p2moves.data.guardbut;
}
Instance of Symbol 176 MovieClip in Frame 4
on (release) {
Key.removeListener(keyListener1);
Key.removeListener(keyListener2);
Key.removeListener(keyListener3);
Key.removeListener(keyListener4);
Key.removeListener(keyListener5);
Key.removeListener(keyListener6);
Key.removeListener(keyListener7);
_root.gotoAndStop("menu");
}
Frame 5
gotoAndPlay (6);
Frame 6
var savefile = SharedObject.getLocal("NarutoBattles");
var p1moves = SharedObject.getLocal("Player1Moves");
var modeselect = SharedObject.getLocal("ModeSelect");
stop();
Key.removeListener(keyListener1);
Key.removeListener(keyListener2);
Key.removeListener(keyListener3);
Key.removeListener(keyListener4);
Key.removeListener(keyListener5);
Key.removeListener(keyListener6);
Key.removeListener(keyListener7);
Instance of Symbol 202 MovieClip "NejiAnim" in Frame 6
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
this.stop();
this._visible = false;
this._x = 115;
this._y = 145;
}
Instance of Symbol 206 MovieClip in Frame 6
on (release) {
if (_root.charselect.training == 1) {
_root.player1 = "Neji";
_root.NejiAnim._xscale = 200;
_root.NejiAnim._x = 115;
_root.NejiAnim._visible = true;
_root.NarutoAnim._visible = false;
_root.RockLeeAnim._visible = false;
_root.KyubiAnim._visible = false;
} else if (_root.charselect.charselection == 1) {
_root.player1 = "Neji";
_root.NejiAnim._xscale = 200;
_root.NejiAnim._x = 115;
_root.charselect.charselection = 2;
} else if (_root.charselect.charselection == 2) {
if (_root.player1 != "Neji") {
_root.player2 = "Neji";
_root.NejiAnim._xscale = -200;
_root.NejiAnim._x = 435;
_root.charselect.charselection = 3;
}
} else if (_root.charselect.charselection == 3) {
if ((_root.player1 != "Neji") && (_root.player2 != "Neji")) {
_root.NejiAnim._xscale = 200;
_root.NejiAnim._x = 115;
_root.charselect.charselection = 4;
if (_root.player1 == "Naruto") {
_root.NarutoAnim._visible = false;
}
if (_root.player1 == "Kyubi") {
_root.KyubiAnim._visible = false;
}
if (_root.player1 == "RockLee") {
_root.RockLeeAnim._visible = false;
}
_root.player1 = "Neji";
}
} else if (_root.charselect.charselection == 4) {
if ((_root.player2 != "Neji") && (_root.player1 != "Neji")) {
_root.NejiAnim._xscale = -200;
_root.NejiAnim._x = 435;
_root.charselect.charselection = 3;
if (_root.player2 == "Naruto") {
_root.NarutoAnim._visible = false;
}
if (_root.player2 == "Kyubi") {
_root.KyubiAnim._visible = false;
}
if (_root.player2 == "RockLee") {
_root.RockLeeAnim._visible = false;
}
_root.player2 = "Neji";
}
}
_root.NejiAnim.gotoAndPlay(1);
_root.NejiAnim._visible = true;
}
Instance of Symbol 176 MovieClip in Frame 6
onClipEvent (load) {
this._x = 500 - this._width;
this._y = 370 - this._height;
this._xscale = 200;
this._yscale = 200;
}
on (release) {
_root.play();
}
Instance of Symbol 220 MovieClip "KyubiAnim" in Frame 6
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
this.stop();
this._visible = false;
this._x = 115;
this._y = 145;
}
Instance of Symbol 224 MovieClip in Frame 6
on (release) {
if (_root.charselect.training == 1) {
_root.player1 = "Kyubi";
_root.Kyubi._xscale = 200;
_root.Kyubi._x = 115;
_root.NejiAnim._visible = false;
_root.NarutoAnim._visible = false;
_root.RockLeeAnim._visible = false;
_root.KyubiAnim._visible = true;
} else if (_root.charselect.charselection == 1) {
_root.player1 = "Kyubi";
_root.KyubiAnim._xscale = 200;
_root.KyubiAnim._x = 115;
_root.charselect.charselection = 2;
} else if (_root.charselect.charselection == 2) {
if (_root.player1 != "Kyubi") {
_root.player2 = "Kyubi";
_root.KyubiAnim._xscale = -200;
_root.KyubiAnim._x = 435;
_root.charselect.charselection = 3;
}
} else if (_root.charselect.charselection == 3) {
if ((_root.player1 != "Kyubi") && (_root.player2 != "Kyubi")) {
_root.KyubiAnim._xscale = 200;
_root.KyubiAnim._x = 115;
_root.charselect.charselection = 4;
if (_root.player1 == "Neji") {
_root.NejiAnim._visible = false;
}
if (_root.player1 == "Naruto") {
_root.NarutoAnim._visible = false;
}
if (_root.player1 == "RockLee") {
_root.RockLeeAnim._visible = false;
}
_root.player1 = "Kyubi";
}
} else if (_root.charselect.charselection == 4) {
if ((_root.player2 != "Kyubi") && (_root.player1 != "Kyubi")) {
_root.KyubiAnim._xscale = -200;
_root.KyubiAnim._x = 435;
_root.charselect.charselection = 3;
if (_root.player2 == "Neji") {
_root.NejiAnim._visible = false;
}
if (_root.player2 == "Naruto") {
_root.NarutoAnim._visible = false;
}
if (_root.player2 == "RockLee") {
_root.RockLeeAnim._visible = false;
}
_root.player2 = "Kyubi";
}
}
_root.KyubiAnim.gotoAndPlay(1);
_root.KyubiAnim._visible = true;
}
onClipEvent (load) {
this._visible = false;
var unlocked;
unlocked = -1;
}
onClipEvent (enterFrame) {
if (_root.Kunlock == "yes") {
unlocked = 1;
}
if (unlocked == 1) {
this._visible = true;
}
}
Instance of Symbol 231 MovieClip in Frame 6
on (release) {
if (_root.charselect.training == 1) {
_root.player1 = "RockLee";
_root.RockLeeAnim._xscale = 200;
_root.RockLeeAnim._x = 115;
_root.NejiAnim._visible = false;
_root.NarutoAnim._visible = false;
_root.RockLeeAnim._visible = true;
_root.KyubiAnim._visible = false;
} else if (_root.charselect.charselection == 1) {
_root.player1 = "RockLee";
_root.RockLeeAnim._xscale = 200;
_root.RockLeeAnim._x = 115;
_root.charselect.charselection = 2;
} else if (_root.charselect.charselection == 2) {
if (_root.player1 != "RockLee") {
_root.player2 = "RockLee";
_root.RockLeeAnim._xscale = -200;
_root.RockLeeAnim._x = 435;
_root.charselect.charselection = 3;
}
} else if (_root.charselect.charselection == 3) {
if ((_root.player1 != "RockLee") && (_root.player2 != "RockLee")) {
_root.RockLeeAnim._xscale = 200;
_root.RockLeeAnim._x = 115;
_root.charselect.charselection = 4;
if (_root.player1 == "Neji") {
_root.NejiAnim._visible = false;
}
if (_root.player1 == "Kyubi") {
_root.KyubiAnim._visible = false;
}
if (_root.player1 == "Naruto") {
_root.NarutoAnim._visible = false;
}
_root.player1 = "RockLee";
}
} else if (_root.charselect.charselection == 4) {
if ((_root.player2 != "RockLee") && (_root.player1 != "RockLee")) {
_root.RockLeeAnim._xscale = -200;
_root.RockLeeAnim._x = 435;
_root.charselect.charselection = 3;
if (_root.player2 == "Neji") {
_root.NejiAnim._visible = false;
}
if (_root.player2 == "Kyubi") {
_root.KyubiAnim._visible = false;
}
if (_root.player2 == "Naruto") {
_root.NarutoAnim._visible = false;
}
_root.player2 = "RockLee";
}
}
_root.RockLeeAnim.gotoAndPlay(1);
_root.RockLeeAnim._visible = true;
}
Instance of Symbol 249 MovieClip "RockLeeAnim" in Frame 6
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
this.stop();
this._visible = false;
this._x = 115;
this._y = 145;
}
Instance of Symbol 251 MovieClip "charselect" in Frame 6
onClipEvent (load) {
var charselection;
charselection = 1;
var training;
training = -1;
if (_root.modeselect.data.modeselection == 1) {
training = 1;
_root.player2 = "sand";
} else {
training = -1;
}
}
Instance of Symbol 176 MovieClip in Frame 6
on (release) {
_root.gotoAndStop("gotoMenu");
}
Instance of Symbol 257 MovieClip in Frame 6
onClipEvent (load) {
if (_root.charselect.training == 1) {
this._x = 435;
this._xscale = -200;
}
}
Instance of Symbol 267 MovieClip "NarutoAnim" in Frame 6
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
this.stop();
this._visible = false;
this._x = 115;
this._y = 145;
}
Instance of Symbol 269 MovieClip in Frame 6
on (release) {
if (_root.charselect.training == 1) {
_root.player1 = "Naruto";
_root.NarutoAnim._xscale = 200;
_root.NarutoAnim._x = 115;
_root.NarutoAnim._visible = true;
_root.NejiAnim._visible = false;
_root.RockLeeAnim._visible = false;
_root.KyubiAnim._visible = false;
} else if (_root.charselect.charselection == 1) {
_root.player1 = "Naruto";
_root.NarutoAnim._xscale = 200;
_root.NarutoAnim._x = 115;
_root.charselect.charselection = 2;
} else if (_root.charselect.charselection == 2) {
if (_root.player1 != "Naruto") {
_root.player2 = "Naruto";
_root.NarutoAnim._xscale = -200;
_root.NarutoAnim._x = 435;
_root.charselect.charselection = 3;
}
} else if (_root.charselect.charselection == 3) {
if ((_root.player1 != "Naruto") && (_root.player2 != "Naruto")) {
_root.NarutoAnim._xscale = 200;
_root.NarutoAnim._x = 115;
_root.charselect.charselection = 4;
if (_root.player1 == "Neji") {
_root.NejiAnim._visible = false;
}
if (_root.player1 == "Kyubi") {
_root.KyubiAnim._visible = false;
}
if (_root.player1 == "RockLee") {
_root.RockLeeAnim._visible = false;
}
_root.player1 = "Naruto";
}
} else if (_root.charselect.charselection == 4) {
if ((_root.player2 != "Naruto") && (_root.player1 != "Naruto")) {
_root.NarutoAnim._xscale = -200;
_root.NarutoAnim._x = 435;
_root.charselect.charselection = 3;
if (_root.player2 == "Neji") {
_root.NejiAnim._visible = false;
}
if (_root.player2 == "Kyubi") {
_root.KyubiAnim._visible = false;
}
if (_root.player2 == "RockLee") {
_root.RockLeeAnim._visible = false;
}
_root.player2 = "Naruto";
}
}
_root.NarutoAnim.gotoAndPlay(1);
_root.NarutoAnim._visible = true;
}
Frame 7
stop();
Instance of Symbol 294 MovieClip "NarutoHolding" in Frame 7
onClipEvent (load) {
var activ = -1;
var xmove;
var enemymc;
var xcontrol = 1;
var pressControl = 1;
var broke = -1;
}
onClipEvent (enterFrame) {
if (broke == -1) {
if (_root.Naruto.finish != -1) {
activ = 1;
} else {
activ = -1;
}
if (activ == 1) {
enemymc._y = _root.ground1._y;
if (this.hitTest(_root.enemymc) && (_root.Naruto.finish != -1)) {
enemymc.hurt = 1;
enemymc.hurtDelay = 5;
}
if (_root.Naruto.select == 1) {
enemymc = _root.Naruto.enemymc;
}
if (_root.Naruto.select == 2) {
enemymc = _root.Naruto.playermc;
}
if ((Key.isDown(enemymc.ctrlLEFT) && (xcontrol >= 0)) && (pressControl == 1)) {
xcontrol = xcontrol * -1;
xcontrol = xcontrol - 2;
this.aleft._visible = false;
this.aright._visible = true;
pressControl = -1;
}
if ((Key.isDown(enemymc.ctrlRIGHT) && (xcontrol < 0)) && (pressControl == 1)) {
xcontrol = xcontrol * -1;
xcontrol = xcontrol + 2;
this.aleft._visible = true;
this.aright._visible = false;
pressControl = -1;
}
pressControl = 1;
enemymc._x = this._x + xcontrol;
if ((Math.abs(xcontrol) >= 40) or (!enemymc.hitTest(this))) {
broke = 1;
this._y = 900;
}
}
}
}
Instance of Symbol 15 MovieClip [Dagger] "Dagger" in Frame 7
onClipEvent (load) {
var damage;
damage = 3;
var xmove;
this._xscale = _root.Naruto._xscale * xcontrol;
if (_root.Naruto._xscale == 100) {
xmove = 1;
}
if (_root.Naruto._xscale == -100) {
xmove = -1;
}
this._xscale = _root.Naruto._xscale;
var p1moves = SharedObject.getLocal("Player1Moves");
if (p1moves.data.upbut == undefined) {
p1moves.data.upbut = 87;
}
if (p1moves.data.downbut == undefined) {
p1moves.data.downbut = 83;
}
if (p1moves.data.leftbut == undefined) {
p1moves.data.leftbut = 65;
}
if (p1moves.data.rightbut == undefined) {
p1moves.data.rightbut = 68;
}
if (p1moves.data.normbut == undefined) {
p1moves.data.normbut = 71;
}
if (p1moves.data.specbut == undefined) {
p1moves.data.specbut = 72;
}
if (p1moves.data.guardbut == undefined) {
p1moves.data.guardbut = 32;
}
p1moves.flush();
var p2moves = SharedObject.getLocal("Player2Moves");
if (p2moves.data.upbut == undefined) {
p2moves.data.upbut = 38;
}
if (p2moves.data.downbut == undefined) {
p2moves.data.downbut = 40;
}
if (p2moves.data.leftbut == undefined) {
p2moves.data.leftbut = 37;
}
if (p2moves.data.rightbut == undefined) {
p2moves.data.rightbut = 39;
}
if (p2moves.data.normbut == undefined) {
p2moves.data.normbut = 100;
}
if (p2moves.data.specbut == undefined) {
p2moves.data.specbut = 101;
}
if (p2moves.data.guardbut == undefined) {
p2moves.data.guardbut = 96;
}
p2moves.flush();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.leftwall) or this.hitTest(_root.rightwall)) {
this.removeMovieClip();
}
if (this.hitTest(_root.Neji) && (_root.Neji.rotatePalm == 1)) {
xmove = xmove * -1;
_root.Neji.hp = _root.Neji.hp + damage;
}
this._x = this._x + (13 * xmove);
}
Instance of Symbol 516 MovieClip "Neji" in Frame 7
onClipEvent (load) {
var incx = 0;
var incy = 0;
var blurred = (new flash.filters.BlurFilter(0, 0, 4));
var myFilters = [blurred];
this.filters = myFilters;
var ctrlUP;
var ctrlDOWN;
var ctrlLEFT;
var ctrlRIGHT;
var ctrlNorm;
var ctrlSpec;
var ctrlGuard;
var p2moves = SharedObject.getLocal("Player2Moves");
var p1moves = SharedObject.getLocal("Player1Moves");
var Name;
Name = "Neji";
var select;
select = -1;
if (_root.player1 == Name) {
select = 1;
this._x = 30;
this._y = _root.ground1._y;
ctrlUP = p1moves.data.upbut;
ctrlDOWN = p1moves.data.downbut;
ctrlLEFT = p1moves.data.leftbut;
ctrlRIGHT = p1moves.data.rightbut;
ctrlNorm = p1moves.data.normbut;
ctrlSpec = p1moves.data.specbut;
ctrlGuard = p1moves.data.guardbut;
}
if (_root.player2 == Name) {
select = 2;
this._x = 520;
this._xscale = this._xscale * -1;
this._y = _root.ground1._y;
ctrlUP = p2moves.data.upbut;
ctrlDOWN = p2moves.data.downbut;
ctrlLEFT = p2moves.data.leftbut;
ctrlRIGHT = p2moves.data.rightbut;
ctrlNorm = p2moves.data.normbut;
ctrlSpec = p2moves.data.specbut;
ctrlGuard = p2moves.data.guardbut;
}
var crouchdelay;
crouchdelay = 0;
var running;
running = -1;
var speed;
speed = 7;
var walkspeed;
walkspeed = 3;
var rundelay;
rundelay = 10;
var walkdelay;
walkdelay = 0;
var startrun;
startrun = 0;
var fallspeed;
fallspeed = 0;
var maxfallspeed;
maxfallspeed = 30;
var fall;
fall = -1;
var jumpcancel;
jumpcancel = -1;
var hp;
hp = 100;
var cp;
cp = 100;
var attackcancel;
attackcancel = -1;
var attacking;
attacking = -1;
var attackdelay;
attackdelay = 0;
var airattack;
airattack = 0;
var daggernum;
daggernum = 1;
var mc;
mc = _root.Dagger;
var blockdelay;
blockdelay = 5;
var rolling;
rolling = -1;
var palm;
palm = -1;
var rotatePalm;
rotatePalm = -1;
var chakradelay;
chakradelay = 0;
var rotateKnock;
var specialknock;
var enemymc;
var explodemc;
explodemc = _root.explosion;
var sp;
sp = 0;
_root.spglow1._visible = false;
var finishdelay;
finishdelay = 5;
var finish;
finish = 0;
var xmove;
xmove = 1;
var defend;
defend = -1;
var defensedmg = 1;
var dodging;
dodging = -1;
var hurtDelay = -1;
var hurt = -1;
var airSpin = 0;
var hurtGround = -1;
var bounceUp = 0;
}
onClipEvent (enterFrame) {
if (bounceUp > 0) {
bounceUp--;
}
this._y = this._y + fallspeed;
if (hurtDelay > -1) {
hurtDelay--;
}
airSpin = (fallspeed * -2) * (_xscale / 100);
if (hurtDelay == 0) {
hurt = -1;
}
if (((hurt == 1) && (fall == 1)) && (hurtGround == -1)) {
incx = Math.abs(hurtspeed) / 2;
incy = Math.abs(fallspeed) / 2;
myFilters[0] = new flash.filters.BlurFilter(incx, incy, 4);
this.filters = myFilters;
_rotation = airSpin;
this.gotoAndStop("airHurt");
}
if (hurt == -1) {
_rotation = 0;
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if (((hurt == 1) && (fall == 1)) && ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3))) {
hurtGround = 1;
fallspeed = 0;
_y = _root.ground1._y;
fall = -1;
hurt = -1;
hurtDelay = 0;
bounceUp = 3;
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if (attackdelay <= 0) {
dodging = -1;
}
if (hp <= 0) {
_root.gotoAndStop("charselect");
}
if ((fall == 1) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) {
if (((this._xscale == 100) && (Key.isDown(ctrlLEFT))) or ((this._xscale == -100) && (Key.isDown(ctrlRIGHT)))) {
running = -1;
}
}
xmove = this._xscale / 100;
if ((this.hitTest(_root.leftwall) or this.hitTest(_root.rightwall)) && (finish != 1)) {
explodemc = _root.explosion.duplicateMovieClip(daggernum + "boom", daggernum);
explodemc._y = this._y - (this._height / 2);
if (this.hitTest(_root.leftwall)) {
explodemc._x = _root.leftwall._x + 40;
explodemc._rotation = 90;
}
if (this.hitTest(_root.rightwall)) {
explodemc._x = _root.rightwall._x - 40;
explodemc._rotation = -90;
}
hp = hp - 20;
_x = 275;
attackdelay = 0;
finish = -1;
hurtspeed = 0;
}
if ((bounceUp > 0) && (Key.isDown(ctrlGuard))) {
hurtGround = -2;
fallspeed = -3;
this.gotoAndStop("bounceUp");
}
if (hurtGround == 1) {
this.gotoAndStop("hitGround");
_y = _root.ground1._y;
if (this.hitGround._currentframe == 10) {
if ((Key.isDown(ctrlLEFT) or Key.isDown(ctrlRIGHT)) or Key.isDown(ctrlUP)) {
this.hitGround.play();
}
}
}
if ((select == 1) && (hurtGround == -1)) {
if ((hurtspeed > 0) && (fallspeed == 0)) {
hurtspeed--;
}
if ((hurtspeed < 0) && (fallspeed == 0)) {
hurtspeed++;
}
this._x = this._x + hurtspeed;
if (_root.RockLee.select == 2) {
enemymc = _root.RockLee;
}
if (_root.Naruto.select == 2) {
enemymc = _root.Naruto;
}
if (_root.Kyubi.select == 2) {
enemymc = _root.Kyubi;
}
_root.Icons1.gotoAndStop("Neji");
if (cp <= 0) {
chakradelay = 300;
}
if (chakradelay > 0) {
chakradelay--;
}
if ((chakradelay > 290) && (Key.isDown(ctrlSpec))) {
hp = hp - 0.5;
}
if (cp < 100) {
cp = cp + 0.1;
}
_root.hp1._x = _root.lefthp._x + _root.lefthp._width;
_root.hp1._xscale = hp;
_root.cp1._x = _root.lefthp._x + _root.lefthp._width;
_root.cp1._xscale = cp;
_root.sp1._x = _root.lefthp._x + _root.lefthp._width;
_root.sp1._xscale = sp;
if (sp < 100) {
sp = sp + 0.001;
}
if (sp >= 100) {
sp = 100;
_root.spglow1._visible = true;
_root.spglow1._alpha = 75;
}
if (sp != 100) {
_root.spglow1._visible = false;
}
if ((((((hurt == -1) && (fall == -1)) && (attacking == -1)) && (Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("crouch");
crouchdelay = 12;
}
if (((!this.hitTest(_root.ground1)) or (!this.hitTest(_root.ground2))) or (!this.hitTest(_root.ground3))) {
if (teledelay <= 0) {
fallspeed++;
}
fall = 1;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
if ((airattack == 1) && (fall == 1)) {
attacking = -1;
airattack = -1;
attackdelay = 0;
}
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
_rotation = 0;
fallspeed = 0;
fall = -1;
this._y = _root.ground1._y;
}
if (walkdelay > 0) {
walkdelay--;
}
if (startrun > 0) {
startrun--;
}
if (crouchdelay > 0) {
crouchdelay--;
}
if ((((((hurt == -1) && (!Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) && (fall == -1)) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) {
if (crouchdelay == 0) {
this.gotoAndStop("stand");
} else {
this.crouch.play();
}
rundelay = 10;
if (startrun > 0) {
walkdelay = 5;
}
}
if ((((hurt == -1) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && (attacking == -1)) && (!(Key.isDown(ctrlRIGHT) && (Key.isDown(ctrlLEFT))))) {
if (fall == -1) {
startrun = 3;
if ((walkdelay <= 5) && (walkdelay > 0)) {
this.gotoAndStop("run");
rundelay--;
running = 1;
walkdelay = 3;
startrun = 0;
}
if (walkdelay == 0) {
running = -1;
this.gotoAndStop("walk");
}
}
}
if (((hurt == -1) && (Key.isDown(ctrlRIGHT))) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x + speed;
}
if (running == -1) {
this._x = this._x + walkspeed;
}
this._xscale = 100;
}
}
if (((hurt == -1) && (Key.isDown(ctrlLEFT))) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x - speed;
}
if (running == -1) {
this._x = this._x - walkspeed;
}
this._xscale = -100;
}
}
if (((((hurt == -1) && (Key.isDown(ctrlLEFT))) && (Key.isDown(ctrlRIGHT))) && (attacking == -1)) && (fall == -1)) {
this.gotoAndStop("stand");
walkdelay = 0;
rundelay = 0;
running = -1;
startrun = 0;
}
if ((((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlUP))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (jumpcancel == -1)) {
this.gotoAndStop("jump");
if (delay <= 0) {
this._y = this._y - 5;
fallspeed = -13;
fall = 1;
jumpcancel = 1;
}
}
if ((!Key.isDown(ctrlUP)) && (fall == -1)) {
jumpcancel = -1;
}
if ((((hurt == -1) && (fallspeed > 0)) && (fall == 1)) && (attacking == -1)) {
this.gotoAndStop("fall");
}
if (rolling == 1) {
this._x = this._x + ((speed * (_xscale / 100)) * -1);
}
if ((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlGuard))) && (attackdelay <= 1)) {
if (rolling == -1) {
this.gotoAndStop("guard");
attackdelay = 1;
defend = 1;
}
attacking = 1;
blockdelay = 13;
if (((this._xscale < 0) && (Key.isDown(ctrlRIGHT))) && (rolling == -1)) {
this.gotoAndStop("roll");
rolling = 1;
attackdelay = 13;
dodging = 1;
}
if (((this._xscale > 0) && (Key.isDown(ctrlLEFT))) && (rolling == -1)) {
this.gotoAndStop("roll");
rolling = 1;
attackdelay = 13;
dodging = 1;
}
} else {
blockdelay--;
}
if ((hurt == -1) && (!Key.isDown(ctrlNorm))) {
attackcancel = -1;
} else if (hurt == 1) {
attackcancel = 1;
}
if (attackdelay == 0) {
_root.bgpink._visible = false;
attacking = -1;
rolling = -1;
palm = -1;
rotatePalm = -1;
dodging = -1;
} else {
attackdelay--;
}
if ((((((Key.isDown(ctrlRIGHT) || (Key.isDown(ctrlLEFT))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 18;
attacking = 1;
this.gotoAndStop("palm");
attackcancel = 1;
this.palmattack.hitBoxPalm.gotoAndPlay(1);
}
if (((((Key.isDown(ctrlNorm) && (attacking == -1)) && (fall == -1)) && (!Key.isDown(ctrlDOWN))) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 24;
attacking = 1;
this.gotoAndStop("punchcombo");
attackcancel = 1;
this.punchcombo.hitBox.gotoAndPlay(1);
}
if ((((Key.isDown(ctrlDOWN) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (attackcancel == -1)) {
attackdelay = 16;
attacking = 1;
this.gotoAndStop("uppercut");
attackcancel = 1;
this.uppercut.hitBoxUp.gotoAndPlay(1);
}
if ((((Key.isDown(ctrlNorm) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 17;
this.gotoAndStop("airattack");
airattack = 1;
attackcancel = 1;
this.aircombo.hitBoxAir.gotoAndPlay(1);
this.aircombo.hitBoxSpike.gotoAndPlay(1);
}
if ((((Key.isDown(ctrlNorm) && (attacking == -1)) && (rundelay <= 0)) && (fall == -1)) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 7;
this.gotoAndStop("runattack");
attackcancel = 1;
running = -1;
rundelay = 5;
}
if ((((((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (!Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && ((attacking == -1) or (palm == 1))) && (blockdelay <= 0)) && (chakradelay == 0)) {
if (attacking == -1) {
this.palmcombo.hitBoxSpecial.gotoAndPlay(1);
}
attackdelay = 16;
attacking = 1;
this.gotoAndStop("palmcombo");
cp = cp - 0.5;
palm = 1;
}
if ((((((((hurt == -1) && (fall == -1)) && ((Key.isDown(ctrlSpec) && (Key.isDown(ctrlDOWN))) or (Key.isDown(ctrlSpec) && (rotatePalm == 1)))) && (!Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) && ((attacking == -1) or (rotatePalm == 1))) && (blockdelay <= 0)) && (chakradelay == 0)) {
attacking = 1;
rotatePalm = 1;
attackdelay = 37;
cp = cp - 1.2;
this.gotoAndStop("rotation");
}
if (finishdelay > 0) {
finishdelay--;
}
if (((((((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (blockdelay <= 0)) && (chakradelay == 0)) && (sp >= 100)) {
finish = 1;
this.gotoAndStop("finisher");
attackdelay = 99999 /* 0x01869F */;
attacking = 1;
cp = 1;
sp = 0;
finishdelay = 5;
_root.spglow1._visible = false;
}
if ((finishdelay == 0) && (finish == 1)) {
finish = 2;
}
if (finish == 2) {
this._x = this._x + (9 * xmove);
if (this.hitTest(enemymc)) {
finish = 3;
}
}
if (finish == 3) {
this.finisher.gotoAndPlay("start");
finishdelay = 151;
finish = 4;
}
if (finish == 4) {
enemymc.hurt = 1;
enemymc.hurtDelay = 140;
enemymc.hp = enemymc.hp - 0.1;
if (finishdelay == 121) {
enemymc.hurtspeed = 4 * xmove;
}
if (finishdelay == 143) {
enemymc.hurtspeed = 10 * xmove;
}
if (this.finisher.blast.hitTest(enemymc)) {
enemymc.hurtspeed = 20 * xmove;
enemymc.fallspeed = -12;
enemymc.hp = enemymc.hp - 5;
}
if (finishdelay == 2) {
this._x = 275;
}
if (finishdelay == 0) {
attackdelay = 0;
finish = 0;
this.gotoAndStop("stand");
}
}
if (((!Key.isDown(ctrlSpec)) && (rotatePalm == 1)) && (attackdelay < 30)) {
attackdelay = 18;
this.NRotate.gotoAndPlay(29);
rotatePalm = -1;
}
if ((Key.isDown(ctrlSpec) && (rotatePalm == 1)) && (chakradelay != 0)) {
attackdelay = 0;
rotatePalm = -1;
this.NRotate.gotoAndPlay(44);
}
if (enemymc.defend == 1) {
defensedmg = 3;
} else {
defensedmg = 1;
}
if (((attacking == 1) && (this.palmattack.hitBoxPalm.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.6 / defensedmg);
enemymc.hurtspeed = 12 * (this._xscale / 100);
enemymc.fallspeed = -8;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 6;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.punchcombo.hitBox.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.4 / defensedmg);
enemymc.hurtspeed = 3 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 4;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if ((((this.punchcombo._currentframe >= 16) && (attacking == 1)) && (this.punchcombo.hitBox.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.6 / defensedmg);
enemymc.hurtspeed = 8 * (this._xscale / 100);
enemymc.fallspeed = -6;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 6;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.uppercut.hitBoxUp.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.7 / defensedmg);
enemymc.hurtspeed = 2 * (this._xscale / 100);
enemymc.fallspeed = -12;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 15;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxAir.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.3 / defensedmg);
enemymc.hurtspeed = 3 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 6;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxSpike.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.5 / defensedmg);
enemymc.hurtspeed = 4 * (this._xscale / 100);
enemymc.fallspeed = 20;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.fall = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 12;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.runningattack.hitBoxRun.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.3 / defensedmg);
enemymc.hurtspeed = 5 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 8;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.palmcombo.hitBoxSpecial.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.4 / defensedmg);
enemymc.hurtspeed = 2 * (this._xscale / 100);
enemymc.cp = enemymc.cp - 0.2;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 5;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((rotatePalm == 1) && (this.hitTest(enemymc))) && (enemymc.dodging == -1)) {
rotateKnock = this._x;
if (enemymc._x < rotateKnock) {
specialknock = -1;
}
if (enemymc._x > rotateKnock) {
specialknock = 1;
}
enemymc.hp = enemymc.hp - (0.6 / defensedmg);
enemymc.hurtspeed = 4 * specialknock;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 8;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
}
if ((select == 2) && (hurtGround == -1)) {
if ((hurtspeed > 0) && (fallspeed == 0)) {
hurtspeed--;
}
if ((hurtspeed < 0) && (fallspeed == 0)) {
hurtspeed++;
}
this._x = this._x + hurtspeed;
if (_root.RockLee.select == 1) {
playermc = _root.RockLee;
}
if (_root.Naruto.select == 1) {
playermc = _root.Naruto;
}
if (_root.Kyubi.select == 1) {
playermc = _root.Kyubi;
}
_root.Icons2.gotoAndStop("Neji");
if (cp <= 0) {
chakradelay = 300;
}
if (chakradelay > 0) {
chakradelay--;
}
if ((chakradelay > 290) && (Key.isDown(ctrlSpec))) {
hp = hp - 0.5;
}
if (cp < 100) {
cp = cp + 0.1;
}
_root.hp2._x = _root.righthp._x - _root.righthp._width;
_root.hp2._xscale = hp;
_root.cp2._x = _root.righthp._x - _root.righthp._width;
_root.cp2._xscale = cp;
_root.sp2._x = _root.righthp._x - _root.righthp._width;
_root.sp2._xscale = sp;
if (sp < 100) {
sp = sp + 0.001;
}
if (sp >= 100) {
sp = 100;
_root.spglow2._visible = true;
_root.spglow2._alpha = 75;
}
if (sp != 100) {
_root.spglow2._visible = false;
}
if ((((((hurt == -1) && (fall == -1)) && (attacking == -1)) && (Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("crouch");
crouchdelay = 12;
}
if (((!this.hitTest(_root.ground1)) or (!this.hitTest(_root.ground2))) or (!this.hitTest(_root.ground3))) {
if (teledelay <= 0) {
fallspeed++;
}
fall = 1;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
if ((airattack == 1) && (fall == 1)) {
attacking = -1;
airattack = -1;
attackdelay = 0;
}
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
_rotation = 0;
fallspeed = 0;
fall = -1;
this._y = _root.ground1._y;
}
if (walkdelay > 0) {
walkdelay--;
}
if (startrun > 0) {
startrun--;
}
if (crouchdelay > 0) {
crouchdelay--;
}
if ((((((hurt == -1) && (!Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) && (fall == -1)) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) {
if (crouchdelay == 0) {
this.gotoAndStop("stand");
} else {
this.crouch.play();
}
rundelay = 10;
if (startrun > 0) {
walkdelay = 5;
}
}
if ((((hurt == -1) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && (attacking == -1)) && (!(Key.isDown(ctrlRIGHT) && (Key.isDown(ctrlLEFT))))) {
if (fall == -1) {
startrun = 3;
if ((walkdelay <= 5) && (walkdelay > 0)) {
this.gotoAndStop("run");
rundelay--;
running = 1;
walkdelay = 3;
startrun = 0;
}
if (walkdelay == 0) {
running = -1;
this.gotoAndStop("walk");
}
}
}
if (((hurt == -1) && (Key.isDown(ctrlRIGHT))) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x + speed;
}
if (running == -1) {
this._x = this._x + walkspeed;
}
this._xscale = 100;
}
}
if (((hurt == -1) && (Key.isDown(ctrlLEFT))) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x - speed;
}
if (running == -1) {
this._x = this._x - walkspeed;
}
this._xscale = -100;
}
}
if (((((hurt == -1) && (Key.isDown(ctrlLEFT))) && (Key.isDown(ctrlRIGHT))) && (attacking == -1)) && (fall == -1)) {
this.gotoAndStop("stand");
walkdelay = 0;
rundelay = 0;
running = -1;
startrun = 0;
}
if ((((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlUP))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (jumpcancel == -1)) {
this.gotoAndStop("jump");
if (delay <= 0) {
this._y = this._y - 5;
fallspeed = -13;
fall = 1;
jumpcancel = 1;
}
}
if ((!Key.isDown(ctrlUP)) && (fall == -1)) {
jumpcancel = -1;
}
if ((((hurt == -1) && (fallspeed > 0)) && (fall == 1)) && (attacking == -1)) {
this.gotoAndStop("fall");
}
if (rolling == 1) {
this._x = this._x + ((speed * (_xscale / 100)) * -1);
}
if ((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlGuard))) && (attackdelay <= 1)) {
if (rolling == -1) {
this.gotoAndStop("guard");
attackdelay = 1;
defend = 1;
}
attacking = 1;
blockdelay = 13;
if (((this._xscale < 0) && (Key.isDown(ctrlRIGHT))) && (rolling == -1)) {
this.gotoAndStop("roll");
rolling = 1;
attackdelay = 13;
dodging = 1;
}
if (((this._xscale > 0) && (Key.isDown(ctrlLEFT))) && (rolling == -1)) {
this.gotoAndStop("roll");
rolling = 1;
attackdelay = 13;
dodging = 1;
}
} else {
blockdelay--;
}
if ((hurt == -1) && (!Key.isDown(ctrlNorm))) {
attackcancel = -1;
} else if (hurt == 1) {
attackcancel = 1;
}
if (attackdelay == 0) {
_root.bgpink._visible = false;
attacking = -1;
rolling = -1;
palm = -1;
rotatePalm = -1;
dodging = -1;
} else {
attackdelay--;
}
if ((((((Key.isDown(ctrlRIGHT) || (Key.isDown(ctrlLEFT))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 18;
attacking = 1;
this.gotoAndStop("palm");
attackcancel = 1;
this.palmattack.hitBoxPalm.gotoAndPlay(1);
}
if (((((Key.isDown(ctrlNorm) && (attacking == -1)) && (fall == -1)) && (!Key.isDown(ctrlDOWN))) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 24;
attacking = 1;
this.gotoAndStop("punchcombo");
attackcancel = 1;
this.punchcombo.hitBox.gotoAndPlay(1);
}
if ((((Key.isDown(ctrlDOWN) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (attackcancel == -1)) {
attackdelay = 16;
attacking = 1;
this.gotoAndStop("uppercut");
attackcancel = 1;
this.uppercut.hitBoxUp.gotoAndPlay(1);
}
if ((((Key.isDown(ctrlNorm) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 17;
this.gotoAndStop("airattack");
airattack = 1;
attackcancel = 1;
this.aircombo.hitBoxAir.gotoAndPlay(1);
this.aircombo.hitBoxSpike.gotoAndPlay(1);
}
if ((((Key.isDown(ctrlNorm) && (attacking == -1)) && (rundelay <= 0)) && (fall == -1)) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 7;
this.gotoAndStop("runattack");
attackcancel = 1;
running = -1;
rundelay = 5;
}
if ((((((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (!Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && ((attacking == -1) or (palm == 1))) && (blockdelay <= 0)) && (chakradelay == 0)) {
if (attacking == -1) {
this.palmcombo.hitBoxSpecial.gotoAndPlay(1);
}
attackdelay = 16;
attacking = 1;
this.gotoAndStop("palmcombo");
cp = cp - 0.5;
palm = 1;
}
if ((((((((hurt == -1) && (fall == -1)) && ((Key.isDown(ctrlSpec) && (Key.isDown(ctrlDOWN))) or (Key.isDown(ctrlSpec) && (rotatePalm == 1)))) && (!Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) && ((attacking == -1) or (rotatePalm == 1))) && (blockdelay <= 0)) && (chakradelay == 0)) {
attacking = 1;
rotatePalm = 1;
attackdelay = 37;
cp = cp - 1.2;
this.gotoAndStop("rotation");
}
if (finishdelay > 0) {
finishdelay--;
}
if (((((((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (blockdelay <= 0)) && (chakradelay == 0)) && (sp >= 100)) {
finish = 1;
this.gotoAndStop("finisher");
attackdelay = 99999 /* 0x01869F */;
attacking = 1;
cp = 1;
sp = 0;
finishdelay = 5;
_root.spglow1._visible = false;
}
if ((finishdelay == 0) && (finish == 1)) {
finish = 2;
}
if (finish == 2) {
this._x = this._x + (9 * xmove);
if (this.hitTest(playermc)) {
finish = 3;
}
}
if (finish == 3) {
this.finisher.gotoAndPlay("start");
finishdelay = 151;
finish = 4;
}
if (finish == 4) {
playermc.hurt = 1;
playermc.hurtDelay = 140;
playermc.hp = playermc.hp - 0.1;
if (finishdelay == 121) {
playermc.hurtspeed = 4 * xmove;
}
if (finishdelay == 143) {
playermc.hurtspeed = 10 * xmove;
}
if (this.finisher.blast.hitTest(playermc)) {
playermc.hurtspeed = 20 * xmove;
playermc.fallspeed = -12;
playermc.hp = playermc.hp - 5;
}
if (finishdelay == 2) {
this._x = 275;
}
if (finishdelay == 0) {
attackdelay = 0;
finish = 0;
this.gotoAndStop("stand");
}
}
if (((!Key.isDown(ctrlSpec)) && (rotatePalm == 1)) && (attackdelay < 30)) {
attackdelay = 18;
this.NRotate.gotoAndPlay(29);
rotatePalm = -1;
}
if ((Key.isDown(ctrlSpec) && (rotatePalm == 1)) && (chakradelay != 0)) {
attackdelay = 0;
rotatePalm = -1;
this.NRotate.gotoAndPlay(44);
}
if (playermc.defend == 1) {
defensedmg = 3;
} else {
defensedmg = 1;
}
if (((attacking == 1) && (this.palmattack.hitBoxPalm.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.6 / defensedmg);
playermc.hurtspeed = 12 * (this._xscale / 100);
playermc.fallspeed = -6;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 6;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.punchcombo.hitBox.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.4 / defensedmg);
playermc.hurtspeed = 3 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 4;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if ((((this.punchcombo._currentframe >= 16) && (attacking == 1)) && (this.punchcombo.hitBox.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.6 / defensedmg);
playermc.hurtspeed = 8 * (this._xscale / 100);
playermc.fallspeed = -7;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 6;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.uppercut.hitBoxUp.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.7 / defensedmg);
playermc.hurtspeed = 2 * (this._xscale / 100);
playermc.fallspeed = -12;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 15;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxAir.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.3 / defensedmg);
playermc.hurtspeed = 3 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 6;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxSpike.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.5 / defensedmg);
playermc.hurtspeed = 4 * (this._xscale / 100);
playermc.fallspeed = 20;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.fall = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 12;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.runningattack.hitBoxRun.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.3 / defensedmg);
playermc.hurtspeed = 5 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 8;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.palmcombo.hitBoxSpecial.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.4 / defensedmg);
playermc.hurtspeed = 2 * (this._xscale / 100);
playermc.cp = playermc.cp - 0.2;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 5;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((rotatePalm == 1) && (this.hitTest(playermc))) && (playermc.dodging == -1)) {
rotateKnock = this._x;
if (playermc._x < rotateKnock) {
specialknock = -1;
}
if (playermc._x > rotateKnock) {
specialknock = 1;
}
playermc.hp = playermc.hp - (0.6 / defensedmg);
playermc.hurtspeed = 4 * specialknock;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 8;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
}
if ((select != 1) && (select != 2)) {
this.removeMovieClip();
}
}
Instance of Symbol 701 MovieClip "Kyubi" in Frame 7
onClipEvent (load) {
var ctrlUP;
var ctrlDOWN;
var ctrlLEFT;
var ctrlRIGHT;
var ctrlNorm;
var ctrlSpec;
var ctrlGuard;
var p2moves = SharedObject.getLocal("Player2Moves");
var p1moves = SharedObject.getLocal("Player1Moves");
var Name;
Name = "Kyubi";
var select;
select = -1;
if (_root.player1 == Name) {
select = 1;
this._x = 30;
this._y = _root.ground1._y;
ctrlUP = p1moves.data.upbut;
ctrlDOWN = p1moves.data.downbut;
ctrlLEFT = p1moves.data.leftbut;
ctrlRIGHT = p1moves.data.rightbut;
ctrlNorm = p1moves.data.normbut;
ctrlSpec = p1moves.data.specbut;
ctrlGuard = p1moves.data.guardbut;
}
if (_root.player2 == Name) {
select = 2;
this._xscale = this._xscale * -1;
this._x = 520;
this._y = _root.ground1._y;
ctrlUP = p2moves.data.upbut;
ctrlDOWN = p2moves.data.downbut;
ctrlLEFT = p2moves.data.leftbut;
ctrlRIGHT = p2moves.data.rightbut;
ctrlNorm = p2moves.data.normbut;
ctrlSpec = p2moves.data.specbut;
ctrlGuard = p2moves.data.guardbut;
}
var enemymc;
enemymc = _root.Sandbag;
var crouchdelay;
crouchdelay = 0;
var running;
running = -1;
var speed;
speed = 8.5;
var walkspeed;
walkspeed = 2.5;
var rundelay;
rundelay = 10;
var walkdelay;
walkdelay = 0;
var startrun;
startrun = 0;
var fallspeed;
fallspeed = 0;
var maxfallspeed;
maxfallspeed = 30;
var fall;
fall = -1;
var jumpcancel;
jumpcancel = -1;
var hp;
hp = 100;
var cp;
cp = 100;
var attackcancel;
attackcancel = -1;
var attacking;
attacking = -1;
var attackdelay;
attackdelay = 0;
var airattack;
airattack = 0;
var daggernum;
daggernum = 1;
var mc;
mc = _root.Dagger;
var blockdelay;
blockdelay = 5;
var rolling;
rolling = -1;
var chakradelay;
chakradelay = 0;
var sp;
sp = 0;
var Nova;
Nova = -1;
var Flamesmc;
Flamesmc = _root.Flames;
var charge;
charge = 0;
var finishspeed;
finishspeed = 10;
var finish;
finish = -1;
var xmove;
var explodemc;
explodemc = _root.explosion;
var xcontrol;
xcontrol = 0;
var hurtspeed;
var blaster = -1;
var blastmc = _root.FlameBlast;
var defend;
defend = -1;
var defensedmg = 1;
var dodging = -1;
var incx = 0;
var incy = 0;
var blurred = (new flash.filters.BlurFilter(0, 0, 4));
var myFilters = [blurred];
this.filters = myFilters;
var hurtDelay = -1;
var hurt = -1;
var airSpin = 0;
var hurtGround = -1;
var bounceUp = 0;
var randHurt = 0;
}
onClipEvent (enterFrame) {
this._y = this._y + fallspeed;
airSpin = (fallspeed * -2) * (_xscale / 100);
if (hurtDelay == 0) {
hurt = -1;
}
if (((hurt == 1) && (fall == -1)) && (hurtground == -1)) {
randHurt = Math.round(Math.random() + 1);
this.gotoAndStop("pain");
this.pain.gotoAndStop(randHurt);
}
if (((hurt == 1) && (fall == 1)) && (hurtGround == -1)) {
incx = Math.abs(hurtspeed) / 2;
incy = Math.abs(fallspeed) / 2;
myFilters[0] = new flash.filters.BlurFilter(incx, incy, 4);
this.filters = myFilters;
_rotation = airSpin;
this.gotoAndStop("airHurt");
}
if (hurt == -1) {
_rotation = 0;
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if (((hurt == 1) && (fall == 1)) && ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3))) {
hurtGround = 1;
fallspeed = 0;
_y = _root.ground1._y;
fall = -1;
hurt = -1;
hurtDelay = 0;
bounceUp = 3;
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if (attackdelay <= 0) {
dodging = -1;
}
if (bounceUp > 0) {
bounceUp--;
}
if (((Key.isDown(ctrlGuard) && (fall == -1)) && (attackdelay == 0)) && (transforming == -1)) {
defend = 1;
} else {
defend = -1;
}
if (hp <= 0) {
_root.gotoAndStop("charselect");
}
if ((fall == 1) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) {
if (((this._xscale == 100) && (Key.isDown(ctrlLEFT))) or ((this._xscale == -100) && (Key.isDown(ctrlRIGHT)))) {
running = -1;
}
}
if ((this.hitTest(_root.leftwall) or this.hitTest(_root.rightwall)) && (((finish == 2) or (finish == 6)) or (finish == -1))) {
if (this.yell.nova.hitTest(_root.rightwall) or this.yell.nova.hitTest(_root.leftwall)) {
} else {
explodemc = _root.explosion.duplicateMovieClip(daggernum + "boom", daggernum);
explodemc._y = this._y - (this._height / 2);
if (this.hitTest(_root.leftwall)) {
explodemc._x = _root.leftwall._x + 40;
explodemc._rotation = 90;
}
if (this.hitTest(_root.rightwall)) {
explodemc._x = _root.rightwall._x - 40;
explodemc._rotation = -90;
}
hp = hp - 20;
this._x = 225;
attackdelay = 0;
finish = -1;
hurtspeed = 0;
}
}
if ((bounceUp > 0) && (Key.isDown(ctrlGuard))) {
hurtGround = -2;
fallspeed = -3;
this.gotoAndStop("bounceUp");
}
if (hurtGround == 1) {
this.gotoAndStop("hitGround");
_y = _root.ground1._y;
if (this.hitGround._currentframe == 8) {
if ((Key.isDown(ctrlLEFT) or Key.isDown(ctrlRIGHT)) or Key.isDown(ctrlUP)) {
this.hitGround.play();
}
}
}
if ((select == 1) && (hurtGround == -1)) {
if ((hurtspeed > 0) && (fallspeed == 0)) {
hurtspeed--;
}
if ((hurtspeed < 0) && (fallspeed == 0)) {
hurtspeed++;
}
this._x = this._x + hurtspeed;
if (_root.RockLee.select == 2) {
enemymc = _root.RockLee;
}
if (_root.Naruto.select == 2) {
enemymc = _root.Naruto;
}
if (_root.Neji.select == 2) {
enemymc = _root.Neji;
}
_root.Icons1.gotoAndStop("Kyubi");
if (cp <= 0) {
chakradelay = 300;
}
if (chakradelay > 0) {
chakradelay--;
}
if ((chakradelay > 290) && (Key.isDown(ctrlSpec))) {
hp = hp - 0.5;
}
if (cp < 100) {
cp = cp + 0.1;
}
_root.hp1._x = _root.lefthp._x + _root.lefthp._width;
_root.hp1._xscale = hp;
_root.cp1._x = _root.lefthp._x + _root.lefthp._width;
_root.cp1._xscale = cp;
_root.sp1._x = _root.lefthp._x + _root.lefthp._width;
_root.sp1._xscale = sp;
if (sp < 100) {
sp = sp + 0.001;
}
if (sp >= 100) {
sp = 100;
_root.spglow1._visible = true;
_root.spglow1._alpha = 75;
}
if (sp != 100) {
_root.spglow1._visible = false;
}
if (hp <= 0) {
_root.gotoAndStop(1);
}
if (((((fall == -1) && (attacking == -1)) && (Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("crouch");
crouchdelay = 16;
}
if (((!this.hitTest(_root.ground1)) or (!this.hitTest(_root.ground2))) or (!this.hitTest(_root.ground3))) {
if (teledelay <= 0) {
fallspeed++;
}
fall = 1;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
if ((airattack == 1) && (fall == 1)) {
attacking = -1;
airattack = -1;
attackdelay = 0;
}
fallspeed = 0;
fall = -1;
this._y = _root.ground1._y;
}
if (walkdelay > 0) {
walkdelay--;
}
if (startrun > 0) {
startrun--;
}
if (crouchdelay > 0) {
crouchdelay--;
}
if (((((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT))) && (fall == -1)) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) {
if (crouchdelay == 0) {
this.gotoAndStop("stand");
} else {
if (crouchdelay > 4) {
crouchdelay = 4;
}
this.crouch.gotoAndStop(13);
}
rundelay = 10;
if (startrun > 0) {
walkdelay = 5;
}
}
if (((Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT)) && (attacking == -1)) && (!(Key.isDown(ctrlRIGHT) && (Key.isDown(ctrlLEFT))))) {
if (fall == -1) {
startrun = 3;
if ((walkdelay <= 5) && (walkdelay > 0)) {
this.gotoAndStop("run");
rundelay--;
running = 1;
walkdelay = 3;
startrun = 0;
}
if (walkdelay == 0) {
running = -1;
this.gotoAndStop("walk");
}
}
}
if (Key.isDown(ctrlRIGHT) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x + speed;
}
if (running == -1) {
this._x = this._x + walkspeed;
}
this._xscale = 100;
}
}
if (Key.isDown(ctrlLEFT) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x - speed;
}
if (running == -1) {
this._x = this._x - walkspeed;
}
this._xscale = -100;
}
}
if (((Key.isDown(ctrlLEFT) && (Key.isDown(ctrlRIGHT))) && (attacking == -1)) && (fall == -1)) {
this.gotoAndStop("stand");
walkdelay = 0;
rundelay = 0;
running = -1;
startrun = 0;
}
if (((((fall == -1) && (Key.isDown(ctrlUP))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (jumpcancel == -1)) {
this.gotoAndStop("jump");
if (delay <= 0) {
this._y = this._y - 5;
fallspeed = -13;
fall = 1;
jumpcancel = 1;
}
}
if ((!Key.isDown(ctrlUP)) && (fall == -1)) {
jumpcancel = -1;
}
if (((fallspeed > 0) && (fall == 1)) && (attacking == -1)) {
this.gotoAndStop("fall");
}
if (((fall == -1) && (Key.isDown(ctrlGuard))) && (attackdelay <= 1)) {
if (rolling == -1) {
this.gotoAndStop("guard");
attackdelay = 1;
}
attacking = 1;
blockdelay = 13;
if (((this._xscale < 0) && (Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) {
this.gotoAndStop("tele");
dodging = 1;
this._x = this._x + 50;
attackdelay = 7;
}
if (((this._xscale > 0) && (Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("tele");
attackdelay = 7;
dodging = 1;
this._x = this._x - 50;
}
} else {
blockdelay--;
}
if (!Key.isDown(ctrlNorm)) {
attackcancel = -1;
}
if (attackdelay == 0) {
finish = -1;
_root.bgpink._visible = false;
attacking = -1;
rolling = -1;
Nova = -1;
blaster = -1;
rotatePalm = -1;
dodging = -1;
} else {
attackdelay--;
}
if ((((((Key.isDown(ctrlRIGHT) || (Key.isDown(ctrlLEFT))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 26;
attacking = 1;
this.gotoAndStop("roar");
attackcancel = 1;
}
if (((((Key.isDown(ctrlNorm) && (attacking == -1)) && (fall == -1)) && (!Key.isDown(ctrlDOWN))) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 32;
attacking = 1;
this.gotoAndStop("attack1");
attackcancel = 1;
}
if ((((Key.isDown(ctrlDOWN) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (attackcancel == -1)) {
attackdelay = 10;
attacking = 1;
crouchdelay = 0;
this.gotoAndStop("upattack");
attackcancel = 1;
}
if (((((Key.isDown(ctrlNorm) && (!Key.isDown(ctrlUP))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 10;
this.gotoAndStop("aircombo");
airattack = 1;
attackcancel = 1;
}
if (((((Key.isDown(ctrlUP) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 4;
this.gotoAndStop("flip");
this.flip.gotoAndPlay(1);
airattack = 1;
attackcancel = 1;
}
if ((((Key.isDown(ctrlNorm) && (attacking == -1)) && (rundelay <= 0)) && (fall == -1)) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 8;
this.gotoAndStop("runattack");
attackcancel = 1;
rundelay = 5;
running = -1;
}
if (((((((fall == -1) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
attackdelay = 26;
attacking = 1;
this.gotoAndStop("Nova");
cp = cp - 0.5;
Nova = 1;
}
if ((((Nova == 1) && (Key.isDown(ctrlSpec))) && (attackdelay <= 6)) && (chakradelay == 0)) {
attackdelay = 6;
cp = cp - 0.8;
daggernum++;
Flamesmc = _root.Flames.duplicateMovieClip("Flames" + daggernum, daggernum);
Flamesmc._x = Math.random() * 550;
Flamesmc._y = 390;
Flamesmc.getridof = 1;
}
if ((((((((cp >= 22.5) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (!Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
attackdelay = 16;
attacking = 1;
blaster = 1;
this.gotoAndStop("special");
cp = cp - 22.5;
}
if ((blaster == 1) && (attackdelay == 10)) {
blastmc = _root.FlameBlast.duplicateMovieClip("blast" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blastmc._x = _x + ((8 * _xscale) / 100);
blastmc._y = _root.ground1._y;
}
if ((((((((fall == -1) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && ((finish == 1) or (attacking == -1))) && (!Key.isDown(ctrlDOWN))) && (blockdelay <= 0)) && (chakradelay == 0)) && (sp == 100)) {
this.gotoAndStop("rasengan");
attackdelay = 99999 /* 0x01869F */;
finish = 1;
attacking = 1;
cp = 1;
sp = 0;
}
if ((charge < 100) && (Key.isDown(ctrlSpec))) {
charge++;
}
if ((finish == 1) && (!Key.isDown(ctrlSpec))) {
charge = charge + 10;
finish = 2;
xmove = this._xscale / 100;
}
if (finish == 2) {
this.rasengan.gotoAndPlay("rasrun");
finish = 6;
}
if (finish == 6) {
this._x = this._x + (finishspeed * xmove);
if (this.hitTest(enemymc)) {
finish = 3;
}
}
if (finish == 3) {
this.rasengan.gotoAndPlay("startras");
finish = 5;
}
if (finish == 5) {
if (_xscale == 100) {
enemymc._x = _x + 100;
}
if (_xscale == -100) {
enemymc._x = _x - 100;
}
charge = charge - 1;
enemymc.hp = enemymc.hp - 0.3;
if (charge < 0) {
finish = 4;
this.rasengan.gotoAndPlay("endras");
attackdelay = 24;
enemymc.hp = enemymc.hp - 10;
enemymc.hurtspeed = 10 * xmove;
enemymc.fallspeed = -10;
}
}
if (enemymc.defend == 1) {
defensedmg = 3;
} else {
defensedmg = 1;
}
if (((attacking == 1) && (this.combo.combobox1.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.3 / defensedmg);
enemymc.hurtspeed = 3 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 5;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.combo.combobox2.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.4 / defensedmg);
enemymc.hurtspeed = 2 * (this._xscale / 100);
enemymc.fallspeed = -8;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 8;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.upattack.hitBoxUp.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.3 / defensedmg);
enemymc.hurtspeed = 2 * (this._xscale / 100);
enemymc.fallspeed = -12;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 15;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.roar.hitBoxRoar.hitTest(enemymc))) && (enemymc.dodging == -1)) {
if (enemymc._x < this._x) {
xcontrol = -1;
}
if (enemymc._x > this._x) {
xcontrol = 1;
}
enemymc.hp = enemymc.hp - (0.6 / defensedmg);
enemymc.hurtspeed = 15 * xcontrol;
enemymc.fallspeed = -7;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 12;
if (sp <= 97) {
sp = sp + 3;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.roar.hitBoxRoarUp.hitTest(enemymc))) && (enemymc.dodging == -1)) {
if (enemymc._x < this._x) {
xcontrol = -1;
}
if (enemymc._x > this._x) {
xcontrol = 1;
}
enemymc.hp = enemymc.hp - (0.3 / defensedmg);
enemymc.hurtspeed = 2 * xcontrol;
enemymc.fallspeed = -11;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 8;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.yell.nova.hitTest(enemymc))) && (enemymc.dodging == -1)) {
if (enemymc._x < this._x) {
xcontrol = -1;
}
if (enemymc._x > this._x) {
xcontrol = 1;
}
enemymc.hp = enemymc.hp - (0.1 / defensedmg);
enemymc.hurtspeed = 8 * xcontrol;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 3;
}
if (((attacking == 1) && (this.flip.hitBoxFlip.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.4 / defensedmg);
enemymc.hurtspeed = 3 * (this._xscale / 100);
enemymc.fallspeed = -8;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 8;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxAir.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.2 / defensedmg);
enemymc.hurtspeed = 2 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 5;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxAirD.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.4 / defensedmg);
enemymc.hurtspeed = 4 * (this._xscale / 100);
enemymc.fallspeed = 18;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.fall = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 12;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.runattack.hitBoxRun.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.3 / defensedmg);
enemymc.hurtspeed = 8 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 7;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.special.hitBoxSpecial.hitTest(enemymc._x, enemymc._y))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.7 / defensedmg);
enemymc.hurtspeed = 6 * (_xscale / 100);
enemymc.fallspeed = -10;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 16;
}
}
if ((select == 2) && (hurtGround == -1)) {
if (_root.RockLee.select == 1) {
playermc = _root.RockLee;
}
if (_root.Naruto.select == 1) {
playermc = _root.Naruto;
}
if (_root.Neji.select == 1) {
playermc = _root.Neji;
}
_root.Icons2.gotoAndStop("Kyubi");
if ((hurtspeed > 0) && (fallspeed == 0)) {
hurtspeed--;
}
if ((hurtspeed < 0) && (fallspeed == 0)) {
hurtspeed++;
}
this._x = this._x + hurtspeed;
if (cp <= 0) {
chakradelay = 300;
}
if (chakradelay > 0) {
chakradelay--;
}
if ((chakradelay > 290) && (Key.isDown(ctrlSpec))) {
hp = hp - 0.5;
}
if (cp < 100) {
cp = cp + 0.1;
}
_root.hp2._x = _root.righthp._x - _root.righthp._width;
_root.hp2._xscale = hp;
_root.cp2._x = _root.righthp._x - _root.righthp._width;
_root.cp2._xscale = cp;
_root.sp2._x = _root.righthp._x - _root.righthp._width;
_root.sp2._xscale = sp;
if (sp < 100) {
sp = sp + 0.001;
}
if (sp >= 100) {
sp = 100;
_root.spglow2._visible = true;
_root.spglow2._alpha = 75;
}
if (sp != 100) {
_root.spglow2._visible = false;
}
if (hp <= 0) {
_root.gotoAndStop(1);
}
if (((((fall == -1) && (attacking == -1)) && (Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("crouch");
crouchdelay = 16;
}
if (((!this.hitTest(_root.ground1)) or (!this.hitTest(_root.ground2))) or (!this.hitTest(_root.ground3))) {
if (teledelay <= 0) {
fallspeed++;
}
fall = 1;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
if ((airattack == 1) && (fall == 1)) {
attacking = -1;
airattack = -1;
attackdelay = 0;
}
fallspeed = 0;
fall = -1;
this._y = _root.ground1._y;
}
if (walkdelay > 0) {
walkdelay--;
}
if (startrun > 0) {
startrun--;
}
if (crouchdelay > 0) {
crouchdelay--;
}
if (((((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT))) && (fall == -1)) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) {
if (crouchdelay == 0) {
this.gotoAndStop("stand");
} else {
if (crouchdelay > 4) {
crouchdelay = 4;
}
this.crouch.gotoAndStop(13);
}
rundelay = 10;
if (startrun > 0) {
walkdelay = 5;
}
}
if (((Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT)) && (attacking == -1)) && (!(Key.isDown(ctrlRIGHT) && (Key.isDown(ctrlLEFT))))) {
if (fall == -1) {
startrun = 3;
if ((walkdelay <= 5) && (walkdelay > 0)) {
this.gotoAndStop("run");
rundelay--;
running = 1;
walkdelay = 3;
startrun = 0;
}
if (walkdelay == 0) {
running = -1;
this.gotoAndStop("walk");
}
}
}
if (Key.isDown(ctrlRIGHT) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x + speed;
}
if (running == -1) {
this._x = this._x + walkspeed;
}
this._xscale = 100;
}
}
if (Key.isDown(ctrlLEFT) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x - speed;
}
if (running == -1) {
this._x = this._x - walkspeed;
}
this._xscale = -100;
}
}
if (((Key.isDown(ctrlLEFT) && (Key.isDown(ctrlRIGHT))) && (attacking == -1)) && (fall == -1)) {
this.gotoAndStop("stand");
walkdelay = 0;
rundelay = 0;
running = -1;
startrun = 0;
}
if (((((fall == -1) && (Key.isDown(ctrlUP))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (jumpcancel == -1)) {
this.gotoAndStop("jump");
if (delay <= 0) {
this._y = this._y - 5;
fallspeed = -13;
fall = 1;
jumpcancel = 1;
}
}
if ((!Key.isDown(ctrlUP)) && (fall == -1)) {
jumpcancel = -1;
}
if (((fallspeed > 0) && (fall == 1)) && (attacking == -1)) {
this.gotoAndStop("fall");
}
if (((fall == -1) && (Key.isDown(ctrlGuard))) && (attackdelay <= 1)) {
if (rolling == -1) {
defend = 1;
this.gotoAndStop("guard");
attackdelay = 1;
}
attacking = 1;
blockdelay = 13;
if (((this._xscale < 0) && (Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) {
this.gotoAndStop("tele");
dodging = 1;
this._x = this._x + 50;
attackdelay = 7;
}
if (((this._xscale > 0) && (Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("tele");
dodging = 1;
attackdelay = 7;
this._x = this._x - 50;
}
} else {
blockdelay--;
}
if (!Key.isDown(ctrlNorm)) {
attackcancel = -1;
}
if (attackdelay == 0) {
finish = -1;
_root.bgpink._visible = false;
attacking = -1;
rolling = -1;
Nova = -1;
rotatePalm = -1;
dodging = -1;
} else {
attackdelay--;
}
if ((((((Key.isDown(ctrlRIGHT) || (Key.isDown(ctrlLEFT))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 26;
attacking = 1;
this.gotoAndStop("roar");
attackcancel = 1;
}
if (((((Key.isDown(ctrlNorm) && (attacking == -1)) && (fall == -1)) && (!Key.isDown(ctrlDOWN))) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 32;
attacking = 1;
this.gotoAndStop("attack1");
attackcancel = 1;
}
if ((((Key.isDown(ctrlDOWN) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (attackcancel == -1)) {
attackdelay = 10;
attacking = 1;
crouchdelay = 0;
this.gotoAndStop("upattack");
attackcancel = 1;
}
if (((((Key.isDown(ctrlNorm) && (!Key.isDown(ctrlUP))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 10;
this.gotoAndStop("aircombo");
airattack = 1;
attackcancel = 1;
}
if (((((Key.isDown(ctrlUP) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 4;
this.gotoAndStop("flip");
this.flip.gotoAndPlay(1);
airattack = 1;
attackcancel = 1;
}
if ((((Key.isDown(ctrlNorm) && (attacking == -1)) && (rundelay <= 0)) && (fall == -1)) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 8;
this.gotoAndStop("runattack");
attackcancel = 1;
rundelay = 5;
running = -1;
}
if (((((((fall == -1) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
attackdelay = 26;
attacking = 1;
this.gotoAndStop("Nova");
cp = cp - 0.5;
Nova = 1;
}
if ((((Nova == 1) && (Key.isDown(ctrlSpec))) && (attackdelay <= 6)) && (chakradelay == 0)) {
attackdelay = 6;
cp = cp - 0.8;
daggernum++;
Flamesmc = _root.Flames.duplicateMovieClip("Flames" + daggernum, daggernum);
Flamesmc._x = Math.random() * 550;
Flamesmc._y = 390;
Flamesmc.getridof = 1;
}
if ((((((((cp >= 22.5) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (!Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
attackdelay = 16;
attacking = 1;
blaster = 1;
this.gotoAndStop("special");
cp = cp - 22.5;
}
if ((blaster == 1) && (attackdelay == 10)) {
blastmc = _root.FlameBlast.duplicateMovieClip("blast" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
blastmc._x = _x + ((8 * _xscale) / 100);
blastmc._y = _root.ground1._y;
}
if ((((((((fall == -1) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && ((finish == 1) or (attacking == -1))) && (!Key.isDown(ctrlDOWN))) && (blockdelay <= 0)) && (chakradelay == 0)) && (sp == 100)) {
this.gotoAndStop("rasengan");
attackdelay = 99999 /* 0x01869F */;
finish = 1;
attacking = 1;
cp = 1;
sp = 0;
}
if ((charge < 100) && (Key.isDown(ctrlSpec))) {
charge++;
}
if ((finish == 1) && (!Key.isDown(ctrlSpec))) {
charge = charge + 10;
finish = 2;
xmove = this._xscale / 100;
}
if (finish == 2) {
this.rasengan.gotoAndPlay("rasrun");
finish = 6;
}
if (finish == 6) {
this._x = this._x + (finishspeed * xmove);
if (this.hitTest(enemymc)) {
finish = 3;
}
}
if (finish == 3) {
this.rasengan.gotoAndPlay("startras");
finish = 5;
}
if (finish == 5) {
if (_xscale == 100) {
playermc._x = _x + 100;
}
if (_xscale == -100) {
playermc._x = _x - 100;
}
charge = charge - 1;
enemymc.hp = enemymc.hp - 0.3;
if (charge < 0) {
finish = 4;
this.rasengan.gotoAndPlay("endras");
attackdelay = 24;
enemymc.hp = enemymc.hp - 10;
enemymc.hurtspeed = 10 * xmove;
enemymc.fallspeed = -10;
}
}
if (playermc.defend == 1) {
defensedmg = 3;
} else {
defensedmg = 1;
}
if (((attacking == 1) && (this.combo.combobox1.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.3 / defensedmg);
playermc.hurtspeed = 3 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 5;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.combo.combobox2.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.4 / defensedmg);
playermc.hurtspeed = 2 * (this._xscale / 100);
playermc.fallspeed = -8;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 8;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.upattack.hitBoxUp.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.3 / defensedmg);
playermc.hurtspeed = 2 * (this._xscale / 100);
playermc.fallspeed = -12;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 15;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.roar.hitBoxRoar.hitTest(playermc))) && (playermc.dodging == -1)) {
if (playermc._x < this._x) {
xcontrol = -1;
}
if (playermc._x > this._x) {
xcontrol = 1;
}
playermc.hp = playermc.hp - (0.6 / defensedmg);
playermc.hurtspeed = 15 * xcontrol;
playermc.fallspeed = -7;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 12;
if (sp <= 97) {
sp = sp + 3;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.roar.hitBoxRoarUp.hitTest(playermc))) && (playermc.dodging == -1)) {
if (playermc._x < this._x) {
xcontrol = -1;
}
if (playermc._x > this._x) {
xcontrol = 1;
}
playermc.hp = playermc.hp - (0.3 / defensedmg);
playermc.hurtspeed = 2 * xcontrol;
playermc.fallspeed = -11;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 8;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.yell.nova.hitTest(playermc))) && (playermc.dodging == -1)) {
if (playermc._x < this._x) {
xcontrol = -1;
}
if (playermc._x > this._x) {
xcontrol = 1;
}
playermc.hp = playermc.hp - (0.1 / defensedmg);
playermc.hurtspeed = 8 * xcontrol;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 3;
}
if (((attacking == 1) && (this.flip.hitBoxFlip.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.4 / defensedmg);
playermc.hurtspeed = 3 * (this._xscale / 100);
playermc.fallspeed = -8;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 8;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxAir.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.2 / defensedmg);
playermc.hurtspeed = 2 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 5;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxAirD.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.4 / defensedmg);
playermc.hurtspeed = 4 * (this._xscale / 100);
playermc.fallspeed = 18;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.fall = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 12;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.runattack.hitBoxRun.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.3 / defensedmg);
playermc.hurtspeed = 8 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 7;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.special.hitBoxSpecial.hitTest(playermc._x, playermc._y))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.7 / defensedmg);
playermc.hurtspeed = 6 * (_xscale / 100);
playermc.fallspeed = -10;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 16;
}
}
if (((select != 1) && (select != 2)) && ((_root.Naruto.select != 1) or (_root.Naruto.select != 2))) {
this.removeMovieClip();
}
}
Instance of Symbol 13 MovieClip [Flames] "Flames" in Frame 7
onClipEvent (load) {
var getridof;
getridof = 1;
var count;
count = 12;
var enemymc;
enemymc = _root.Sandbag;
}
onClipEvent (enterFrame) {
if (getridof == 1) {
count--;
}
if (count <= 0) {
removeMovieClip(this);
}
if (this.hitTest(enemymc)) {
enemymc.hp = enemymc.hp - 0.1;
}
}
Instance of Symbol 731 MovieClip "Sandbag" in Frame 7
onClipEvent (load) {
var fallspeed;
fallspeed = 0;
var hp;
hp = 100;
var hurtspeed;
hurtspeed = 0;
var playermc;
var delay;
delay = 0;
var fall;
fall == 1;
var stand;
stand = -1;
var hitground;
hitground = -1;
var explodemc;
explodemc = _root.explosion;
var select;
select = -1;
if (_root.player2 == "sand") {
select = 1;
this._x = 520;
this._y = _root.ground1._y;
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
_root.gotoAndStop("charselect");
}
if (this.hitTest(_root.leftwall) or this.hitTest(_root.rightwall)) {
explodemc = _root.explosion.duplicateMovieClip(daggernum + "boom", daggernum);
explodemc._y = this._y - (this._height / 2);
if (this.hitTest(_root.leftwall)) {
explodemc._x = _root.leftwall._x + 40;
explodemc._rotation = 90;
}
if (this.hitTest(_root.rightwall)) {
explodemc._x = _root.rightwall._x - 40;
explodemc._rotation = -90;
}
hp = hp - 20;
this._x = 275;
hurtspeed = 0;
}
if (select == -1) {
this.removeMovieClip();
} else {
if (delay > 0) {
delay--;
}
if (hp < 0) {
hp = 0;
_root.gotoAndStop(1);
}
if (_root.Kyubi.select == 1) {
playermc = _root.Kyubi;
}
if (_root.Naruto.select == 1) {
playermc = _root.Naruto;
}
if (_root.Neji.select == 1) {
playermc = _root.Neji;
}
if (_root.RockLee.select == 1) {
playermc = _root.RockLee;
}
_root.Icons2.gotoAndStop("SandBag");
playermc.enemymc = _root.Sandbag;
if (((this._x - playermc._x) < 0) && (hitground == -1)) {
this._xscale = -100;
}
if (((this._x - playermc._x) > 0) && (hitground == -1)) {
this._xscale = 100;
}
_root.hp2._xscale = hp;
if ((hurtspeed > 0) && (fallspeed == 0)) {
hurtspeed--;
}
if ((hurtspeed < 0) && (fallspeed == 0)) {
hurtspeed++;
}
this._x = this._x + hurtspeed;
this._y = this._y + fallspeed;
if (((!this.hitTest(_root.ground1)) && (!this.hitTest(_root.ground2))) && (!this.hitTest(_root.ground3))) {
fallspeed++;
fall = 1;
this.gotoAndStop("fall");
stand = -1;
hitground = 1;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
fall = -1;
fallspeed = 0;
this._y = _root.ground1._y;
if (hitground == -1) {
stand = 1;
this.gotoAndStop("stand");
}
if (delay == 1) {
hitground = -1;
stand = 1;
}
if ((delay == 0) && (stand == -1)) {
delay = 26;
}
if (delay == 25) {
this.gotoAndStop("hit");
}
if (delay == 12) {
this.gotoAndStop("getup");
}
}
}
}
Instance of Symbol 758 MovieClip "explosion" in Frame 7
onClipEvent (load) {
var count;
count = 14;
}
onClipEvent (enterFrame) {
count--;
if (count <= 0) {
this.removeMovieClip(this);
}
}
Instance of Symbol 777 MovieClip "spglow1" in Frame 7
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 981 MovieClip "RockLee" in Frame 7
onClipEvent (load) {
var ctrlUP;
var ctrlDOWN;
var ctrlLEFT;
var ctrlRIGHT;
var ctrlNorm;
var ctrlSpec;
var ctrlGuard;
var p2moves = SharedObject.getLocal("Player2Moves");
var p1moves = SharedObject.getLocal("Player1Moves");
var Name;
Name = "RockLee";
var select;
select = -1;
if (_root.player1 == Name) {
select = 1;
this._x = 30;
this._y = _root.ground1._y;
ctrlUP = p1moves.data.upbut;
ctrlDOWN = p1moves.data.downbut;
ctrlLEFT = p1moves.data.leftbut;
ctrlRIGHT = p1moves.data.rightbut;
ctrlNorm = p1moves.data.normbut;
ctrlSpec = p1moves.data.specbut;
ctrlGuard = p1moves.data.guardbut;
}
if (_root.player2 == Name) {
select = 2;
this._xscale = this._xscale * -1;
this._x = 520;
this._y = _root.ground1._y;
ctrlUP = p2moves.data.upbut;
ctrlDOWN = p2moves.data.downbut;
ctrlLEFT = p2moves.data.leftbut;
ctrlRIGHT = p2moves.data.rightbut;
ctrlNorm = p2moves.data.normbut;
ctrlSpec = p2moves.data.specbut;
ctrlGuard = p2moves.data.guardbut;
}
var enemymc;
enemymc = _root.Sandbag;
var crouchdelay;
crouchdelay = 0;
var running;
running = -1;
var speed;
speed = 11.5;
var walkspeed;
walkspeed = 5;
var rundelay;
rundelay = 3;
var walkdelay;
walkdelay = 0;
var startrun;
startrun = 0;
var fallspeed;
fallspeed = 0;
var maxfallspeed;
maxfallspeed = 30;
var fall;
fall = -1;
var jumpcancel;
jumpcancel = -1;
var hp;
hp = 100;
var cp;
cp = 100;
var attackcancel;
attackcancel = -1;
var attacking;
attacking = -1;
var attackdelay;
attackdelay = 0;
var airattack;
airattack = 0;
var daggernum;
daggernum = 1;
var blockdelay;
blockdelay = 5;
var rolling;
rolling = -1;
var chakradelay;
chakradelay = 0;
var sp;
sp = 0;
var leaf;
leaf = -1;
var finishspeed;
finishspeed = 10;
var finish;
finish = -1;
var xmove;
var explodemc;
explodemc = _root.explosion;
var xcontrol;
xcontrol = 0;
var finishdelay;
sp = 0;
var xhit;
var hitx;
var lotusmc;
lotusmc = _root.lotusboom;
var lotusdmg;
lotusdmg = 6;
var flipmove;
var flipdelay;
flipdelay = 0;
var hurtspeed;
hurtspeed = 0;
var playermc;
var defend;
defend = -1;
var defensedmg;
var dodging = -1;
var incx = 0;
var incy = 0;
var blurred = (new flash.filters.BlurFilter(0, 0, 4));
var myFilters = [blurred];
this.filters = myFilters;
var hurtDelay = -1;
var hurt = -1;
var airSpin = 0;
var hurtGround = -1;
var bounceUp = 0;
var randHurt = 0;
}
onClipEvent (enterFrame) {
if (bounceUp > 0) {
bounceUp--;
}
this._y = this._y + fallspeed;
if (hurtDelay > -1) {
hurtDelay--;
}
airSpin = (fallspeed * -2) * (_xscale / 100);
if (hurtDelay == 0) {
hurt = -1;
}
if (((hurt == 1) && (fall == -1)) && (hurtground == -1)) {
randHurt = Math.round(Math.random() + 1);
this.gotoAndStop("pain");
this.pain.gotoAndStop(randHurt);
}
if (((hurt == 1) && (fall == 1)) && (hurtGround == -1)) {
incx = Math.abs(hurtspeed) / 2;
incy = Math.abs(fallspeed) / 2;
myFilters[0] = new flash.filters.BlurFilter(incx, incy, 4);
this.filters = myFilters;
_rotation = airSpin;
this.gotoAndStop("airHurt");
}
if (hurt == -1) {
_rotation = 0;
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if (((hurt == 1) && (fall == 1)) && ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3))) {
hurtGround = 1;
fallspeed = 0;
_y = _root.ground1._y;
fall = -1;
hurt = -1;
hurtDelay = 0;
bounceUp = 3;
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if (attackdelay <= 0) {
dodging = -1;
}
if (hp <= 0) {
_root.gotoAndStop("charselect");
}
if ((fall == 1) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) {
if (((this._xscale == 100) && (Key.isDown(ctrlLEFT))) or ((this._xscale == -100) && (Key.isDown(ctrlRIGHT)))) {
running = -1;
}
}
if (this.hitTest(_root.leftwall) or this.hitTest(_root.rightwall)) {
explodemc = _root.explosion.duplicateMovieClip(daggernum + "boom", daggernum);
explodemc._y = this._y - (this._height / 2);
if (this.hitTest(_root.leftwall)) {
explodemc._x = _root.leftwall._x + 40;
explodemc._rotation = 90;
}
if (this.hitTest(_root.rightwall)) {
explodemc._x = _root.rightwall._x - 40;
explodemc._rotation = -90;
}
hp = hp - 20;
this._x = 225;
attackdelay = 0;
finish = -1;
hurtspeed = 0;
}
if ((bounceUp > 0) && (Key.isDown(ctrlGuard))) {
hurtGround = -2;
fallspeed = -3;
this.gotoAndStop("bounceUp");
}
if (hurtGround == 1) {
this.gotoAndStop("hitGround");
_y = _root.ground1._y;
if (this.hitGround._currentframe == 9) {
if ((Key.isDown(ctrlLEFT) or Key.isDown(ctrlRIGHT)) or Key.isDown(ctrlUP)) {
this.hitGround.play();
}
}
}
if ((select == 1) && (hurtGround == -1)) {
if ((hurtspeed > 0) && (fallspeed == 0)) {
hurtspeed--;
}
if ((hurtspeed < 0) && (fallspeed == 0)) {
hurtspeed++;
}
this._x = this._x + hurtspeed;
if (_root.Kyubi.select == 2) {
enemymc = _root.Kyubi;
}
if (_root.Naruto.select == 2) {
enemymc = _root.Naruto;
}
if (_root.Neji.select == 2) {
enemymc = _root.Neji;
}
_root.Icons1.gotoAndStop("RockLee");
if (cp <= 0) {
chakradelay = 300;
}
if (chakradelay > 0) {
chakradelay--;
}
if ((chakradelay > 290) && (Key.isDown(ctrlSpec))) {
hp = hp - 0.5;
}
if (cp < 100) {
cp = cp + 0.1;
}
_root.hp1._x = _root.lefthp._x + _root.lefthp._width;
_root.hp1._xscale = hp;
_root.cp1._x = _root.lefthp._x + _root.lefthp._width;
_root.cp1._xscale = cp;
_root.sp1._x = _root.lefthp._x + _root.lefthp._width;
_root.sp1._xscale = sp;
if (sp < 100) {
sp = sp + 0.001;
}
if (sp >= 100) {
sp = 100;
_root.spglow1._visible = true;
_root.spglow1._alpha = 75;
}
if (sp != 100) {
_root.spglow1._visible = false;
}
if (((((fall == -1) && (attacking == -1)) && (Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("crouch");
crouchdelay = 16;
}
if (((!this.hitTest(_root.ground1)) or (!this.hitTest(_root.ground2))) or (!this.hitTest(_root.ground3))) {
if (teledelay <= 0) {
fallspeed++;
}
fall = 1;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
if ((airattack == 1) && (fall == 1)) {
attacking = -1;
airattack = -1;
attackdelay = 0;
}
fallspeed = 0;
fall = -1;
this._y = _root.ground1._y;
}
if (walkdelay > 0) {
walkdelay--;
}
if (startrun > 0) {
startrun--;
}
if (crouchdelay > 0) {
crouchdelay--;
}
if (((((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT))) && (fall == -1)) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) {
if (crouchdelay == 0) {
this.gotoAndStop("stand");
} else {
if (crouchdelay > 4) {
crouchdelay = 4;
}
this.crouch.gotoAndStop(13);
}
rundelay = 3;
if (startrun > 0) {
walkdelay = 5;
}
}
if (((Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT)) && (attacking == -1)) && (!(Key.isDown(ctrlRIGHT) && (Key.isDown(ctrlLEFT))))) {
if (fall == -1) {
startrun = 3;
if ((walkdelay <= 3) && (walkdelay > 0)) {
this.gotoAndStop("run");
rundelay--;
running = 1;
walkdelay = 5;
startrun = 0;
}
if (walkdelay == 0) {
running = -1;
this.gotoAndStop("walk");
}
}
}
if (Key.isDown(ctrlRIGHT) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x + speed;
}
if (running == -1) {
this._x = this._x + walkspeed;
}
this._xscale = 100;
}
}
if (Key.isDown(ctrlLEFT) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x - speed;
}
if (running == -1) {
this._x = this._x - walkspeed;
}
this._xscale = -100;
}
}
if (((Key.isDown(ctrlLEFT) && (Key.isDown(ctrlRIGHT))) && (attacking == -1)) && (fall == -1)) {
this.gotoAndStop("stand");
walkdelay = 0;
rundelay = 0;
running = -1;
startrun = 0;
}
if (((((fall == -1) && (Key.isDown(ctrlUP))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (jumpcancel == -1)) {
this.gotoAndStop("jump");
if (delay <= 0) {
this._y = this._y - 5;
fallspeed = -13;
fall = 1;
jumpcancel = 1;
}
}
if ((!Key.isDown(ctrlUP)) && (fall == -1)) {
jumpcancel = -1;
}
if (((fallspeed > 0) && (fall == 1)) && (attacking == -1)) {
this.gotoAndStop("fall");
}
if (((fall == -1) && (Key.isDown(ctrlGuard))) && (attackdelay <= 1)) {
if (rolling == -1) {
defend = 1;
this.gotoAndStop("guard");
attackdelay = 1;
}
attacking = 1;
blockdelay = 13;
if (((this._xscale < 0) && (Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) {
this.gotoAndStop("tele");
dodging = 1;
this._x = this._x + 35;
attackdelay = 7;
}
if (((this._xscale > 0) && (Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("tele");
dodging = 1;
attackdelay = 7;
this._x = this._x - 35;
}
} else {
blockdelay--;
}
if (!Key.isDown(ctrlNorm)) {
attackcancel = -1;
}
if (attackdelay == 0) {
finish = -1;
_root.bgpink._visible = false;
attacking = -1;
rolling = -1;
leaf = -1;
flipmove = -1;
dodging = -1;
} else {
attackdelay--;
}
if (flipdelay > 0) {
flipdelay--;
}
if ((((((Key.isDown(ctrlRIGHT) || (Key.isDown(ctrlLEFT))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 11;
attacking = 1;
this.gotoAndStop("smash");
attackcancel = 1;
flipmove = 1;
}
if (flipmove == 1) {
this._x = this._x + (2 * (this._xscale / 100));
}
if (((((Key.isDown(ctrlNorm) && (attacking == -1)) && (fall == -1)) && (!Key.isDown(ctrlDOWN))) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 21;
attacking = 1;
this.gotoAndStop("punchcombo");
attackcancel = 1;
}
if ((((Key.isDown(ctrlDOWN) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (attackcancel == -1)) {
attackdelay = 9;
attacking = 1;
crouchdelay = 0;
this.gotoAndStop("upattack");
attackcancel = 1;
}
if (((((Key.isDown(ctrlNorm) && (!Key.isDown(ctrlUP))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 0;
this.gotoAndStop("aircombo");
airattack = 1;
attackcancel = 1;
}
if (((((((flipdelay == 0) && (Key.isDown(ctrlUP))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 3;
airattack = 1;
flipdelay = 15;
attackcancel = 1;
this.gotoAndStop("airflip");
}
if (((((((flipdelay == 0) && (Key.isDown(ctrlDOWN))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlUP))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 6;
airattack = 1;
flipdelay = 7;
attackcancel = 1;
this.gotoAndStop("dair");
}
if ((((Key.isDown(ctrlNorm) && (attacking == -1)) && (rundelay <= 0)) && (fall == -1)) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 9;
this.gotoAndStop("runattack");
attackcancel = 1;
rundelay = 3;
running = -1;
}
if (((((((fall == -1) && (Key.isDown(ctrlSpec))) && (!Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
attackdelay = 20;
attacking = 1;
this.gotoAndStop("leaf");
cp = cp - 18;
leaf = 1;
}
if ((leaf == 1) && (attackdelay > 9)) {
this._x = this._x + (6 * (this._xscale / 100));
}
if (finishdelay > 0) {
finishdelay--;
}
if ((((((((fall == -1) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
attacking = 1;
attackdelay = 37;
cp = cp - 1.2;
this.gotoAndStop("rotation");
}
if ((((((((fall == -1) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (blockdelay <= 0)) && (chakradelay == 0)) && (sp == 100)) {
this.gotoAndStop("lotus");
attackdelay = 99999 /* 0x01869F */;
finish = 1;
attacking = 1;
cp = 1;
sp = 0;
finishdelay = 164;
xmove = this._xscale / 100;
}
if (finish == 1) {
if ((finishdelay < 102) && (finishdelay > 90)) {
this._x = this._x + (15 * xmove);
}
if (finishdelay == 84) {
this._x = enemymc._x;
this._y = enemymc._y;
finish = 3;
xmove = -1;
this._xscale = -100;
}
}
if (finish == 3) {
fallspeed = 0;
if (finishdelay == 82) {
xhit = 275 - enemymc._x;
}
if (finishdelay == 80) {
this._x = enemymc._x;
this._y = enemymc._y;
enemymc.fallspeed = -20;
enemymc.hp = enemymc.hp - (lotusdmg - 3);
}
if ((finishdelay <= 82) && (finishdelay >= 80)) {
enemymc._x = enemymc._x + (xhit / 3);
}
if (finishdelay == 80) {
enemymc._x = 275;
}
if (finishdelay == 76) {
this._y = enemymc._y - 10;
}
if (finishdelay == 72) {
enemymc.hurtspeed = -13 * xmove;
enemymc.fallspeed = -10;
enemymc.hp = enemymc.hp - lotusdmg;
}
if (finishdelay == 68) {
this._x = enemymc._x - (50 * xmove);
this._y = enemymc._y - 10;
}
if (finishdelay == 64) {
enemymc.hurtspeed = 25 * xmove;
enemymc.fallspeed = -3;
enemymc.hp = enemymc.hp - lotusdmg;
}
if (finishdelay == 58) {
this._x = enemymc._x + (65 * xmove);
this._y = enemymc._y + 4;
}
if (finishdelay == 54) {
enemymc.hurtspeed = -30 * xmove;
enemymc.fallspeed = -20;
enemymc.hp = enemymc.hp - lotusdmg;
}
if (finishdelay == 48) {
this._x = enemymc._x - (130 * xmove);
this._y = enemymc._y - 30;
}
if (finishdelay == 44) {
enemymc.hurtspeed = 30 * xmove;
enemymc.fallspeed = 3;
enemymc.hp = enemymc.hp - lotusdmg;
}
if (finishdelay == 38) {
this._x = enemymc._x + (100 * xmove);
this._y = enemymc._y + 40;
}
if (finishdelay == 34) {
enemymc.hurtspeed = -30 * xmove;
enemymc.fallspeed = 3;
enemymc.hp = enemymc.hp - lotusdmg;
}
if (finishdelay == 28) {
this._x = enemymc._x - (120 * xmove);
this._y = enemymc._y + 15;
}
if ((finishdelay == 24) && (this.hitTest(enemymc))) {
enemymc.hurtspeed = 8 * xmove;
enemymc.fallspeed = -15;
enemymc.hp = enemymc.hp - lotusdmg;
}
if (finishdelay == 18) {
this._x = 275;
this._y = 125;
}
if (finishdelay == 6) {
enemymc.hurtspeed = 0;
enemymc.fallspeed = 30;
enemymc._x = 275;
enemymc.hp = enemymc.hp - (lotusdmg + 6);
}
if ((finishdelay == 0) && (enemymc.hitTest(_root.ground2))) {
lotusmc = _root.lotusboom.duplicateMovieClip("lotusboom" + daggernum, daggernum);
daggernum++;
lotusmc.gotoAndPlay(1);
lotusmc._alpha = 100;
lotusmc.count = 10;
lotusmc._x = enemymc._x;
lotusmc._y = _root.ground1._y;
finish = 4;
enemymc.hp = enemymc.hp - 5;
}
}
if ((finishdelay == 0) && (finish == 4)) {
attackdelay = 0;
}
if (enemymc.defend == 1) {
defensedmg = 3;
} else {
defensedmg = 1;
}
if ((attacking == 1) && (this.punchcombo.punch.hitTest(enemymc))) {
enemymc.hp = enemymc.hp - (0.3 / defensedmg);
enemymc.hurtspeed = 2 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 4;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.punchcombo.punchup.hitTest(enemymc))) {
enemymc.hp = enemymc.hp - (0.4 / defensedmg);
enemymc.hurtspeed = 4 * (this._xscale / 100);
enemymc.fallspeed = -8;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 7;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.upattack.hitBoxUp.hitTest(enemymc))) {
enemymc.hp = enemymc.hp - (0.4 / defensedmg);
enemymc.hurtspeed = 2 * (this._xscale / 100);
enemymc.fallspeed = -17;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 21;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.upair.hitBoxUpAir.hitTest(enemymc))) {
enemymc.hp = enemymc.hp - (0.7 / defensedmg);
enemymc.hurtspeed = 4 * (this._xscale / 100);
enemymc.fallspeed = -8;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 8;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.leafh.hitBoxLeaf.hitTest(enemymc))) {
enemymc.hp = enemymc.hp - (2 / defensedmg);
enemymc.hurtspeed = 14 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 15;
if (cp < 99.5) {
cp = cp + 0.5;
} else {
cp = 100;
}
}
if ((attacking == 1) && (this.smash.hitBoxSmash.hitTest(enemymc))) {
enemymc.hp = enemymc.hp - (0.4 / defensedmg);
enemymc.hurtspeed = 3 * (this._xscale / 100);
enemymc.fallspeed = -8;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 13;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.aircombo.hitBoxAir.hitTest(enemymc))) {
enemymc.hp = enemymc.hp - (0.2 / defensedmg);
enemymc.hurtspeed = 2 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 8;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.Dair.hitBoxDAir.hitTest(enemymc))) {
enemymc.hp = enemymc.hp - (0.4 / defensedmg);
enemymc.hurtspeed = 4 * (this._xscale / 100);
enemymc.fallspeed = 30;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
playermc.fall = 1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 10;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.runattack.hitBoxRun.hitTest(enemymc))) {
enemymc.hp = enemymc.hp - (0.3 / defensedmg);
enemymc.hurtspeed = 8 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 5;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
}
if ((select == 2) && (hurtGround == -1)) {
if (_root.Kyubi.select == 1) {
playermc = _root.Kyubi;
}
if (_root.Naruto.select == 1) {
playermc = _root.Naruto;
}
if (_root.Neji.select == 1) {
playermc = _root.Neji;
}
_root.Icons2.gotoAndStop("RockLee");
if ((hurtspeed > 0) && (fallspeed == 0)) {
hurtspeed--;
}
if ((hurtspeed < 0) && (fallspeed == 0)) {
hurtspeed++;
}
this._x = this._x + hurtspeed;
if (cp <= 0) {
chakradelay = 300;
}
if (chakradelay > 0) {
chakradelay--;
}
if ((chakradelay > 290) && (Key.isDown(ctrlSpec))) {
hp = hp - 0.5;
}
if (cp < 100) {
cp = cp + 0.1;
}
_root.hp2._x = _root.righthp._x - _root.righthp._width;
_root.hp2._xscale = hp;
_root.cp2._x = _root.righthp._x - _root.righthp._width;
_root.cp2._xscale = cp;
_root.sp2._x = _root.righthp._x - _root.righthp._width;
_root.sp2._xscale = sp;
if (sp < 100) {
sp = sp + 0.001;
}
if (sp >= 100) {
sp = 100;
_root.spglow2._visible = true;
_root.spglow2._alpha = 75;
}
if (sp != 100) {
_root.spglow2._visible = false;
}
if (((((fall == -1) && (attacking == -1)) && (Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("crouch");
crouchdelay = 16;
}
if (((!this.hitTest(_root.ground1)) or (!this.hitTest(_root.ground2))) or (!this.hitTest(_root.ground3))) {
if (teledelay <= 0) {
fallspeed++;
}
fall = 1;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
if ((airattack == 1) && (fall == 1)) {
attacking = -1;
airattack = -1;
attackdelay = 0;
}
fallspeed = 0;
fall = -1;
this._y = _root.ground1._y;
}
if (walkdelay > 0) {
walkdelay--;
}
if (startrun > 0) {
startrun--;
}
if (crouchdelay > 0) {
crouchdelay--;
}
if (((((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT))) && (fall == -1)) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) {
if (crouchdelay == 0) {
this.gotoAndStop("stand");
} else {
if (crouchdelay > 4) {
crouchdelay = 4;
}
this.crouch.gotoAndStop(13);
}
rundelay = 3;
if (startrun > 0) {
walkdelay = 5;
}
}
if (((Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT)) && (attacking == -1)) && (!(Key.isDown(ctrlRIGHT) && (Key.isDown(ctrlLEFT))))) {
if (fall == -1) {
startrun = 3;
if ((walkdelay <= 3) && (walkdelay > 0)) {
this.gotoAndStop("run");
rundelay--;
running = 1;
walkdelay = 5;
startrun = 0;
}
if (walkdelay == 0) {
running = -1;
this.gotoAndStop("walk");
}
}
}
if (Key.isDown(ctrlRIGHT) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x + speed;
}
if (running == -1) {
this._x = this._x + walkspeed;
}
this._xscale = 100;
}
}
if (Key.isDown(ctrlLEFT) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x - speed;
}
if (running == -1) {
this._x = this._x - walkspeed;
}
this._xscale = -100;
}
}
if (((Key.isDown(ctrlLEFT) && (Key.isDown(ctrlRIGHT))) && (attacking == -1)) && (fall == -1)) {
this.gotoAndStop("stand");
walkdelay = 0;
rundelay = 0;
running = -1;
startrun = 0;
}
if (((((fall == -1) && (Key.isDown(ctrlUP))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (jumpcancel == -1)) {
this.gotoAndStop("jump");
if (delay <= 0) {
this._y = this._y - 5;
fallspeed = -13;
fall = 1;
jumpcancel = 1;
}
}
if ((!Key.isDown(ctrlUP)) && (fall == -1)) {
jumpcancel = -1;
}
if (((fallspeed > 0) && (fall == 1)) && (attacking == -1)) {
this.gotoAndStop("fall");
}
if (((fall == -1) && (Key.isDown(ctrlGuard))) && (attackdelay <= 1)) {
if (rolling == -1) {
defend = 1;
this.gotoAndStop("guard");
attackdelay = 1;
}
attacking = 1;
blockdelay = 13;
if (((this._xscale < 0) && (Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) {
this.gotoAndStop("tele");
dodging = 1;
this._x = this._x + 35;
attackdelay = 7;
}
if (((this._xscale > 0) && (Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("tele");
dodging = 1;
attackdelay = 7;
this._x = this._x - 35;
}
} else {
blockdelay--;
}
if (!Key.isDown(ctrlNorm)) {
attackcancel = -1;
}
if (attackdelay == 0) {
finish = -1;
_root.bgpink._visible = false;
attacking = -1;
rolling = -1;
leaf = -1;
flipmove = -1;
dodging = -1;
} else {
attackdelay--;
}
if (flipdelay > 0) {
flipdelay--;
}
if ((((((Key.isDown(ctrlRIGHT) || (Key.isDown(ctrlLEFT))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 11;
attacking = 1;
this.gotoAndStop("smash");
attackcancel = 1;
flipmove = 1;
}
if (flipmove == 1) {
this._x = this._x + (2 * (this._xscale / 100));
}
if (((((Key.isDown(ctrlNorm) && (attacking == -1)) && (fall == -1)) && (!Key.isDown(ctrlDOWN))) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 21;
attacking = 1;
this.gotoAndStop("punchcombo");
attackcancel = 1;
}
if ((((Key.isDown(ctrlDOWN) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (attackcancel == -1)) {
attackdelay = 9;
attacking = 1;
crouchdelay = 0;
this.gotoAndStop("upattack");
attackcancel = 1;
}
if (((((Key.isDown(ctrlNorm) && (!Key.isDown(ctrlUP))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 0;
this.gotoAndStop("aircombo");
airattack = 1;
attackcancel = 1;
}
if (((((((flipdelay == 0) && (Key.isDown(ctrlUP))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 3;
airattack = 1;
flipdelay = 15;
attackcancel = 1;
this.gotoAndStop("airflip");
}
if (((((((flipdelay == 0) && (Key.isDown(ctrlDOWN))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlUP))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 6;
airattack = 1;
flipdelay = 7;
attackcancel = 1;
this.gotoAndStop("dair");
}
if ((((Key.isDown(ctrlNorm) && (attacking == -1)) && (rundelay <= 0)) && (fall == -1)) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 9;
this.gotoAndStop("runattack");
attackcancel = 1;
rundelay = 3;
running = -1;
}
if (((((((fall == -1) && (Key.isDown(ctrlSpec))) && (!Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
attackdelay = 20;
attacking = 1;
this.gotoAndStop("leaf");
cp = cp - 18;
leaf = 1;
}
if ((leaf == 1) && (attackdelay > 9)) {
this._x = this._x + (6 * (this._xscale / 100));
}
if (finishdelay > 0) {
finishdelay--;
}
if ((((((((fall == -1) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
attacking = 1;
attackdelay = 37;
cp = cp - 1.2;
this.gotoAndStop("rotation");
}
if ((((((((fall == -1) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (blockdelay <= 0)) && (chakradelay == 0)) && (sp == 100)) {
this.gotoAndStop("lotus");
attackdelay = 99999 /* 0x01869F */;
finish = 1;
attacking = 1;
cp = 1;
sp = 0;
finishdelay = 164;
xmove = this._xscale / 100;
}
if (finish == 1) {
if ((finishdelay < 102) && (finishdelay > 90)) {
this._x = this._x + (15 * xmove);
}
if (finishdelay == 84) {
this._x = playermc._x;
this._y = playermc._y;
finish = 3;
xmove = -1;
this._xscale = -100;
}
}
if (finish == 3) {
fallspeed = 0;
if (finishdelay == 82) {
xhit = 275 - playermc._x;
}
if (finishdelay == 80) {
this._x = playermc._x;
this._y = playermc._y;
playermc.fallspeed = -20;
playermc.hp = playermc.hp - (lotusdmg - 3);
}
if ((finishdelay <= 82) && (finishdelay >= 80)) {
playermc._x = playermc._x + (xhit / 3);
}
if (finishdelay == 80) {
playermc._x = 275;
}
if (finishdelay == 76) {
this._y = playermc._y - 10;
}
if (finishdelay == 72) {
playermc.hurtspeed = -13 * xmove;
playermc.fallspeed = -10;
playermc.hp = playermc.hp - lotusdmg;
}
if (finishdelay == 68) {
this._x = playermc._x - (50 * xmove);
this._y = playermc._y - 10;
}
if (finishdelay == 64) {
playermc.hurtspeed = 25 * xmove;
playermc.fallspeed = -3;
playermc.hp = playermc.hp - lotusdmg;
}
if (finishdelay == 58) {
this._x = playermc._x + (65 * xmove);
this._y = playermc._y + 4;
}
if (finishdelay == 54) {
playermc.hurtspeed = -30 * xmove;
playermc.fallspeed = -20;
playermc.hp = playermc.hp - lotusdmg;
}
if (finishdelay == 48) {
this._x = playermc._x - (130 * xmove);
this._y = playermc._y - 30;
}
if (finishdelay == 44) {
playermc.hurtspeed = 30 * xmove;
playermc.fallspeed = 3;
playermc.hp = playermc.hp - lotusdmg;
}
if (finishdelay == 38) {
this._x = playermc._x + (100 * xmove);
this._y = playermc._y + 40;
}
if (finishdelay == 34) {
playermc.hurtspeed = -30 * xmove;
playermc.fallspeed = 3;
playermc.hp = playermc.hp - lotusdmg;
}
if (finishdelay == 28) {
this._x = playermc._x - (120 * xmove);
this._y = playermc._y + 15;
}
if ((finishdelay == 24) && (this.hitTest(playermc))) {
playermc.hurtspeed = 8 * xmove;
playermc.fallspeed = -15;
playermc.hp = playermc.hp - lotusdmg;
}
if (finishdelay == 18) {
this._x = 275;
this._y = 125;
}
if (finishdelay == 6) {
playermc.hurtspeed = 0;
playermc.fallspeed = 30;
playermc._x = 275;
playermc.hp = playermc.hp - (lotusdmg + 6);
}
if ((finishdelay == 0) && (playermc.hitTest(_root.ground2))) {
lotusmc = _root.lotusboom.duplicateMovieClip("lotusboom" + daggernum, daggernum);
daggernum++;
lotusmc.gotoAndPlay(1);
lotusmc._alpha = 100;
lotusmc.count = 10;
lotusmc._x = playermc._x;
lotusmc._y = _root.ground1._y;
finish = 4;
playermc.hp = playermc.hp - 5;
}
}
if ((finishdelay == 0) && (finish == 4)) {
attackdelay = 0;
}
if (playermc.defend == 1) {
defensedmg = 3;
} else {
defensedmg = 1;
}
if ((attacking == 1) && (this.punchcombo.punch.hitTest(playermc))) {
playermc.hp = playermc.hp - (0.3 / defensedmg);
playermc.hurtspeed = 2 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 4;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.punchcombo.punchup.hitTest(playermc))) {
playermc.hp = playermc.hp - (0.4 / defensedmg);
playermc.hurtspeed = 4 * (this._xscale / 100);
playermc.fallspeed = -8;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 7;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.upattack.hitBoxUp.hitTest(playermc))) {
playermc.hp = playermc.hp - (0.4 / defensedmg);
playermc.hurtspeed = 2 * (this._xscale / 100);
playermc.fallspeed = -17;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 21;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.upair.hitBoxUpAir.hitTest(playermc))) {
playermc.hp = playermc.hp - (0.7 / defensedmg);
playermc.hurtspeed = 4 * (this._xscale / 100);
playermc.fallspeed = -8;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 8;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.leafh.hitBoxLeaf.hitTest(playermc))) {
playermc.hp = playermc.hp - (2 / defensedmg);
playermc.hurtspeed = 14 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 15;
if (cp < 99.5) {
cp = cp + 0.5;
} else {
cp = 100;
}
}
if ((attacking == 1) && (this.smash.hitBoxSmash.hitTest(playermc))) {
playermc.hp = playermc.hp - (0.4 / defensedmg);
playermc.hurtspeed = 3 * (this._xscale / 100);
playermc.fallspeed = -8;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 13;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.aircombo.hitBoxAir.hitTest(playermc))) {
playermc.hp = playermc.hp - (0.2 / defensedmg);
playermc.hurtspeed = 2 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 8;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.Dair.hitBoxDAir.hitTest(playermc))) {
playermc.hp = playermc.hp - (0.4 / defensedmg);
playermc.hurtspeed = 4 * (this._xscale / 100);
playermc.fallspeed = 30;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.fall = 1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 10;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if ((attacking == 1) && (this.runattack.hitBoxRun.hitTest(playermc))) {
playermc.hp = playermc.hp - (0.3 / defensedmg);
playermc.hurtspeed = 8 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 5;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
}
if ((select != 1) && (select != 2)) {
this.removeMovieClip();
}
}
Instance of Symbol 6 MovieClip [lotusboom] "lotusboom" in Frame 7
onClipEvent (load) {
var count;
count = 10;
}
onClipEvent (enterFrame) {
this._alpha = this._alpha - 5;
if (count == 0) {
this.removeMovieClip();
}
count--;
}
Instance of Symbol 777 MovieClip "spglow2" in Frame 7
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1190 MovieClip "Naruto" in Frame 7
onClipEvent (load) {
var ctrlUP;
var ctrlDOWN;
var ctrlLEFT;
var ctrlRIGHT;
var ctrlNorm;
var ctrlSpec;
var ctrlGuard;
var p2moves = SharedObject.getLocal("Player2Moves");
var p1moves = SharedObject.getLocal("Player1Moves");
var Name;
Name = "Naruto";
var select;
select = -1;
if (_root.player1 == Name) {
select = 1;
this._x = 30;
this._y = _root.ground1._y;
ctrlUP = p1moves.data.upbut;
ctrlDOWN = p1moves.data.downbut;
ctrlLEFT = p1moves.data.leftbut;
ctrlRIGHT = p1moves.data.rightbut;
ctrlNorm = p1moves.data.normbut;
ctrlSpec = p1moves.data.specbut;
ctrlGuard = p1moves.data.guardbut;
}
if (_root.player2 == Name) {
select = 2;
this._x = 520;
this._xscale = this._xscale * -1;
this._y = _root.ground1._y;
ctrlUP = p2moves.data.upbut;
ctrlDOWN = p2moves.data.downbut;
ctrlLEFT = p2moves.data.leftbut;
ctrlRIGHT = p2moves.data.rightbut;
ctrlNorm = p2moves.data.normbut;
ctrlSpec = p2moves.data.specbut;
ctrlGuard = p2moves.data.guardbut;
}
var enemymc;
enemymc = _root.Sandbag;
var crouchdelay;
crouchdelay = 0;
var running;
running = -1;
var speed;
speed = 6.5;
var walkspeed;
walkspeed = 3;
var rundelay;
rundelay = 10;
var walkdelay;
walkdelay = 0;
var startrun;
startrun = 0;
var fallspeed;
fallspeed = 0;
var maxfallspeed;
maxfallspeed = 30;
var fall;
fall = -1;
var jumpcancel;
jumpcancel = -1;
var hp;
hp = 100;
var cp;
cp = 100;
var attackcancel;
attackcancel = -1;
var attacking;
attacking = -1;
var attackdelay;
attackdelay = 0;
var airattack;
airattack = 0;
var daggernum;
daggernum = 1;
var mc;
mc = _root.heart;
var blockdelay;
blockdelay = 5;
var rolling;
rolling = -1;
var chakradelay;
chakradelay = 0;
var sp;
sp = 0;
var Nova;
Nova = -1;
var Flamesmc;
Flamesmc = _root.Flames;
var charge;
charge = 0;
var finishspeed;
finishspeed = 10;
var finish;
finish = -1;
var xmove;
var explodemc;
explodemc = _root.explosion;
var xcontrol;
xcontrol = 0;
var hurtspeed;
var heart = 1;
var clonemc;
clonemc = _root.NarutoClone;
var cloning = -1;
var trans;
trans = -1;
var transforming;
transforming = -1;
var defend;
defend = -1;
var defensedmg = 1;
var dodging = -1;
var incx = 0;
var incy = 0;
var blurred = (new flash.filters.BlurFilter(0, 0, 4));
var myFilters = [blurred];
this.filters = myFilters;
var hurtDelay = -1;
var hurt = -1;
var airSpin = 0;
var hurtGround = -1;
var bounceUp = 0;
var randHurt = 0;
}
onClipEvent (enterFrame) {
if (bounceUp > 0) {
bounceUp--;
}
this._y = this._y + fallspeed;
if (hurtDelay > -1) {
hurtDelay--;
}
airSpin = (fallspeed * -2) * (_xscale / 100);
if (hurtDelay == 0) {
hurt = -1;
}
if (((hurt == 1) && (fall == -1)) && (hurtground == -1)) {
randHurt = Math.round(Math.random() + 1);
this.gotoAndStop("pain");
this.pain.gotoAndStop(randHurt);
}
if (((hurt == 1) && (fall == 1)) && (hurtGround == -1)) {
incx = Math.abs(hurtspeed) / 2;
incy = Math.abs(fallspeed) / 2;
myFilters[0] = new flash.filters.BlurFilter(incx, incy, 4);
this.filters = myFilters;
_rotation = airSpin;
this.gotoAndStop("airHurt");
}
if (hurt == -1) {
_rotation = 0;
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if (((hurt == 1) && (fall == 1)) && ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3))) {
hurtGround = 1;
fallspeed = 0;
_y = _root.ground1._y;
fall = -1;
hurt = -1;
hurtDelay = 0;
bounceUp = 3;
myFilters[0] = new flash.filters.BlurFilter(0, 0, 0);
this.filters = myFilters;
}
if (attackdelay <= 0) {
dodging = -1;
}
if (hp <= 0) {
_root.gotoAndStop("charselect");
}
if ((fall == 1) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) {
if (((this._xscale == 100) && (Key.isDown(ctrlLEFT))) or ((this._xscale == -100) && (Key.isDown(ctrlRIGHT)))) {
running = -1;
}
}
if (this.hitTest(_root.leftwall) or this.hitTest(_root.rightwall)) {
explodemc = _root.explosion.duplicateMovieClip(daggernum + "boom", daggernum);
explodemc._y = this._y - (this._height / 2);
if (this.hitTest(_root.leftwall)) {
explodemc._x = _root.leftwall._x + 40;
explodemc._rotation = 90;
}
if (this.hitTest(_root.rightwall)) {
explodemc._x = _root.rightwall._x - 40;
explodemc._rotation = -90;
}
hp = hp - 20;
this._x = 225;
attackdelay = 0;
finish = -1;
hurtspeed = 0;
}
if ((bounceUp > 0) && (Key.isDown(ctrlGuard))) {
hurtGround = -2;
fallspeed = -3;
this.gotoAndStop("bounceUp");
}
if (hurtGround == 1) {
this.gotoAndStop("hitGround");
_y = _root.ground1._y;
if (this.hitGround._currentframe == 8) {
if ((Key.isDown(ctrlLEFT) or Key.isDown(ctrlRIGHT)) or Key.isDown(ctrlUP)) {
this.hitGround.play();
}
}
}
if ((select == 1) && (hurtGround == -1)) {
if ((hurtspeed > 0) && (fallspeed == 0)) {
hurtspeed--;
}
if ((hurtspeed < 0) && (fallspeed == 0)) {
hurtspeed++;
}
this._x = this._x + hurtspeed;
if (_root.RockLee.select == 2) {
enemymc = _root.RockLee;
}
if (_root.Kyubi.select == 2) {
enemymc = _root.Kyubi;
}
if (_root.Neji.select == 2) {
enemymc = _root.Neji;
}
_root.Icons1.gotoAndStop("Naruto");
if (cp <= 0) {
chakradelay = 300;
}
if (chakradelay > 0) {
chakradelay--;
}
if ((chakradelay > 290) && (Key.isDown(ctrlSpec))) {
hp = hp - 0.5;
}
if (cp < 100) {
cp = cp + 0.1;
}
_root.hp1._x = _root.lefthp._x + _root.lefthp._width;
_root.hp1._xscale = hp;
_root.cp1._x = _root.lefthp._x + _root.lefthp._width;
_root.cp1._xscale = cp;
_root.sp1._x = _root.lefthp._x + _root.lefthp._width;
_root.sp1._xscale = sp;
if (sp >= 65) {
trans = 1;
_root.spglowtrans1._visible = true;
_root.spglowtrans1._alpha = sp;
} else {
_root.spglowtrans1._visible = false;
trans = -1;
}
if (sp < 100) {
sp = sp + 0.001;
}
if (sp >= 100) {
sp = 100;
_root.spglow1._visible = true;
_root.spglow1._alpha = 75;
}
if (sp != 100) {
_root.spglow1._visible = false;
}
if (hp <= 0) {
_root.gotoAndStop("gotochar");
}
if (((((((((transforming == -1) && (trans == 1)) && (this._y > (_root.ground1._y - 30))) && (attacking == -1)) && (Key.isDown(ctrlUP))) && (Key.isDown(ctrlSpec))) && (!Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("transform");
sp = sp - 65;
dodging = 1;
this._y = _root.ground1._y;
_root.Kunlock = "yes";
transforming = 1;
_root.spglowtrans1._visible = false;
_root.Kyubi.ctrlUP = ctrlUP;
_root.Kyubi.ctrlDOWN = ctrlDOWN;
_root.Kyubi.ctrlLEFT = ctrlLEFT;
_root.Kyubi.ctrlRIGHT = ctrlRIGHT;
_root.Kyubi.ctrlNorm = ctrlNorm;
_root.Kyubi.ctrlSpec = ctrlSpec;
_root.Kyubi.ctrlGuard = ctrlGuard;
}
if (transforming == 1) {
dodging = 1;
}
if (transforming == -1) {
if ((((((hurt == -1) && (fall == -1)) && (attacking == -1)) && (Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("crouch");
crouchdelay = 16;
}
if (((!this.hitTest(_root.ground1)) or (!this.hitTest(_root.ground2))) or (!this.hitTest(_root.ground3))) {
if (teledelay <= 0) {
fallspeed++;
}
fall = 1;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
if ((airattack == 1) && (fall == 1)) {
attacking = -1;
airattack = -1;
attackdelay = 0;
}
fallspeed = 0;
fall = -1;
this._y = _root.ground1._y;
}
if (walkdelay > 0) {
walkdelay--;
}
if (startrun > 0) {
startrun--;
}
if (crouchdelay > 0) {
crouchdelay--;
}
if ((((((hurt == -1) && (!Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) && (fall == -1)) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) {
if (crouchdelay == 0) {
this.gotoAndStop("stand");
} else {
if (crouchdelay > 4) {
crouchdelay = 4;
}
this.crouch.gotoAndStop(13);
}
rundelay = 10;
if (startrun > 0) {
walkdelay = 5;
}
}
if ((((hurt == -1) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && (attacking == -1)) && (!(Key.isDown(ctrlRIGHT) && (Key.isDown(ctrlLEFT))))) {
if (fall == -1) {
startrun = 3;
if ((walkdelay <= 5) && (walkdelay > 0)) {
this.gotoAndStop("run");
rundelay--;
running = 1;
walkdelay = 3;
startrun = 0;
}
if (walkdelay == 0) {
running = -1;
this.gotoAndStop("walk");
}
}
}
if (Key.isDown(ctrlRIGHT) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if ((hurt == -1) && (running == 1)) {
this._x = this._x + speed;
}
if ((hurt == -1) && (running == -1)) {
this._x = this._x + walkspeed;
}
if (hurt == -1) {
this._xscale = 100;
}
}
}
if (((hurt == -1) && (Key.isDown(ctrlLEFT))) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x - speed;
}
if (running == -1) {
this._x = this._x - walkspeed;
}
if (hurt == -1) {
this._xscale = -100;
}
}
}
if (((Key.isDown(ctrlLEFT) && (Key.isDown(ctrlRIGHT))) && (attacking == -1)) && (fall == -1)) {
this.gotoAndStop("stand");
walkdelay = 0;
rundelay = 0;
running = -1;
startrun = 0;
}
if ((((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlUP))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (jumpcancel == -1)) {
this.gotoAndStop("jump");
if (delay <= 0) {
this._y = this._y - 5;
fallspeed = -13;
fall = 1;
jumpcancel = 1;
}
}
if ((!Key.isDown(ctrlUP)) && (fall == -1)) {
jumpcancel = -1;
}
if (((fallspeed > 0) && (fall == 1)) && (attacking == -1)) {
this.gotoAndStop("fall");
}
if (rolling == 1) {
this._x = this._x + (((speed + 4) * (_xscale / 100)) * -1);
}
if ((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlGuard))) && (attackdelay <= 1)) {
if (rolling == -1) {
this.gotoAndStop("guard");
attackdelay = 1;
defend = 1;
}
attacking = 1;
blockdelay = 5;
if (((this._xscale < 0) && (Key.isDown(ctrlRIGHT))) && (rolling == -1)) {
this.gotoAndStop("retreat");
rolling = 1;
attackdelay = 5;
dodging = 1;
}
if (((this._xscale > 0) && (Key.isDown(ctrlLEFT))) && (rolling == -1)) {
this.gotoAndStop("retreat");
rolling = 1;
attackdelay = 5;
dodging = 1;
}
} else {
blockdelay--;
}
if (!Key.isDown(ctrlNorm)) {
attackcancel = -1;
}
if (attackdelay == 0) {
finish = -1;
cloning = -1;
_root.bgpink._visible = false;
attacking = -1;
rolling = -1;
heart = -1;
rotatePalm = -1;
dodging = -1;
} else {
attackdelay--;
}
if (((((((hurt == -1) && (Key.isDown(ctrlRIGHT) || (Key.isDown(ctrlLEFT)))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 8;
attacking = 1;
this.gotoAndStop("headbutt");
attackcancel = 1;
}
if (((((((hurt == -1) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (!Key.isDown(ctrlDOWN))) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 27;
attacking = 1;
this.gotoAndStop("combo");
attackcancel = 1;
}
if ((((((hurt == -1) && (Key.isDown(ctrlDOWN))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (attackcancel == -1)) {
attackdelay = 9;
attacking = 1;
crouchdelay = 0;
this.gotoAndStop("upattack");
attackcancel = 1;
}
if (((((((hurt == -1) && (Key.isDown(ctrlNorm))) && (!Key.isDown(ctrlUP))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 16;
this.gotoAndStop("aircombo");
airattack = 1;
attackcancel = 1;
}
if (((((((hurt == -1) && (Key.isDown(ctrlDOWN))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlUP))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 14;
this.gotoAndStop("downair");
this.flip.gotoAndPlay(1);
airattack = 1;
attackcancel = 1;
}
if ((((((hurt == -1) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (rundelay <= 0)) && (fall == -1)) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 8;
this.gotoAndStop("runattack");
attackcancel = 1;
rundelay = 5;
running = -1;
}
if (((((((((hurt == -1) && (attacking == -1)) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
attackdelay = 54;
attacking = 1;
this.gotoAndStop("sexy");
cp = cp - 40;
_root.bgpink._visible = true;
heart = 1;
}
if ((hurt == -1) && (heart == 1)) {
if (attackdelay == 46) {
mc = _root.heart.duplicateMovieClip("heart" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y - ((_height / 3) * 2);
}
if (attackdelay == 37) {
mc = _root.heart.duplicateMovieClip("heart" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y - ((_height / 4) * 3);
}
if (attackdelay == 35) {
mc = _root.heart.duplicateMovieClip("heart" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y - ((_height / 4) * 2);
}
}
if ((((((((((hurt == -1) && (!Key.isDown(ctrlUP))) && (attacking == -1)) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (!Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
cp = cp / 2;
attacking = 1;
attackdelay = 46;
cloning = 1;
this.gotoAndStop("clone");
}
if ((hurt == -1) && (cloning == 1)) {
if (attackdelay == 25) {
clonemc = _root.NarutoClone.duplicateMovieClip("clone" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
clonemc._x = _x + (20 * (_xscale / 100));
clonemc._y = _y;
clonemc._xscale = _xscale;
clonemc.activ = 1;
}
}
if (((((((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && ((finish == 1) or (attacking == -1))) && (!Key.isDown(ctrlDOWN))) && (blockdelay <= 0)) && (chakradelay == 0)) && (sp == 100)) {
this.gotoAndStop("rasengan");
_root.NarutoHolding.broke = -1;
if (enemymc.fall == -1) {
_root.NarutoHolding._x = enemymc._x;
_root.NarutoHolding.xcontrol = 0;
_root.NarutoHolding._y = enemymc._y;
}
attackdelay = 99999 /* 0x01869F */;
finish = 1;
attacking = 1;
cp = 1;
sp = 0;
if (Key.isDown(ctrlLEFT)) {
xmove = -1;
}
if (Key.isDown(ctrlRIGHT)) {
xmove = 1;
}
}
if (finish == 1) {
this.rasengan.gotoAndPlay("rasrun");
finish = 6;
}
if (finish == 6) {
this._x = this._x + (finishspeed * xmove);
if (this.hitTest(enemymc)) {
finish = 3;
}
}
if (finish == 3) {
this.rasengan.gotoAndPlay("startras");
finish = 5;
}
if (finish == 5) {
if (this.rasengan._currentFrame == 72) {
finish = 7;
}
}
if (finish == 7) {
if (this.hitTest(enemymc)) {
enemymc.hp = enemymc.hp - 0.5;
enemymc._x = _x + (30 * xmove);
enemymc._y = _y - 30;
enemymc._xscale = _xscale * -1;
}
if (this.rasengan._currentFrame == 92) {
finish = 8;
}
}
if (finish == 8) {
_root.NarutoHolding._y = 900;
enemymc.hp = enemymc.hp - 7;
enemymc.hurtspeed = 10 * xmove;
enemymc.fallspeed = -10;
finish = -1;
}
if (enemymc.defend == 1) {
defensedmg = 3;
} else {
defensedmg = 1;
}
if (((attacking == 1) && (this.combo.hitBoxCombo.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.45 / defensedmg);
enemymc.hurtspeed = 2 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 4;
if (sp <= 99.7) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.combo.hitBoxSpaz.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.6 / defensedmg);
if (enemymc._x < this._x) {
xcontrol = -1;
}
if (enemymc._x > this._x) {
xcontrol = 1;
}
enemymc.hurtspeed = 6 * xcontrol;
enemymc.fallspeed = -4;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 8;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.upattack.hitBoxUp.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.5 / defensedmg);
enemymc.hurtspeed = 4 * (this._xscale / 100);
enemymc.fallspeed = -18;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 15;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.headbutt.hitBoxheadbutt.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.6 / defensedmg);
enemymc.hurtspeed = 9 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 13;
if (sp <= 97.8) {
sp = sp + 2.2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.downair.hitBoxSpike.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.8 / defensedmg);
enemymc.hurtspeed = 3 * (this._xscale / 100);
enemymc.fallspeed = 22;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.fall = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 20;
if (sp <= 97) {
sp = sp + 3;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxAir.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.2 / defensedmg);
enemymc.hurtspeed = 2 * (this._xscale / 100);
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 4;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxDownAir.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.5 / defensedmg);
enemymc.hurtspeed = 6 * (this._xscale / 100);
enemymc.fallspeed = 15;
enemymc._xscale = _xscale * -1;
enemymc.hurt = 1;
enemymc.fall = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 10;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.runattack.hitBoxRun.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - (0.5 / defensedmg);
enemymc.hurtspeed = 6 * (this._xscale / 100);
enemymc.hurt = 1;
enemymc.hurtGround = -1;
enemymc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - enemymc.hp))) * 5;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
}
}
if (select == 2) {
if ((hurtspeed > 0) && (fallspeed == 0)) {
hurtspeed--;
}
if ((hurtspeed < 0) && (fallspeed == 0)) {
hurtspeed++;
}
this._x = this._x + hurtspeed;
if (_root.RockLee.select == 1) {
playermc = _root.RockLee;
}
if (_root.Kyubi.select == 1) {
playermc = _root.Kyubi;
}
if (_root.Neji.select == 1) {
playermc = _root.Neji;
}
_root.Icons2.gotoAndStop("Naruto");
if (cp <= 0) {
chakradelay = 300;
}
if (chakradelay > 0) {
chakradelay--;
}
if ((chakradelay > 290) && (Key.isDown(ctrlSpec))) {
hp = hp - 0.5;
}
if (cp < 100) {
cp = cp + 0.1;
}
_root.hp2._x = _root.righthp._x - _root.righthp._width;
_root.hp2._xscale = hp;
_root.cp2._x = _root.righthp._x - _root.righthp._width;
_root.cp2._xscale = cp;
_root.sp2._x = _root.righthp._x - _root.righthp._width;
_root.sp2._xscale = sp;
if ((sp >= 65) && (playermc.Name != "Kyubi")) {
trans = 1;
_root.spglowtrans2._visible = true;
_root.spglowtrans2._alpha = sp;
} else {
_root.spglowtrans2._visible = false;
trans = -1;
}
if (sp < 100) {
sp = sp + 0.001;
}
if (sp >= 100) {
sp = 100;
_root.spglow2._visible = true;
_root.spglow2._alpha = 75;
}
if (sp != 100) {
_root.spglow2._visible = false;
}
if (hp <= 0) {
_root.gotoAndStop("gotochar");
}
if (((((((((transforming == -1) && (trans == 1)) && (this._y > (_root.ground1._y - 30))) && (attacking == -1)) && (Key.isDown(ctrlUP))) && (Key.isDown(ctrlSpec))) && (!Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("transform");
dodging = 1;
sp = sp - 65;
this._y = _root.ground1._y;
fallspeed = 0;
_root.Kunlock = "yes";
transforming = 1;
_root.spglowtrans1._visible = false;
_root.Kyubi.ctrlUP = ctrlUP;
_root.Kyubi.ctrlDOWN = ctrlDOWN;
_root.Kyubi.ctrlLEFT = ctrlLEFT;
_root.Kyubi.ctrlRIGHT = ctrlRIGHT;
_root.Kyubi.ctrlNorm = ctrlNorm;
_root.Kyubi.ctrlSpec = ctrlSpec;
_root.Kyubi.ctrlGuard = ctrlGuard;
}
if (transforming == -1) {
if ((((((hurt == -1) && (fall == -1)) && (attacking == -1)) && (Key.isDown(ctrlDOWN))) && (!Key.isDown(ctrlLEFT))) && (!Key.isDown(ctrlRIGHT))) {
this.gotoAndStop("crouch");
crouchdelay = 16;
}
if (((!this.hitTest(_root.ground1)) or (!this.hitTest(_root.ground2))) or (!this.hitTest(_root.ground3))) {
if (teledelay <= 0) {
fallspeed++;
}
fall = 1;
}
if ((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) {
if ((airattack == 1) && (fall == 1)) {
attacking = -1;
airattack = -1;
attackdelay = 0;
}
fallspeed = 0;
fall = -1;
this._y = _root.ground1._y;
}
if (walkdelay > 0) {
walkdelay--;
}
if (startrun > 0) {
startrun--;
}
if (crouchdelay > 0) {
crouchdelay--;
}
if ((((((hurt == -1) && (!Key.isDown(ctrlRIGHT))) && (!Key.isDown(ctrlLEFT))) && (fall == -1)) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) {
if (crouchdelay == 0) {
this.gotoAndStop("stand");
} else {
if (crouchdelay > 4) {
crouchdelay = 4;
}
this.crouch.gotoAndStop(13);
}
rundelay = 10;
if (startrun > 0) {
walkdelay = 5;
}
}
if ((((hurt == -1) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && (attacking == -1)) && (!(Key.isDown(ctrlRIGHT) && (Key.isDown(ctrlLEFT))))) {
if (fall == -1) {
startrun = 3;
if ((walkdelay <= 5) && (walkdelay > 0)) {
this.gotoAndStop("run");
rundelay--;
running = 1;
walkdelay = 3;
startrun = 0;
}
if (walkdelay == 0) {
running = -1;
this.gotoAndStop("walk");
}
}
}
if (((hurt == -1) && (Key.isDown(ctrlRIGHT))) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x + speed;
}
if (running == -1) {
this._x = this._x + walkspeed;
}
if (hurt == -1) {
this._xscale = 100;
}
}
}
if (((hurt == -1) && (Key.isDown(ctrlLEFT))) && (rolling == -1)) {
if ((fall == -1) && (attacking == 1)) {
} else {
if (running == 1) {
this._x = this._x - speed;
}
if (running == -1) {
this._x = this._x - walkspeed;
}
if (hurt == -1) {
this._xscale = -100;
}
}
}
if (((((hurt == -1) && (Key.isDown(ctrlLEFT))) && (Key.isDown(ctrlRIGHT))) && (attacking == -1)) && (fall == -1)) {
this.gotoAndStop("stand");
walkdelay = 0;
rundelay = 0;
running = -1;
startrun = 0;
}
if ((((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlUP))) && (attacking == -1)) && (!Key.isDown(ctrlDOWN))) && (jumpcancel == -1)) {
this.gotoAndStop("jump");
if (delay <= 0) {
this._y = this._y - 5;
fallspeed = -13;
fall = 1;
jumpcancel = 1;
}
}
if ((!Key.isDown(ctrlUP)) && (fall == -1)) {
jumpcancel = -1;
}
if (((fallspeed > 0) && (fall == 1)) && (attacking == -1)) {
this.gotoAndStop("fall");
}
if (rolling == 1) {
this._x = this._x + (((speed + 4) * (_xscale / 100)) * -1);
}
if ((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlGuard))) && (attackdelay <= 1)) {
if (rolling == -1) {
this.gotoAndStop("guard");
attackdelay = 1;
}
attacking = 1;
blockdelay = 5;
if (((this._xscale < 0) && (Key.isDown(ctrlRIGHT))) && (rolling == -1)) {
this.gotoAndStop("retreat");
rolling = 1;
attackdelay = 5;
dodging = 1;
}
if (((this._xscale > 0) && (Key.isDown(ctrlLEFT))) && (rolling == -1)) {
this.gotoAndStop("retreat");
rolling = 1;
attackdelay = 5;
dodging = 1;
}
} else {
blockdelay--;
}
if (!Key.isDown(ctrlNorm)) {
attackcancel = -1;
}
if (attackdelay == 0) {
finish = -1;
cloning = -1;
_root.bgpink._visible = false;
attacking = -1;
rolling = -1;
heart = -1;
rotatePalm = -1;
dodging = -1;
} else {
attackdelay--;
}
if (((((((hurt == -1) && (Key.isDown(ctrlRIGHT) || (Key.isDown(ctrlLEFT)))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 8;
attacking = 1;
this.gotoAndStop("headbutt");
attackcancel = 1;
}
if (((((((hurt == -1) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (!Key.isDown(ctrlDOWN))) && (rundelay > 0)) && (attackcancel == -1)) {
attackdelay = 27;
attacking = 1;
this.gotoAndStop("combo");
attackcancel = 1;
}
if ((((((hurt == -1) && (Key.isDown(ctrlDOWN))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == -1)) && (attackcancel == -1)) {
attackdelay = 9;
attacking = 1;
crouchdelay = 0;
this.gotoAndStop("upattack");
attackcancel = 1;
}
if (((((((hurt == -1) && (Key.isDown(ctrlNorm))) && (!Key.isDown(ctrlUP))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlDOWN))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 16;
this.gotoAndStop("aircombo");
airattack = 1;
attackcancel = 1;
}
if (((((((hurt == -1) && (Key.isDown(ctrlDOWN))) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (fall == 1)) && (!Key.isDown(ctrlUP))) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 14;
this.gotoAndStop("downair");
this.flip.gotoAndPlay(1);
airattack = 1;
attackcancel = 1;
}
if ((((((hurt == -1) && (Key.isDown(ctrlNorm))) && (attacking == -1)) && (rundelay <= 0)) && (fall == -1)) && (attackcancel == -1)) {
attacking = 1;
attackdelay = 8;
this.gotoAndStop("runattack");
attackcancel = 1;
rundelay = 5;
running = -1;
}
if (((((((((hurt == -1) && (attacking == -1)) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
attackdelay = 54;
attacking = 1;
this.gotoAndStop("sexy");
cp = cp - 40;
_root.bgpink._visible = true;
heart = 1;
}
if ((hurt == -1) && (heart == 1)) {
if (attackdelay == 46) {
mc = _root.heart.duplicateMovieClip("heart" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y - ((_height / 3) * 2);
}
if (attackdelay == 37) {
mc = _root.heart.duplicateMovieClip("heart" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y - ((_height / 4) * 3);
}
if (attackdelay == 35) {
mc = _root.heart.duplicateMovieClip("heart" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y - ((_height / 4) * 2);
}
}
if ((((((((((hurt == -1) && (!Key.isDown(ctrlUP))) && (attacking == -1)) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (!Key.isDown(ctrlDOWN))) && ((!Key.isDown(ctrlRIGHT)) && (!Key.isDown(ctrlLEFT)))) && (attacking == -1)) && (blockdelay <= 0)) && (chakradelay == 0)) {
cp = cp / 2;
attacking = 1;
attackdelay = 46;
cloning = 1;
this.gotoAndStop("clone");
}
if ((hurt == -1) && (cloning == 1)) {
if (attackdelay == 25) {
clonemc = _root.NarutoClone.duplicateMovieClip("clone" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
clonemc._x = _x + (20 * (_xscale / 100));
clonemc._y = _y;
clonemc._xscale = _xscale;
clonemc.activ = 1;
}
}
if (((((((((hurt == -1) && (fall == -1)) && (Key.isDown(ctrlSpec))) && (Key.isDown(ctrlRIGHT) or Key.isDown(ctrlLEFT))) && ((finish == 1) or (attacking == -1))) && (!Key.isDown(ctrlDOWN))) && (blockdelay <= 0)) && (chakradelay == 0)) && (sp == 100)) {
_root.NarutoHolding.broke = -1;
this.gotoAndStop("rasengan");
if (enemymc.fall == -1) {
_root.NarutoHolding._x = playermc._x;
_root.NarutoHolding.xcontrol = 0;
_root.NarutoHolding._y = playermc._y;
}
attackdelay = 99999 /* 0x01869F */;
finish = 1;
attacking = 1;
cp = 1;
sp = 0;
if (Key.isDown(ctrlLEFT)) {
xmove = -1;
}
if (Key.isDown(ctrlRIGHT)) {
xmove = 1;
}
}
if (finish == 1) {
this.rasengan.gotoAndPlay("rasrun");
finish = 6;
}
if (finish == 6) {
this._x = this._x + (finishspeed * xmove);
if (this.hitTest(playermc)) {
finish = 3;
}
}
if (finish == 3) {
this.rasengan.gotoAndPlay("startras");
finish = 5;
}
if (finish == 5) {
if ((this.rasengan._currentFrame == 72) && (_root.NarutoHolding.broke == -1)) {
finish = 7;
}
}
if (finish == 7) {
if (this.hitTest(playermc)) {
playermc.hp = playermc.hp - 0.5;
playermc._x = _x + (30 * xmove);
playermc._y = _y - 30;
playermc._xscale = _xscale * -1;
}
if (this.rasengan._currentFrame == 92) {
finish = 8;
}
}
if (finish == 8) {
playermc.hp = playermc.hp - 10;
playermc.hurtspeed = 10 * xmove;
playermc.fallspeed = -10;
}
if (playermc.defend == 1) {
defensedmg = 3;
} else {
defensedmg = 1;
}
if (((attacking == 1) && (this.combo.hitBoxCombo.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.45 / defensedmg);
playermc.hurtspeed = 2 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 4;
if (sp <= 99.7) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.combo.hitBoxSpaz.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.6 / defensedmg);
if (playermc._x < this._x) {
xcontrol = -1;
}
if (playermc._x > this._x) {
xcontrol = 1;
}
playermc.hurtspeed = 6 * xcontrol;
playermc.fallspeed = -4;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 8;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.upattack.hitBoxUp.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.5 / defensedmg);
playermc.hurtspeed = 4 * (this._xscale / 100);
playermc.fallspeed = -18;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 15;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.headbutt.hitBoxheadbutt.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.6 / defensedmg);
playermc.hurtspeed = 9 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 13;
if (sp <= 97.8) {
sp = sp + 2.2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.downair.hitBoxSpike.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.8 / defensedmg);
playermc.hurtspeed = 3 * (this._xscale / 100);
playermc.fallspeed = 22;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.fall = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 20;
if (sp <= 97) {
sp = sp + 3;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxAir.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.2 / defensedmg);
playermc.hurtspeed = 2 * (this._xscale / 100);
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 4;
if (sp <= 99.5) {
sp = sp + 0.5;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.aircombo.hitBoxDownAir.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.5 / defensedmg);
playermc.hurtspeed = 6 * (this._xscale / 100);
playermc.fallspeed = 15;
playermc._xscale = _xscale * -1;
playermc.hurt = 1;
playermc.fall = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 10;
if (sp <= 98) {
sp = sp + 2;
} else {
sp = 100;
}
}
if (((attacking == 1) && (this.runattack.hitBoxRun.hitTest(playermc))) && (playermc.dodging == -1)) {
playermc.hp = playermc.hp - (0.5 / defensedmg);
playermc.hurtspeed = 6 * (this._xscale / 100);
playermc.hurt = 1;
playermc.hurtGround = -1;
playermc.hurtDelay = Math.round(Math.sqrt(Math.sqrt(100 - playermc.hp))) * 5;
if (sp <= 99) {
sp = sp + 1;
} else {
sp = 100;
}
}
}
}
if ((select != 1) && (select != 2)) {
this.removeMovieClip();
}
}
Instance of Symbol 1192 MovieClip "heart" in Frame 7
onClipEvent (load) {
var damage;
damage = 2;
var xmove;
this._xscale = _root.Naruto._xscale * xcontrol;
if (_root.Naruto._xscale == 100) {
xmove = 1;
}
if (_root.Naruto._xscale == -100) {
xmove = -1;
}
this._xscale = _root.Naruto._xscale;
var reverse = -1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.leftwall) or this.hitTest(_root.rightwall)) {
this.removeMovieClip();
}
if (this.hitTest(_root.Neji) && (_root.Neji.rotatePalm == 1)) {
xmove = xmove * -1;
reverse = 1;
if (_xscale == 100) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if ((this.hitTest(_root.Neji) && (reverse == -1)) && (_root.Neji.rotatePalm == -1)) {
_root.Neji.hp = _root.Neji.hp - damage;
this.removeMovieClip();
}
if (this.hitTest(_root.Kyubi) && (reverse == -1)) {
_root.Kyubi.hp = _root.Kyubi.hp - damage;
this.removeMovieClip();
}
if (this.hitTest(_root.RockLee) && (reverse == -1)) {
_root.RockLee.hp = _root.RockLee.hp - damage;
this.removeMovieClip();
}
if (this.hitTest(_root.Naruto) && (reverse == 1)) {
_root.Naruto.hp = _root.Naruto.hp - (damage - 0.5);
this.removeMovieClip();
}
this._x = this._x + (13 * xmove);
}
Instance of Symbol 1190 MovieClip "NarutoClone" in Frame 7
onClipEvent (load) {
var hp = _root.Naruto.cp;
var cp = 100;
var runspeed = (_root.Naruto.speed - 0.5);
var walkspeed = (_root.Naruto.walkspeed - 0.5);
var enemymc;
var attacking = -1;
var fall = -1;
var fallspeed;
var delay = 0;
var speed;
var randnum;
var activ = 1;
var attackpossible = -1;
var randAttack;
var running = -1;
var heart = -1;
var mc = _root.cloneheart;
var clonernd;
var cloning = -1;
var attackdelay;
var attacking;
var xcontrol;
var hurtspeed = 0;
}
onClipEvent (enterFrame) {
if ((_root.Naruto.select != 1) && (_root.Naruto.select != 2)) {
this.removeMovieClip();
}
if (this.hitTest(_root.leftwall) or this.hitTest(_root.rightwall)) {
explodemc = _root.explosion.duplicateMovieClip(_root.getNextHighestDepth() + "boom", _root.getNextHighestDepth());
explodemc._y = this._y - (this._height / 2);
if (this.hitTest(_root.leftwall)) {
explodemc._x = _root.leftwall._x + 40;
explodemc._rotation = 90;
}
if (this.hitTest(_root.rightwall)) {
explodemc._x = _root.rightwall._x - 40;
explodemc._rotation = -90;
}
hp = hp - 20;
this._x = 275;
attackdelay = 0;
hurtspeed = 0;
}
this._x = this._x + hurtspeed;
if ((hurtspeed > 0) && (fall == -1)) {
hurtspeed--;
}
if ((hurtspeed < 0) && (fall == -1)) {
hurtspeed++;
}
if (this.hitTest(_root.freeze)) {
activ = -1;
} else {
activ = 1;
}
if (_root.Naruto.select == 1) {
enemymc = _root.Naruto.enemymc;
}
if (_root.Naruto.select == 2) {
enemymc = _root.Naruto.playermc;
}
if (this.hitTest(enemymc)) {
if (_root.Naruto.select == 1) {
_root.Naruto.enemymc.playermc = this;
}
if (_root.Naruto.select == 2) {
_root.Naruto.playermc.enemymc = this;
}
} else {
if (_root.Naruto.select == 1) {
_root.Naruto.enemymc.playermc = _root.Naruto;
}
if (_root.Naruto.select == 2) {
_root.Naruto.playermc.enemymc = _root.Naruto;
}
}
if (activ == 1) {
delay--;
if (delay < 0) {
delay = 30;
}
this._y = this._y + fallspeed;
if (((!this.hitTest(_root.ground1)) && (!this.hitTest(_root.ground2))) && (!this.hitTest(_root.ground3))) {
fall = 1;
fallspeed++;
}
if (((this.hitTest(_root.ground1) or this.hitTest(_root.ground2)) or this.hitTest(_root.ground3)) && (fall == 1)) {
attacking = -1;
attackdelay = 0;
this.gotoAndStop("stand");
fall = -1;
fallspeed = 0;
}
if (((enemymc._y < (_y - 15)) && (fall == -1)) && (attacking == -1)) {
fallspeed = -15;
fall = 1;
this.gotoAndStop("jump");
}
if (((fallspeed == -3) && (fall == 1)) && (attacking == -1)) {
this.gotoAndStop("fall");
}
if (delay == 30) {
randnum = Math.round((Math.random() * 3) + 1);
if (randnum == 1) {
speed = walkspeed;
} else {
speed = runspeed;
}
}
if (((_x < enemymc._x) && (attacking == -1)) && (_x < (enemymc._x - 10))) {
this._x = this._x + speed;
this._xscale = 100;
if (fall == -1) {
if (randnum == 1) {
this.gotoAndStop("walk");
running = -1;
} else {
this.gotoAndStop("run");
running = 1;
}
}
}
if (((_x > enemymc._x) && (attacking == -1)) && (_x > (enemymc._x + 10))) {
this._x = this._x - speed;
this._xscale = -100;
if (fall == -1) {
if (randnum == 1) {
this.gotoAndStop("walk");
running = -1;
} else {
this.gotoAndStop("run");
running = 1;
}
}
}
if (attackdelay >= 0) {
attackdelay--;
}
if (attackdelay <= 0) {
attacking = -1;
heart = -1;
cloning = -1;
attackpossible = -1;
}
if ((_x > (enemymc._x - 30)) && (_x < (enemymc._x + 30))) {
attackpossible = 1;
if (attacking == -1) {
this.gotoAndStop("stand");
}
} else {
attackpossible = -1;
}
if ((_x > (enemymc._x - 5)) && (_x < (enemymc._x + 5))) {
running = -1;
}
if ((attackpossible == 1) && (delay == 3)) {
randAttack = Math.round((Math.random() * 3) + 1);
if (fall == -1) {
if ((randAttack == 4) && (running == 1)) {
attacking = 1;
attackdelay = 8;
this.gotoAndStop("runattack");
running = -1;
} else if (randAttack == 4) {
randAttack = 1;
}
if (randAttack == 1) {
this.gotoAndStop("combo");
attacking = 1;
attackdelay = 27;
}
if (randAttack == 2) {
this.gotoAndStop("headbutt");
attacking = 1;
attackdelay = 8;
}
if (randAttack == 3) {
attackdelay = 9;
attacking = 1;
this.gotoAndStop("upattack");
}
}
if (fall == 1) {
if (randAttack == 3) {
randAttack = 1;
}
if (randAttack == 4) {
randAttack = 2;
}
if (randAttack == 1) {
attacking = 1;
attackdelay = 16;
this.gotoAndStop("aircombo");
}
if (randAttack == 2) {
attacking = 1;
attackdelay = 14;
this.gotoAndStop("downair");
}
}
}
if ((((_x < (enemymc._x - 210)) or (_x > (enemymc._x + 210))) && (cp >= 40)) && (attacking == -1)) {
attacking = 1;
attackdelay = 54;
this.gotoAndStop("sexy");
cp = cp - 40;
_root.bgpink._visible = true;
heart = 1;
}
if (heart == 1) {
if (attackdelay == 46) {
mc = _root.cloneheart.duplicateMovieClip("heartc" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y - ((_height / 3) * 2);
}
if (attackdelay == 37) {
mc = _root.cloneheart.duplicateMovieClip("heartc" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y - ((_height / 4) * 3);
}
if (attackdelay == 35) {
mc = _root.cloneheart.duplicateMovieClip("heartc" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y - ((_height / 4) * 2);
heart = -1;
}
}
clonernd = Math.round(Math.random() * 99999);
if (clonernd == 1) {
cp = cp / 2;
clonemc.activ = 1;
attacking = 1;
attackdelay = 46;
cloning = 1;
this.gotoAndStop("clone");
}
if (cloning == 1) {
if (attackdelay == 25) {
clonemc = _root.NarutoClone.duplicateMovieClip("clone" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
clonemc._x = _x + (20 * (_xscale / 100));
clonemc._y = _y;
clonemc._xscale = _xscale;
clonemc.hp = 5;
}
}
if (((attacking == 1) && (this.combo.hitBoxCombo.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - 0.45;
enemymc.hurtspeed = 2 * (this._xscale / 100);
}
if (((attacking == 1) && (this.combo.hitBoxSpaz.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - 0.6;
if (enemymc._x < this._x) {
xcontrol = -1;
}
if (enemymc._x > this._x) {
xcontrol = 1;
}
enemymc.hurtspeed = 6 * xcontrol;
enemymc.fallspeed = -2;
}
if (((attacking == 1) && (this.upattack.hitBoxUp.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - 0.5;
enemymc.hurtspeed = 4 * (this._xscale / 100);
enemymc.fallspeed = -10;
}
if (((attacking == 1) && (this.headbutt.hitBoxheadbutt.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - 0.6;
enemymc.hurtspeed = 9 * (this._xscale / 100);
}
if (((attacking == 1) && (this.downair.hitBoxSpike.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - 0.8;
enemymc.hurtspeed = 3 * (this._xscale / 100);
enemymc.fallspeed = 22;
}
if (((attacking == 1) && (this.aircombo.hitBoxAir.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - 0.2;
enemymc.hurtspeed = 2 * (this._xscale / 100);
}
if (((attacking == 1) && (this.aircombo.hitBoxDownAir.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - 0.5;
enemymc.hurtspeed = 6 * (this._xscale / 100);
enemymc.fallspeed = 15;
}
if (((attacking == 1) && (this.runattack.hitBoxRun.hitTest(enemymc))) && (enemymc.dodging == -1)) {
enemymc.hp = enemymc.hp - 0.5;
enemymc.hurtspeed = 6 * (this._xscale / 100);
}
if (this.hitTest(enemymc) && (enemymc.attacking == 1)) {
hp = hp - 0.5;
if (_x > enemymc._x) {
hurtspeed = 7.5;
}
if (_x < enemymc._x) {
hurtspeed = -7.5;
}
}
if (hp <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1192 MovieClip "cloneheart" in Frame 7
onClipEvent (load) {
var damage;
damage = 0.5;
var xmove;
this._xscale = _root.Naruto._xscale * xcontrol;
if (_root.Naruto._xscale == 100) {
xmove = 1;
}
if (_root.Naruto._xscale == -100) {
xmove = -1;
}
this._xscale = _root.Naruto._xscale;
var reverse = -1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.leftwall) or this.hitTest(_root.rightwall)) {
this.removeMovieClip();
}
if ((_root.Naruto.select != 1) && (_root.Naruto.select != 2)) {
this.removeMovieClip();
}
if (this.hitTest(_root.Neji) && (_root.Neji.rotatePalm == 1)) {
xmove = xmove * -1;
reverse = 1;
if (_xscale == 100) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if ((this.hitTest(_root.Neji) && (reverse == -1)) && (_root.Neji.rotatePalm == -1)) {
_root.Neji.hp = _root.Neji.hp - damage;
this.removeMovieClip();
}
if ((this.hitTest(_root.Kyubi) && (reverse == -1)) && ((_root.player1 == "Kyubi") or (_root.player2 == "Kyubi"))) {
_root.Kyubi.hp = _root.Kyubi.hp - damage;
this.removeMovieClip();
}
if (this.hitTest(_root.RockLee) && (reverse == -1)) {
_root.RockLee.hp = _root.RockLee.hp - damage;
this.removeMovieClip();
}
if (this.hitTest(_root.Naruto) && (reverse == 1)) {
_root.Naruto.hp = _root.Naruto.hp - (damage - 0.5);
this.removeMovieClip();
}
this._x = this._x + (13 * xmove);
}
Instance of Symbol 1194 MovieClip "freeze" in Frame 7
onClipEvent (enterFrame) {
if ((_root.Naruto.select != 1) && (_root.Naruto.select != 2)) {
this.removeMovieClip();
}
}
Instance of Symbol 1198 MovieClip "spglowtrans1" in Frame 7
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1198 MovieClip "spglowtrans2" in Frame 7
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1201 MovieClip "FlameBlast" in Frame 7
onClipEvent (load) {
var damage;
damage = 4.5;
var xmove;
this._xscale = _root.Kyubi._xscale * xcontrol;
if (_root.Kyubi._xscale == 100) {
xmove = 1;
}
if (_root.Kyubi._xscale == -100) {
xmove = -1;
}
this._xscale = _root.Kyubi._xscale;
var reverse = -1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.leftwall) or this.hitTest(_root.rightwall)) {
this.removeMovieClip();
}
if ((((_root.Naruto.select != 1) && (_root.Naruto.select != 2)) && (_root.Kyubi.select != 1)) && (_root.Kyubi.select != 2)) {
this.removeMovieClip();
}
if (this.hitTest(_root.Neji) && (_root.Neji.rotatePalm == 1)) {
xmove = xmove * -1;
reverse = 1;
if (_xscale == 100) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if ((this.hitTest(_root.Neji) && (reverse == -1)) && (_root.Neji.rotatePalm == -1)) {
_root.Neji.hp = _root.Neji.hp - damage;
_root.Neji.hurtspeed = _root.Neji.hurtspeed + (5 * xmove);
this.removeMovieClip();
}
if (this.hitTest(_root.Naruto) && (reverse == -1)) {
_root.Naruto.hp = _root.Naruto.hp - damage;
_root.Naruto.hurtspeed = _root.Naruto.hurtspeed + (5 * xmove);
this.removeMovieClip();
}
if (this.hitTest(_root.RockLee) && (reverse == -1)) {
_root.RockLee.hp = _root.RockLee.hp - damage;
_root.RockLee.hurtspeed = _root.RockLee.hurtspeed + (5 * xmove);
this.removeMovieClip();
}
if (this.hitTest(_root.Kyubi) && (reverse == 1)) {
_root.Kyubi.hp = _root.Kyubi.hp - (damage - 0.5);
_root.Kyubi.hurtspeed = _root.Kyubi.hurtspeed + (5 * xmove);
this.removeMovieClip();
}
this._x = this._x + (20 * xmove);
}
Frame 8
gotoAndStop (3);
Frame 9
gotoAndStop (6);
Symbol 27 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 32 Button
on (release) {
_root.play();
}
Symbol 33 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 33 MovieClip Frame 2
gotoAndPlay (1);
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 27
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 17
stop();
Symbol 73 MovieClip Frame 22
gotoAndStop (1);
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 17
stop();
Symbol 77 MovieClip Frame 22
gotoAndStop (1);
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 17
stop();
Symbol 81 MovieClip Frame 22
gotoAndStop (1);
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 17
stop();
Symbol 126 MovieClip Frame 22
gotoAndStop (1);
Symbol 126 MovieClip Frame 60
_root.lowq._visible = true;
_root.medq._visible = true;
_root.highq._visible = true;
_root.ControlMenu._visible = true;
stop();
Symbol 136 Button
on (release) {
_root.play();
}
on (rollOver) {
_root.opbut.gotoAndStop(60);
}
on (rollOut) {
_root.opbut.gotoAndStop(60);
}
Symbol 202 MovieClip Frame 40
gotoAndPlay (33);
Symbol 220 MovieClip Frame 26
gotoAndPlay (21);
Symbol 227 Button
on (press) {
var savefile = SharedObject.getLocal("NarutoBattles");
if (savefile.data.Kunlocked == undefined) {
_root.Kunlock = "no";
} else {
_root.Kunlock = savefile.data.Kunlocked;
}
}
Symbol 229 Button
on (press) {
savefile.data.Kunlocked = _root.Kunlock;
savefile.flush();
}
Symbol 249 MovieClip Frame 30
gotoAndPlay (18);
Symbol 253 Button
on (release) {
_root.charselect.charselection = 1;
}
Symbol 255 Button
on (release) {
_root.charselect.charselection = 2;
}
Symbol 267 MovieClip Frame 25
gotoAndPlay (16);
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
stop();
Symbol 285 MovieClip Frame 3
stop();
Symbol 285 MovieClip Frame 4
stop();
Symbol 285 MovieClip Frame 5
stop();
Instance of Symbol 289 MovieClip "bar" in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = -13.4;
_xscale = (Math.abs(_root.NarutoHolding.xcontrol) * 3);
}
Instance of Symbol 291 MovieClip "aleft" in Symbol 294 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 293 MovieClip "aright" in Symbol 294 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 327 MovieClip Frame 12
stop();
Symbol 330 MovieClip Frame 10
gotoAndPlay (5);
Symbol 336 MovieClip Frame 4
stop();
Symbol 379 MovieClip Frame 20
gotoAndPlay (11);
Symbol 397 MovieClip Frame 20
gotoAndPlay (11);
Symbol 418 MovieClip Frame 28
gotoAndPlay (9);
Instance of Symbol 475 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 70;
}
Instance of Symbol 476 MovieClip in Symbol 477 MovieClip Frame 4
onClipEvent (load) {
this._alpha = 70;
}
Symbol 501 MovieClip Frame 20
gotoAndPlay (10);
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
stop();
Symbol 509 MovieClip Frame 10
stop();
Symbol 509 MovieClip Frame 14
_root.Neji.hurtGround = -1;
_root.Neji.hurtSpeed = 0;
Symbol 515 MovieClip Frame 5
_root.Neji.hurtGround = -1;
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 2
stop();
Symbol 516 MovieClip Frame 3
stop();
Symbol 516 MovieClip Frame 4
stop();
Symbol 516 MovieClip Frame 5
stop();
Symbol 516 MovieClip Frame 6
stop();
Symbol 516 MovieClip Frame 7
stop();
Symbol 516 MovieClip Frame 8
stop();
Symbol 516 MovieClip Frame 9
stop();
Symbol 516 MovieClip Frame 10
stop();
Symbol 516 MovieClip Frame 11
stop();
Symbol 516 MovieClip Frame 12
stop();
Symbol 516 MovieClip Frame 13
stop();
Symbol 516 MovieClip Frame 14
stop();
Symbol 516 MovieClip Frame 15
stop();
Symbol 516 MovieClip Frame 16
stop();
Symbol 516 MovieClip Frame 17
stop();
Symbol 516 MovieClip Frame 18
stop();
Symbol 516 MovieClip Frame 19
stop();
Symbol 516 MovieClip Frame 20
stop();
Symbol 541 MovieClip Frame 8
gotoAndPlay (3);
Symbol 551 MovieClip Frame 12
gotoAndPlay (5);
Symbol 551 MovieClip Frame 13
stop();
Symbol 603 MovieClip Frame 26
gotoAndPlay (21);
Symbol 663 MovieClip Frame 14
gotoAndPlay (3);
Symbol 663 MovieClip Frame 26
gotoAndPlay (15);
Symbol 663 MovieClip Frame 49
gotoAndPlay (44);
Symbol 686 MovieClip Frame 1
stop();
Symbol 686 MovieClip Frame 2
stop();
Symbol 694 MovieClip Frame 8
stop();
Symbol 694 MovieClip Frame 12
_root.Naruto.hurtGround = -1;
_root.Naruto.hurtSpeed = 0;
Symbol 700 MovieClip Frame 5
_root.Kyubi.hurtGround = -1;
_root.Kyubi.hurtSpeed = 0;
Symbol 701 MovieClip Frame 1
stop();
Symbol 701 MovieClip Frame 2
stop();
Symbol 701 MovieClip Frame 3
stop();
Symbol 701 MovieClip Frame 4
stop();
Symbol 701 MovieClip Frame 5
stop();
Symbol 701 MovieClip Frame 6
stop();
Symbol 701 MovieClip Frame 7
stop();
Symbol 701 MovieClip Frame 8
stop();
Symbol 701 MovieClip Frame 9
stop();
Symbol 701 MovieClip Frame 10
stop();
Symbol 701 MovieClip Frame 11
stop();
Symbol 701 MovieClip Frame 12
stop();
Symbol 701 MovieClip Frame 13
stop();
Symbol 701 MovieClip Frame 14
stop();
Symbol 701 MovieClip Frame 15
stop();
Symbol 701 MovieClip Frame 16
stop();
Symbol 701 MovieClip Frame 17
stop();
Symbol 701 MovieClip Frame 18
stop();
Symbol 701 MovieClip Frame 19
stop();
Symbol 701 MovieClip Frame 20
stop();
Symbol 701 MovieClip Frame 21
stop();
Symbol 730 MovieClip Frame 9
stop();
Symbol 731 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 2
stop();
Symbol 731 MovieClip Frame 3
stop();
Symbol 731 MovieClip Frame 4
stop();
Symbol 787 MovieClip Frame 7
stop();
Symbol 806 MovieClip Frame 7
gotoAndPlay (4);
Symbol 972 MovieClip Frame 9
stop();
Symbol 972 MovieClip Frame 13
_root.RockLee.hurtGround = -1;
_root.RockLee.hurtSpeed = 0;
Symbol 975 MovieClip Frame 1
stop();
Symbol 975 MovieClip Frame 2
stop();
Symbol 980 MovieClip Frame 5
_root.Naruto.hurtGround = -1;
_root.Naruto.hurtSpeed = 0;
Symbol 981 MovieClip Frame 1
stop();
Symbol 981 MovieClip Frame 2
stop();
Symbol 981 MovieClip Frame 3
stop();
Symbol 981 MovieClip Frame 4
stop();
Symbol 981 MovieClip Frame 5
stop();
Symbol 981 MovieClip Frame 6
stop();
Symbol 981 MovieClip Frame 7
stop();
Symbol 981 MovieClip Frame 8
stop();
Symbol 981 MovieClip Frame 9
stop();
Symbol 981 MovieClip Frame 10
stop();
Symbol 981 MovieClip Frame 11
stop();
Symbol 981 MovieClip Frame 12
stop();
Symbol 981 MovieClip Frame 13
stop();
Symbol 981 MovieClip Frame 14
stop();
Symbol 981 MovieClip Frame 15
stop();
Symbol 981 MovieClip Frame 16
stop();
Symbol 981 MovieClip Frame 17
stop();
Symbol 981 MovieClip Frame 18
stop();
Symbol 981 MovieClip Frame 19
stop();
Symbol 981 MovieClip Frame 20
stop();
Symbol 1000 MovieClip Frame 8
gotoAndPlay (5);
Symbol 1005 MovieClip Frame 1
stop();
Symbol 1008 MovieClip Frame 5
stop();
Symbol 1122 MovieClip Frame 125
_root.Naruto._y = 800;
_root.Kyubi.select = _root.Naruto.select;
_root.Naruto.select = -1;
_root.Kyubi._y = _root.ground1._y;
_root.Kyubi._x = _root.Naruto._x;
_root.Kyubi.hp = _root.Naruto.hp + 10;
_root.Kyubi.cp = _root.Naruto.cp;
_root.Kyubi.sp = _root.Naruto.sp;
if (_root.player1 == "Naruto") {
_root.Kyubi.select = 1;
}
if (_root.player2 == "Naruto") {
_root.Kyubi.select = 2;
}
Symbol 1122 MovieClip Frame 126
stop();
Symbol 1175 MovieClip Frame 17
gotoAndPlay ("rasrun");
Symbol 1175 MovieClip Frame 99
_root.Naruto.attackdelay = 1;
Symbol 1178 MovieClip Frame 1
stop();
Symbol 1178 MovieClip Frame 2
stop();
Symbol 1184 MovieClip Frame 8
stop();
Symbol 1184 MovieClip Frame 12
_root.Naruto.hurtGround = -1;
_root.Naruto.hurtSpeed = 0;
Symbol 1189 MovieClip Frame 5
_root.Naruto.hurtGround = -1;
_root.Naruto.hurtSpeed = 0;
Symbol 1190 MovieClip Frame 1
stop();
Symbol 1190 MovieClip Frame 2
stop();
Symbol 1190 MovieClip Frame 3
stop();
Symbol 1190 MovieClip Frame 4
stop();
Symbol 1190 MovieClip Frame 5
stop();
Symbol 1190 MovieClip Frame 6
stop();
Symbol 1190 MovieClip Frame 7
stop();
Symbol 1190 MovieClip Frame 8
stop();
Symbol 1190 MovieClip Frame 9
stop();
Symbol 1190 MovieClip Frame 10
stop();
Symbol 1190 MovieClip Frame 11
stop();
Symbol 1190 MovieClip Frame 12
stop();
Symbol 1190 MovieClip Frame 13
stop();
Symbol 1190 MovieClip Frame 14
stop();
Symbol 1190 MovieClip Frame 15
stop();
Symbol 1190 MovieClip Frame 16
stop();
Symbol 1190 MovieClip Frame 17
stop();
Symbol 1190 MovieClip Frame 18
stop();
Symbol 1190 MovieClip Frame 19
stop();
Symbol 1190 MovieClip Frame 20
stop();
Symbol 1190 MovieClip Frame 21
stop();
Symbol 1190 MovieClip Frame 22
stop();