Combined Code
frame 1 {
stop();
}
movieClip 20 {
}
movieClip 21 {
}
movieClip 23 {
}
movieClip 25 {
}
movieClip 27 {
}
movieClip 28 {
frame 10 {
stop();
}
}
movieClip 29 {
frame 10 {
stop();
}
}
movieClip 30 {
frame 4 {
stop();
}
}
button 31 {
on (release) {
gotoAndPlay(2);
}
}
movieClip 33 {
}
movieClip 35 {
}
movieClip 51 {
frame 10 {
stop();
}
}
movieClip 53 {
frame 10 {
stop();
}
}
button 54 {
on (release) {
_root.gotoAndStop(4);
}
}
movieClip 55 {
frame 19 {
stop();
}
}
movieClip 56 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
eval(bar)._xscale = PercentLoaded;
} else {
gotoAndStop('loaded');
}
}
frame 2 {
gotoAndPlay(1);
}
}
frame 2 {
stop();
}
movieClip 63 {
}
movieClip 65 {
frame 1 {
stop();
}
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 76 {
}
movieClip 79 {
frame 10 {
stop();
}
}
movieClip 80 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 83 {
instance sword of movieClip 65 {
onClipEvent (load) {
frame = 0;
x_time_initial = this._x;
y_time_initial = this._y;
Mouse.hide();
}
onClipEvent (mouseDown) {
onMouseDown = function () {
this.gotoAndStop(2);
slice = true;
};
onMouseUp = function () {
this.gotoAndStop(1);
slice = false;
};
}
onClipEvent (enterFrame) {
interval += 1;
this._x = _root._xmouse;
this._y = _root._ymouse;
y_ball_position = this._y;
x_ball_position = this._x;
}
onClipEvent (enterFrame) {
if (interval == 2) {
y_time_final = y_ball_position;
y_velocity = (y_time_initial - y_time_final) / 6;
y_time_initial = y_ball_position;
x_time_final = x_ball_position;
x_velocity = (x_time_initial - x_time_final) / 6;
x_time_initial = x_ball_position;
_root.total_velocity = x_velocity + y_velocity;
this._rotation = x_velocity + y_velocity * 1.5;
interval = 0;
}
if (this._rotation > 3) {
this._xscale = 100;
}
if (this._rotation < -3) {
this._xscale = -100;
}
}
onClipEvent (enterFrame) {
spawn = random(20);
if (spawn == 1) {
_root.P_game.apple.duplicateMovieClip(['B' + i], i);
++i;
}
if (_root.total_velocity < 0) {
_root.total_velocity *= -1;
}
}
}
instance apple of movieClip 80 {
onClipEvent (load) {
this._y = 0;
this._x = random(500);
speed = random(10) + 1;
hit = false;
this._rotation = 0;
}
onClipEvent (enterFrame) {
this._y += speed;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.P_game.sword) && _root.P_game.sword.slice == true && _root.total_velocity > 15 && hit == false) {
this._rotation = _root.P_game.sword._rotation * 2;
_root.score += Math.round(10 + _root.total_velocity);
this.nextFrame();
s = new Sound();
s.attachSound('hit2');
s.start();
hit = true;
}
if (this._y > 600) {
this.removeMovieClip();
}
}
}
}
movieClip 85 {
frame 1 {
function camControl() {
var v2 = _parent;
var v3 = this;
parentColor.setTransform(camColor.getTransform());
var v1 = sX / v3._width;
var scaleY = sY / v3._height;
v2._x = cX - v3._x * v1;
v2._y = cY - v3._y * scaleY;
v2._xscale = 100 * v1;
v2._yscale = 100 * scaleY;
}
function resetStage() {
var v1 = _parent;
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
v1._xscale = 100;
v1._yscale = 100;
v1._x = 0;
v1._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
frame 4 {
stop();
}
button 87 {
on (release) {
gotoAndStop(5);
}
}
frame 5 {
stop();
}
movieClip 91 {
}
movieClip 93 {
}
movieClip 95 {
}
movieClip 115 {
}
movieClip 118 {
}
movieClip 119 {
}
movieClip 122 {
}
movieClip 126 {
}
movieClip 137 {
}
movieClip 140 {
}
movieClip 143 {
}
movieClip 146 {
}
movieClip 148 {
}
movieClip 150 {
}
movieClip 194 {
}
movieClip 199 {
}
movieClip 200 {
}
movieClip 207 {
}
movieClip 214 {
}
movieClip 218 {
frame 1 {
function camControl() {
var v2 = _parent;
var v3 = this;
parentColor.setTransform(camColor.getTransform());
var v1 = sX / v3._width;
var scaleY = sY / v3._height;
v2._x = cX - v3._x * v1;
v2._y = cY - v3._y * scaleY;
v2._xscale = 100 * v1;
v2._yscale = 100 * scaleY;
}
function resetStage() {
var v1 = _parent;
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
v1._xscale = 100;
v1._yscale = 100;
v1._x = 0;
v1._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
movieClip 227 {
frame 1 {
function camControl() {
var v2 = _parent;
var v3 = this;
parentColor.setTransform(camColor.getTransform());
var v1 = sX / v3._width;
var scaleY = sY / v3._height;
v2._x = cX - v3._x * v1;
v2._y = cY - v3._y * scaleY;
v2._xscale = 100 * v1;
v2._yscale = 100 * scaleY;
}
function resetStage() {
var v1 = _parent;
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
v1._xscale = 100;
v1._yscale = 100;
v1._x = 0;
v1._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
movieClip 329 {
}
movieClip 343 {
frame 109 {
_root.potato == 2;
}
frame 110 {
_root.gotoAndPlay(275);
}
frame 111 {
_root.gotoAndPlay(275);
}
frame 112 {
_root.gotoAndPlay(275);
}
}
movieClip 411 {
}
movieClip 412 {
instance of movieClip 411 {
onClipEvent (enterFrame) {
this._x -= 0.2;
}
}
}
movieClip 414 {
}
movieClip 420 {
}
movieClip 479 {
}
movieClip 660 {
}
movieClip 663 {
}
movieClip 677 {
}
movieClip 683 {
}
movieClip 693 {
}
movieClip 703 {
}
movieClip 708 {
}
movieClip 709 {
}
movieClip 715 {
}
movieClip 716 {
}
movieClip 728 {
}
movieClip 729 {
}
movieClip 739 {
}
movieClip 783 {
frame 98 {
stop();
}
}
movieClip 789 {
}
movieClip 791 {
}
movieClip 795 {
}
movieClip 797 {
}
movieClip 799 {
}
movieClip 808 {
}
movieClip 809 {
frame 1 {
function camControl() {
var v2 = _parent;
var v3 = this;
parentColor.setTransform(camColor.getTransform());
var v1 = sX / v3._width;
var scaleY = sY / v3._height;
v2._x = cX - v3._x * v1;
v2._y = cY - v3._y * scaleY;
v2._xscale = 100 * v1;
v2._yscale = 100 * scaleY;
}
function resetStage() {
var v1 = _parent;
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
v1._xscale = 100;
v1._yscale = 100;
v1._x = 0;
v1._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
movieClip 822 {
}
movieClip 824 {
}
movieClip 826 {
frame 1516 {
_root.gotoAndPlay(6);
}
}
button 827 {
on (keyPress '<Space>') {
gotoAndPlay(131);
}
}
movieClip 872 {
}
movieClip 874 {
}
button 879 {
on (release) {
gotoAndPlay(5);
}
}
button 885 {
on (release) {
gotoAndPlay(141);
}
}
button 891 {
on (release) {
gotoAndPlay(142);
}
}
button 897 {
on (release) {
gotoAndPlay(132);
}
}
button 903 {
on (release) {
gotoAndPlay(133);
}
}
button 909 {
on (release) {
gotoAndPlay(134);
}
}
button 915 {
on (release) {
gotoAndPlay(139);
}
}
button 921 {
on (release) {
gotoAndPlay(140);
}
}
button 927 {
on (release) {
gotoAndPlay(137);
}
}
button 933 {
on (release) {
gotoAndPlay(138);
}
}
button 939 {
on (release) {
gotoAndPlay(143);
}
}
button 945 {
on (release) {
gotoAndPlay(136);
}
}
movieClip 948 {
}
movieClip 949 {
frame 23 {
stop();
}
}
frame 131 {
stop();
}
frame 132 {
stop();
}
movieClip 958 {
}
movieClip 961 {
}
movieClip 963 {
}
movieClip 965 {
}
movieClip 967 {
}
movieClip 973 {
}
movieClip 977 {
}
movieClip 981 {
}
movieClip 988 {
}
movieClip 1069 {
}
movieClip 1077 {
}
movieClip 1123 {
}
movieClip 1124 {
}
movieClip 1126 {
}
movieClip 1127 {
}
movieClip 1140 {
}
movieClip 1144 {
}
movieClip 1170 {
}
movieClip 1181 {
}
movieClip 1201 {
}
movieClip 1211 {
}
movieClip 1212 {
}
movieClip 1213 {
}
movieClip 1214 {
}
movieClip 1216 {
}
movieClip 1223 {
}
movieClip 1226 {
}
movieClip 1228 {
}
movieClip 1239 {
}
movieClip 1240 {
}
movieClip 1243 {
}
movieClip 1246 {
}
movieClip 1249 {
}
movieClip 1255 {
}
movieClip 1256 {
}
movieClip 1263 {
}
movieClip 1266 {
}
movieClip 1271 {
}
movieClip 1272 {
}
movieClip 1273 {
}
movieClip 1274 {
}
movieClip 1275 {
}
movieClip 1280 {
}
movieClip 1281 {
}
movieClip 1289 {
}
movieClip 1292 {
}
movieClip 1294 {
}
movieClip 1295 {
}
movieClip 1299 {
}
movieClip 1309 {
frame 5 {
stop();
}
}
movieClip 1310 {
frame 3 {
stop();
}
}
movieClip 1312 {
}
movieClip 1314 {
}
movieClip 1316 {
}
movieClip 1321 {
}
movieClip 1326 {
}
movieClip 1335 {
}
movieClip 1338 {
}
movieClip 1341 {
}
movieClip 1343 {
}
movieClip 1345 {
}
movieClip 1347 {
}
movieClip 1351 {
}
movieClip 1353 {
}
movieClip 1358 {
}
movieClip 1360 {
}
movieClip 1364 {
}
movieClip 1365 {
}
movieClip 1379 {
}
movieClip 1380 {
frame 2606 {
stop();
}
}
frame 133 {
stop();
}
movieClip 1383 {
}
movieClip 1393 {
frame 82 {
stop();
}
}
movieClip 1400 {
}
movieClip 1406 {
}
movieClip 1423 {
}
movieClip 1449 {
}
movieClip 1486 {
frame 58 {
stop();
}
}
movieClip 1527 {
}
movieClip 1552 {
}
movieClip 1557 {
frame 64 {
stop();
}
}
movieClip 1558 {
}
movieClip 1565 {
frame 114 {
stop();
}
}
movieClip 1574 {
frame 31 {
stop();
}
}
movieClip 1580 {
}
movieClip 1588 {
}
movieClip 1592 {
}
movieClip 1599 {
}
movieClip 1601 {
}
movieClip 1608 {
frame 241 {
stop();
}
}
movieClip 1611 {
frame 1763 {
stop();
}
}
frame 134 {
stop();
}
button 1619 {
on (rollOver) {
jm.useHandCursor = false;
}
}
movieClip 1662 {
frame 98 {
stop();
}
}
movieClip 1692 {
}
movieClip 1698 {
frame 9 {
stop();
}
}
movieClip 1731 {
frame 63 {
stop();
}
}
movieClip 1735 {
}
movieClip 1747 {
frame 54 {
stop();
}
}
movieClip 1748 {
}
movieClip 1769 {
}
movieClip 1772 {
}
movieClip 1776 {
}
movieClip 1823 {
frame 75 {
stop();
}
}
button 1855 {
on (release) {
stopAllSounds();
}
}
button 1858 {
on (release) {
stopAllSounds();
}
on (release) {
gotoAndPlay(1);
}
}
movieClip 1862 {
frame 2 {
_root._quality = 'medium';
}
frame 217 {
_root._quality = 'low';
}
frame 322 {
_root._quality = 'medium';
}
frame 378 {
_root._quality = 'low';
}
frame 471 {
_root._quality = 'medium';
}
frame 611 {
_root._quality = 'low';
}
frame 750 {
_root._quality = 'medium';
}
frame 835 {
stop();
}
}
frame 135 {
stop();
}
frame 136 {
stop();
}
movieClip 1865 {
}
movieClip 1867 {
}
movieClip 1870 {
}
movieClip 1875 {
}
movieClip 1877 {
}
movieClip 1878 {
frame 314 {
this.gotoAndPlay('1');
}
}
movieClip 1880 {
}
movieClip 1884 {
}
button 1893 {
on (release) {
this.gotoAndPlay('67');
}
}
movieClip 1895 {
}
movieClip 1924 {
}
movieClip 1930 {
}
movieClip 1932 {
}
button 1937 {
on (release) {
this.gotoAndPlay('88');
}
}
button 1941 {
on (release) {
this.gotoAndPlay('89');
}
}
button 1943 {
on (release) {
this.gotoAndPlay('90');
}
}
button 1945 {
on (release) {
this.gotoAndPlay('91');
}
}
button 1947 {
on (release) {
this.gotoAndPlay('92');
}
}
button 1949 {
on (release) {
this.gotoAndPlay('93');
}
}
button 1951 {
on (release) {
this.gotoAndPlay('94');
}
}
button 1968 {
on (release) {
this.gotoAndPlay('114');
}
}
movieClip 1976 {
}
movieClip 1978 {
}
movieClip 1980 {
}
movieClip 1982 {
}
movieClip 1984 {
}
movieClip 1988 {
}
movieClip 1990 {
}
movieClip 1998 {
}
movieClip 2000 {
}
movieClip 2002 {
}
movieClip 2007 {
}
movieClip 2008 {
}
movieClip 2156 {
}
movieClip 2218 {
}
movieClip 2229 {
}
movieClip 2242 {
}
movieClip 2252 {
}
movieClip 2291 {
frame 66 {
this.gotoAndStop('66');
}
frame 67 {
}
frame 87 {
this.gotoAndStop('87');
}
frame 88 {
this.gotoAndStop('88');
}
frame 89 {
this.gotoAndStop('89');
}
frame 90 {
this.gotoAndStop('90');
}
frame 91 {
this.gotoAndStop('91');
}
frame 92 {
this.gotoAndStop('92');
}
frame 93 {
this.gotoAndStop('93');
}
frame 113 {
this.gotoAndStop('113');
}
frame 162 {
stopAllSounds();
}
frame 718 {
stop();
}
}
frame 137 {
stop();
}
movieClip 2292 {
}
movieClip 2300 {
}
movieClip 2488 {
}
movieClip 2492 {
frame 2216 {
stop();
}
}
frame 138 {
stop();
}
movieClip 2742 {
frame 2491 {
stop();
}
frame 2491 {
stop();
}
}
frame 139 {
stop();
}
movieClip 2764 {
}
movieClip 2769 {
}
movieClip 2771 {
}
movieClip 2773 {
}
movieClip 2781 {
}
movieClip 2790 {
}
movieClip 2977 {
}
movieClip 3013 {
frame 474 {
}
frame 2008 {
stop();
}
}
frame 140 {
stop();
}
movieClip 3019 {
}
movieClip 3994 {
}
movieClip 4484 {
}
movieClip 4765 {
frame 1585 {
stop();
}
}
frame 141 {
stop();
}
movieClip 4767 {
}
movieClip 4769 {
}
movieClip 4772 {
}
movieClip 4773 {
}
movieClip 4775 {
}
movieClip 4776 {
}
movieClip 4777 {
}
movieClip 4778 {
}
movieClip 4779 {
}
movieClip 4801 {
}
movieClip 4818 {
}
movieClip 4819 {
}
movieClip 4823 {
frame 1088 {
stop();
}
}
frame 142 {
stop();
}
movieClip 4826 {
}
movieClip 4828 {
}
movieClip 4830 {
}
movieClip 4831 {
}
movieClip 4833 {
}
movieClip 4835 {
}
movieClip 4837 {
}
movieClip 4839 {
}
movieClip 4840 {
}
movieClip 4842 {
}
movieClip 4844 {
}
movieClip 4846 {
}
movieClip 4848 {
frame 31 {
gotoAndPlay(5);
}
}
movieClip 4849 {
frame 19 {
gotoAndPlay(5);
}
}
movieClip 4850 {
frame 35 {
stop();
}
}
movieClip 4852 {
}
movieClip 4853 {
instance of movieClip 4852 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.enemy) && _root.right == true) {
_root.damage = 10;
_root.hit = true;
_root.hit_force = 5;
}
if (this.hitTest(_root.game.enemy) && _root.left == true) {
_root.damage = 10;
_root.hit = true;
_root.hit_force = -5;
}
if (this.hitTest(_root.game.dino) && _root.right == true) {
_root.damage = 10;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.left == true) {
_root.damage = 10;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.right == true) {
_root.damage = 10;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.left == true) {
_root.damage = 10;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.right == true) {
_root.damage = 10;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.left == true) {
_root.damage = 10;
_root.hit_force = -5;
_root.hit = true;
}
}
}
frame 15 {
stop();
}
}
movieClip 4854 {
}
movieClip 4855 {
instance of movieClip 4854 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.enemy) && _root.right == true) {
_root.damage = 15;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.enemy) && _root.left == true) {
_root.damage = 15;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.right == true) {
_root.damage = 15;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.left == true) {
_root.damage = 15;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.right == true) {
_root.damage = 15;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.left == true) {
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.right == true) {
_root.damage = 10;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.left == true) {
_root.damage = 10;
_root.hit_force = -5;
_root.hit = true;
}
}
}
frame 15 {
stop();
}
}
movieClip 4856 {
}
movieClip 4857 {
instance of movieClip 4856 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.enemy) && _root.right == true) {
_root.damage = 25;
_root.hit_force = 8;
_root.hit = true;
}
if (this.hitTest(_root.game.enemy) && _root.left == true) {
_root.damage = 25;
_root.hit_force = -8;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.right == true) {
_root.damage = 25;
_root.hit_force = 8;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.left == true) {
_root.damage = 25;
_root.hit_force = -8;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.right == true) {
_root.damage = 25;
_root.hit_force = 8;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.left == true) {
_root.damage = 25;
_root.hit_force = -8;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.right == true) {
_root.damage = 10;
_root.hit_force = 8;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.left == true) {
_root.damage = 10;
_root.hit_force = -8;
_root.hit = true;
}
}
}
frame 20 {
stop();
}
}
movieClip 4858 {
}
movieClip 4859 {
instance of movieClip 4858 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.gamet.enemy) && _root.right == true) {
_root.damage = 20;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.enemy) && _root.left == true) {
_root.damage = 20;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.right == true) {
_root.damage = 20;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.left == true) {
_root.damage = 20;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.right == true) {
_root.damage = 20;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.left == true) {
_root.damage = 20;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.right == true) {
_root.damage = 10;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.left == true) {
_root.damage = 10;
_root.hit_force = -5;
_root.hit = true;
}
}
}
frame 13 {
_root.xion.jump_attack = false;
}
}
movieClip 4860 {
}
movieClip 4861 {
instance of movieClip 4860 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.enemy) && _root.right == true) {
_root.damage = 30;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.enemy) && _root.left == true) {
_root.damage = 30;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.right == true) {
_root.damage = 30;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.left == true) {
_root.damage = 30;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.right == true) {
_root.damage = 30;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.left == true) {
_root.damage = 30;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.right == true) {
_root.damage = 30;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.left == true) {
_root.damage = 30;
_root.hit_force = -5;
_root.hit = true;
}
}
}
}
movieClip 4862 {
}
movieClip 4863 {
}
movieClip 4864 {
}
movieClip 4865 {
instance of movieClip 4864 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.enemy) && _root.right == true) {
_root.damage = 10;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.enemy) && _root.left == true) {
_root.damage = 10;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.right == true) {
_root.damage = 10;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.dino) && _root.left == true) {
_root.damage = 10;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.right == true) {
_root.damage = 10;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.outlaw) && _root.left == true) {
_root.damage = 10;
_root.hit_force = -5;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.right == true) {
_root.damage = 10;
_root.hit_force = 5;
_root.hit = true;
}
if (this.hitTest(_root.game.darx._hit_) && _root.left == true) {
_root.damage = 10;
_root.hit_force = -5;
_root.hit = true;
}
}
}
frame 15 {
_root.xion.crouch_attack = false;
}
}
movieClip 4867 {
}
movieClip 4868 {
frame 7 {
stop();
}
}
movieClip 4869 {
frame 26 {
stop();
_root.game.lose_MC.nextFrame();
}
}
movieClip 4870 {
frame 1 {
stop();
}
instance xion_hit_spot of movieClip 4831 {
onClipEvent (enterFrame) {
this._visible = false;
}
}
frame 9 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
}
movieClip 4872 {
frame 1139 {
gotoAndPlay(1);
}
frame 1140 {
stop();
}
}
movieClip 4874 {
}
movieClip 4876 {
}
movieClip 4878 {
}
movieClip 4880 {
}
movieClip 4882 {
}
movieClip 4884 {
}
movieClip 4885 {
}
movieClip 4886 {
}
movieClip 4887 {
frame 1 {
stop();
}
frame 2 {
s = new Sound();
s.attachSound('attack');
s.start();
}
}
movieClip 4888 {
instance of movieClip 4887 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.xion)) {
this.nextFrame();
_root.xion_hit = true;
}
}
}
}
movieClip 4889 {
}
movieClip 4890 {
frame 17 {
gotoAndPlay(2);
}
}
movieClip 4892 {
frame 6 {
stop();
}
}
movieClip 4893 {
}
movieClip 4894 {
frame 15 {
_root.game.gotoAndStop('outlaw');
stop();
}
}
movieClip 4895 {
frame 1 {
stop();
}
instance hit_spot of movieClip 4886 {
onClipEvent (load) {
this._visible = false;
}
}
frame 3 {
_root.hit_force = 3;
s = new Sound();
s.attachSound('sword1');
s.start();
}
frame 5 {
_root.game.enemy.health -= _root.damage;
stop();
s = new Sound();
s.attachSound('hit');
s.start();
}
}
movieClip 4899 {
}
movieClip 4901 {
instance of movieClip 4899 {
onClipEvent (enterFrame) {
this._xscale = _root.xion_health;
}
}
}
movieClip 4904 {
instance of movieClip 4899 {
onClipEvent (enterFrame) {
this._xscale = _root.enemy_health;
}
}
}
movieClip 4924 {
}
movieClip 4927 {
frame 15 {
stop();
}
}
button 4931 {
on (press) {
_root.game.gotoAndPlay(6);
}
}
movieClip 4935 {
frame 16 {
stop();
}
}
movieClip 4936 {
frame 19 {
stop();
}
}
movieClip 4937 {
frame 1 {
stop();
}
}
movieClip 4946 {
frame 1 {
stop();
}
frame 2 {
if (_root.xion.block == true) {
s = new Sound();
s.attachSound('sword2');
s.start();
}
if (_root.xion.block == false) {
s = new Sound();
s.attachSound('hit');
s.start();
}
}
}
movieClip 4947 {
instance of movieClip 4946 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.xion)) {
this.nextFrame();
_root.xion_hit = true;
}
}
}
}
movieClip 4949 {
}
movieClip 4950 {
}
movieClip 4954 {
frame 14 {
gotoAndPlay(5);
}
}
movieClip 4955 {
}
movieClip 4956 {
frame 10 {
stop();
}
}
movieClip 4957 {
frame 16 {
_root.game.gotoAndStop('dino');
stop();
}
}
movieClip 4958 {
frame 1 {
stop();
}
frame 3 {
s = new Sound();
s.attachSound('sword2');
s.start();
}
frame 5 {
_root.game.outlaw.health -= _root.damage;
s = new Sound();
s.attachSound('hit');
s.start();
}
}
movieClip 4960 {
instance of movieClip 4899 {
onClipEvent (enterFrame) {
this._xscale = _root.outlaw_health;
}
}
}
movieClip 4962 {
}
movieClip 4963 {
}
movieClip 4964 {
frame 1 {
stop();
}
frame 2 {
s = new Sound();
s.attachSound('attack');
s.start();
}
}
movieClip 4965 {
instance of movieClip 4964 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.xion)) {
this.nextFrame();
_root.xion_hit = true;
}
}
}
}
movieClip 4966 {
}
movieClip 4967 {
}
movieClip 4968 {
frame 8 {
stop();
}
}
movieClip 4969 {
}
movieClip 4970 {
}
movieClip 4971 {
}
movieClip 4972 {
}
movieClip 4973 {
frame 5 {
stop();
}
instance of movieClip 4964 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.xion)) {
_root.xion_hit = true;
}
}
}
}
movieClip 4974 {
frame 16 {
_root.game.gotoAndStop('darx');
stop();
}
}
movieClip 4975 {
frame 1 {
stop();
}
frame 3 {
s = new Sound();
s.attachSound('sword1');
s.start();
}
frame 5 {
_root.game.dino.health -= _root.damage;
s = new Sound();
s.attachSound('hit');
s.start();
}
}
movieClip 4977 {
instance of movieClip 4899 {
onClipEvent (enterFrame) {
this._xscale = _root.dino_health;
}
}
}
movieClip 4979 {
}
movieClip 4984 {
}
movieClip 4989 {
}
movieClip 4990 {
frame 1 {
stop();
}
frame 2 {
s = new Sound();
s.attachSound('sword2');
s.start();
}
}
movieClip 4991 {
instance of movieClip 4990 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.xion)) {
this.nextFrame();
_root.xion_hit = true;
}
}
}
frame 10 {
stop();
}
}
movieClip 4993 {
}
movieClip 4995 {
}
movieClip 4996 {
}
movieClip 4998 {
}
movieClip 4999 {
frame 10 {
stop();
}
}
movieClip 5000 {
frame 14 {
stop();
_root.game.win_MC.nextFrame();
}
}
movieClip 5003 {
}
movieClip 5011 {
frame 9 {
stop();
}
}
movieClip 5012 {
frame 1 {
stop();
}
frame 2 {
_root.xion_hit = true;
}
}
movieClip 5013 {
instance of movieClip 5012 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.xion)) {
this.gotoAndStop(2);
}
}
}
frame 25 {
_root.s.stop();
}
frame 26 {
stop();
}
}
movieClip 5014 {
frame 20 {
stop();
}
}
movieClip 5015 {
frame 1 {
stop();
}
frame 3 {
s = new Sound();
s.attachSound('sword2');
s.start();
}
frame 5 {
_root.game.darx.health -= _root.damage;
s = new Sound();
s.attachSound('hit');
s.start();
}
frame 7 {
}
}
movieClip 5017 {
instance of movieClip 4899 {
onClipEvent (enterFrame) {
this._xscale = _root.darx_health;
}
}
}
movieClip 5038 {
}
movieClip 5041 {
}
movieClip 5042 {
frame 20 {
_root.game.nextFrame();
}
frame 45 {
stop();
}
}
movieClip 5043 {
frame 1 {
stop();
}
}
movieClip 5048 {
frame 1 {
stop();
}
instance background_ of movieClip 4828 {
}
instance ground of movieClip 4830 {
onClipEvent (enterFrame) {
this._visible = false;
}
}
instance xion of movieClip 4870 {
onClipEvent (load) {
_root.xion_health = 100;
speed = 0;
gravity = 0;
jump = false;
attack_interval = 0;
attack = false;
right = false;
left = false;
crouch = false;
running = false;
attack_1 = false;
attack_2 = false;
attack_3 = false;
jump_attack = false;
run_attack = false;
crouch_attack = false;
block = false;
hit = false;
_root.xion_hit = false;
r_blocked = false;
l_blocked = false;
dead = false;
}
onClipEvent (enterFrame) {
this._y -= gravity;
attack_interval += 1;
}
onClipEvent (enterFrame) {
if (dead == false) {
if (Key.isDown(39)) {
right = true;
speed += 0.5;
this._xscale = -50;
speed_interval = 0;
} else {
right = false;
}
if (Key.isDown(37) && running == false && _root.xion_hit == false) {
left = true;
this._xscale = 50;
speed -= 0.5;
speed_interval = 0;
} else {
left = false;
}
if (Key.isDown(38) && jump == false && _root.xion_hit == false) {
this.gotoAndStop(4);
attack_interval = 30;
gravity = 19;
jump = true;
}
if (jump == true) {
gravity -= 2;
}
if (this._y > _root.game.ground._y && jump == true && _root.xion_hit == false) {
this.gotoAndStop(1);
jump = false;
gravity = 0;
this._y = _root.game.ground._y;
}
if (this._y > _root.game.ground._y && jump == true) {
this.gotoAndStop(1);
jump = false;
gravity = 0;
this._y = _root.game.ground._y;
}
if (right == true && jump == false && crouch == true && crouch_attack == false && _root.xion_hit == false) {
speed = 3;
this._xscale = -50;
this.gotoAndStop(11);
}
if (left == true && jump == false && crouch == true && crouch_attack == false && _root.xion_hit == false) {
speed = -3;
this._xscale = 50;
this.gotoAndStop(11);
}
if (left == false && right == false && crouch == true && crouch_attack == false && _root.xion_hit == false) {
this.gotoAndStop(10);
speed = 0;
}
if (Key.isDown(40) && jump == false) {
crouch = true;
} else {
crouch = false;
crouch_attack = false;
}
if (speed > 15) {
speed = 15;
}
if (speed < -15) {
speed = -15;
}
if (left == false && right == false && attack_1 == false && speed > 0 && jump == false && crouch == false && crouch_attack == false && _root.xion_hit == false) {
speed -= 1;
this.gotoAndStop(1);
}
if (run_attack == true && speed > 0) {
speed -= 1;
}
if (run_attack == true && speed < 0) {
speed += 1;
}
if (run_attack == true && speed > 0.4) {
speed -= 0.5;
}
if (run_attack == true && speed < -0.4) {
speed += 0.5;
}
if (left == false && attack_1 == false && right == false && speed < 0 && jump == false && crouch == false && crouch_attack == false && _root.xion_hit == false) {
speed += 1;
this.gotoAndStop(1);
}
if (left == false && right == false && attack_1 == false && speed > 0.4 && jump == false && crouch == false && crouch_attack == false && _root.xion_hit == false) {
speed -= 0.5;
this.gotoAndStop(1);
}
if (left == false && attack_1 == false && right == false && speed < -0.4 && jump == false && crouch == false && crouch_attack == false && _root.xion_hit == false) {
speed += 0.5;
this.gotoAndStop(1);
}
if (left == false && right == false && attack_1 == true && speed > 0 && jump == false && crouch == false && crouch_attack == false) {
speed -= 1;
}
if (left == false && attack_1 == true && right == false && speed < 0 && jump == false && crouch == false && crouch_attack == false) {
speed += 1;
}
if (left == true && speed > 0 && crouch == false && crouch_attack == false && attack_1 == false && block == false) {
attack_interval = 30;
speed -= 1;
}
if (right == true && speed < 0 && crouch == false && crouch_attack == false && attack_1 == false && block == false) {
attack_interval = 30;
speed += 1;
}
if (speed > 0.5 && speed < 14 && jump == false && attack_1 == false && attack_2 == false && attack_3 == false && run_attack == false && crouch == false && attack_1 == false && crouch_attack == false && block == false && _root.xion_hit == false) {
attack_interval = 30;
this.gotoAndStop(2);
}
if (speed < -0.5 && speed > -14 && jump == false && attack_1 == false && attack_2 == false && attack_3 == false && run_attack == false && crouch == false && attack_1 == false && block == false && _root.xion_hit == false) {
attack_interval = 30;
this.gotoAndStop(2);
}
if (speed > 14 && jump == false && crouch == false && block == false && _root.xion_hit == false) {
running = true;
this.gotoAndStop(3);
}
if (speed < -14 && jump == false && crouch == false && block == false && _root.xion_hit == false) {
running = true;
this.gotoAndStop(3);
}
if (jump == true && jump_attack == false && _root.xion_hit == false) {
this.gotoAndStop(4);
}
}
}
onClipEvent (enterFrame) {
if (dead == false && jump == false && run_attack == false && crouch == false && running == false && block == false) {
if (Key.isDown(16) && attack_1 == false && attack_2 == false && attack_3 == false) {
attack_1 = true;
attack_2 = false;
attack_3 = false;
attack_interval = 0;
}
if (Key.isDown(16) && attack_1 == true && attack_interval > 10) {
attack_1 = false;
attack_2 = true;
attack_3 = false;
attack_interval = 0;
}
if (Key.isDown(16) && attack_2 == true && attack_interval > 10) {
attack_1 = false;
attack_2 = false;
attack_3 = true;
attack_interval = 0;
}
if (attack_interval > 20) {
attack_1 = false;
attack_2 = false;
attack_3 = false;
}
if (attack_1 == true && crouch == false && block == false && _root.xion_hit == false) {
this.gotoAndStop(5);
}
if (attack_2 == true && crouch == false && block == false && _root.xion_hit == false) {
this.gotoAndStop(6);
}
if (attack_3 == true && crouch == false && block == false && _root.xion_hit == false) {
this.gotoAndStop(7);
}
}
if (dead == false) {
if (left == false && right == false && jump == false && attack_1 == false && attack_2 == false && attack_3 == false && run_attack == false && crouch == false && block == false && _root.xion_hit == false) {
this.gotoAndStop(1);
}
if (jump == true && Key.isDown(16) && _root.xion_hit == false) {
jump_attack = true;
this.gotoAndStop(8);
}
if (speed == 15 && Key.isDown(16) && crouch == false) {
run_attack = true;
}
if (speed == -15 && Key.isDown(16) && crouch == false) {
run_attack = true;
}
if (speed == -15) {
running = true;
}
if (run_attack == true && jump == false && block == false && _root.xion_hit == false) {
this.gotoAndStop(9);
}
if (speed > -1 && speed < 1) {
run_attack = false;
}
if (speed < 14) {
running = false;
}
if (Key.isDown(16) && crouch == true && block == false && _root.xion_hit == false) {
crouch_attack = true;
this.gotoAndStop(12);
speed = 0;
}
if (Key.isDown(17) && jump == false) {
speed = 0;
block = true;
this.gotoAndStop(13);
} else {
block = false;
}
if (right == true && left == false) {
_root.left = false;
_root.right = true;
}
if (right == false && left == true) {
_root.left = true;
_root.right = false;
}
if (_root.xion_hit == true && block == false && jump == false) {
this.gotoAndStop(14);
hit = true;
}
if (_root.xion_hit == false) {
hit = false;
}
if (r_blocked == false && l_blocked == false) {
this._x += speed / 2;
}
if (this._x < 50 && speed < 0) {
l_blocked = true;
} else {
l_blocked = false;
}
if (this._x > 500 && speed > 0) {
r_blocked = true;
} else {
r_blocked = false;
}
if (r_blocked == true && _root.game.background_._x > 50) {
_root.game.enemy._x -= speed / 3;
_root.game.outlaw._x -= speed / 3;
_root.game.dino._x -= speed / 3;
_root.game.darx._x -= speed / 3;
_root.game.background_._x -= speed / 3;
}
if (l_blocked == true && _root.game.background_._x < 500) {
_root.game.enemy._x -= speed / 3;
_root.game.outlaw._x -= speed / 3;
_root.game.dino._x -= speed / 3;
_root.game.darx._x -= speed / 3;
_root.game.background_._x -= speed / 3;
}
if (_root.xion_hit == true && block == false) {
_root.xion_health -= 2;
}
}
if (_root.xion_health < 1) {
_root.xion_health = 0;
this.gotoAndStop(15);
dead = true;
}
}
}
instance enemy of movieClip 4895 {
onClipEvent (load) {
_root.xion_hit = false;
_root.hit_force = 0;
attack = false;
hit_block = true;
this._x = 0;
_root.hit = false;
hit = false;
block_chance = 0;
left = false;
right = false;
idle = false;
enemy_health = 100;
health = 100;
dead = false;
speed = 3;
block = false;
}
onClipEvent (enterFrame) {
if (_root.hit_force > 0.5) {
_root.hit_force -= 1;
}
if (_root.hit_force < -0.5) {
_root.hit_force += 1;
}
if (dead == false) {
this._x += _root.hit_force;
}
_root.enemy_health = Math.round((health / enemy_health) * 100);
_root.enemy_posotion = this._x;
}
onClipEvent (enterFrame) {
if (this._x > _root.game.xion._x + 50 && _root.hit == false) {
left = true;
} else {
left = false;
}
if (this._x < _root.game.xion._x - 50 && _root.hit == false) {
right = true;
} else {
right = false;
}
if (left == false && right == false) {
idle = true;
} else {
idle = false;
}
if (_root.hit_force == 0) {
_root.hit = false;
hit = false;
}
if (left == true && _root.hit == false && dead == false && idle == false && block == false) {
this.gotoAndStop(4);
this._xscale = 40;
this._x -= speed;
}
if (right == true && _root.hit == false && dead == false && idle == false && block == false) {
this.gotoAndStop(4);
this._xscale = -40;
this._x += speed;
}
if (idle == true && _root.hit == false && attack == false && dead == false && hit_block == true) {
this.gotoAndStop(1);
}
if (hit == true) {
attack = false;
interval = 0;
attack_interval = 0;
this.gotoAndStop(5);
}
if (idle == true && attack == false) {
attack_interval = random(20);
}
if (attack_interval < 4 && dead == false && right == false && left == false && hit == false && hit_block == true) {
attack = true;
this.gotoAndStop(2);
}
if (attack == true) {
interval += 1;
}
if (interval == 12) {
attack = false;
interval = 0;
}
if (_root.xion_hit == true) {
xion_interval += 1;
}
if (xion_interval > 5) {
_root.xion_hit = false;
xion_interval = 0;
}
if (_root.hit == true && hit_block == true && dead == false) {
block_chance = random(3);
hit = false;
}
if (_root.hit == true && block_chance > 0 && dead == false) {
hit = true;
hit_block = false;
}
if (_root.hit == true && block_chance == 0 && dead == false) {
hit_block = false;
hit = false;
this.gotoAndStop(3);
}
if (_root.hit == false) {
hit_block = true;
}
if (_root.game.xion.jump == false && this.hitTest(_root.game.xion.xion_hit_spot) && this._x < _root.game.xion._x && _root.game.xion.speed < 0) {
this._x += drag;
drag = _root.xion.speed / 2;
_root.game.xion._x -= drag;
}
if (_root.game.xion.jump == false && this.hitTest(_root.game.xion.xion_hit_spot) && this._x > _root.game.xion._x && _root.game.xion.speed > 0) {
this._x += drag;
drag = _root.game.xion.speed / 2;
_root.game.xion._x -= drag;
}
if (health < 1) {
health = 0;
dead = true;
this.gotoAndStop(6);
}
}
}
frame 2 {
}
instance outlaw of movieClip 4958 {
onClipEvent (load) {
_root.xion_hit = false;
_root.hit_force = 0;
attack = false;
hit_block = true;
this._x = 0;
_root.hit = false;
hit = false;
block_chance = 0;
left = false;
right = false;
idle = false;
health = 130;
dead = false;
speed = 3;
outlaw_health = 130;
block = false;
}
onClipEvent (enterFrame) {
if (_root.hit_force > 0.5) {
_root.hit_force -= 1;
}
if (_root.hit_force < -0.5) {
_root.hit_force += 1;
}
if (dead == false) {
this._x += _root.hit_force;
}
_root.outlaw_health = Math.round((health / outlaw_health) * 100);
}
onClipEvent (enterFrame) {
if (this._x > _root.game.xion._x + 50 && _root.hit == false && dead == false) {
left = true;
} else {
left = false;
}
if (this._x < _root.game.xion._x - 50 && _root.hit == false && dead == false) {
right = true;
} else {
right = false;
}
if (left == false && right == false && dead == false) {
idle = true;
} else {
idle = false;
}
if (_root.hit_force == 0) {
_root.hit = false;
hit = false;
}
if (left == true && _root.hit == false && dead == false) {
this.gotoAndStop(4);
this._xscale = 50;
this._x -= speed;
}
if (right == true && _root.hit == false && dead == false) {
this.gotoAndStop(4);
this._xscale = -50;
this._x += speed;
}
if (idle == true && _root.hit == false && dead == false && attack == false) {
this.gotoAndStop(1);
}
if (hit == true) {
attack = false;
interval = 0;
attack_interval = 0;
this.gotoAndStop(5);
}
if (idle == true && attack == false && dead == false) {
attack_interval = random(20);
}
if (attack_interval == 10 && right == false && left == false && dead == false && hit_block == true) {
attack = true;
this.gotoAndStop(2);
}
if (attack == true) {
interval += 1;
}
if (interval == 12) {
attack = false;
interval = 0;
}
if (_root.xion_hit == true) {
xion_interval += 1;
}
if (xion_interval > 5) {
_root.xion_hit = false;
xion_interval = 0;
}
if (_root.hit == true && hit_block == true && dead == false) {
block_chance = random(3);
hit = false;
}
if (_root.hit == true && block_chance > 0 && dead == false) {
hit = true;
hit_block = false;
}
if (_root.hit == true && block_chance == 0 && dead == false) {
hit_block = false;
hit = false;
this.gotoAndStop(3);
}
if (_root.hit == false) {
hit_block = true;
}
if (_root.game.xion.jump == false && this.hitTest(_root.game.xion.xion_hit_spot) && this._x < _root.game.xion._x && _root.game.xion.speed < 0) {
this._x += drag;
drag = _root.game.xion.speed / 2;
_root.game.xion._x -= drag;
}
if (_root.game.xion.jump == false && this.hitTest(_root.game.xion.xion_hit_spot) && this._x > _root.game.xion._x && _root.game.xion.speed > 0) {
this._x += drag;
drag = _root.game.xion.speed / 2;
_root.game.xion._x -= drag;
}
if (health < 0) {
dead = true;
this.gotoAndStop(6);
}
}
}
frame 3 {
}
frame 3 {
}
instance dino of movieClip 4975 {
onClipEvent (load) {
_root.hit_force = 0;
attack = false;
hit_block = true;
this._x = 0;
_root.hit = false;
hit = false;
block_chance = 0;
idle = true;
_root.right = false;
_root.left = false;
dead = false;
health = 160;
_interval_ = 24;
speed = 3;
dino_health = 160;
block = false;
}
onClipEvent (enterFrame) {
if (_root.hit_force > 0.5) {
_root.hit_force -= 1;
}
if (_root.hit_force < -0.5) {
_root.hit_force += 1;
}
if (dead == false) {
this._x += _root.hit_force;
}
_root.dino_health = Math.round((health / dino_health) * 100);
}
onClipEvent (enterFrame) {
if (this._x > _root.game.xion._x + 50 && _root.hit == false && dead == false) {
left = true;
} else {
left = false;
}
if (this._x < _root.game.xion._x - 25 && _root.hit == false && dead == false) {
right = true;
} else {
right = false;
}
if (left == false && right == false && dead == false) {
idle = true;
} else {
idle = false;
}
if (_root.hit_force == 0) {
_root.hit = false;
hit = false;
}
if (left == true && _root.hit == false && dead == false) {
this.gotoAndStop(4);
this._xscale = -50;
this._x -= speed;
}
if (right == true && _root.hit == false && dead == false) {
this.gotoAndStop(4);
this._xscale = 50;
this._x += speed;
}
if (idle == true && _root.hit == false && attack == false && dead == false && block == false) {
this.gotoAndStop(1);
}
if (hit == true) {
attack = false;
interval = 0;
attack_interval = 0;
this.gotoAndStop(5);
}
if (idle == true && attack == false && dead == false) {
attack_interval = random(50);
}
if (attack_interval < 6 && right == false && left == false && dead == false && hit_block == true) {
attack = true;
this.gotoAndStop(2);
_interval_ = 12;
}
if (attack_interval == 6 && right == false && left == false && dead == false) {
attack = true;
this.gotoAndStop(6);
_interval_ = 30;
}
if (attack == true) {
interval += 1;
}
if (interval == _interval_) {
attack = false;
interval = 0;
}
if (_root.xion_hit == true) {
xion_interval += 1;
}
if (xion_interval > 5) {
_root.xion_hit = false;
xion_interval = 0;
}
if (_root.hit == true && hit_block == true && dead == false) {
block_chance = random(3);
hit = false;
}
if (_root.hit == true && block_chance > 0 && dead == false) {
hit = true;
hit_block = false;
}
if (_root.hit == true && block_chance == 0 && dead == false) {
hit_block = false;
hit = false;
this.gotoAndStop(3);
}
if (_root.hit == false) {
hit_block = true;
}
if (_root.game.xion.jump == false && this.hitTest(_root.game.xion.xion_hit_spot) && this._x < _root.game.xion._x && _root.game.xion.speed < 0 && dead == false) {
this._x += drag;
drag = _root.game.xion.speed / 2;
_root.game.xion._x -= drag;
}
if (_root.game.xion.jump == false && this.hitTest(_root.game.xion.xion_hit_spot) && this._x > _root.game.xion._x && _root.game.xion.speed > 0 && dead == false) {
this._x += drag;
drag = _root.xion.speed / 2;
_root.game.xion._x -= drag;
}
if (health < 0) {
dead = true;
this.gotoAndStop(7);
}
}
}
frame 4 {
stop();
}
instance darx of movieClip 5015 {
onClipEvent (load) {
_root.hit_force = 0;
attack = false;
hit_block = true;
this._x = 0;
_root.hit = false;
hit = false;
block_chance = 0;
left = false;
right = false;
idle = false;
health = 200;
dead = false;
speed = 3;
flame_attack = false;
flame_interval = 0;
darx_health = 200;
block = false;
}
onClipEvent (enterFrame) {
if (_root.hit_force > 0.5) {
_root.hit_force -= 1;
}
if (_root.hit_force < -0.5) {
_root.hit_force += 1;
}
if (dead == false) {
this._x += _root.hit_force;
}
_root.darx_health = Math.round((health / darx_health) * 100);
}
onClipEvent (enterFrame) {
if (this._x > _root.game.xion._x + 50 && _root.hit == false) {
left = true;
} else {
left = false;
}
if (this._x < _root.game.xion._x - 50 && _root.hit == false) {
right = true;
} else {
right = false;
}
if (left == false && right == false) {
idle = true;
} else {
idle = false;
}
if (_root.hit_force == 0) {
_root.hit = false;
hit = false;
}
if (left == true && _root.hit == false && dead == false && flame_attack == false) {
this.gotoAndStop(4);
this._xscale = -50;
this._x -= speed;
}
if (right == true && _root.hit == false && dead == false && flame_attack == false) {
this.gotoAndStop(4);
this._xscale = 50;
this._x += speed;
}
if (idle == true && _root.hit == false && attack == false && dead == false && flame_attack == false && block == false) {
this.gotoAndStop(1);
}
if (hit == true) {
attack = false;
interval = 0;
attack_interval = 0;
this.gotoAndStop(5);
}
if (idle == true && attack == false) {
attack_interval = random(20);
}
if (attack_interval == 10 && dead == false && right == false && left == false && hit == false && hit_block == true) {
attack = true;
this.gotoAndStop(2);
}
if (attack == true) {
interval += 1;
}
if (interval == 12) {
attack = false;
interval = 0;
}
if (_root.xion_hit == true) {
xion_interval += 1;
}
if (xion_interval > 5) {
_root.xion_hit = false;
xion_interval = 0;
}
if (_root.hit == true && hit_block == true && dead == false) {
block_chance = random(3);
hit = false;
}
if (_root.hit == true && block_chance > 0 && dead == false) {
hit = true;
hit_block = false;
}
if (_root.hit == true && block_chance == 0 && dead == false) {
hit_block = false;
hit = false;
this.gotoAndStop(3);
}
if (_root.hit == false) {
hit_block = true;
}
if (_root.game.xion.jump == false && this._hit_.hitTest(_root.game.xion.xion_hit_spot) && this._x < _root.game.xion._x && _root.game.xion.speed < 0) {
this._x += drag;
drag = _root.game.xion.speed / 2;
_root.game.xion._x -= drag;
}
if (_root.game.xion.jump == false && this._hit_.hitTest(_root.game.xion.xion_hit_spot) && this._x > _root.game.xion._x && _root.game.xion.speed > 0) {
this._x += drag;
drag = _root.game.xion.speed / 2;
_root.game.xion._x -= drag;
}
if (health < 1) {
health = 0;
dead = true;
this.gotoAndStop(6);
}
if (idle == false) {
flame_interval = random(60);
if (flame_interval == 1) {
flame_attack = true;
}
}
if (flame_attack == true && attack == false && dead == false && idle == false) {
this.gotoAndStop(7);
flame_attack_interval += 1;
if (flame_attack_interval == 40) {
flame_interval = 0;
flame_attack_interval = 0;
flame_attack = false;
}
}
}
}
instance xion of movieClip 4870 {
onClipEvent (load) {
_root.xion_health = 100;
speed = 0;
gravity = 0;
jump = false;
attack_interval = 0;
attack = false;
right = false;
left = false;
crouch = false;
running = false;
attack_1 = false;
attack_2 = false;
attack_3 = false;
jump_attack = false;
run_attack = false;
crouch_attack = false;
block = false;
hit = false;
_root.xion_hit = false;
r_blocked = false;
l_blocked = false;
dead = false;
}
onClipEvent (enterFrame) {
this._y -= gravity;
attack_interval += 1;
}
onClipEvent (enterFrame) {
if (dead == false) {
if (Key.isDown(39)) {
right = true;
speed += 0.5;
this._xscale = -50;
speed_interval = 0;
} else {
right = false;
}
if (Key.isDown(37) && running == false && _root.xion_hit == false) {
left = true;
this._xscale = 50;
speed -= 0.5;
speed_interval = 0;
} else {
left = false;
}
if (Key.isDown(38) && jump == false && _root.xion_hit == false) {
this.gotoAndStop(4);
attack_interval = 30;
gravity = 19;
jump = true;
}
if (jump == true) {
gravity -= 2;
}
if (this._y > _root.game.ground._y && jump == true && _root.xion_hit == false) {
this.gotoAndStop(1);
jump = false;
gravity = 0;
this._y = _root.game.ground._y;
}
if (this._y > _root.game.ground._y && jump == true) {
this.gotoAndStop(1);
jump = false;
gravity = 0;
this._y = _root.game.ground._y;
}
if (right == true && jump == false && crouch == true && crouch_attack == false && _root.xion_hit == false) {
speed = 3;
this._xscale = -50;
this.gotoAndStop(11);
}
if (left == true && jump == false && crouch == true && crouch_attack == false && _root.xion_hit == false) {
speed = -3;
this._xscale = 50;
this.gotoAndStop(11);
}
if (left == false && right == false && crouch == true && crouch_attack == false && _root.xion_hit == false) {
this.gotoAndStop(10);
speed = 0;
}
if (Key.isDown(40) && jump == false) {
crouch = true;
} else {
crouch = false;
crouch_attack = false;
}
if (speed > 15) {
speed = 15;
}
if (speed < -15) {
speed = -15;
}
if (left == false && right == false && attack_1 == false && speed > 0 && jump == false && crouch == false && crouch_attack == false && _root.xion_hit == false) {
speed -= 1;
this.gotoAndStop(1);
}
if (run_attack == true && speed > 0) {
speed -= 1;
}
if (run_attack == true && speed < 0) {
speed += 1;
}
if (run_attack == true && speed > 0.4) {
speed -= 0.5;
}
if (run_attack == true && speed < -0.4) {
speed += 0.5;
}
if (left == false && attack_1 == false && right == false && speed < 0 && jump == false && crouch == false && crouch_attack == false && _root.xion_hit == false) {
speed += 1;
this.gotoAndStop(1);
}
if (left == false && right == false && attack_1 == false && speed > 0.4 && jump == false && crouch == false && crouch_attack == false && _root.xion_hit == false) {
speed -= 0.5;
this.gotoAndStop(1);
}
if (left == false && attack_1 == false && right == false && speed < -0.4 && jump == false && crouch == false && crouch_attack == false && _root.xion_hit == false) {
speed += 0.5;
this.gotoAndStop(1);
}
if (left == false && right == false && attack_1 == true && speed > 0 && jump == false && crouch == false && crouch_attack == false) {
speed -= 1;
}
if (left == false && attack_1 == true && right == false && speed < 0 && jump == false && crouch == false && crouch_attack == false) {
speed += 1;
}
if (left == true && speed > 0 && crouch == false && crouch_attack == false && attack_1 == false && block == false) {
attack_interval = 30;
speed -= 1;
}
if (right == true && speed < 0 && crouch == false && crouch_attack == false && attack_1 == false && block == false) {
attack_interval = 30;
speed += 1;
}
if (speed > 0.5 && speed < 14 && jump == false && attack_1 == false && attack_2 == false && attack_3 == false && run_attack == false && crouch == false && attack_1 == false && crouch_attack == false && block == false && _root.xion_hit == false) {
attack_interval = 30;
this.gotoAndStop(2);
}
if (speed < -0.5 && speed > -14 && jump == false && attack_1 == false && attack_2 == false && attack_3 == false && run_attack == false && crouch == false && attack_1 == false && block == false && _root.xion_hit == false) {
attack_interval = 30;
this.gotoAndStop(2);
}
if (speed > 14 && jump == false && crouch == false && block == false && _root.xion_hit == false) {
running = true;
this.gotoAndStop(3);
}
if (speed < -14 && jump == false && crouch == false && block == false && _root.xion_hit == false) {
running = true;
this.gotoAndStop(3);
}
if (jump == true && jump_attack == false && _root.xion_hit == false) {
this.gotoAndStop(4);
}
}
}
onClipEvent (enterFrame) {
if (dead == false && jump == false && run_attack == false && crouch == false && running == false && block == false) {
if (Key.isDown(32) && attack_1 == false && attack_2 == false && attack_3 == false) {
attack_1 = true;
attack_2 = false;
attack_3 = false;
attack_interval = 0;
}
if (Key.isDown(32) && attack_1 == true && attack_interval > 10) {
attack_1 = false;
attack_2 = true;
attack_3 = false;
attack_interval = 0;
}
if (Key.isDown(32) && attack_2 == true && attack_interval > 10) {
attack_1 = false;
attack_2 = false;
attack_3 = true;
attack_interval = 0;
}
if (attack_interval > 20) {
attack_1 = false;
attack_2 = false;
attack_3 = false;
}
if (attack_1 == true && crouch == false && block == false && _root.xion_hit == false) {
this.gotoAndStop(5);
}
if (attack_2 == true && crouch == false && block == false && _root.xion_hit == false) {
this.gotoAndStop(6);
}
if (attack_3 == true && crouch == false && block == false && _root.xion_hit == false) {
this.gotoAndStop(7);
}
}
if (dead == false) {
if (left == false && right == false && jump == false && attack_1 == false && attack_2 == false && attack_3 == false && run_attack == false && crouch == false && block == false && _root.xion_hit == false) {
this.gotoAndStop(1);
}
if (jump == true && Key.isDown(32) && _root.xion_hit == false) {
jump_attack = true;
this.gotoAndStop(8);
}
if (speed == 15 && Key.isDown(32) && crouch == false) {
run_attack = true;
}
if (speed == -15 && Key.isDown(32) && crouch == false) {
run_attack = true;
}
if (speed == -15) {
running = true;
}
if (run_attack == true && jump == false && block == false && _root.xion_hit == false) {
this.gotoAndStop(9);
}
if (speed > -1 && speed < 1) {
run_attack = false;
}
if (speed < 14) {
running = false;
}
if (Key.isDown(32) && crouch == true && block == false && _root.xion_hit == false) {
crouch_attack = true;
this.gotoAndStop(12);
speed = 0;
}
if (Key.isDown(17) && jump == false) {
speed = 0;
block = true;
this.gotoAndStop(13);
} else {
block = false;
}
if (right == true && left == false) {
_root.left = false;
_root.right = true;
}
if (right == false && left == true) {
_root.left = true;
_root.right = false;
}
if (_root.xion_hit == true && block == false && jump == false) {
this.gotoAndStop(14);
hit = true;
}
if (_root.xion_hit == false) {
hit = false;
}
if (r_blocked == false && l_blocked == false) {
this._x += speed / 2;
}
if (this._x < 50 && speed < 0) {
l_blocked = true;
} else {
l_blocked = false;
}
if (this._x > 500 && speed > 0) {
r_blocked = true;
} else {
r_blocked = false;
}
if (r_blocked == true && _root.game.background_._x > 50) {
_root.game.enemy._x -= speed / 3;
_root.game.outlaw._x -= speed / 3;
_root.game.dino._x -= speed / 3;
_root.game.darx._x -= speed / 3;
_root.game.background_._x -= speed / 3;
}
if (l_blocked == true && _root.game.background_._x < 500) {
_root.game.enemy._x -= speed / 3;
_root.game.outlaw._x -= speed / 3;
_root.game.dino._x -= speed / 3;
_root.game.darx._x -= speed / 3;
_root.game.background_._x -= speed / 3;
}
if (_root.xion_hit == true && block == false) {
_root.xion_health -= 2;
}
}
if (_root.xion_health < 1) {
_root.xion_health = 0;
this.gotoAndStop(15);
dead = true;
}
}
}
frame 6 {
gotoAndStop(1);
}
}
frame 143 {
stop();
}
button 5055 {
on (press) {
nextFrame();
}
}
frame 144 {
play();
}
frame 169 {
stop();
}
button 5062 {
on (press) {
nextFrame();
}
}
frame 170 {
stop();
}
frame 171 {
stop();
}
frame 172 {
stop();
}
frame 173 {
stop();
}
frame 174 {
play();
}
frame 216 {
stop();
}
frame 217 {
stop();
}
frame 218 {
stop();
}
frame 219 {
stop();
}
frame 220 {
stop();
}
frame 221 {
play();
}
frame 259 {
stop();
}
frame 260 {
play();
}
frame 277 {
stopAllSounds();
}
frame 278 {
stop();
}
movieClip 5103 {
}
movieClip 5109 {
frame 25 {
_root.nextFrame();
}
}
movieClip 5139 {
frame 12 {
_root.nextFrame();
}
frame 36 {
_root.nextFrame();
}
frame 78 {
_root.nextFrame();
}
frame 115 {
_root.play();
}
}
frame 280 {
hud.stop();
play();
}
frame 298 {
hud.play();
}
frame 309 {
stop();
}
frame 310 {
play();
}
frame 316 {
stop();
}
movieClip 5157 {
}
frame 317 {
play();
hud.stop();
}
frame 347 {
stop();
hud.play();
}
movieClip 5175 {
}
frame 383 {
potato = 0;
}
movieClip 5184 {
frame 109 {
_root.potato == 2;
}
frame 110 {
_root.gotoAndPlay(275);
}
frame 111 {
_root.gotoAndPlay(275);
}
frame 112 {
_root.gotoAndPlay(275);
}
}
frame 416 {
if (potato == 0) {
gotoAndPlay(271);
}
}
frame 533 {
stop();
}