Combined Code
button 6 {
on (release) {
com.newgrounds.API.loadNewgrounds();
}
}
movieClip 12 {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (865 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -67 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 374;
-= 28;
var eval( != 287) = true;
-= 514;
+= 348;
+= 608;
-= 521;
-= 268;
-= 160;
-= 678;
+= 737;
+= 747;
-= 291;
+= 270;
+= 302;
-= 204;
-= 753;
+= 398;
-= 819;
-= 748;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
1;
!'';
eval(true);
}
}
movieClip 13 {
frame 11 {
gotoAndPlay(1);
}
}
movieClip 14 Flash Ad (NewgroundsAPI) {
#initclip
Object.registerClass('Flash Ad (NewgroundsAPI)', com.newgrounds.components.FlashAd);
#endinitclip
}
frame 1 {
}
frame 1 {
function preloadSite() {
var v3 = _root.getBytesLoaded();
var v2 = _root.getBytesTotal();
var v4 = Math.round((v3 / v2) * 100);
loadingBar._xscale = v4;
percentDisplay.text = v4 + '%';
percentClip._x = loadingBar._x + loadingBar._width;
if (v3 >= v2) {
clearInterval(loadingCall);
gotoAndPlay(2);
}
}
stop();
loadingBar._xscale = 1;
var loadingCall = setInterval(preloadSite, 50);
}
movieClip 37 {
}
movieClip 39 {
}
instance of movieClip 14 Flash Ad (NewgroundsAPI) {
onClipEvent (construct) {
show_background = true;
}
}
movieClip 1 __Packages.com.newgrounds.components.FlashAd {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2350 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -239 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 206;
-= 70;
-= 332;
+= 663;
-= 489;
-= 675;
+= 342;
+= 529;
+= 440;
+= 66;
+= 151;
-= 490;
+= 468;
-= 946;
var eval(!1) = '';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 67;
eval(true);
'';
#endinitclip
}
movieClip 15 __Packages.com.newgrounds.APIError {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (90 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 242 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 248;
+= 409;
+= 226;
-= 571;
+= 396;
-= 151;
-= 361;
+= 426;
-= 121;
+= 144;
-= 591;
var eval(true) = eval(!'');
-= 209;
+= 811;
+= 83;
-= 68;
-= 632;
+= 294;
+= 543;
-= 394;
+= 75;
-= 83;
+= 360;
+= 196;
-= 282;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 332;
'';
1;
true;
true;
#endinitclip
}
movieClip 16 __Packages.com.newgrounds.API {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1435 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 149 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 260;
-= 300;
-= 295;
-= 219;
-= 248;
+= 214;
+= 138;
-= 187;
-= 304;
-= 422;
+= 881;
var eval(1) = true;
+= 293;
+= 290;
-= 641;
+= 387;
-= 869;
+= 730;
-= 581;
-= 203;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 562;
true;
!'';
;
#endinitclip
}
movieClip 17 __Packages.com.newgrounds.Bridge {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (296 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 285 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 305;
-= 108;
+= 616;
+= 420;
-= 105;
var eval( != 581) = true;
-= 560;
-= 675;
+= 109;
+= 806;
-= 943;
+= 187;
-= 15;
+= 574;
-= 772;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
1;
!;
#endinitclip
}
movieClip 18 __Packages.com.newgrounds.SaveFile {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2646 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -55 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 815;
-= 298;
+= 260;
+= 406;
+= 3;
+= 607;
-= 469;
+= 72;
-= 396;
var eval(true) = true;
+= 200;
-= 294;
-= 28;
+= 257;
-= 182;
-= 452;
+= 629;
-= 35;
-= 437;
-= 686;
+= 472;
-= 707;
-= 24;
+= 357;
-= 97;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 36;
true;
;
'';
!1;
#endinitclip
}
movieClip 19 __Packages.com.newgrounds.SaveGroup {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (562 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 739 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 104;
+= 589;
+= 221;
+= 573;
-= 167;
+= 932;
-= 82;
-= 683;
+= 387;
+= 31;
+= 580;
+= 254;
-= 98;
var = !1;
-= 491;
-= 488;
-= 344;
+= 690;
-= 271;
-= 57;
+= 303;
+= 718;
-= 560;
-= 262;
+= 74;
+= 274;
-= 972;
-= 644;
-= 272;
+= 578;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 790;
true;
true;
true;
;
true;
#endinitclip
}
movieClip 20 __Packages.com.newgrounds.ValidationTools {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2593 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 637 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 397;
-= 410;
-= 309;
+= 389;
+= 550;
-= 398;
var eval(true) = true;
+= 389;
+= 744;
-= 837;
-= 185;
-= 141;
-= 146;
-= 90;
-= 143;
+= 3;
+= 239;
-= 326;
+= 711;
+= 45;
+= 503;
+= 26;
-= 80;
+= 40;
-= 63;
-= 208;
+= 426;
-= 663;
-= 397;
-= 219;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 675;
true;
'';
1;
!'';
eval(true);
#endinitclip
}
movieClip 21 __Packages.com.newgrounds.APIEvent {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (127 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -101 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 495;
+= 418;
+= 130;
-= 352;
-= 420;
-= 95;
+= 236;
+= 212;
+= 166;
-= 202;
+= 498;
-= 18;
+= 322;
+= 300;
-= 101;
var eval(1) = !true;
+= 211;
-= 765;
+= 225;
-= 752;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 26;
true;
'';
;
#endinitclip
}
movieClip 22 __Packages.com.newgrounds.SaveGroupQuery {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1271 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -168 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 215;
+= 205;
+= 41;
-= 143;
-= 113;
-= 289;
-= 104;
+= 114;
+= 179;
+= 136;
-= 653;
+= 156;
var eval(true) = true;
+= 458;
+= 262;
-= 111;
+= 156;
-= 175;
+= 586;
-= 707;
+= 451;
-= 149;
-= 236;
+= 61;
-= 552;
-= 491;
+= 678;
-= 69;
-= 319;
-= 483;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 81;
true;
'';
!1;
'';
eval(true);
#endinitclip
}
movieClip 23 __Packages.com.newgrounds.encoders.BaseN {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2401 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 191 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 328;
+= 575;
+= 403;
+= 19;
-= 182;
-= 482;
+= 95;
+= 83;
+= 152;
+= 360;
var = 1;
-= 389;
-= 46;
-= 702;
-= 11;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 548;
true;
!;
#endinitclip
}
movieClip 24 __Packages.com.newgrounds.encoders.ImageScanner {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2589 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 226 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 485;
+= 113;
+= 230;
+= 184;
-= 276;
+= 490;
-= 661;
-= 845;
+= 63;
-= 2;
var = true;
-= 457;
-= 751;
+= 327;
+= 109;
+= 81;
+= 304;
-= 606;
+= 177;
-= 35;
+= 384;
-= 368;
+= 366;
+= 540;
-= 867;
-= 283;
+= 400;
+= 544;
-= 565;
-= 167;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 260;
eval(true);
true;
'';
!1;
true;
#endinitclip
}
movieClip 25 __Packages.com.newgrounds.encoders.SerialXML {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1587 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 384 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 191;
+= 193;
-= 233;
var eval( != 438) = true;
+= 162;
+= 181;
+= 778;
-= 891;
// An attempt to read a value from empty stack
-= 861;
+= 414;
+= 301;
-= 430;
-= 212;
+= 141;
-= 137;
+= 917;
-= 97;
+= 79;
+= 27;
-= 104;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
eval(undefined);
!'';
'';
1;
true;
#endinitclip
}
movieClip 26 __Packages.com.newgrounds.encoders.LZW2 {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1169 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 606 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 159;
-= 263;
var eval( != 753) = true;
-= 178;
-= 686;
// An attempt to read a value from empty stack
+= 166;
+= 97;
+= 662;
+= 148;
+= 163;
-= 615;
+= 231;
-= 101;
-= 361;
-= 27;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
eval(!undefined);
'';
'';
1;
#endinitclip
}
movieClip 27 __Packages.com.newgrounds.encoders.LZW {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2505 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 197 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 178;
-= 10;
-= 239;
+= 417;
+= 109;
+= 86;
+= 112;
+= 922;
+= 785;
-= 782;
-= 339;
-= 57;
-= 325;
+= 24;
-= 102;
-= 360;
+= 216;
-= 389;
+= 625;
var eval(1) = '';
-= 328;
+= 137;
+= 487;
+= 599;
-= 29;
-= 844;
-= 186;
+= 352;
+= 594;
-= 885;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 658;
true;
true;
eval(!true);
'';
true;
#endinitclip
}
movieClip 28 __Packages.com.newgrounds.Medal {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (216 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 653 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 787;
+= 714;
+= 29;
+= 800;
-= 819;
+= 142;
-= 764;
+= 369;
-= 666;
+= 12;
+= 189;
+= 39;
var = eval(1);
+= 138;
+= 20;
-= 573;
-= 201;
+= 566;
+= 697;
-= 48;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 869;
true;
true;
!'';
#endinitclip
}
movieClip 29 __Packages.com.newgrounds.ScoreBoard {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1070 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -24 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 371;
+= 13;
-= 210;
-= 106;
+= 74;
+= 290;
+= 65;
+= 413;
-= 70;
-= 545;
+= 97;
-= 858;
-= 389;
-= 73;
+= 62;
+= 433;
-= 402;
-= 155;
var eval(!1) = true;
+= 111;
+= 613;
-= 688;
-= 438;
-= 13;
+= 581;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 24;
eval(true);
true;
'';
'';
#endinitclip
}
movieClip 30 __Packages.com.newgrounds.Score {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (465 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -95 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 119;
+= 659;
-= 282;
-= 334;
+= 245;
+= 391;
-= 63;
-= 95;
-= 633;
+= 50;
-= 387;
+= 297;
+= 66;
-= 288;
+= 183;
+= 618;
-= 78;
-= 74;
+= 112;
+= 222;
var eval(!1) = true;
-= 341;
+= 754;
-= 527;
-= 850;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 370;
true;
'';
true;
;
#endinitclip
}
movieClip 31 __Packages.com.newgrounds.encoders.RC4 {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2918 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 277 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 367;
-= 84;
-= 307;
-= 82;
+= 386;
+= 126;
+= 184;
+= 802;
+= 371;
-= 266;
-= 121;
var eval(eval(!true)) = true;
-= 325;
-= 446;
-= 824;
-= 579;
-= 69;
+= 349;
-= 453;
+= 77;
+= 157;
-= 44;
-= 415;
+= 580;
-= 158;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 640;
true;
'';
'';
1;
#endinitclip
}
movieClip 32 __Packages.com.newgrounds.encoders.JSON {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2025 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 172 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 231;
+= 707;
-= 20;
-= 14;
-= 659;
+= 87;
-= 479;
+= 534;
-= 378;
-= 673;
+= 680;
-= 819;
+= 790;
-= 861;
-= 502;
-= 36;
+= 390;
-= 131;
-= 366;
var eval(1) = '';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 664;
eval(!true);
true;
'';
#endinitclip
}
movieClip 33 __Packages.com.newgrounds.APIEventDispatcher {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (481 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 415 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 609;
+= 607;
-= 1;
+= 137;
+= 174;
+= 838;
+= 217;
-= 238;
-= 459;
+= 224;
var eval(!true) = ;
-= 176;
+= 205;
-= 545;
-= 966;
-= 554;
-= 450;
+= 150;
+= 407;
+= 64;
+= 760;
+= 379;
-= 856;
-= 173;
+= 34;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 896;
true;
'';
1;
true;
#endinitclip
}
movieClip 34 __Packages.com.newgrounds.encoders.MD5 {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1148 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -91 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 624;
-= 785;
-= 151;
+= 198;
-= 31;
-= 79;
+= 221;
-= 389;
-= 581;
var eval( != 35) = true;
-= 331;
-= 65;
-= 445;
+= 424;
+= 461;
+= 541;
+= 204;
-= 401;
-= 318;
-= 1;
+= 504;
-= 434;
+= 559;
-= 123;
-= 214;
+= 111;
+= 430;
-= 179;
+= 244;
-= 97;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
1;
'';
true;
true;
!eval(true);
#endinitclip
}
frame 63 {
_root.titleson = new Sound();
var myLoopVolume = 300;
_root.titleson.setVolume(myLoopVolume);
}
movieClip 57 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 59 {
}
frame 72 {
stop();
_root.bchere.onRollOver = function () {
_root.bchere.gotoAndStop(2);
};
_root.bchere.onRollOut = function () {
_root.bchere.gotoAndStop(1);
};
_root.bchere.onRelease = function () {
gotoAndStop(73);
};
}
frame 73 {
stop();
_root.bstart.onRollOver = function () {
_root.bstart.gotoAndStop(2);
};
_root.bstart.onRollOut = function () {
_root.bstart.gotoAndStop(1);
};
_root.bstart.onRelease = function () {
local_data = SharedObject.getLocal('AS_data');
local_data.data.screenselect = 1;
local_data.flush();
gotoAndStop(74);
};
_root.bbad.onRollOver = function () {
_root.bbad.gotoAndStop(2);
};
_root.bbad.onRollOut = function () {
_root.bbad.gotoAndStop(1);
};
_root.bbad.onRelease = function () {
local_data = SharedObject.getLocal('AS_data');
local_data.data.screenselect = 3;
local_data.flush();
gotoAndStop(75);
};
}
movieClip 62 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 65 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
frame 74 {
stop();
local_data = SharedObject.getLocal('AS_data');
existdata = local_data.data.exisdata;
_root.bcontinue.onRollOut = function () {
if (existdata == 0 || existdata == NaN) {
_root.bcontinue.gotoAndStop(3);
}
if (existdata == 1) {
_root.bcontinue.gotoAndStop(1);
}
};
_root.bcontinue.onRollOver = function () {
if (existdata == 0) {
_root.bcontinue.gotoAndStop(3);
}
if (existdata == 1) {
_root.bcontinue.gotoAndStop(2);
}
};
_root.bcontinue.onRelease = function () {
if (existdata == 1) {
local_data = SharedObject.getLocal('AS_data');
local_data.data.screenselect = 1;
local_data.flush();
gotoAndPlay(76);
}
};
_root.bnewg.onRollOver = function () {
_root.bnewg.gotoAndStop(2);
};
_root.bnewg.onRollOut = function () {
_root.bnewg.gotoAndStop(1);
};
_root.bnewg.onRelease = function () {
local_data = SharedObject.getLocal('AS_data');
local_data.data.screenselect = 2;
local_data.flush();
gotoAndPlay(76);
};
}
movieClip 69 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 72 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
frame 75 {
stop();
local_data = SharedObject.getLocal('AS_data');
var medalname = new Array();
medalname = [ad1, ad2, ad3, ad4, ad5, ad6, ad7, ad8, ad9, ad10, ad11, ad12, ad13, ad14, ad15, ad16, ad17, ad18, ad19, ad20, ad21, ad22, ad23, ad24, ad25, ad26, ad27, ad28, ad29, ad30, ad31, ad32, ad33, ad34, ad35, ad36, ad37, ad38, ad39, ad40, ad41, ad42, ad43, ad44, ad45, ad46, ad47, ad48, ad49, ad50, ad51, ad52, ad53, ad54, ad55, ad56, ad57, ad58, ad59];
var medal = local_data.data.medal;
var existdata = local_data.data.exisdata;
if (existdata != 1) {
medal = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
_root.bback.onRollOver = function () {
_root.bback.gotoAndStop(2);
};
_root.bback.onRollOut = function () {
_root.bback.gotoAndStop(1);
};
_root.bback.onRelease = function () {
gotoAndPlay(63);
};
r = 0;
while (r < medal.length) {
if (medal[r] == 1) {
_root.medalname[r].gotoAndStop(2);
}
++r;
}
_root.ad1.onRollOver = function () {
_root.as1.gotoAndStop(2);
};
_root.ad1.onRollOut = function () {
_root.as1.gotoAndStop(1);
};
_root.ad2.onRollOver = function () {
_root.as2.gotoAndStop(2);
};
_root.ad2.onRollOut = function () {
_root.as2.gotoAndStop(1);
};
_root.ad3.onRollOver = function () {
_root.as3.gotoAndStop(2);
};
_root.ad3.onRollOut = function () {
_root.as3.gotoAndStop(1);
};
_root.ad4.onRollOver = function () {
_root.as4.gotoAndStop(2);
};
_root.ad4.onRollOut = function () {
_root.as4.gotoAndStop(1);
};
_root.ad5.onRollOver = function () {
_root.as5.gotoAndStop(2);
};
_root.ad5.onRollOut = function () {
_root.as5.gotoAndStop(1);
};
_root.ad6.onRollOver = function () {
_root.as6.gotoAndStop(2);
};
_root.ad6.onRollOut = function () {
_root.as6.gotoAndStop(1);
};
_root.ad7.onRollOver = function () {
_root.as7.gotoAndStop(2);
};
_root.ad7.onRollOut = function () {
_root.as7.gotoAndStop(1);
};
_root.ad8.onRollOver = function () {
_root.as8.gotoAndStop(2);
};
_root.ad8.onRollOut = function () {
_root.as8.gotoAndStop(1);
};
_root.ad9.onRollOver = function () {
_root.as9.gotoAndStop(2);
};
_root.ad9.onRollOut = function () {
_root.as9.gotoAndStop(1);
};
_root.ad10.onRollOver = function () {
_root.as10.gotoAndStop(2);
};
_root.ad10.onRollOut = function () {
_root.as10.gotoAndStop(1);
};
_root.ad11.onRollOver = function () {
_root.as11.gotoAndStop(2);
};
_root.ad11.onRollOut = function () {
_root.as11.gotoAndStop(1);
};
_root.ad12.onRollOver = function () {
_root.as12.gotoAndStop(2);
};
_root.ad12.onRollOut = function () {
_root.as12.gotoAndStop(1);
};
_root.ad13.onRollOver = function () {
_root.as13.gotoAndStop(2);
};
_root.ad13.onRollOut = function () {
_root.as13.gotoAndStop(1);
};
_root.ad14.onRollOver = function () {
_root.as14.gotoAndStop(2);
};
_root.ad14.onRollOut = function () {
_root.as14.gotoAndStop(1);
};
_root.ad15.onRollOver = function () {
_root.as15.gotoAndStop(2);
};
_root.ad15.onRollOut = function () {
_root.as15.gotoAndStop(1);
};
_root.ad16.onRollOver = function () {
_root.as16.gotoAndStop(2);
};
_root.ad16.onRollOut = function () {
_root.as16.gotoAndStop(1);
};
_root.ad17.onRollOver = function () {
_root.as17.gotoAndStop(2);
};
_root.ad17.onRollOut = function () {
_root.as17.gotoAndStop(1);
};
_root.ad18.onRollOver = function () {
_root.as18.gotoAndStop(2);
};
_root.ad18.onRollOut = function () {
_root.as18.gotoAndStop(1);
};
_root.ad19.onRollOver = function () {
_root.as19.gotoAndStop(2);
};
_root.ad19.onRollOut = function () {
_root.as19.gotoAndStop(1);
};
_root.ad20.onRollOver = function () {
_root.as20.gotoAndStop(2);
};
_root.ad20.onRollOut = function () {
_root.as20.gotoAndStop(1);
};
_root.ad21.onRollOver = function () {
_root.as21.gotoAndStop(2);
};
_root.ad21.onRollOut = function () {
_root.as21.gotoAndStop(1);
};
_root.ad22.onRollOver = function () {
_root.as22.gotoAndStop(2);
};
_root.ad22.onRollOut = function () {
_root.as22.gotoAndStop(1);
};
_root.ad23.onRollOver = function () {
_root.as23.gotoAndStop(2);
};
_root.ad23.onRollOut = function () {
_root.as23.gotoAndStop(1);
};
_root.ad24.onRollOver = function () {
_root.as24.gotoAndStop(2);
};
_root.ad24.onRollOut = function () {
_root.as24.gotoAndStop(1);
};
_root.ad25.onRollOver = function () {
_root.as25.gotoAndStop(2);
};
_root.ad25.onRollOut = function () {
_root.as25.gotoAndStop(1);
};
_root.ad26.onRollOver = function () {
_root.as26.gotoAndStop(2);
};
_root.ad26.onRollOut = function () {
_root.as26.gotoAndStop(1);
};
_root.ad27.onRollOver = function () {
_root.as27.gotoAndStop(2);
};
_root.ad27.onRollOut = function () {
_root.as27.gotoAndStop(1);
};
_root.ad28.onRollOver = function () {
_root.as28.gotoAndStop(2);
};
_root.ad28.onRollOut = function () {
_root.as28.gotoAndStop(1);
};
_root.ad29.onRollOver = function () {
_root.as29.gotoAndStop(2);
};
_root.ad29.onRollOut = function () {
_root.as29.gotoAndStop(1);
};
_root.ad30.onRollOver = function () {
_root.as30.gotoAndStop(2);
};
_root.ad30.onRollOut = function () {
_root.as30.gotoAndStop(1);
};
_root.ad31.onRollOver = function () {
_root.as31.gotoAndStop(2);
};
_root.ad31.onRollOut = function () {
_root.as31.gotoAndStop(1);
};
_root.ad32.onRollOver = function () {
_root.as32.gotoAndStop(2);
};
_root.ad32.onRollOut = function () {
_root.as32.gotoAndStop(1);
};
_root.ad33.onRollOver = function () {
_root.as33.gotoAndStop(2);
};
_root.ad33.onRollOut = function () {
_root.as33.gotoAndStop(1);
};
_root.ad34.onRollOver = function () {
_root.as34.gotoAndStop(2);
};
_root.ad34.onRollOut = function () {
_root.as34.gotoAndStop(1);
};
_root.ad35.onRollOver = function () {
_root.as35.gotoAndStop(2);
};
_root.ad35.onRollOut = function () {
_root.as35.gotoAndStop(1);
};
_root.ad36.onRollOver = function () {
_root.as36.gotoAndStop(2);
};
_root.ad36.onRollOut = function () {
_root.as36.gotoAndStop(1);
};
_root.ad37.onRollOver = function () {
_root.as37.gotoAndStop(2);
};
_root.ad37.onRollOut = function () {
_root.as37.gotoAndStop(1);
};
_root.ad38.onRollOver = function () {
_root.as38.gotoAndStop(2);
};
_root.ad38.onRollOut = function () {
_root.as38.gotoAndStop(1);
};
_root.ad39.onRollOver = function () {
_root.as39.gotoAndStop(2);
};
_root.ad39.onRollOut = function () {
_root.as39.gotoAndStop(1);
};
_root.ad40.onRollOver = function () {
_root.as40.gotoAndStop(2);
};
_root.ad40.onRollOut = function () {
_root.as40.gotoAndStop(1);
};
_root.ad41.onRollOver = function () {
_root.as41.gotoAndStop(2);
};
_root.ad41.onRollOut = function () {
_root.as41.gotoAndStop(1);
};
_root.ad42.onRollOver = function () {
_root.as42.gotoAndStop(2);
};
_root.ad42.onRollOut = function () {
_root.as42.gotoAndStop(1);
};
_root.ad43.onRollOver = function () {
_root.as43.gotoAndStop(2);
};
_root.ad43.onRollOut = function () {
_root.as43.gotoAndStop(1);
};
_root.ad44.onRollOver = function () {
_root.as44.gotoAndStop(2);
};
_root.ad44.onRollOut = function () {
_root.as44.gotoAndStop(1);
};
_root.ad45.onRollOver = function () {
_root.as45.gotoAndStop(2);
};
_root.ad45.onRollOut = function () {
_root.as45.gotoAndStop(1);
};
_root.ad46.onRollOver = function () {
_root.as46.gotoAndStop(2);
};
_root.ad46.onRollOut = function () {
_root.as46.gotoAndStop(1);
};
_root.ad47.onRollOver = function () {
_root.as47.gotoAndStop(2);
};
_root.ad47.onRollOut = function () {
_root.as47.gotoAndStop(1);
};
_root.ad48.onRollOver = function () {
_root.as48.gotoAndStop(2);
};
_root.ad48.onRollOut = function () {
_root.as48.gotoAndStop(1);
};
_root.ad49.onRollOver = function () {
_root.as49.gotoAndStop(2);
};
_root.ad49.onRollOut = function () {
_root.as49.gotoAndStop(1);
};
_root.ad50.onRollOver = function () {
_root.as50.gotoAndStop(2);
};
_root.ad50.onRollOut = function () {
_root.as50.gotoAndStop(1);
};
_root.ad51.onRollOver = function () {
_root.as51.gotoAndStop(2);
};
_root.ad51.onRollOut = function () {
_root.as51.gotoAndStop(1);
};
_root.ad52.onRollOver = function () {
_root.as52.gotoAndStop(2);
};
_root.ad52.onRollOut = function () {
_root.as52.gotoAndStop(1);
};
_root.ad53.onRollOver = function () {
_root.as53.gotoAndStop(2);
};
_root.ad53.onRollOut = function () {
_root.as53.gotoAndStop(1);
};
_root.ad54.onRollOver = function () {
_root.as54.gotoAndStop(2);
};
_root.ad54.onRollOut = function () {
_root.as54.gotoAndStop(1);
};
_root.ad55.onRollOver = function () {
_root.as55.gotoAndStop(2);
};
_root.ad55.onRollOut = function () {
_root.as55.gotoAndStop(1);
};
_root.ad56.onRollOver = function () {
_root.as56.gotoAndStop(2);
};
_root.ad56.onRollOut = function () {
_root.as56.gotoAndStop(1);
};
_root.ad57.onRollOver = function () {
_root.as57.gotoAndStop(2);
};
_root.ad57.onRollOut = function () {
_root.as57.gotoAndStop(1);
};
_root.ad58.onRollOver = function () {
_root.as58.gotoAndStop(2);
};
_root.ad58.onRollOut = function () {
_root.as58.gotoAndStop(1);
};
_root.ad59.onRollOver = function () {
_root.as59.gotoAndStop(2);
};
_root.ad59.onRollOut = function () {
_root.as59.gotoAndStop(1);
};
}
movieClip 76 {
frame 1 {
stop();
}
frame 2 {
stop();
z;
}
}
movieClip 80 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 83 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 86 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 89 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 92 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 95 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 98 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 101 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 104 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 107 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 110 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 113 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 116 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 119 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 122 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 125 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 128 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 131 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 134 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 137 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 140 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 143 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 146 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 149 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 152 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 155 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 158 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 161 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 164 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 167 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 170 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 173 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 176 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 179 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 182 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 185 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 188 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 191 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 194 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 197 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 200 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 203 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 206 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 209 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 212 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 215 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 218 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 221 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 224 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 227 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 230 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 233 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 236 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 239 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 242 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 245 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 248 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 251 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 254 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 256 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 258 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 260 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 262 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 264 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 266 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 268 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 270 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 272 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 274 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 276 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 278 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 280 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 282 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 284 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 286 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 288 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 290 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 292 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 294 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 296 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 298 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 300 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 302 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 304 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 306 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 308 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 310 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 312 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 314 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 316 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 318 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 320 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 322 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 324 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 326 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 328 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 330 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 332 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 334 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 336 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 338 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 340 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 342 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 344 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 346 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 348 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 350 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 352 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 354 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 356 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 358 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 360 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 362 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 364 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 366 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 368 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 370 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 372 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
frame 76 {
_root.titleson = new Sound();
var myLoopVolume = 90;
_root.titleson.setVolume(myLoopVolume);
}
frame 77 {
_root.titleson = new Sound();
var myLoopVolume = 70;
_root.titleson.setVolume(myLoopVolume);
}
frame 78 {
_root.titleson = new Sound();
var myLoopVolume = 50;
_root.titleson.setVolume(myLoopVolume);
}
frame 79 {
_root.titleson = new Sound();
var myLoopVolume = 40;
_root.titleson.setVolume(myLoopVolume);
}
frame 80 {
_root.titleson = new Sound();
var myLoopVolume = 30;
_root.titleson.setVolume(myLoopVolume);
}
frame 81 {
_root.titleson = new Sound();
var myLoopVolume = 10;
_root.titleson.setVolume(myLoopVolume);
}
frame 82 {
_root.titleson = new Sound();
var myLoopVolume = 0;
_root.titleson.setVolume(myLoopVolume);
}
frame 87 {
stop();
local_data = SharedObject.getLocal('AS_data');
screenselect = local_data.data.screenselect;
existdata = local_data.data.exisdata;
if (screenselect == 1) {
if (existdata == 1) {
if (local_data.data.playerbe[2] == 1) {
local_data.data.playerbe = [2, 0, 1];
local_data.data.entrance = 1;
local_data.data.lives = 4;
local_data.flush();
gotoAndPlay(92);
}
if (local_data.data.playerbe[2] == 2) {
local_data.data.playerbe = [4, 0, 2];
local_data.data.entrance = 1;
local_data.data.lives = 4;
local_data.flush();
gotoAndPlay(367);
}
if (local_data.data.playerbe[2] == 3) {
local_data.data.playerbe = [0, 0, 3];
local_data.data.entrance = 1;
local_data.data.lives = 4;
local_data.flush();
gotoAndPlay(620);
}
if (local_data.data.playerbe[2] == 4) {
gotoAndPlay(621);
}
if (local_data.data.playerbe[2] == 5) {
gotoAndPlay(665);
}
}
}
if (screenselect == 2) {
local_data.data.playerbe = [2, 0, 1];
local_data.data.entrance = 1;
local_data.data.itemhave = [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0]];
local_data.data.nexxtlv = [0, 100, 200, 300, 400, 500, 800, 1000, 1200, 1600, 1800, 2000, 2200, 2500, 2800, 3100, 3200, 3400, 3600, 3800, 4000, 4100, 4200, 4400, 4600, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000, 16000, 17000, 18000, 19000, 20000, 21000, 22000, 23000, 24000, 25000, 30000, 35000, 40000, 45000, 50000, 55000, 60000, 65000, 70000, 75000, 80000, 85000, 90000, 95000, 100000, 105000, 110000, 115000, 120000, 125000, 130000, 135000, 140000, 145000, 150000, 155000, 160000, 165000, 170000, 175000, 200000, 220000, 240000, 260000, 280000, 300000];
local_data.data.nexxtlvw1 = [3, 5, 8, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 55, 60, 65, 70, 75, 80, 85, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 750, 800, 850, 900, 950, 1000, 1200, 1400, 1600, 1800, 2000, 2200, 2400, 2600, 2800, 3000, 3000, 3000, 3000, 3000];
local_data.data.nexxtlvw2 = [5, 10, 12, 15, 18, 20, 22, 25, 30, 32, 35, 38, 40, 45, 50, 55, 60, 70, 80, 90, 110, 130, 160, 190, 210, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 900, 1000, 1200, 1400, 1600, 1800, 2000, 2200, 2400, 2600, 2800, 3000, 3400, 3200, 3600, 4000, 4400, 4800, 5000, 5000, 5000, 5000, 5000, 5000, 5000];
local_data.data.nexxtlvw3 = [10, 50, 100, 250, 800, 1200, 999999999, 999999999, 999999999, 999999999, 999999999, 999999999, 999999999];
if (existdata != 1) {
local_data.data.medal = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
local_data.data.levelpass = 0;
local_data.data.playerhp = 50;
local_data.data.dañoplayer = 0;
local_data.data.lvplayer = 1;
local_data.data.coinhave = 0;
local_data.data.power = 0;
local_data.data.equipw1 = 1;
local_data.data.equipw2 = 1;
local_data.data.score = 0;
local_data.data.mineral = 0;
local_data.data.expw1lv = 0;
local_data.data.expw2lv = 0;
local_data.data.expw3lv = 0;
local_data.data.expw1 = 0;
local_data.data.expw2 = 0;
local_data.data.expw3 = 0;
local_data.data.expe = 0;
local_data.data.w1attack = 0;
local_data.data.w2attack = 0;
local_data.data.guncost = 5;
local_data.data.itembox = [0, 0, 0, 0, 0, 0, 0];
local_data.data.handhave = 1;
local_data.data.swordhave = 0;
local_data.data.gunhave = 0;
local_data.data.levelpass = 0;
local_data.data.greenflea = 0;
local_data.data.redsquid = 0;
local_data.data.leach = 0;
local_data.data.plasma = 0;
local_data.data.abomination = 0;
local_data.data.devourer = 0;
local_data.data.firefly = 0;
local_data.data.octron = 0;
local_data.data.lily = 0;
local_data.data.errorr = 0;
local_data.data.qsoldier = 0;
local_data.data.mom = 0;
local_data.data.healp = 0;
local_data.data.powering = 0;
local_data.data.clearing = 0;
local_data.data.lives = 4;
local_data.data.timeplaying = 0;
local_data.data.mutek = 0;
local_data.data.fbarrier1 = 0;
local_data.data.fbarrier2 = 0;
local_data.data.fbarrier3 = 0;
local_data.data.fbarrier4 = 0;
existdata = 1;
local_data.data.exisdata = existdata;
local_data.flush();
gotoAndPlay(92);
}
if (screenselect == 3) {
gotoAndPlay(91);
}
}
frame 90 {
stop();
gotoAndPlay(353);
}
frame 94 {
_root.titleson = new Sound();
var myLoopVolume = 0;
_root.titleson.setVolume(myLoopVolume);
}
frame 95 {
_root.titleson = new Sound();
var myLoopVolume = 10;
_root.titleson.setVolume(myLoopVolume);
}
frame 96 {
_root.titleson = new Sound();
var myLoopVolume = 20;
_root.titleson.setVolume(myLoopVolume);
}
frame 97 {
_root.titleson = new Sound();
var myLoopVolume = 30;
_root.titleson.setVolume(myLoopVolume);
}
frame 98 {
_root.titleson = new Sound();
var myLoopVolume = 40;
_root.titleson.setVolume(myLoopVolume);
}
frame 99 {
_root.titleson = new Sound();
var myLoopVolume = 50;
_root.titleson.setVolume(myLoopVolume);
}
frame 100 {
_root.titleson = new Sound();
var myLoopVolume = 70;
_root.titleson.setVolume(myLoopVolume);
}
frame 101 {
_root.titleson = new Sound();
var myLoopVolume = 80;
_root.titleson.setVolume(myLoopVolume);
}
frame 102 {
_root.titleson = new Sound();
var myLoopVolume = 90;
_root.titleson.setVolume(myLoopVolume);
}
frame 103 {
_root.titleson = new Sound();
var myLoopVolume = 100;
_root.titleson.setVolume(myLoopVolume);
}
movieClip 381 {
}
frame 342 {
_root.titleson = new Sound();
var myLoopVolume = 90;
_root.titleson.setVolume(myLoopVolume);
}
frame 343 {
_root.titleson = new Sound();
var myLoopVolume = 80;
_root.titleson.setVolume(myLoopVolume);
}
frame 344 {
_root.titleson = new Sound();
var myLoopVolume = 70;
_root.titleson.setVolume(myLoopVolume);
}
frame 345 {
_root.titleson = new Sound();
var myLoopVolume = 60;
_root.titleson.setVolume(myLoopVolume);
}
frame 346 {
_root.titleson = new Sound();
var myLoopVolume = 50;
_root.titleson.setVolume(myLoopVolume);
}
frame 347 {
_root.titleson = new Sound();
var myLoopVolume = 40;
_root.titleson.setVolume(myLoopVolume);
}
frame 348 {
_root.titleson = new Sound();
var myLoopVolume = 30;
_root.titleson.setVolume(myLoopVolume);
}
frame 349 {
_root.titleson = new Sound();
var myLoopVolume = 20;
_root.titleson.setVolume(myLoopVolume);
}
frame 350 {
_root.titleson = new Sound();
var myLoopVolume = 10;
_root.titleson.setVolume(myLoopVolume);
}
frame 351 {
_root.titleson = new Sound();
var myLoopVolume = 0;
_root.titleson.setVolume(myLoopVolume);
}
frame 352 {
gotoAndPlay(353);
}
frame 353 {
_root.titleson = new Sound();
var myLoopVolume = 300;
_root.titleson.setVolume(myLoopVolume);
}
frame 353 {
stop();
local_data = SharedObject.getLocal('AS_data');
if (local_data.data.playerbe[2] == 1) {
gotoAndStop(354);
}
if (local_data.data.playerbe[2] == 2) {
gotoAndStop(356);
}
if (local_data.data.playerbe[2] == 3) {
gotoAndStop(358);
}
}
frame 354 {
function musicon() {
if (gameover == false) {
if (playerbe[2] == 1) {
if (bosshere == false) {
_root.niv1.gotoAndStop(2);
_root.bosss.gotoAndStop(1);
_root.oversound.gotoAndStop(1);
}
if (bosshere == true) {
_root.bosss.gotoAndStop(2);
_root.niv1.gotoAndStop(1);
_root.oversound.gotoAndStop(1);
}
}
}
}
function givepos() {}
function domap() {
_root.game.createEmptyMovieClip('backg', -1);
espaciom = 320 * (fullmap[playerbe[0]][playerbe[1]][0].length - 1);
a = 0;
while (a < fullmap[playerbe[0]][playerbe[1]][0].length) {
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 1) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(1);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 2) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(2);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 3) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(3);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 4) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(4);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 5) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(5);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 6) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(6);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 7) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(7);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 8) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(8);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 9) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(9);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 10) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(10);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 11) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(11);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 12) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(12);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 13) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(13);
}
++a;
}
i = 0;
while (i < fullmap[playerbe[0]][playerbe[1]][1].length) {
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 1) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(1);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 2) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(2);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 3) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(3);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 4) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(4);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 5) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(5);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 6) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(6);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 7) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(7);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 8) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(8);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 9) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(9);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 10) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(10);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 11) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(11);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 12) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(12);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 13) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(13);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 14) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(14);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 15) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(15);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 16) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(16);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 17) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(17);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 18) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(18);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 19) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(19);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 20) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(20);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 21) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(21);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 22) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(22);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 23) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(23);
}
++i;
}
if (fullmap[playerbe[0]][playerbe[1]][2][0] == 1) {
_root.game.backg.attachMovie('levi', 'lev', game.backg.getNextHighestDepth(), {'_x': fullmap[playerbe[0]][playerbe[1]][0].length * 320 - 120, '_y': 400, '_rotation': -48, '_alpha': 0});
}
if (fullmap[playerbe[0]][playerbe[1]][3][0] == 1) {
_root.game.backg.attachMovie('levi', 'levi', game.backg.getNextHighestDepth(), {'_x': fullmap[playerbe[0]][playerbe[1]][0].length * 320 * -1 + 120, '_y': 400, '_rotation': 48, '_alpha': 0});
}
if (entrance == 1) {
_root.game.backg._x += _root.game.backg._width / 2;
direct = 0;
_root.game.playerfull._x = 300.5;
}
if (entrance == 2) {
_root.game.backg._x -= _root.game.backg._width / 2 - 640;
direct = 1;
_root.game.playerfull._x = 300.5;
}
if (entrance == 3) {
direct = 1;
_root.game.backg._x += 320;
_root.game.playerfull._x = 320.5;
}
}
function alignitems() {
_root.game.itembase.vitalidcon._y = -1500;
_root.game.itembase.mediccon._y = -1500;
_root.game.itembase.regencon._y = -1500;
_root.game.itembase.energycon._y = -1500;
_root.game.itembase.xhcon._y = -1500;
_root.game.itembase.blindcon._y = -1500;
_root.game.itembase.ammoacon._y = -1500;
_root.game.itembase.ammobcon._y = -1500;
_root.game.itembase.ammoccon._y = -1500;
_root.game.itembase.ammodcon._y = -1500;
_root.game.itembase.ammoecon._y = -1500;
_root.game.itembase.ammoxcon._y = -1500;
i = 0;
while (i < itemhave.length) {
if (itemhave[i][0] == 1) {
_root.game.itembase.vitalidcon._x = -76.5 + i * 37;
_root.game.itembase.vitalidcon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.vitalidcon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 2) {
_root.game.itembase.mediccon._x = -76.5 + i * 37;
_root.game.itembase.mediccon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.mediccon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 3) {
_root.game.itembase.regencon._x = -76.5 + i * 37;
_root.game.itembase.regencon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.regencon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 4) {
_root.game.itembase.energycon._x = -76.5 + i * 37;
_root.game.itembase.energycon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.energycon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 5) {
_root.game.itembase.xhcon._x = -76.5 + i * 37;
_root.game.itembase.xhcon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.xhcon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 6) {
_root.game.itembase.soldiercon._x = -76.5 + i * 37;
_root.game.itembase.soldiercon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.soldiercon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 7) {
_root.game.itembase.blindcon._x = -76.5 + i * 37;
_root.game.itembase.blindcon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.blindcon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 16) {
_root.game.itembase.ammoacon._x = -76.5 + i * 37;
_root.game.itembase.ammoacon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 1;
_root.game.itembase.ammoacon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 17) {
_root.game.itembase.ammobcon._x = -76.5 + i * 37;
_root.game.itembase.ammobcon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 2;
_root.game.itembase.ammobcon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 18) {
_root.game.itembase.ammoccon._x = -76.5 + i * 37;
_root.game.itembase.ammoccon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 3;
_root.game.itembase.ammoccon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 19) {
_root.game.itembase.ammodcon._x = -76.5 + i * 37;
_root.game.itembase.ammodcon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 4;
_root.game.itembase.ammodcon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 20) {
_root.game.itembase.ammoecon._x = -76.5 + i * 37;
_root.game.itembase.ammoecon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 5;
_root.game.itembase.ammoecon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 21) {
_root.game.itembase.ammoxcon._x = -76.5 + i * 37;
_root.game.itembase.ammoxcon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 6;
_root.game.itembase.ammoxcon.gotoAndStop(2);
}
}
++i;
}
}
function useitemn() {
if (Key.isDown(97) && atacktime != true && itempress == false || Key.isDown(49) && atacktime != true && itempress == false) {
itempress = true;
axe = 0;
idenitem();
}
if (Key.isDown(98) && atacktime != true && itempress == false || Key.isDown(50) && atacktime != true && itempress == false) {
itempress = true;
axe = 1;
idenitem();
}
if (Key.isDown(99) && atacktime != true && itempress == false || Key.isDown(51) && atacktime != true && itempress == false) {
itempress = true;
axe = 2;
idenitem();
}
if (Key.isDown(100) && atacktime != true && itempress == false || Key.isDown(52) && atacktime != true && itempress == false) {
itempress = true;
axe = 3;
idenitem();
}
if (Key.isDown(101) && atacktime != true && itempress == false || Key.isDown(53) && atacktime != true && itempress == false) {
itempress = true;
axe = 4;
idenitem();
}
if (!Key.isDown(101) && !Key.isDown(98) && !Key.isDown(99) && !Key.isDown(100) && !Key.isDown(97) && itempress == true && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52) && !Key.isDown(53)) {
itempress = false;
}
}
function idenitem() {
if (itemhave[axe][0] == 1) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[0] -= 1;
dañoplayer -= 50;
healp += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.vitalidcon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 2) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[1] -= 1;
dañoplayer -= 200;
healp += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.mediccon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 3) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[2] -= 1;
dañoplayer = 0;
healp += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.regencon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 4) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[3] -= 1;
power += 50;
powering += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.energycon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 5) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[4] -= 1;
power += 100;
powering += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.xhcon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 6) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
cuanti = itemhave[axe][1] + 1;
acceleration = true;
_root.game.itembase.soldiercon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 7) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[5] -= 1;
clearing += 1;
l = 0;
while (l < manchaslist.length) {
manchis = _root.game[manchaslist[l]];
manchis.removeMovieClip();
++l;
}
manchaslist.splice(0, manchaslist.length);
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.blindcon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 16) {
ammoeq = axe;
typeammo = 1;
_root.game.itembase.ammoacon.gotoAndStop(2);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 17) {
ammoeq = axe;
typeammo = 2;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(2);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 18) {
ammoeq = axe;
typeammo = 3;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(2);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 19) {
ammoeq = axe;
typeammo = 4;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(2);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 20) {
ammoeq = axe;
typeammo = 5;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(2);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 21) {
ammoeq = axe;
typeammo = 6;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(2);
}
}
function informationp() {
if (knucleuse == true) {
mineral = expw1;
mineraltogo = expw1g;
if (expw1 >= expw1g) {
expw1lv += 1;
expw1 = 0;
expw1g = nexxtlvw1[expw1lv];
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
w1attack += 5;
_root.adchiso.gotoAndPlay(2);
_root.game.itembase.weponups.gotoAndStop(2);
}
}
if (sworduse == true) {
mineral = expw2;
mineraltogo = expw2g;
if (expw2 >= expw2g) {
expw2lv += 1;
expw2 = 0;
expw2g = nexxtlvw2[expw2lv];
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
w2attack += 5;
_root.adchiso.gotoAndPlay(2);
_root.game.itembase.weponups.gotoAndStop(2);
}
}
if (gunuse == true) {
mineral = expw3;
mineraltogo = expw3g;
if (expw3 >= expw3g) {
expw3lv += 1;
expw3 = 0;
expw3g = nexxtlvw3[expw3lv];
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
guncost += 1;
_root.adchiso.gotoAndPlay(2);
_root.game.itembase.weponups.gotoAndStop(2);
}
}
if (_root.game.itembase.weponups.web._currentframe == 26) {
_root.game.itembase.weponups.gotoAndStop(1);
}
if (_root.game.itembase.levelups.web._currentframe == 26) {
_root.game.itembase.levelups.gotoAndStop(1);
}
if (expe >= expetogo) {
lvplayer += 1;
expe = 0;
expetogo = nexxtlv[lvplayer];
experietolv();
dañoplayer = 0;
_root.adchiso.gotoAndPlay(2);
playerhp += 50;
_root.game.itembase.levelups.gotoAndStop(2);
}
if (power > 200) {
power = 200;
}
if (power == 200) {
_root.game.spbar.gotoAndStop(2);
}
if (power < 200) {
_root.game.spbar.gotoAndStop(1);
}
if (dañoplayer < 0) {
dañoplayer = 0;
}
totalpower = Math.floor(power);
_root.game.spbar.spmask._xscale = totalpower / 2;
levelde = Math.floor(lvplayer / 10);
levelun = Math.floor(lvplayer - levelde * 10);
_root.game.lvdeci.gotoAndStop(levelde + 1);
_root.game.lvuni.gotoAndStop(levelun + 1);
smillo = Math.floor(mineral / 100000000);
ssmildeci = Math.floor((mineral - smillo * 100000000) / 10000000);
ssmiluni = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000) / 1000000);
ssmil = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000) / 100000);
smildeci = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000) / 10000);
smiluni = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000) / 1000);
smil = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000 - smiluni * 1000) / 100);
sdeci = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000 - smiluni * 1000 - smil * 100) / 10);
suni = Math.floor(mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000 - smiluni * 1000 - smil * 100 - sdeci * 10);
_root.game.itembase.souni.gotoAndStop(suni + 1);
_root.game.itembase.sodeci.gotoAndStop(sdeci + 1);
_root.game.itembase.somil.gotoAndStop(smil + 1);
_root.game.itembase.somiluni.gotoAndStop(smiluni + 1);
_root.game.itembase.somildeci.gotoAndStop(smildeci + 1);
_root.game.itembase.socmil.gotoAndStop(ssmil + 1);
_root.game.itembase.socmiluni.gotoAndStop(ssmiluni + 1);
_root.game.itembase.socmildeci.gotoAndStop(ssmildeci + 1);
_root.game.itembase.somillo.gotoAndStop(smillo + 1);
if (smillo > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 100;
_root.game.itembase.socmildeci._alpha = 100;
_root.game.itembase.somillo._alpha = 100;
} else {
if (ssmildeci > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 100;
_root.game.itembase.socmildeci._alpha = 100;
_root.game.itembase.somillo._alpha = 0;
} else {
if (ssmiluni > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 100;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (ssmil > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (smildeci > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (smiluni > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (smil > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (sdeci > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 0;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (suni > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 0;
_root.game.itembase.somil._alpha = 0;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (suni == 0 && sdeci == 0 && smil == 0 && smiluni == 0 && smildeci == 0 && ssmil == 0 && ssmiluni == 0 && ssmildeci == 0 && smillo == 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 0;
_root.game.itembase.somil._alpha = 0;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
scoremi = Math.floor((mineral / mineraltogo) * 100);
_root.game.itembase.scoremask._xscale = scoremi;
emillo = Math.floor(expe / 100000000);
eemildeci = Math.floor((expe - emillo * 100000000) / 10000000);
eemiluni = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000) / 1000000);
eemil = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000) / 100000);
emildeci = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000) / 10000);
emiluni = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000) / 1000);
emil = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000 - emiluni * 1000) / 100);
edeci = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000 - emiluni * 1000 - emil * 100) / 10);
euni = Math.floor(expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000 - emiluni * 1000 - emil * 100 - edeci * 10);
_root.game.itembase.eouni.gotoAndStop(euni + 1);
_root.game.itembase.eodeci.gotoAndStop(edeci + 1);
_root.game.itembase.eomil.gotoAndStop(emil + 1);
_root.game.itembase.eomiluni.gotoAndStop(emiluni + 1);
_root.game.itembase.eomildeci.gotoAndStop(emildeci + 1);
_root.game.itembase.eocmil.gotoAndStop(eemil + 1);
_root.game.itembase.eocmiluni.gotoAndStop(eemiluni + 1);
_root.game.itembase.eocmildeci.gotoAndStop(eemildeci + 1);
_root.game.itembase.eomillo.gotoAndStop(emillo + 1);
if (emillo > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 100;
_root.game.itembase.eocmildeci._alpha = 100;
_root.game.itembase.eomillo._alpha = 100;
} else {
if (eemildeci > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 100;
_root.game.itembase.eocmildeci._alpha = 100;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (eemiluni > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 100;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (eemil > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (emildeci > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.itembase.eomillo._alpha = 0;
} else {
if (emiluni > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (emil > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (edeci > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 0;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (euni > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 0;
_root.game.itembase.eomil._alpha = 0;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (euni == 0 && edeci == 0 && emil == 0 && emiluni == 0 && emildeci == 0 && eemil == 0 && eemiluni == 0 && eemildeci == 0 && emillo == 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 0;
_root.game.itembase.eomil._alpha = 0;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
expemi = Math.floor((expe / expetogo) * 100);
_root.game.itembase.expmask._xscale = expemi;
hppb = Math.floor(100 - (dañoplayer / playerhp) * 100);
_root.game.imhpbar.hpmask._xscale = hpfinal;
if (hpfinal != hppb) {
hpfinal = hppb;
}
}
function playerwalk() {
while (_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true)) {
_root.game.playerfull._x -= 10;
}
while (_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true)) {
_root.game.playerfull._x += 10;
}
if (uncathcount >= 10) {
playercath = false;
atacktime = false;
presy = false;
uncathcount = 0;
}
if (acceleration == true) {
acceleration = false;
acecount = 1440;
speedup = 10;
}
if (acecount > 0) {
acecount -= 1;
}
if (acecount <= 0) {
speedup = 0;
}
if (slow == true) {
slow = false;
acecount = 240;
speedup = -5;
}
_root.game.playerfull.swapDepths(_root.game.playerfull._y * _root.game.playerfull._y);
if (nowalk == true && direct == 0 && blocks == false && evade == false && atacktime == false && !Key.isDown(38) && !Key.isDown(40)) {
_root.game.playerfull.gotoAndStop(1);
}
if (nowalk == true && direct == 1 && blocks == false && evade == false && atacktime == false && !Key.isDown(38) && !Key.isDown(40)) {
_root.game.playerfull.gotoAndStop(4);
}
if (Key.isDown(39)) {
scrollmove();
if (_root.game.playerfull._x < 610 && atacktime == false && playercath == false && blocks == false && evade == false) {
_root.game.playerfull._x += walkspeed + speedup;
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
if (sworduse == true) {
_root.game.playerfull.swalkr.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(2);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
direct = 0;
nowalk = false;
}
if (playercath == true && pressright == false) {
uncathcount += 1;
pressright = true;
pressleft = false;
}
} else {
if (Key.isDown(37)) {
scrollmove();
if (_root.game.playerfull._x > 30 && atacktime == false && playercath == false && blocks == false && evade == false) {
_root.game.playerfull._x -= walkspeed + speedup;
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
if (sworduse == true) {
_root.game.playerfull.swalkl.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(3);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
direct = 1;
nowalk = false;
}
if (playercath == true && pressleft == false) {
uncathcount += 1;
pressleft = true;
pressright = false;
}
} else {
if (!Key.isDown(39)) {
nowalk = true;
}
}
}
if (Key.isDown(38)) {
if (_root.game.playerfull._y > 250 && atacktime == false && blocks == false && evade == false) {
if (movingmap == false) {
_root.game.playerfull._y -= walkspeed + speedup;
}
if (movingmap == true) {
_root.game.playerfull._y -= 10;
}
if (direct == 0) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
if (sworduse == true) {
_root.game.playerfull.swalkr.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(2);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
}
if (direct == 1) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
if (sworduse == true) {
_root.game.playerfull.swalkl.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(3);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
}
}
} else {
if (Key.isDown(40)) {
if (_root.game.playerfull._y < 440 && atacktime == false && blocks == false && evade == false) {
if (movingmap == false) {
_root.game.playerfull._y += walkspeed + speedup;
}
if (movingmap == true) {
_root.game.playerfull._y += 10;
}
if (direct == 0) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
if (sworduse == true) {
_root.game.playerfull.swalkr.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(2);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
}
if (direct == 1) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
if (sworduse == true) {
_root.game.playerfull.swalkl.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(3);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
}
}
}
}
}
function playeratk() {
if (_root.game.playerfull.revade._currentframe == 6 && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
evade = false;
presy = false;
}
if (_root.game.playerfull.revade._currentframe == 6 && direct == 1) {
_root.game.playerfull.gotoAndStop(1);
direct = 0;
evade = false;
presy = false;
}
if (_root.game.playerfull.levade._currentframe == 6 && direct == 0) {
_root.game.playerfull.gotoAndStop(4);
direct = 1;
evade = false;
presy = false;
}
if (_root.game.playerfull.levade._currentframe == 6 && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
evade = false;
presy = false;
}
if (_root.game.playerfull.revade._currentframe == 2 && direct == 0) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 3 && direct == 0) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 4 && direct == 0) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 2 && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 3 && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 4 && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.levade._currentframe == 2 && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 3 && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 4 && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 2 && direct == 1) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 3 && direct == 1) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 4 && direct == 1) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.kpd._currentframe == 4) {
atacktime = false;
_root.game.playerfull.gotoAndStop(1);
}
if (_root.game.playerfull.kpi._currentframe == 4) {
atacktime = false;
_root.game.playerfull.gotoAndStop(4);
}
if (_root.game.playerfull.specialpd._currentframe == 5 && knucleuse == true && direct == 0) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (ristalx <= 120 && ristaly <= 100 && alienob.signs != 1) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 200;
damagedo = w1attack + 200;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
++a;
}
}
if (_root.game.playerfull.specialpd._currentframe == 14 && knucleuse == true && direct == 0) {
superp = false;
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.specialpi._currentframe == 5 && knucleuse == true && direct == 1) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (ristalx <= 120 && ristaly <= 100 && alienob.signs != 1) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 200;
damagedo = w1attack + 200;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
++a;
}
}
if (_root.game.playerfull.specialpi._currentframe == 14 && knucleuse == true && direct == 1) {
superp = false;
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 4 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
power += 2;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 5;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 9 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 40;
damagedo = w1attack + 40;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 20;
}
power += 3;
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 17 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 60;
damagedo = w1attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 30;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 23 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 24 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 25 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 16 && knucleuse == true && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.rpunch._currentframe == 17 && knucleuse == true && direct == 0) {
deraprox = _root.game.playerfull._x + 20;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 20;
}
}
if (_root.game.playerfull.rpunch._currentframe == 18 && knucleuse == true && direct == 0) {
deraprox = _root.game.playerfull._x + 10;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 10;
}
}
if (_root.game.playerfull.rpunch._currentframe == 5 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 13 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 21 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 27 && knucleuse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.rpunch._currentframe > 2 && _root.game.playerfull.rpunch._currentframe <= 5 && knucleuse == true && direct == 0 && presy == false) {
timing = true;
}
if (_root.game.playerfull.rpunch._currentframe == 5 && knucleuse == true && direct == 0 && timing == true) {
timing = false;
_root.game.playerfull.rpunch.gotoAndPlay(7);
}
if (Key.isDown(88) && _root.game.playerfull.rpunch._currentframe > 8 && _root.game.playerfull.rpunch._currentframe <= 11 && knucleuse == true && direct == 0 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.rpunch._currentframe == 11 && knucleuse == true && direct == 0 && timing == true && power >= 5) {
timing = false;
power -= 5;
_root.game.playerfull.rpunch.gotoAndPlay(14);
}
if (_root.game.playerfull.rpunch._currentframe == 11 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.rpunch.gotoAndPlay(12);
}
if (Key.isDown(88) && _root.game.playerfull.rpunch._currentframe > 16 && _root.game.playerfull.rpunch._currentframe <= 21 && knucleuse == true && direct == 0 && presy == false && power >= 10) {
timing = true;
}
if (_root.game.playerfull.rpunch._currentframe == 21 && knucleuse == true && direct == 0 && timing == true && power >= 10) {
timing = false;
power -= 10;
_root.game.playerfull.rpunch.gotoAndPlay(22);
}
if (_root.game.playerfull.lpunch._currentframe == 4 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
power += 2;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 5;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 9 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 40;
damagedo = w1attack + 40;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 20;
}
power += 3;
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 17 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 60;
damagedo = w1attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 30;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 23 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 24 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 25 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 16 && knucleuse == true && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.lpunch._currentframe == 17 && knucleuse == true && direct == 1) {
deraprox = _root.game.playerfull._x - 20;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 20;
}
}
if (_root.game.playerfull.lpunch._currentframe == 18 && knucleuse == true && direct == 1) {
deraprox = _root.game.playerfull._x - 10;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 10;
}
}
if (_root.game.playerfull.lpunch._currentframe == 5 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lpunch._currentframe == 13 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lpunch._currentframe == 21 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lpunch._currentframe == 27 && knucleuse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.lpunch._currentframe > 2 && _root.game.playerfull.lpunch._currentframe <= 5 && knucleuse == true && direct == 1 && presy == false) {
timing = true;
}
if (_root.game.playerfull.lpunch._currentframe == 5 && knucleuse == true && direct == 1 && timing == true) {
timing = false;
_root.game.playerfull.lpunch.gotoAndPlay(7);
}
if (Key.isDown(88) && _root.game.playerfull.lpunch._currentframe > 8 && _root.game.playerfull.lpunch._currentframe <= 11 && knucleuse == true && direct == 1 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.lpunch._currentframe == 11 && knucleuse == true && direct == 1 && timing == true && power >= 5) {
timing = false;
power -= 5;
_root.game.playerfull.lpunch.gotoAndPlay(14);
}
if (_root.game.playerfull.lpunch._currentframe == 11 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.lpunch.gotoAndPlay(12);
}
if (Key.isDown(88) && _root.game.playerfull.lpunch._currentframe > 16 && _root.game.playerfull.lpunch._currentframe <= 21 && knucleuse == true && direct == 1 && presy == false && power >= 10) {
timing = true;
}
if (_root.game.playerfull.lpunch._currentframe == 21 && knucleuse == true && direct == 1 && timing == true && power >= 10) {
timing = false;
power -= 10;
_root.game.playerfull.lpunch.gotoAndPlay(22);
}
if (_root.game.playerfull.rswing._currentframe == 28 && sworduse == true && direct == 0) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 200 && ristaly < 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 100;
damagedo = w2attack + 100;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 28 && sworduse == true && direct == 1) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 200 && ristaly < 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 100;
damagedo = w2attack + 100;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 3 && sworduse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 30;
damagedo = w2attack + 30;
damagefun();
power += 1;
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 7 && sworduse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 50;
damagedo = w2attack + 50;
damagefun();
power += 2;
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 12 && sworduse == true && direct == 0 && power >= 3) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
sworddam = sword3d + 30;
if (alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= sworddam && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 60;
damagedo = w2attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 5 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rswing._currentframe == 10 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rswing._currentframe == 20 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.lswing._currentframe == 38 && sworduse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.rswing._currentframe > 2 && _root.game.playerfull.rswing._currentframe <= 4 && sworduse == true && direct == 0 && presy == false) {
timing = true;
}
if (_root.game.playerfull.rswing._currentframe == 4 && sworduse == true && direct == 0 && timing == true) {
timing = false;
_root.game.playerfull.rswing.gotoAndPlay(6);
}
if (Key.isDown(88) && _root.game.playerfull.rswing._currentframe > 6 && _root.game.playerfull.rswing._currentframe <= 9 && sworduse == true && direct == 0 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.rswing._currentframe == 9 && sworduse == true && direct == 0 && timing == true && movingmap == false && power >= 3) {
timing = false;
power -= 5;
_root.game.playerfull.rswing.gotoAndPlay(11);
}
if (Key.isDown(88) && _root.game.playerfull.rswing._currentframe > 12 && _root.game.playerfull.rswing._currentframe <= 15 && sworduse == true && direct == 0 && presy == false && power >= 15) {
timing = true;
}
if (_root.game.playerfull.rswing._currentframe == 15 && sworduse == true && direct == 0 && timing == true && power >= 15) {
timing = false;
power -= 10;
direct = 1;
_root.game.playerfull.gotoAndStop(8);
_root.game.playerfull.lswing.gotoAndPlay(21);
}
if (_root.game.playerfull.rswing._currentframe == 15 && sworduse == true && direct == 0 && timing == false) {
timing = false;
_root.game.playerfull.rswing.gotoAndPlay(16);
}
if (_root.game.playerfull.rswing._currentframe == 12 && sworduse == true && direct == 0) {
deraprox = _root.game.playerfull._x + sword3d;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += sword3d;
}
}
if (_root.game.playerfull.rswing._currentframe == 13 && sworduse == true && direct == 0) {
deraprox = _root.game.playerfull._x + sword3d;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += sword3d;
}
}
if (_root.game.playerfull.lswing._currentframe == 3 && sworduse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 30;
damagedo = w2attack + 30;
damagefun();
power += 1;
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 7 && sworduse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 50;
damagedo = w2attack + 50;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
power += 2;
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 12 && sworduse == true && direct == 1 && power >= 3) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
sworddam = sword3d + 30;
if (alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= sword3d && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 60;
damagedo = w2attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 5 && sworduse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lswing._currentframe == 10 && sworduse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lswing._currentframe == 20 && sworduse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.rswing._currentframe == 38 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.lswing._currentframe > 2 && _root.game.playerfull.lswing._currentframe <= 5 && sworduse == true && direct == 1 && presy == false) {
timing = true;
}
if (_root.game.playerfull.lswing._currentframe == 5 && sworduse == true && direct == 1 && timing == true) {
timing = false;
_root.game.playerfull.lswing.gotoAndPlay(6);
}
if (Key.isDown(88) && _root.game.playerfull.lswing._currentframe > 6 && _root.game.playerfull.lswing._currentframe <= 9 && sworduse == true && direct == 1 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.lswing._currentframe == 9 && sworduse == true && direct == 1 && timing == true && movingmap == false && power >= 3) {
timing = false;
power -= 5;
_root.game.playerfull.lswing.gotoAndPlay(11);
}
if (Key.isDown(88) && _root.game.playerfull.lswing._currentframe > 12 && _root.game.playerfull.lswing._currentframe <= 15 && sworduse == true && direct == 1 && presy == false && power >= 15) {
timing = true;
}
if (_root.game.playerfull.lswing._currentframe == 15 && sworduse == true && direct == 1 && timing == true && power >= 15) {
timing = false;
power -= 10;
direct = 0;
_root.game.playerfull.gotoAndStop(7);
_root.game.playerfull.rswing.gotoAndPlay(21);
}
if (_root.game.playerfull.lswing._currentframe == 15 && sworduse == true && direct == 1 && timing == false) {
timing = false;
_root.game.playerfull.lswing.gotoAndPlay(16);
}
if (_root.game.playerfull.lswing._currentframe == 12 && sworduse == true && direct == 1) {
deraprox = _root.game.playerfull._x - sword3d;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= sword3d;
}
}
if (_root.game.playerfull.lswing._currentframe == 13 && sworduse == true && direct == 1) {
deraprox = _root.game.playerfull._x - sword3d;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= sword3d;
}
}
if (_root.game.playerfull.rshot._currentframe == 37 && gunuse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rshot._currentframe == 23 && gunuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rshot._currentframe == 12 && gunuse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.rshot._currentframe > 5 && _root.game.playerfull.rshot._currentframe <= 8 && gunuse == true && direct == 0 && presy == false) {
timing = true;
}
if (Key.isDown(88) && _root.game.playerfull.rshot._currentframe > 5 && _root.game.playerfull.rshot._currentframe <= 8 && gunuse == true && direct == 0 && presy == false) {
timing = false;
timings = true;
}
if (_root.game.playerfull.rshot._currentframe == 8 && gunuse == true && direct == 0 && timing == true) {
timing = false;
_root.game.playerfull.rshot.gotoAndPlay(4);
}
if (_root.game.playerfull.rshot._currentframe == 8 && gunuse == true && direct == 0 && timings == true && power >= 10) {
timings = false;
power -= 10;
_root.game.playerfull.rshot.gotoAndPlay(13);
}
if (Key.isDown(88) && _root.game.playerfull.rshot._currentframe > 15 && _root.game.playerfull.rshot._currentframe <= 23 && gunuse == true && direct == 0 && presy == false) {
timing = true;
}
if (_root.game.playerfull.rshot._currentframe == 23 && gunuse == true && direct == 0 && timing == true && power >= 25) {
timing = false;
power -= 25;
_root.game.playerfull.rshot.gotoAndPlay(24);
}
if (_root.game.playerfull.lshot._currentframe == 37 && gunuse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lshot._currentframe == 23 && gunuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lshot._currentframe == 12 && gunuse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.lshot._currentframe > 5 && _root.game.playerfull.lshot._currentframe <= 8 && gunuse == true && direct == 1 && presy == false) {
timing = true;
}
if (Key.isDown(88) && _root.game.playerfull.lshot._currentframe > 5 && _root.game.playerfull.lshot._currentframe <= 8 && gunuse == true && direct == 1 && presy == false) {
timing = false;
timings = true;
}
if (_root.game.playerfull.lshot._currentframe == 8 && gunuse == true && direct == 1 && timing == true) {
timing = false;
_root.game.playerfull.lshot.gotoAndPlay(4);
}
if (_root.game.playerfull.lshot._currentframe == 8 && gunuse == true && direct == 1 && timings == true && power >= 10) {
timings = false;
power -= 10;
_root.game.playerfull.lshot.gotoAndPlay(13);
}
if (Key.isDown(88) && _root.game.playerfull.lshot._currentframe > 15 && _root.game.playerfull.lshot._currentframe <= 23 && gunuse == true && direct == 1 && presy == false) {
timing = true;
}
if (_root.game.playerfull.lshot._currentframe == 23 && gunuse == true && direct == 1 && timing == true && power >= 25) {
timing = false;
power -= 25;
_root.game.playerfull.lshot.gotoAndPlay(24);
}
if (_root.game.playerfull.rshot._currentframe == 18 && gunuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x < alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x < alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 8) {
if (ristalx < 600 && ristaly < 50) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (_root.game.playerfull.rshot._currentframe == 30 && gunuse == true && direct == 0 || _root.game.playerfull.rshot._currentframe == 31 && gunuse == true && direct == 0 || _root.game.playerfull.rshot._currentframe == 32 && gunuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x < alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x < alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 8) {
if (ristalx < 600 && ristaly < 75) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (_root.game.playerfull.rshot._currentframe == 5 && gunuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x < alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x < alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 8) {
if (ristalx < 600 && ristaly < 25) {
hits += 1;
combot = true;
power += guncost;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
_root.game.bulletd.duplicateMovieClip('balaex', 99999999, {'_x': alienob._x, '_y': alienob._y});
break;
}
}
++a;
}
}
if (_root.game.playerfull.lshot._currentframe == 5 && gunuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x > alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x > alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 8) {
if (ristalx < 600 && ristaly < 25) {
hits += 1;
combot = true;
power += guncost;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
_root.game.bulletd.duplicateMovieClip('balaex', 99999999, {'_x': alienob._x, '_y': alienob._y});
break;
}
}
++a;
}
}
if (_root.game.playerfull.lshot._currentframe == 18 && gunuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x > alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x > alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 8) {
if (ristalx < 600 && ristaly < 50) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (_root.game.playerfull.lshot._currentframe == 30 && gunuse == true && direct == 1 || _root.game.playerfull.lshot._currentframe == 31 && gunuse == true && direct == 1 || _root.game.playerfull.lshot._currentframe == 32 && gunuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x > alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x > alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 8) {
if (ristalx < 600 && ristaly < 75) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (Key.isDown(90) && superp == false && evade == false && blocks == false) {
if (knucleuse == true && direct == 0 && presy == false) {
_root.game.playerfull.gotoAndStop(5);
presy = true;
atacktime = true;
}
if (knucleuse == true && direct == 1 && presy == false) {
_root.game.playerfull.gotoAndStop(6);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 0 && presy == false) {
_root.game.playerfull.gotoAndStop(7);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 1 && presy == false) {
_root.game.playerfull.gotoAndStop(8);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 0 && presy == false) {
_root.game.playerfull.gotoAndStop(9);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 1 && presy == false) {
_root.game.playerfull.gotoAndStop(10);
presy = true;
atacktime = true;
}
}
if (!Key.isDown(90) && presy == true && playercath == false && !Key.isDown(88)) {
blocks = false;
presy = false;
}
if (!Key.isDown(67)) {
blocks = false;
}
if (Key.isDown(45) && atacktime == false && evade == false && blocks == false && blocks == false) {
if (knucleuse == true && direct == 0 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(11);
presy = true;
atacktime = true;
}
if (knucleuse == true && direct == 1 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(12);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 0 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(13);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 1 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(14);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 0 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(15);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 1 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(16);
presy = true;
atacktime = true;
}
presy = true;
}
if (Key.isDown(67) && superp == false && evade == false && atacktime == false) {
if (direct == 0) {
_root.game.playerfull.gotoAndStop(21);
}
if (direct == 1) {
_root.game.playerfull.gotoAndStop(22);
}
blocks = true;
presy = true;
}
if (blocks == true && superp == false && Key.isDown(37) && evade == false && atacktime == false && movingmap == false && power >= 3) {
blocks = false;
evade = true;
power -= 3;
_root.game.playerfull.gotoAndStop(23);
}
if (blocks == true && superp == false && Key.isDown(39) && evade == false && atacktime == false && movingmap == false && power >= 3) {
blocks = false;
evade = true;
power -= 3;
_root.game.playerfull.gotoAndStop(24);
}
if (_root.game.gosign._x == 500) {
_root.beepgo.gotoAndStop(2);
_root.game.gosign._x = 501;
}
if (_root.game.gosign._x == 130) {
_root.beepgo.gotoAndStop(2);
_root.game.gosign._x = 131;
}
if (_root.game.gosign._x == 800) {
_root.beepgo.gotoAndStop(1);
}
if (_root.game.playerfull.rpunch._currentframe == 23) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 23) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.rpunch._currentframe == 3) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.rpunch._currentframe == 8) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 3) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 8) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.rpunch._currentframe == 15) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 15) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 1) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 6) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 11) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 1) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 6) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 11) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 21) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 28) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 21) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 28) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.rshot._currentframe == 4) {
_root.gunnys.gotoAndPlay(2);
}
if (_root.game.playerfull.rshot._currentframe == 18) {
_root.entresas.gotoAndPlay(2);
}
if (_root.game.playerfull.lshot._currentframe == 4) {
_root.gunnys.gotoAndPlay(2);
}
if (_root.game.playerfull.lshot._currentframe == 18) {
_root.entresas.gotoAndPlay(2);
}
if (_root.game.playerfull.rshot._currentframe == 30) {
_root.swas.gotoAndPlay(2);
}
if (_root.game.playerfull.lshot._currentframe == 30) {
_root.swas.gotoAndPlay(2);
}
if (_root.game.playerfull.revade._currentframe == 1) {
_root.evadefx.gotoAndPlay(2);
}
if (_root.game.playerfull.levade._currentframe == 1) {
_root.evadefx.gotoAndPlay(2);
}
}
function equipwepon() {
if (knucleuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (Key.isDown(65) && atacktime != true) {
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(1);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(1);
}
}
if (Key.isDown(83) && atacktime != true) {
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(1);
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(1);
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(1);
}
}
if (_root.game.balaex._currentframe == 5) {
_root.game.balaex.removeMovieClip();
}
}
function alienclone() {
++coune;
if (coune == 36) {
enemygo = true;
coune = 0;
}
if (enemyon != enemyin && enemygo == true) {
if (enemytogo[enemyin] == 1) {
randy = Math.floor(Math.random() * 2);
altus = Math.floor(Math.random() * 211);
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
xan = 700;
}
if (sitedoor == 0) {
xan = -100;
}
_root.game.alienen.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan, '_y': altus + 260, 'hpen': 200, 'eny': 1, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 0, 'scoredrop': 10, 'expdrop': 5, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 12;
}
if (enemytogo[enemyin] == 2) {
randy = Math.floor(Math.random() * 2);
altus = _root.playerfull._y;
_root.game.aliendos.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan, '_y': altus + 0.5, 'hpen': 100, 'eny': 2, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 30, 'expdrop': 10, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 0;
}
if (enemytogo[enemyin] == 3) {
randy = Math.floor(Math.random() * 2);
altus = Math.floor(Math.random() * 211);
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
xan = 700;
}
if (sitedoor == 0) {
xan = -100;
}
_root.game.alientres.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan + 0.5, '_y': altus + 260.5, 'hpen': 40, 'eny': 3, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 1, 'item3': 1, 'scoredrop': 1, 'expdrop': 1, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 28;
}
if (enemytogo[enemyin] == 4) {
_root.game.aliencuatro.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 400, 'eny': 4, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 50, 'expdrop': 15, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 15;
}
if (enemytogo[enemyin] == 5) {
_root.game.aliencinco.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 400, 'eny': 5, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 200, 'expdrop': 100, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = -10;
}
if (enemytogo[enemyin] == 6) {
_root.game.alienseis.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 500, 'eny': 6, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 500, 'expdrop': 300, 'exis': 1, 'signs': 0, 'standc': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
if (enemytogo[enemyin] == 7) {
_root.game.aliensiete.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 400, 'eny': 7, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 300, 'expdrop': 300, 'exis': 1, 'signs': 0, 'downup': 0, 'timeat': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
if (enemytogo[enemyin] == 8) {
_root.game.bossone.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 350.5, '_y': 300, 'hpen': 3000, 'eny': 8, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 2, 'scoredrop': 2000, 'expdrop': 500, 'exis': 1, 'signs': 0, 'timeat': 0, 'downup': 0, 'righleft': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
}
}
function alienmove() {
t = 0;
while (t < manchaslist.length) {
manchis = _root.game[manchaslist[t]];
if (manchis._currentframe == 300) {
manchis.removeMovieClip();
manchaslist.splice(t, 1);
}
++t;
}
r = 0;
while (r < enemylist.length) {
alienob = _root.game[enemylist[r]];
alienob.swapDepths(alienob._y * alienob._y);
dx = _root.game.playerfull._x - alienob._x;
dy = _root.game.playerfull._y - alienob._y;
distal = Math.sqrt(dx * dx + dy * dy);
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
ranspace = Math.floor(Math.random() * 100);
if (alienob.exis != 1) {
enemylist.splice(r, 1);
}
if (alienob.eny == 1) {
if (distalx < 150 - ranspace && alienob.fase == 1) {
alienob.fase = 2;
}
if (alienob.fase == 66) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(7);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(8);
}
}
if (alienob.knol._currentframe == 3) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x += 10;
alienob.fase = 3;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x -= 10;
alienob.fase = 3;
alienob.gotoAndStop(2);
}
}
if (alienob.knod._currentframe == 3) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x += 10;
alienob.fase = 3;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x -= 10;
alienob.fase = 3;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 1) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 5;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 5;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 2) {
if (alienatk < 4) {
alienatk += 1;
alienob.fase = 3;
}
selectf = Math.floor(Math.random() * 2);
if (selectf == 0 && alienob.fase == 2) {
alienob.fase = 4;
}
if (selectf == 1 && alienob.fase == 2) {
alienob.fase = 5;
}
}
if (alienob.fase == 4) {
alienob._y -= 4;
if (alienob._y < 250) {
alienob.fase = 5;
}
if (distalx > 150 && alienob.fase == 4) {
alienob.fase = 1;
}
othewa = Math.floor(Math.random() * 40);
if (othewa == 2) {
alienob.fase = 5;
}
if (alienatk < 4) {
alienob.fase = 2;
}
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 5) {
alienob._y += 4;
if (alienob._y > 460) {
alienob.fase = 4;
}
if (distalx > 150 && alienob.fase == 5) {
alienob.fase = 1;
}
othewa = Math.floor(Math.random() * 40);
if (othewa == 3) {
alienob.fase = 4;
}
if (alienatk < 4) {
alienob.fase = 2;
}
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 3) {
if (distalx < 60 && distaly < 25) {
alienob.fase = 6;
}
if (distalx > 40 && alienob.fase == 3) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 5;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 5;
alienob.gotoAndStop(2);
}
}
if (distaly > 15 && alienob.fase == 3) {
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 5;
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 5;
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
}
}
if (alienob.fase == 6) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(3);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(4);
}
if (alienob.ratka._currentframe == 4) {
_root.ensouno.gotoAndPlay(2);
alienob._x -= 5;
}
if (alienob.ratka._currentframe == 5 && distalx < 55 && distaly < 25) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 2;
}
if (blocks == true) {
dañoplayer += 1;
if (power < 200) {
power += 1;
}
}
}
}
if (alienob.latka._currentframe == 4) {
_root.ensouno.gotoAndPlay(2);
alienob._x += 5;
}
if (alienob.latka._currentframe == 5 && distalx < 55 && distaly < 25) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 2;
}
if (blocks == true) {
dañoplayer += 1;
if (power < 200) {
power += 1;
}
}
}
}
if (alienob.ratka._currentframe == 8) {
alienob.fase = 3;
}
if (alienob.latka._currentframe == 8) {
alienob.fase = 3;
}
}
if (alienob.hpen <= 0 && alienob.fase != 7 && alienob.fase != 8) {
alienob.fase = 7;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
greenflea += 1;
}
if (alienob.fase == 7) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(5);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(6);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 10, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 8;
}
if (alienob.deathr._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.deathl._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.deathr._currentframe == 7) {
alienob.removeMovieClip();
alienatk -= 1;
enemylist.splice(r, 1);
}
if (alienob.deathl._currentframe == 7) {
alienob.removeMovieClip();
alienatk -= 1;
enemylist.splice(r, 1);
}
}
if (alienob.eny == 2) {
if (alienob.fase == 1) {
alienob.siten = Math.floor(Math.random() * 2);
if (alienob.siten == 1) {
_root.alienob._x = 580;
alienob.gotoAndStop(3);
_root.alienob._y = _root.game.playerfull._y + 0.5;
alienob.fase = 2;
}
if (alienob.siten == 0) {
_root.alienob._x = 70;
alienob.gotoAndStop(2);
_root.alienob._y = _root.game.playerfull._y + 0.5;
alienob.fase = 2;
}
}
if (alienob.fase == 2) {
if (alienob.alidosd._currentframe == 12) {
alienob.gotoAndStop(4);
alienob.fase = 3;
}
if (alienob.alidosi._currentframe == 12) {
alienob.gotoAndStop(5);
alienob.fase = 3;
}
}
if (alienob.fase == 3) {
if (alienob.alidosad._currentframe == 10) {
_root.entresas.gotoAndPlay(2);
}
if (alienob.alidosai._currentframe == 10) {
_root.entresas.gotoAndPlay(2);
}
if (alienob.alidosad._currentframe == 15) {
alienob.gotoAndStop(6);
alienob.fase = 4;
}
if (alienob.alidosad._currentframe == 11 && distaly < 20) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
if (alienob.alidosai._currentframe == 11 && distaly < 20) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
if (alienob.alidosai._currentframe == 15) {
alienob.gotoAndStop(7);
alienob.fase = 4;
}
}
if (alienob.fase == 4) {
if (alienob.alidosgd._currentframe == 9) {
alienob.fase = 1;
}
if (alienob.alidosgi._currentframe == 9) {
alienob.fase = 1;
}
}
if (alienob.hpen <= 0 && alienob.fase != 5 && alienob.fase != 6) {
alienob.fase = 5;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
redsquid += 1;
}
if (alienob.fase == 5) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(9);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(8);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 10, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 6;
}
if (alienob.alidosdd._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.alidosdi._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.alidosdd._currentframe == 11) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.alidosdi._currentframe == 11) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 3) {
if (alienob.fase == 1) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 5;
alienob.gotoAndStop(2);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 5;
alienob.gotoAndStop(3);
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 3;
}
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 3;
}
}
if (alienob.fase == 1 && distalx < 100 && distaly < 15) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(4);
alienob.fase = 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(5);
alienob.fase = 2;
}
}
if (alienob.fase == 2) {
if (alienob.ratkiz._currentframe == 2 || alienob.ratkiz._currentframe == 3 || alienob.ratkiz._currentframe == 4 || alienob.ratkiz._currentframe == 5 || alienob.ratkiz._currentframe == 6 || alienob.ratkiz._currentframe == 7 || alienob.ratkiz._currentframe == 8 || alienob.ratkiz._currentframe == 9 || alienob.ratkiz._currentframe == 10) {
alienob._x -= 15;
}
if (alienob.ratkiz._currentframe == 10) {
alienob.fase = 1;
}
if (alienob.ratkiz._currentframe == 6 && distalx < 30 && distaly < 50 || alienob.ratkiz._currentframe == 7 && distalx < 30 && distaly < 50 || alienob.ratkiz._currentframe == 8 && distalx < 30 && distaly < 50) {
alienob.gotoAndStop(6);
alienob.fase = 3;
}
if (alienob.ratkder._currentframe == 2 || alienob.ratkder._currentframe == 3 || alienob.ratkder._currentframe == 4 || alienob.ratkder._currentframe == 5 || alienob.ratkder._currentframe == 6 || alienob.ratkder._currentframe == 7 || alienob.ratkder._currentframe == 8 || alienob.ratkder._currentframe == 9 || alienob.ratkder._currentframe == 10) {
alienob._x += 15;
}
if (alienob.ratkder._currentframe == 10) {
alienob.fase = 1;
}
if (alienob.ratkder._currentframe == 6 && distalx < 30 && distaly < 50 || alienob.ratkder._currentframe == 7 && distalx < 30 && distaly < 50 || alienob.ratkder._currentframe == 8 && distalx < 30 && distaly < 50) {
alienob.gotoAndStop(7);
alienob.fase = 3;
}
}
if (alienob.fase == 3) {
alienob._x = _root.game.playerfull._x;
alienob._y = _root.game.playerfull._y + 1;
dañoplayer += 1;
}
if (alienob.hpen <= 0 && alienob.fase != 4 && alienob.fase != 5) {
alienob.fase = 4;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
leach += 1;
}
if (alienob.fase == 4) {
if (alienob._currentframe == 6) {
alienob.gotoAndStop(10);
alienob._y += 25;
}
if (alienob._currentframe == 7) {
alienob.gotoAndStop(11);
alienob._y += 25;
}
if (alienob._currentframe == 4) {
alienob.gotoAndStop(10);
alienob._y += 25;
}
if (alienob._currentframe == 5) {
alienob.gotoAndStop(11);
alienob._y += 25;
}
if (alienob._currentframe == 2) {
alienob.gotoAndStop(8);
}
if (alienob._currentframe == 3) {
alienob.gotoAndStop(9);
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40 + 0.5, 'mount': 10, 'typeob': 1, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40 + 0.5, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40 + 0.5, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 5;
}
if (alienob.rolldi._currentframe == 7) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.rolldd._currentframe == 7) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.suckiz._currentframe == 8) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.suckde._currentframe == 8) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 4) {
if (alienob.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 700.5;
alienob.fase = 2;
alienob.gotoAndStop(1);
}
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = -100.5;
alienob.fase = 3;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 2) {
if (alienob.aci._currentframe == 2) {
alienob._x -= 2;
}
if (alienob.aci._currentframe == 3) {
alienob._x -= 4;
}
if (alienob.aci._currentframe == 4 || alienob.aci._currentframe == 5 || alienob.aci._currentframe == 6) {
alienob._x -= 6;
}
if (alienob.aci._currentframe == 7) {
alienob._x -= 3;
}
if (alienob._x < -50) {
alienob.fase = 1;
}
if (_root.game.playerfull._x < alienob._x && distalx < 80 && distaly < 50) {
alienob.fase = 4;
alienob.gotoAndStop(3);
}
}
if (alienob.fase == 3) {
if (alienob.acd._currentframe == 2) {
alienob._x += 2;
}
if (alienob.acd._currentframe == 3) {
alienob._x += 4;
}
if (alienob.acd._currentframe == 4 || alienob.acd._currentframe == 5 || alienob.acd._currentframe == 6) {
alienob._x += 6;
}
if (alienob.acd._currentframe == 7) {
alienob._x += 3;
}
if (alienob._x > 700) {
alienob.fase = 1;
}
if (_root.game.playerfull._x > alienob._x && distalx < 70 && distaly < 40) {
alienob.fase = 5;
alienob.gotoAndStop(4);
}
}
if (alienob.fase == 4) {
if (alienob.aai._currentframe == 13) {
_root.blobs.gotoAndPlay(2);
}
if (alienob.aai._currentframe == 16) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aai._currentframe == 17) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aai._currentframe == 18) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 5;
}
if (blocks == true) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aai._currentframe == 22) {
alienob.gotoAndStop(1);
alienob.fase = 2;
}
}
if (alienob.fase == 5) {
if (alienob.aad._currentframe == 13) {
_root.blobs.gotoAndPlay(2);
}
if (alienob.aad._currentframe == 16) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aad._currentframe == 17) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aad._currentframe == 18) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 5;
}
if (blocks == true) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aad._currentframe == 22) {
alienob.gotoAndStop(2);
alienob.fase = 3;
}
}
if (alienob.hpen <= 0 && alienob.fase != 6 && alienob.fase != 7) {
alienob.fase = 6;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
plasma += 1;
}
if (alienob.fase == 6) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(5);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(6);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40, 'mount': 20, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 7;
}
if (alienob.ami._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.amd._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.ami._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.amd._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 5) {
if (alienob.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 670;
alienob.fase = 2;
alienob.signs = 1;
alienob.gotoAndStop(1);
}
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = -30;
alienob.fase = 3;
alienob.signs = 1;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 2 && alienob.si._currentframe == 60) {
alienob._x += 100;
alienob.gotoAndStop(3);
alienob.fase = 4;
alienob.signs = 0;
}
if (alienob.fase == 3 && alienob.sd._currentframe == 60) {
alienob._x -= 100;
alienob.gotoAndStop(4);
alienob.fase = 5;
alienob.signs = 0;
}
if (alienob.fase == 4) {
alienob._x -= 3;
if (distalx < 150 && alienob._x < 620) {
alienob.fase = 6;
alienob.gotoAndStop(5);
}
}
if (alienob.fase == 5) {
alienob._x += 3;
if (distalx < 150 && alienob._x > 30) {
alienob.fase = 8;
alienob.gotoAndStop(6);
}
}
if (alienob.fase == 6 && alienob.ai._currentframe == 12) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 1, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 2, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 3, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 4, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.fase == 6 && alienob.ai._currentframe == 10) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 5, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 6, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 7, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 8, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.fase == 8 && alienob.ad._currentframe == 12) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 1, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 2, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 3, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 4, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.fase == 8 && alienob.ad._currentframe == 10) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 5, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 6, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 7, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 8, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.hpen <= 0 && alienob.fase != 9 && alienob.fase != 7) {
alienob.fase = 9;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
abomination += 1;
}
if (alienob.fase == 9) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(7);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(8);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 10, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 7;
}
if (alienob.di._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.dd._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.ai._currentframe == 20) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.ad._currentframe == 20) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 999) {
if (alienob.fase == 1) {
alienob.din -= 1;
alienob._x -= 1;
}
if (alienob.fase == 2) {
alienob.din -= 1;
alienob._x += 1;
alienob.hpen -= 1;
}
if (alienob.fase == 3) {
alienob.din -= 1;
alienob._y -= 1;
}
if (alienob.fase == 4) {
alienob.din -= 1;
alienob._y += 1;
}
if (alienob.fase == 5) {
alienob.din -= 1;
alienob._x += 1;
alienob._y += 1;
}
if (alienob.fase == 6) {
alienob.din -= 1;
alienob._x += 1;
alienob._y -= 1;
alienob.hpen -= 1;
}
if (alienob.fase == 7) {
alienob.din -= 1;
alienob._x -= 1;
alienob._y -= 1;
}
if (alienob.fase == 8) {
alienob.din -= 1;
alienob._x -= 1;
alienob._y += 1;
}
if (distalx < 20 && distaly < 20 && alienob.fase != 10) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 10;
if (power < 100) {
power += 1;
}
}
}
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
alienob.fase = 10;
alienob.gotoAndStop(2);
}
if (alienob.expl._currentframe == 5) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.din < 0 || alienob._y < 250) {
alienob.fase = 10;
alienob.gotoAndStop(2);
}
}
if (alienob.eny == 6) {
if (alienob.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 600;
alienob.fase = 2;
alienob.signs = 1;
alienob.gotoAndStop(2);
}
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 50;
alienob.fase = 3;
alienob.signs = 1;
alienob.gotoAndStop(1);
}
}
if (alienob.fase == 2) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
}
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 4;
alienob.fase = 3;
momento = alienob.apeari._currentframe;
alienob.gotoAndStop(2);
alienob.apeard.gotoAndPlay(momento);
}
if (alienob.apeard._currentframe == 6) {
alienob.fase = 4;
alienob.gotoAndStop(3);
}
if (alienob.apeari._currentframe == 6) {
alienob.fase = 5;
alienob.gotoAndStop(4);
}
}
if (alienob.fase == 3) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
alienob.fase = 2;
momento = alienob.apeard._currentframe;
alienob.gotoAndStop(1);
alienob.apeari.gotoAndPlay(momento);
}
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 4;
}
if (alienob.apeari._currentframe == 6) {
alienob.fase = 5;
alienob.gotoAndStop(4);
}
if (alienob.apeard._currentframe == 6) {
alienob.fase = 4;
alienob.gotoAndStop(3);
}
}
if (alienob.fase == 4) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
}
if (_root.playerfull._x < alienob._x) {
alienob._x -= 4;
alienob.fase = 5;
momento = alienob.walkd._currentframe;
alienob.gotoAndStop(4);
alienob.walki.gotoAndPlay(momento);
}
if (distalx < 150 && distaly < 100) {
alienob.fase = 6;
alienob.gotoAndStop(5);
}
}
if (alienob.fase == 5) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
alienob.fase = 4;
momento = alienob.walki._currentframe;
alienob.gotoAndStop(3);
alienob.walkd.gotoAndPlay(momento);
}
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 4;
}
if (distalx < 150 && distaly < 100) {
alienob.fase = 7;
alienob.gotoAndStop(6);
}
}
if (alienob.fase == 6) {
alienob._x += 4;
if (alienob.desad._currentframe == 8) {
alienob.fase = 8;
}
}
if (alienob.fase == 7) {
alienob._x -= 4;
if (alienob.desai._currentframe == 8) {
alienob.fase = 9;
}
}
if (alienob.fase == 8 || alienob.fase == 9) {
alienob._x = _root.game.playerfull._x + 0.5;
alienob._y = _root.game.playerfull._y + 10.5;
alienob.gotoAndStop(7);
alienob.fase = 10;
}
if (alienob.fase == 10 && distalx < 30 && distaly < 20 && alienob.ataca._currentframe == 6 && playercath == false && evade == false) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
playercath = true;
atacktime = true;
presy = true;
_root.game.playerfull._x = alienob._x + 1.5;
_root.game.playerfull._y = alienob._y - 20.5;
alienob.gotoAndStop(8);
uncathcount = 0;
dañoplayer += 20;
}
if (blocks == true) {
blocks = false;
playercath = true;
atacktime = true;
presy = true;
_root.game.playerfull._x = alienob._x + 1.5;
_root.game.playerfull._y = alienob._y - 20.5;
alienob.gotoAndStop(8);
uncathcount = 0;
dañoplayer += 10;
}
}
}
if (alienob.fase == 10 && playercath == false && alienob._currentframe == 8) {
alienob.gotoAndStop(7);
alienob.ataca.gotoAndPlay(7);
}
if (alienob.fase == 10 && alienob.ataca._currentframe == 40) {
alienob.fase = 11;
alienob.standc += 1;
}
if (alienob.fase == 11 && alienob.standc == 3) {
alienob.fase = 12;
alienob.standc = 0;
}
if (alienob.fase == 11) {
alienob.fase = 3;
alienob.gotoAndStop(2);
if (_root.game.playerfull._x > alienob._x) {
alienob.fase = 2;
alienob.gotoAndStop(1);
}
}
if (alienob.fase == 12) {
altuen = Math.floor(Math.random() * 200);
dismun = Math.floor(Math.random() * 600);
alienob._y = 250 + altuen;
alienob._x = dismun;
alienob.gotoAndStop(9);
alienob.signs = 0;
alienob.fase = 13;
}
if (alienob.fase == 13 && alienob.astand._currentframe == 41) {
alienob.signs = 1;
alienob.fase = 1;
}
if (alienob.hpen <= 0 && alienob.fase != 14 && alienob.fase != 15) {
alienob.fase = 14;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
devourer += 1;
}
if (alienob.fase == 14) {
alienob.gotoAndStop(11);
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 10, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 15;
}
if (alienob.adeath._currentframe == 19) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
++r;
}
g = 0;
while (g < enemylist.length) {
alienoc = _root.game[enemylist[g]];
alienoc.swapDepths(alienoc._y * alienoc._y);
dx = _root.game.playerfull._x - alienoc._x;
dy = _root.game.playerfull._y - alienoc._y;
distal = Math.sqrt(dx * dx + dy * dy);
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
ranspace = Math.floor(Math.random() * 100);
if (alienoc.eny == 7) {
if (alienoc.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienoc._y = 250.5 + altuen;
alienoc._x = 630;
alienoc.fase = 2;
alienoc.gotoAndStop(2);
}
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienoc._y = 250.5 + altuen;
alienoc._x = 10;
alienoc.fase = 3;
alienoc.gotoAndStop(1);
}
}
if (alienoc.goind._currentframe == 2) {
alienoc._x += 32;
}
if (alienoc.goind._currentframe == 3) {
alienoc._x += 51;
}
if (alienoc.goind._currentframe == 4) {
alienoc._x -= 3;
}
if (alienoc.goind._currentframe == 5) {
alienoc._x -= 10;
}
if (alienoc.goind._currentframe == 6) {
alienoc._x -= 15;
}
if (alienoc.goind._currentframe == 7) {
alienoc._x -= 8;
}
if (alienoc.goini._currentframe == 2) {
alienoc._x -= 32;
}
if (alienoc.goini._currentframe == 3) {
alienoc._x -= 51;
}
if (alienoc.goini._currentframe == 4) {
alienoc._x += 3;
}
if (alienoc.goini._currentframe == 5) {
alienoc._x += 10;
}
if (alienoc.goini._currentframe == 6) {
alienoc._x += 18;
}
if (alienoc.goini._currentframe == 7) {
alienoc._x += 12;
}
if (alienoc.goind._currentframe == 12) {
alienoc.gotoAndStop(3);
alienoc.fase = 4;
}
if (alienoc.goini._currentframe == 12) {
alienoc.gotoAndStop(4);
alienoc.fase = 5;
}
if (alienoc.fase == 4 || alienoc.fase == 5) {
if (alienoc.downup == 0) {
alienoc._y += 5;
alienoc.timeat += 1;
}
if (alienoc.downup == 1) {
alienoc._y -= 5;
alienoc.timeat += 1;
}
if (alienoc.downup == 0 && alienoc._y > 450) {
alienoc.downup = 1;
}
if (alienoc.downup == 1 && alienoc._y < 250) {
alienoc.downup = 0;
}
}
if (alienoc.timeat >= 60 && alienoc.fase == 4) {
typeats = Math.floor(Math.random() * 3);
if (typeats == 0) {
alienoc.fase = 6;
alienoc.gotoAndStop(5);
}
if (typeats == 1) {
alienoc.fase = 7;
alienoc.gotoAndStop(7);
}
if (typeats == 2) {
alienoc.fase = 8;
alienoc.gotoAndStop(9);
}
alienoc.timeat = 0;
}
if (alienoc.timeat >= 60 && alienoc.fase == 5) {
typeats = Math.floor(Math.random() * 3);
if (typeats == 0) {
alienoc.fase = 9;
alienoc.gotoAndStop(6);
}
if (typeats == 1) {
alienoc.fase = 10;
alienoc.gotoAndStop(8);
}
if (typeats == 2) {
alienoc.fase = 11;
alienoc.gotoAndStop(10);
}
alienoc.timeat = 0;
}
if (alienoc.fase == 6) {
if (alienoc.atkd._currentframe == 18) {
alienoc._x += 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atkd._currentframe == 19 || alienoc.atkd._currentframe == 20 || alienoc.atkd._currentframe == 21 || alienoc.atkd._currentframe == 22 || alienoc.atkd._currentframe == 23) {
alienoc._x += 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atkd._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 7) {
if (alienoc.atkd._currentframe == 18) {
alienoc._x += 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atkd._currentframe == 19 || alienoc.atkd._currentframe == 20 || alienoc.atkd._currentframe == 21 || alienoc.atkd._currentframe == 22 || alienoc.atkd._currentframe == 23) {
alienoc._x += 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atkd._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 8) {
if (alienoc.atkd._currentframe == 18) {
alienoc._x += 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atkd._currentframe == 19 || alienoc.atkd._currentframe == 20 || alienoc.atkd._currentframe == 21 || alienoc.atkd._currentframe == 22 || alienoc.atkd._currentframe == 23) {
alienoc._x += 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atkd._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 9) {
if (alienoc.atki._currentframe == 18) {
alienoc._x -= 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atki._currentframe == 19 || alienoc.atki._currentframe == 20 || alienoc.atki._currentframe == 21 || alienoc.atki._currentframe == 22 || alienoc.atki._currentframe == 23) {
alienoc._x -= 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atki._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 10) {
if (alienoc.atki._currentframe == 18) {
alienoc._x -= 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atki._currentframe == 19 || alienoc.atki._currentframe == 20 || alienoc.atki._currentframe == 21 || alienoc.atki._currentframe == 22 || alienoc.atki._currentframe == 23) {
alienoc._x -= 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atki._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 11) {
if (alienoc.atki._currentframe == 18) {
alienoc._x -= 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atki._currentframe == 19 || alienoc.atki._currentframe == 20 || alienoc.atki._currentframe == 21 || alienoc.atki._currentframe == 22 || alienoc.atki._currentframe == 23) {
alienoc._x -= 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atki._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.hpen <= 0 && alienoc.fase != 12 && alienoc.fase != 13) {
alienoc.fase = 12;
tempscore += alienoc.scoredrop;
expe += alienoc.expdrop;
firefly += 1;
}
if (alienoc.fase == 12 && alienoc.eny == 7) {
if (_root.game.playerfull._x < alienoc._x) {
alienoc.gotoAndStop(12);
} else {
if (_root.game.playerfull._x > alienoc._x) {
alienoc.gotoAndStop(11);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienoc.item1;
}
if (randitem == 4) {
itemname = alienoc.item2;
}
if (randitem == 5) {
itemname = alienoc.item3;
}
profun = alienoc.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'mount': 10, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienoc.fase = 13;
}
if (alienoc.death._currentframe == 10) {
alienoc.removeMovieClip();
enemylist.splice(g, 1);
}
}
if (alienoc.eny == 8) {
if (alienoc.hpen > 1500 && bosstrap == false) {
spedyb = 3;
}
if (alienoc.hpen < 1500 && bosstrap == false) {
bosstrap = true;
magnetac = true;
magnetnum = 3;
spedyb = 9;
}
if (alienoc.fase == 1) {
if (alienoc.getin._currentframe == 9) {
alienoc.gotoAndStop(2);
alienoc.fase = 2;
}
}
if (alienoc.fase == 2) {
alienoc.gotoAndStop(2);
alienoc.timeat += 1;
if (alienoc._x >= 560) {
alienoc.righleft = 1;
}
if (alienoc._x <= 80) {
alienoc.righleft = 0;
}
if (alienoc.righleft == 0) {
alienoc._x += spedyb;
}
if (alienoc.righleft == 1) {
alienoc._x -= spedyb;
}
if (alienoc._y >= 430) {
alienoc.downup = 1;
}
if (alienoc._y <= 250) {
alienoc.downup = 0;
}
if (alienoc.downup == 0) {
alienoc._y += spedyb;
}
if (alienoc.downup == 1) {
alienoc._y -= spedyb;
}
if (alienoc.timeat == 48) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.timeat == 96) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.timeat == 144) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.timeat == 192) {
typeats = Math.floor(Math.random() * 2);
if (typeats == 0) {
alienoc.gotoAndStop(3);
alienoc.fase = 3;
}
if (typeats == 1) {
alienoc.gotoAndStop(4);
alienoc.fase = 4;
}
alienoc.timeat = 0;
}
}
if (alienoc.fase == 3) {
if (alienoc.spin._currentframe == 21) {
_root.giira.gotoAndPlay(2);
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 50, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y - 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 23) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 20, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 100, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 25) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 20, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 27) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 50, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 31) {
alienoc.gotoAndStop(2);
alienoc.fase = 2;
}
}
if (alienoc.fase == 4) {
if (alienoc.medi._currentframe == 9) {
specialboss = true;
}
if (alienoc.medi._currentframe == 38) {
alienoc.gotoAndStop(2);
alienoc.fase = 2;
}
}
if (alienoc.hpen <= 0 && alienoc.fase != 5 && alienoc.fase != 6) {
alienoc.fase = 5;
tempscore += alienoc.scoredrop;
expe += alienoc.expdrop;
octron += 1;
}
if (alienoc.fase == 5 && alienoc.eny == 8) {
alienoc.gotoAndStop(5);
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 0 || randitem == 1 || randitem == 3 || randitem == 2) {
itemname = alienoc.item1;
}
if (randitem == 4) {
itemname = alienoc.item2;
}
if (randitem == 5) {
itemname = alienoc.item3;
}
profun = alienoc.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'mount': 300, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'mater': 20, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienoc.fase = 6;
}
if (alienoc.die._currentframe == 2) {
_root.multid.gotoAndPlay(2);
}
if (alienoc.die._currentframe == 15) {
alienoc.removeMovieClip();
enemylist.splice(g, 1);
}
}
++g;
}
i = 0;
while (i < sballlist.length) {
ballx = _root.game[sballlist[i]];
ballx.swapDepths(ballx._y * ballx._y);
dx = _root.game.playerfull._x - ballx._x;
dy = _root.game.playerfull._y - ballx._y;
px = ballx.xgo - ballx._x;
py = ballx.ygo - ballx._y;
rx = ballx.xgo - ballx.exgo;
ry = ballx.ygo - ballx.eygo;
angy = Math.atan2(ry, rx);
vx = Math.cos(angy) * 15;
vy = Math.sin(angy) * 15;
distal = Math.sqrt(dx * dx + dy * dy);
pistal = Math.sqrt(px * px + py * py);
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
ranspace = Math.floor(Math.random() * 100);
if (ballx.eny == 666) {
if (distalx < 40 && distaly < 40) {
if (ballx.fase == 1) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': ballx._x + 1.5, '_y': ballx._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (ballx.fase == 2) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 10;
if (power < 100) {
power += 1;
}
}
}
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (ballx.fase == 3) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
slow = true;
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
}
}
if (ballx.eny == 50) {
ballx.swapDepths(ballx._y * ballx._y * 2);
if (ballx._x < ballx.xgo) {
ballx._x += vx;
}
if (ballx._x > ballx.xgo) {
ballx._x += vx;
}
if (ballx._y < ballx.ygo) {
ballx._y += vy;
}
if (ballx._y > ballx.ygo) {
ballx._y += vy;
}
if (ballx._y < 230 || ballx._y > 580 || ballx._x < -50 || ballx._x > 690) {
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (distalx < 40 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
}
}
++i;
}
}
function takeitems() {
i = 0;
while (i < itemappear.length) {
itemob = _root.game[itemappear[i]];
ix = _root.game.playerfull._x - itemob._x;
iy = _root.game.playerfull._y - itemob._y;
idistal = Math.sqrt(ix * ix + iy * iy);
idistalx = Math.sqrt(ix * ix);
idistaly = Math.sqrt(iy * iy);
if (itemob._x < 0) {
itemob._x = 50;
}
if (itemob._x > 640) {
itemob._x = 600;
}
if (itemob._y > 480) {
itemob._y = 440;
}
if (itemob.exis != 1) {
itemappear.splice(i, 1);
}
if (Key.isDown(90) && idistalx < 60 && idistaly < 50 && presy == false || Key.isDown(88) && idistalx < 60 && idistaly < 50 && presy == false) {
if (itemob.typeob == 1) {
coinhave += itemob.mount;
_root.cachso.gotoAndPlay(2);
}
if (itemob.typeob == 2) {
if (knucleuse == true) {
expw1 += itemob.mater;
}
if (sworduse == true) {
expw2 += itemob.mater;
}
if (gunuse == true) {
expw3 += itemob.mater;
}
_root.cachso.gotoAndPlay(2);
}
if (itemob.typeob == 3) {
dañoplayer -= 50;
_root.regeso.gotoAndPlay(2);
}
itemob.removeMovieClip();
itemappear.splice(i, 1);
break;
}
++i;
}
}
function experietolv() {
gemillo = Math.floor(expetogo / 100000000);
geemildeci = Math.floor((expetogo - gemillo * 100000000) / 10000000);
geemiluni = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000) / 1000000);
geemil = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000) / 100000);
gemildeci = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000) / 10000);
gemiluni = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000) / 1000);
gemil = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000 - gemiluni * 1000) / 100);
gedeci = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000 - gemiluni * 1000 - gemil * 100) / 10);
geuni = Math.floor(expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000 - gemiluni * 1000 - gemil * 100 - gedeci * 10);
_root.game.itembase.geouni.gotoAndStop(geuni + 1);
_root.game.itembase.geodeci.gotoAndStop(gedeci + 1);
_root.game.itembase.geomil.gotoAndStop(gemil + 1);
_root.game.itembase.geomiluni.gotoAndStop(gemiluni + 1);
_root.game.itembase.geomildeci.gotoAndStop(gemildeci + 1);
_root.game.itembase.geocmil.gotoAndStop(geemil + 1);
_root.game.itembase.geocmiluni.gotoAndStop(geemiluni + 1);
_root.game.itembase.geocmildeci.gotoAndStop(geemildeci + 1);
_root.game.itembase.geomillo.gotoAndStop(gemillo + 1);
if (gemillo > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 100;
_root.game.itembase.geocmildeci._alpha = 100;
_root.game.itembase.geomillo._alpha = 100;
} else {
if (geemildeci > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 100;
_root.game.itembase.geocmildeci._alpha = 100;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (geemiluni > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 100;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (geemil > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gemildeci > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gemiluni > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gemil > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gedeci > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 0;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.itembase.geomillo._alpha = 0;
} else {
if (geuni > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 0;
_root.game.itembase.geomil._alpha = 0;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (geuni == 0 && gedeci == 0 && gemil == 0 && gemiluni == 0 && gemildeci == 0 && geemil == 0 && geemiluni == 0 && geemildeci == 0 && gemillo == 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 0;
_root.game.itembase.geomil._alpha = 0;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
}
function mineraltolv() {
gsemillo = Math.floor(mineraltogo / 100000000);
gseemildeci = Math.floor((mineraltogo - gsemillo * 100000000) / 10000000);
gseemiluni = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000) / 1000000);
gseemil = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000) / 100000);
gsemildeci = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000) / 10000);
gsemiluni = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000) / 1000);
gsemil = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000 - gsemiluni * 1000) / 100);
gsedeci = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000 - gsemiluni * 1000 - gsemil * 100) / 10);
gseuni = Math.floor(mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000 - gsemiluni * 1000 - gsemil * 100 - gsedeci * 10);
_root.game.itembase.gseouni.gotoAndStop(gseuni + 1);
_root.game.itembase.gseodeci.gotoAndStop(gsedeci + 1);
_root.game.itembase.gseomil.gotoAndStop(gsemil + 1);
_root.game.itembase.gseomiluni.gotoAndStop(gsemiluni + 1);
_root.game.itembase.gseomildeci.gotoAndStop(gsemildeci + 1);
_root.game.itembase.gseocmil.gotoAndStop(gseemil + 1);
_root.game.itembase.gseocmiluni.gotoAndStop(gseemiluni + 1);
_root.game.itembase.gseocmildeci.gotoAndStop(gseemildeci + 1);
_root.game.itembase.gseomillo.gotoAndStop(gsemillo + 1);
if (gsemillo > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 100;
_root.game.itembase.gseocmildeci._alpha = 100;
_root.game.itembase.gseomillo._alpha = 100;
} else {
if (gseemildeci > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 100;
_root.game.itembase.gseocmildeci._alpha = 100;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseemiluni > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 100;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseemil > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsemildeci > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsemiluni > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsemil > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsedeci > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 0;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseuni > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 0;
_root.game.itembase.gseomil._alpha = 0;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseuni == 0 && gsedeci == 0 && gsemil == 0 && gsemiluni == 0 && gsemildeci == 0 && gseemil == 0 && gseemiluni == 0 && gseemildeci == 0 && gsemillo == 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 0;
_root.game.itembase.gseomil._alpha = 0;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
}
function combocon() {
timehit += 1;
if (combot == true) {
timehit = 0;
combot = false;
}
if (timehit > 72) {
hitr = Math.floor(hits / 10);
score += tempscore + tempscore * hitr;
tempscore = 0;
combot = false;
hits = 0;
}
hitcien = Math.floor(hits / 100);
hitde = Math.floor((hits - hitcien * 100) / 10);
hitun = Math.floor(hits - hitde * 10 - hitcien * 100);
_root.game.combosign.combocien.gotoAndStop(hitcien + 1);
_root.game.combosign.combodeci.gotoAndStop(hitde + 1);
_root.game.combosign.combouni.gotoAndStop(hitun + 1);
if (hits > 1) {
if (_root.game.playerfull._x < 320) {
_root.game.combosign._x = 570.5;
_root.game.combosign.combocien._x = -165;
_root.game.combosign.combodeci._x = -120;
_root.game.combosign.combouni._x = -76;
}
if (_root.game.playerfull._x > 320 && hits < 10) {
_root.game.combosign._x = 70.5;
_root.game.combosign.combouni._x = 81;
}
if (_root.game.playerfull._x > 320 && hits > 9 && hits < 100) {
_root.game.combosign._x = 70.5;
_root.game.combosign.combodeci._x = 81;
_root.game.combosign.combouni._x = 126;
}
if (_root.game.playerfull._x > 320 && hits > 99) {
_root.game.combosign._x = 70.5;
_root.game.combosign.combocien._x = 81;
_root.game.combosign.combodeci._x = 126;
_root.game.combosign.combouni._x = 170;
}
}
if (hits < 1) {
_root.game.combosign._x = 900;
}
if (hitcien > 0) {
_root.game.combosign.combocien._alpha = 100;
_root.game.combosign.combodeci._alpha = 100;
_root.game.combosign.combouni._alpha = 100;
} else {
if (hitde > 0) {
_root.game.combosign.combocien._alpha = 0;
_root.game.combosign.combodeci._alpha = 100;
_root.game.combosign.combouni._alpha = 100;
} else {
if (hitde <= 0) {
_root.game.combosign.combocien._alpha = 0;
_root.game.combosign.combodeci._alpha = 0;
_root.game.combosign.combouni._alpha = 100;
}
}
}
}
function damagefun() {
profund = alienob.getDepth();
_root.game.damageco.duplicateMovieClip('dmgc' + dmgn, profund + 1, {'_alpha': 0, '_x': Math.floor(_root.alienob._x), '_y': Math.floor(_root.alienob._y - 40) + 0.5, 'dmgself': damagedo});
damageappear.push('dmgc' + dmgn);
++dmgn;
}
function gamagemove() {
r = 0;
while (r < damageappear.length) {
dmgclip = _root.game[damageappear[r]];
if (dmgclip._currentframe == 1) {
dhitmil = Math.floor(dmgclip.dmgself / 1000);
dhitcien = Math.floor((dmgclip.dmgself - dhitmil * 1000) / 100);
dhitde = Math.floor((dmgclip.dmgself - dhitcien * 100 - dhitmil * 1000) / 10);
dhitun = Math.floor(dmgclip.dmgself - dhitde * 10 - dhitcien * 100 - dhitmil * 1000);
dmgclip.damamil.gotoAndStop(dhitmil + 1);
dmgclip.damacenti.gotoAndStop(dhitcien + 1);
dmgclip.damadeci.gotoAndStop(dhitde + 1);
dmgclip.damauni.gotoAndStop(dhitun + 1);
if (dhitmil > 0) {
dmgclip.damamil._alpha = 100;
dmgclip.damacenti._alpha = 100;
dmgclip.damadeci._alpha = 100;
dmgclip.damauni._alpha = 100;
} else {
if (dhitcien > 0) {
dmgclip.damamil._alpha = 0;
dmgclip.damacenti._alpha = 100;
dmgclip.damadeci._alpha = 100;
dmgclip.damauni._alpha = 100;
} else {
if (dhitde > 0) {
dmgclip.damamil._alpha = 0;
dmgclip.damacenti._alpha = 0;
dmgclip.damadeci._alpha = 100;
dmgclip.damauni._alpha = 100;
} else {
if (dhitde <= 0) {
dmgclip.damamil._alpha = 0;
dmgclip.damacenti._alpha = 0;
dmgclip.damadeci._alpha = 0;
dmgclip.damauni._alpha = 100;
}
}
}
}
dmgclip._alpha = 100;
}
dmgclip._y -= 5;
newprof = dmgclip.getDepth();
newprof += 1;
dmgclip.swapDepths(newprof);
dmgclip.nextFrame();
if (dmgclip._currentframe == 8) {
dmgclip._alpha = 80;
}
if (dmgclip._currentframe == 9) {
dmgclip._alpha = 60;
}
if (dmgclip._currentframe == 10) {
dmgclip._alpha = 40;
}
if (dmgclip._currentframe == 11) {
dmgclip._alpha = 0;
}
if (dmgclip._currentframe == 12) {
dmgclip.removeMovieClip();
damageappear.splice(r, 1);
}
++r;
}
}
function scrollmove() {
if (playerbe[2] == 1) {
if (playerbe[0] == 2 && playerbe[1] == 0) {
lv1_1();
}
if (playerbe[0] == 2 && playerbe[1] == 1) {
lv1_2();
}
if (playerbe[0] == 3 && playerbe[1] == 1) {
lv1_3();
}
if (playerbe[0] == 3 && playerbe[1] == 2) {
lv1_4();
}
if (playerbe[0] == 1 && playerbe[1] == 1) {
lv1_5();
}
if (playerbe[0] == 1 && playerbe[1] == 2) {
lv1_6();
}
if (playerbe[0] == 1 && playerbe[1] == 3) {
lv1_7();
}
if (playerbe[0] == 0 && playerbe[1] == 3) {
lv1_8();
}
if (playerbe[0] == 1 && playerbe[1] == 4) {
lv1_9();
}
if (playerbe[0] == 1 && playerbe[1] == 5) {
lv1_10();
}
if (playerbe[0] == 1 && playerbe[1] == 6) {
lv1_11();
}
if (playerbe[0] == 1 && playerbe[1] == 7) {
lv1_12();
}
}
if (_root.game.playerfull._x > 320 && derep > 640 && Key.isDown(39) && movingmap == true && atacktime == false && blocks == false) {
_root.game.backg._x -= 5;
speedup = 0;
walkspeed = 0;
} else {
if (_root.game.playerfull._x < 320 && izqp < -10 && Key.isDown(37) && movingmap == true && atacktime == false && blocks == false) {
_root.game.backg._x += 5;
speedup = 0;
walkspeed = 0;
} else {
walkspeed = 10;
}
}
}
function lv1_1() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place1 == 1 && place2 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
if (place1 == 1 && place2 == 1 && place3 == 1) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 1, 1];
local_data.data.entrance = 3;
datasave();
}
}
if (_root.game.backg._x < 960 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < 320 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -320 && movingmap == true && place2 == 1 && place1 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 1, 1];
local_data.data.entrance = 3;
datasave();
}
}
if (_root.game.backg._x > 340 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
}
}
}
function lv1_2() {
if (entrance == 3) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 0, 1];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 1, 1];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [1, 1, 1];
local_data.data.entrance = 1;
datasave();
}
if (_root.game.backg._x == -320 && swordhave == 0) {
_root.game.meseg.gotoAndStop(2);
}
}
}
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 0, 1];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 1, 1];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [1, 1, 1];
local_data.data.entrance = 1;
datasave();
}
if (_root.game.backg._x == -320 && swordhave == 0) {
_root.game.meseg.gotoAndStop(2);
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 0, 1];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 1, 1];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [1, 1, 1];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_3() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 1, 1];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 2, 1];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 645 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < 5 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
_root.game.backg.pad3.warg.gotoAndStop(2);
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 130;
defenseac = false;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 130;
defenseac = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 130;
defenseac = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 1, 1];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 2, 1];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > 0 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
defenseen = true;
numcanon = 1;
}
if (_root.game.backg._x > 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1];
enemyon = enemytogo.length;
defenseen = true;
numcanon = 2;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x > 640 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1];
enemyon = enemytogo.length;
defenseen = true;
numcanon = 2;
_root.game.gosign._x = 800;
}
}
}
function lv1_4() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
shopa = true;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 1, 1];
local_data.data.entrance = 2;
datasave();
}
}
}
}
function lv1_5() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
defenseac = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 1, 1];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 1];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2];
enemyon = enemytogo.length;
defenseen = true;
numcanon = 2;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
defenseac = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 1, 1];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 1];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > 320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x > 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2];
enemyon = enemytogo.length;
defenseen = true;
numcanon = 4;
_root.game.gosign._x = 800;
}
}
}
function lv1_6() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
magneton = false;
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 1, 1];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 3, 1];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 960 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [4, 4, 4, 4, 4, 4, 4];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 1;
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 2, 2, 1, 1, 1, 2, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 2;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x < -320 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 4, 4, 4, 1, 1, 2, 1, 1, 1, 4, 4, 4, 1, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 1;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
magneton = false;
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 1, 1];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 3, 1];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > -320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 1;
}
if (_root.game.backg._x > 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 2;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x > 960 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 4, 4, 4, 4, 4, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, 4, 1, 2, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 2;
_root.game.gosign._x = 800;
}
}
}
function lv1_7() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [0, 3, 1];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 1];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 4, 1];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [0, 3, 1];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 1];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 4, 1];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_8() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
shopa = true;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 3, 1];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_9() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
magneton = false;
defenseac = false;
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
magneton = false;
defenseac = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 3, 1];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 1];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 645 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 4, 4, 4, 1, 1, 2, 4, 4, 4, 1, 1, 4, 4, 4, 1, 1, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 2;
}
if (_root.game.backg._x < 5 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 2;
defenseen = true;
numcanon = 3;
_root.game.gosign._x = 800;
}
}
}
function lv1_10() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
magneton = false;
defenseac = false;
ojoac = false;
_root.game.gosign._x = 500;
_root.game.meseg.gotoAndStop(4);
_root.game.alarmred.gotoAndStop(2);
bosshere = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 6, 1];
local_data.data.entrance = 1;
datasave();
}
if (_root.game.backg._x == 1600) {
_root.game.meseg.gotoAndStop(3);
}
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [8];
enemyon = enemytogo.length;
ojoen = true;
bosshere = true;
}
}
}
function lv1_11() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
_root.game.alarmred.gotoAndStop(2);
}
if (place2 == 0 && place1 == 1) {
magneton = false;
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 7, 1];
local_data.data.entrance = 1;
datasave();
}
if (_root.game.backg._x == 1600) {
_root.game.meseg.gotoAndStop(3);
}
}
if (_root.game.backg._x < 960 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 4, 4, 1, 1, 1, 2, 2, 4, 4, 4, 4];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 2;
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [4, 4, 4, 4, 4, 2, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 1;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x < -320 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 4, 4, 1, 1, 1, 2, 2, 1, 1, 1, 4, 4, 4, 1, 1, 2, 4, 4, 4];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 3;
_root.game.gosign._x = 800;
}
}
}
function lv1_12() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
_root.game.alarmred.gotoAndStop(2);
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
defenseac = false;
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
defenseac = false;
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
levelpass = 1;
if (medal[17] == 0 && lives == 4) {
medal[17] = 1;
_root.game.archi.gotoAndStop(19);
}
local_data.data.levelpass = levelpass;
local_data.flush();
datasave();
}
if (_root.game.backg._x == 1600) {
_root.game.meseg.gotoAndStop(3);
}
}
if (_root.game.backg._x < 960 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2];
enemyon = enemytogo.length;
defenseen = true;
numcanon = 2;
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2];
enemyon = enemytogo.length;
defenseen = true;
numcanon = 3;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x < -320 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
defenseen = true;
numcanon = 3;
}
}
}
function finishg() {
if (_root.cortinaingame._currentframe == 24) {
gotoAndStop(366);
}
if (_root.game.gsign._currentframe == 55) {
gotoAndPlay(1);
}
if (dañoplayer >= playerhp) {
gameover = true;
_root.niv1.gotoAndStop(1);
_root.bosss.gotoAndStop(1);
_root.game.itembase.swapDepths(1);
_root.game.cortinag.swapDepths(98999998);
_root.game.playerfull.swapDepths(98999999);
h = 0;
while (h < manchaslist.length) {
manchis = _root.game[manchaslist[h]];
manchis.removeMovieClip();
++h;
}
r = 0;
while (r < enemylist.length) {
itemob = _root.game[itemappear[r]];
alienob = _root.game[enemylist[r]];
alienob.removeMovieClip();
itemob.removeMovieClip();
++r;
}
s = 0;
while (s < canoneslist.length) {
canonx = _root.game[canoneslist[s]];
canonx.removeMovieClip();
++s;
}
if (direct == 1) {
_root.game.playerfull.gotoAndStop(20);
_root.game.cortinag.gotoAndStop(2);
}
if (direct == 0) {
_root.game.playerfull.gotoAndStop(19);
_root.game.cortinag.gotoAndStop(2);
}
}
}
function datasave() {
playercath = true;
local_data.data.playerhp = playerhp;
local_data.data.dañoplayer = dañoplayer;
local_data.data.lvplayer = lvplayer;
local_data.data.coinhave = coinhave;
local_data.data.power = power;
local_data.data.equipw1 = equipw1;
local_data.data.equipw2 = equipw2;
local_data.data.score = score;
local_data.data.mineral = mineral;
local_data.data.expw1lv = expw1lv;
local_data.data.expw2lv = expw2lv;
local_data.data.expw3lv = expw3lv;
local_data.data.expw1 = expw1;
local_data.data.expw2 = expw2;
local_data.data.expw3 = expw3;
local_data.data.expe = expe;
local_data.data.itemhave = itemhave;
local_data.data.itembox = itembox;
local_data.data.w1attack = w1attack;
local_data.data.w2attack = w2attack;
local_data.data.guncost = guncost;
local_data.data.handhave = handhave;
local_data.data.swordhave = swordhave;
local_data.data.gunhave = gunhave;
local_data.data.medal = medal;
local_data.data.greenflea = greenflea;
local_data.data.redsquid = redsquid;
local_data.data.leach = leach;
local_data.data.plasma = plasma;
local_data.data.abomination = abomination;
local_data.data.devourer = devourer;
local_data.data.firefly = firefly;
local_data.data.octron = octron;
local_data.data.lily = lily;
local_data.data.errorr = errorr;
local_data.data.qsoldier = qsoldier;
local_data.data.mom = mom;
local_data.data.healp = healp;
local_data.data.powering = powering;
local_data.data.clearing = clearing;
local_data.data.lives = lives;
local_data.data.timeplaying = timeplaying;
local_data.data.mutek = mutek;
local_data.flush();
_root.cortinaingame.play();
}
function datagameover() {
local_data.data.playerhp = playerhp;
local_data.data.dañoplayer = 0;
local_data.data.lvplayer = lvplayer;
local_data.data.coinhave = coinhave;
local_data.data.power = 0;
local_data.data.equipw1 = equipw1;
local_data.data.equipw2 = equipw2;
local_data.data.score = score;
local_data.data.mineral = mineral;
local_data.data.expw1lv = expw1lv;
local_data.data.expw2lv = expw2lv;
local_data.data.expw3lv = expw3lv;
local_data.data.expw1 = expw1;
local_data.data.expw2 = expw2;
local_data.data.expw3 = expw3;
local_data.data.expe = expe;
local_data.data.itemhave = itemhave;
local_data.data.itembox = itembox;
local_data.data.w1attack = w1attack;
local_data.data.w2attack = w2attack;
local_data.data.guncost = guncost;
local_data.data.handhave = handhave;
local_data.data.swordhave = swordhave;
local_data.data.gunhave = gunhave;
local_data.data.medal = medal;
local_data.data.greenflea = greenflea;
local_data.data.redsquid = redsquid;
local_data.data.leach = leach;
local_data.data.plasma = plasma;
local_data.data.abomination = abomination;
local_data.data.devourer = devourer;
local_data.data.firefly = firefly;
local_data.data.octron = octron;
local_data.data.lily = lily;
local_data.data.errorr = errorr;
local_data.data.qsoldier = qsoldier;
local_data.data.mom = mom;
local_data.data.healp = healp;
local_data.data.powering = powering;
local_data.data.clearing = clearing;
local_data.data.lives = lives;
local_data.data.timeplaying = timeplaying;
local_data.data.mutek = mutek;
local_data.flush();
}
function supamagnet() {
if (magnetac == true) {
if (magnetnum == 1) {
_root.game.magnet.duplicateMovieClip('magnito' + deepen, deepen, {'_x': 320, '_y': 350, 'atrac': 0});
magnetolist.push('magnito' + deepen);
++deepen;
magnetac = false;
magneton = true;
}
if (magnetnum == 2) {
_root.game.magnet.duplicateMovieClip('magnito' + deepen, deepen, {'_x': 100, '_y': 330, 'atrac': 0});
magnetolist.push('magnito' + deepen);
++deepen;
_root.game.magnet.duplicateMovieClip('magnito' + deepen, deepen, {'_x': 540, '_y': 400, 'atrac': 0});
magnetolist.push('magnito' + deepen);
++deepen;
magnetac = false;
magneton = true;
}
if (magnetnum == 3) {
_root.game.magnet.duplicateMovieClip('magnito' + deepen, deepen, {'_x': 320, '_y': 320, 'atrac': 0});
magnetolist.push('magnito' + deepen);
++deepen;
_root.game.magnet.duplicateMovieClip('magnito' + deepen, deepen, {'_x': 100, '_y': 401, 'atrac': 0});
magnetolist.push('magnito' + deepen);
++deepen;
_root.game.magnet.duplicateMovieClip('magnito' + deepen, deepen, {'_x': 540, '_y': 400, 'atrac': 0});
magnetolist.push('magnito' + deepen);
++deepen;
magnetac = false;
magneton = true;
}
_root.opencs.gotoAndPlay(2);
magcount = 40;
}
if (magneton == true) {
magcount += 1;
}
if (magcount == 80) {
magto1 = _root.game[magnetolist[0]];
magto2 = _root.game[magnetolist[1]];
magto3 = _root.game[magnetolist[2]];
magto1.swapDepths(magto1._y * magto1._y);
magto2.swapDepths(magto2._y * magto2._y);
magto3.swapDepths(magto3._y * magto3._y);
magto1.atrac = 0;
magto2.atrac = 0;
magto3.atrac = 0;
magto1.gotoAndStop(3);
magto2.gotoAndStop(3);
magto3.gotoAndStop(3);
magto = _root.game[magnetolist[magchoose]];
magchoose += 1;
if (magnetnum == 1 && magchoose > 1) {
magchoose = 0;
}
if (magnetnum == 2 && magchoose > 1) {
magchoose = 0;
}
if (magnetnum == 3 && magchoose > 2) {
magchoose = 0;
}
magto.atrac = 1;
magcount = 0;
}
magto1 = _root.game[magnetolist[0]];
magto2 = _root.game[magnetolist[1]];
magto3 = _root.game[magnetolist[2]];
magto1.swapDepths(magto1._y * magto1._y);
magto2.swapDepths(magto2._y * magto2._y);
magto3.swapDepths(magto3._y * magto3._y);
dx = _root.game.playerfull._x - magto._x;
dy = _root.game.playerfull._y - magto._y;
mdistal = Math.sqrt(dx * dx + dy * dy);
mdistalx = Math.sqrt(dx * dx);
mdistaly = Math.sqrt(dy * dy);
if (magto.atrac == 1) {
magto.gotoAndStop(2);
if (_root.game.playerfull._x > magto._x) {
_root.game.playerfull._x -= 5;
}
if (_root.game.playerfull._x < magto._x) {
_root.game.playerfull._x += 5;
}
if (_root.game.playerfull._y > magto._y) {
_root.game.playerfull._y -= 5;
}
if (_root.game.playerfull._y < magto._y) {
_root.game.playerfull._y += 5;
}
}
if (magneton == false) {
magto1 = _root.game[magnetolist[0]];
magto2 = _root.game[magnetolist[1]];
magto3 = _root.game[magnetolist[2]];
magto1.removeMovieClip();
magto2.removeMovieClip();
magto3.removeMovieClip();
magnetolist.splice(0, magnetolist.length);
}
}
function canoneslaser() {
if (defenseen == true) {
c = 0;
while (c < 4) {
_root.game.canonlaser.duplicateMovieClip('canon' + deepen, deepen, {'_x': 80 + c * 160, '_y': 155.5 - c});
canoneslist.push('canon' + deepen);
++deepen;
++c;
}
defenseen = false;
defenseac = true;
canonotime = 0;
}
if (defenseac == true) {
canonotime += 1;
if (canonotime == 60) {
canonotime = 0;
f = 0;
while (f < numcanon) {
selectcanon = Math.floor(Math.random() * 4);
canonx = _root.game[canoneslist[selectcanon]];
canonx.gotoAndPlay(2);
++f;
}
_root.opencs.gotoAndPlay(2);
}
}
i = 0;
while (i < canoneslist.length) {
canonx = _root.game[canoneslist[i]];
canonx.swapDepths(canonx._y * canonx._y + 600000);
dx = _root.game.playerfull._x - canonx._x;
dy = _root.game.playerfull._y - canonx._y;
distalx = Math.sqrt(dx * dx);
if (canonx._currentframe == 21) {
_root.entresas.gotoAndPlay(2);
}
if (canonx._currentframe == 22 && distalx < 50) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
if (defenseac == false) {
canonx.removeMovieClip();
}
++i;
}
if (defenseac == false) {
canoneslist.splice(0, canoneslist.length);
}
}
function ojoslaser() {
if (ojoen == true) {
c = 0;
while (c < 4) {
_root.game.eyelasers.duplicateMovieClip('canon' + deepen, deepen, {'_x': 80 + c * 160, '_y': 155.5 - c});
eyelist.push('canon' + deepen);
++deepen;
++c;
}
ojoen = false;
ojoac = true;
}
if (specialboss == true) {
specialboss = false;
f = 0;
while (f < eyelist.length) {
canonx = _root.game[eyelist[f]];
canonx.gotoAndPlay(2);
++f;
}
}
i = 0;
while (i < eyelist.length) {
canonx = _root.game[eyelist[i]];
canonx.swapDepths(canonx._y * canonx._y + 600000);
dx = _root.game.playerfull._x - canonx._x;
dy = _root.game.playerfull._y - canonx._y;
distalx = Math.sqrt(dx * dx);
if (canonx._currentframe == 12) {
_root.entresas.gotoAndPlay(2);
}
if (canonx._currentframe == 14 && distalx < 50) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 10;
if (power < 100) {
power += 1;
}
}
}
}
if (ojoac == false) {
canonx.removeMovieClip();
}
++i;
}
if (ojoac == false) {
eyelist.splice(0, eyelist.length);
}
}
function shophere() {
_root.game.roboto._x = 493.5;
_root.game.roboto._y = 350;
robogo = _root.game.roboto;
robogo.swapDepths(robogo._y * robogo._y);
fx = _root.game.playerfull._x - robogo._x;
fy = _root.game.playerfull._y - robogo._y;
fistal = Math.sqrt(fx * fx + fy * fy);
if (Key.isDown(90) && fistal <= 80) {
beginshopa = true;
_root.game.shopclip.swapDepths(98000001);
_root.game.shopclip.gotoAndStop(2);
}
if (beginshopa == true) {
showcoins();
buythings();
showitembox();
dragput();
}
}
function dragput() {
_root.game.shopclip.so.boxa.onPress = function () {
_root.game.shopclip.so.boxa.startDrag(0);
};
_root.game.shopclip.so.boxa.onRelease = function () {
_root.game.shopclip.so.boxa.stopDrag(0);
dlxa = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 1;
itemhave[0][1] = itembox[0];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 1;
itemhave[1][1] = itembox[0];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 1;
itemhave[2][1] = itembox[0];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 1;
itemhave[3][1] = itembox[0];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 1;
itemhave[4][1] = itembox[0];
}
_root.game.shopclip.so.boxa._x = -180;
_root.game.shopclip.so.boxa._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxb.onPress = function () {
_root.game.shopclip.so.boxb.startDrag(0);
};
_root.game.shopclip.so.boxb.onRelease = function () {
_root.game.shopclip.so.boxb.stopDrag(0);
dlxa = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 2;
itemhave[0][1] = itembox[1];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 2;
itemhave[1][1] = itembox[1];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 2;
itemhave[2][1] = itembox[1];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 2;
itemhave[3][1] = itembox[1];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 2;
itemhave[4][1] = itembox[1];
}
_root.game.shopclip.so.boxb._x = -129;
_root.game.shopclip.so.boxb._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxc.onPress = function () {
_root.game.shopclip.so.boxc.startDrag(0);
};
_root.game.shopclip.so.boxc.onRelease = function () {
_root.game.shopclip.so.boxc.stopDrag(0);
dlxa = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 3;
itemhave[0][1] = itembox[2];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 3;
itemhave[1][1] = itembox[2];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 3;
itemhave[2][1] = itembox[2];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 3;
itemhave[3][1] = itembox[2];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 3;
itemhave[4][1] = itembox[2];
}
_root.game.shopclip.so.boxc._x = -79;
_root.game.shopclip.so.boxc._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxd.onPress = function () {
_root.game.shopclip.so.boxd.startDrag(0);
};
_root.game.shopclip.so.boxd.onRelease = function () {
_root.game.shopclip.so.boxd.stopDrag(0);
dlxa = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 4;
itemhave[0][1] = itembox[3];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 4;
itemhave[1][1] = itembox[3];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 4;
itemhave[2][1] = itembox[3];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 4;
itemhave[3][1] = itembox[3];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 4;
itemhave[4][1] = itembox[3];
}
_root.game.shopclip.so.boxd._x = -30;
_root.game.shopclip.so.boxd._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxe.onPress = function () {
_root.game.shopclip.so.boxe.startDrag(0);
};
_root.game.shopclip.so.boxe.onRelease = function () {
_root.game.shopclip.so.boxe.stopDrag(0);
dlxa = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 5;
itemhave[0][1] = itembox[4];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 5;
itemhave[1][1] = itembox[4];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 5;
itemhave[2][1] = itembox[4];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 5;
itemhave[3][1] = itembox[4];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 5;
itemhave[4][1] = itembox[4];
}
_root.game.shopclip.so.boxe._x = 21;
_root.game.shopclip.so.boxe._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxf.onPress = function () {
_root.game.shopclip.so.boxf.startDrag(0);
};
_root.game.shopclip.so.boxf.onRelease = function () {
_root.game.shopclip.so.boxf.stopDrag(0);
dlxa = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 7;
itemhave[0][1] = itembox[5];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 7;
itemhave[1][1] = itembox[5];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 7;
itemhave[2][1] = itembox[5];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 7;
itemhave[3][1] = itembox[5];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 7;
itemhave[4][1] = itembox[5];
}
_root.game.shopclip.so.boxf._x = 71;
_root.game.shopclip.so.boxf._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.pbox.onPress = function () {
_root.game.shopclip.so.pbox.startDrag(0);
};
_root.game.shopclip.so.pbox.onRelease = function () {
_root.game.shopclip.so.pbox.stopDrag(0);
dlxa = _root.game.shopclip.so.pbox._x - _root.game.shopclip.so.equipsa._x;
dlya = _root.game.shopclip.so.pbox._y - _root.game.shopclip.so.equipsa._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.pbox._x - _root.game.shopclip.so.equipss._x;
dlyb = _root.game.shopclip.so.pbox._y - _root.game.shopclip.so.equipss._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
if (distalslota < 30) {
if (handhave == 1) {
if (equipw1 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw1 = 1;
slotuno();
}
}
if (distalslotb < 30) {
if (handhave == 1) {
if (equipw2 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw2 = 1;
slotdos();
}
}
_root.game.shopclip.so.pbox._x = 100;
_root.game.shopclip.so.pbox._y = -46.5;
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.sbox.onPress = function () {
_root.game.shopclip.so.sbox.startDrag(0);
};
_root.game.shopclip.so.sbox.onRelease = function () {
_root.game.shopclip.so.sbox.stopDrag(0);
dlxa = _root.game.shopclip.so.sbox._x - _root.game.shopclip.so.equipsa._x;
dlya = _root.game.shopclip.so.sbox._y - _root.game.shopclip.so.equipsa._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.sbox._x - _root.game.shopclip.so.equipss._x;
dlyb = _root.game.shopclip.so.sbox._y - _root.game.shopclip.so.equipss._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
if (distalslota < 30) {
if (swordhave == 1) {
if (equipw1 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw1 = 2;
slotuno();
}
}
if (distalslotb < 30) {
if (swordhave == 1) {
if (equipw2 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw2 = 2;
slotdos();
}
}
_root.game.shopclip.so.sbox._x = 150;
_root.game.shopclip.so.sbox._y = -46.5;
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.gbox.onPress = function () {
_root.game.shopclip.so.gbox.startDrag(0);
};
_root.game.shopclip.so.gbox.onRelease = function () {
_root.game.shopclip.so.gbox.stopDrag(0);
dlxa = _root.game.shopclip.so.gbox._x - _root.game.shopclip.so.equipsa._x;
dlya = _root.game.shopclip.so.gbox._y - _root.game.shopclip.so.equipsa._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.gbox._x - _root.game.shopclip.so.equipss._x;
dlyb = _root.game.shopclip.so.gbox._y - _root.game.shopclip.so.equipss._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
if (distalslota < 30) {
if (gunhave == 1 && itembox[6] != 0 && equipw2 != 3) {
equipw1 = 3;
slotuno();
itemhave[4][0] = itembox[6];
itemhave[4][1] = 0;
alignitems();
}
}
if (distalslotb < 30) {
if (gunhave == 1 && itembox[6] != 0 && equipw2 != 3) {
equipw2 = 3;
slotdos();
itemhave[4][0] = itembox[6];
itemhave[4][1] = 0;
alignitems();
}
}
_root.game.shopclip.so.gbox._x = 200;
_root.game.shopclip.so.gbox._y = -46.5;
_root.cachso.gotoAndPlay(2);
};
}
function slotuno() {
if (knucleuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(1);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(1);
}
}
function slotdos() {
if (knucleuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(1);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(1);
}
}
function showitembox() {
_root.game.shopclip.so.boxa.gotoAndStop(itembox[0] + 1);
_root.game.shopclip.so.boxb.gotoAndStop(itembox[1] + 1);
_root.game.shopclip.so.boxc.gotoAndStop(itembox[2] + 1);
_root.game.shopclip.so.boxd.gotoAndStop(itembox[3] + 1);
_root.game.shopclip.so.boxe.gotoAndStop(itembox[4] + 1);
_root.game.shopclip.so.boxf.gotoAndStop(itembox[5] + 1);
if (itembox[6] == 16) {
_root.game.shopclip.so.boxg.gotoAndStop(2);
} else {
if (itembox[6] == 17) {
_root.game.shopclip.so.boxg.gotoAndStop(3);
} else {
if (itembox[6] == 18) {
_root.game.shopclip.so.boxg.gotoAndStop(4);
} else {
if (itembox[6] == 19) {
_root.game.shopclip.so.boxg.gotoAndStop(5);
} else {
if (itembox[6] == 20) {
_root.game.shopclip.so.boxg.gotoAndStop(6);
} else {
if (itembox[6] == 21) {
_root.game.shopclip.so.boxg.gotoAndStop(7);
} else {
if (itembox[6] == 0) {
_root.game.shopclip.so.boxg.gotoAndStop(1);
}
}
}
}
}
}
}
if (handhave == 1) {
_root.game.shopclip.so.pbox.gotoAndStop(2);
} else {
_root.game.shopclip.so.pbox.gotoAndStop(1);
}
if (swordhave == 1) {
_root.game.shopclip.so.sbox.gotoAndStop(2);
} else {
_root.game.shopclip.so.sbox.gotoAndStop(1);
}
if (gunhave == 1) {
_root.game.shopclip.so.gbox.gotoAndStop(2);
} else {
_root.game.shopclip.so.gbox.gotoAndStop(1);
}
_root.game.shopclip.so.aequip.gotoAndStop(equipw1);
_root.game.shopclip.so.sequip.gotoAndStop(equipw2);
}
function buythings() {
_root.game.shopclip.so.obuya.onRollOver = function () {
_root.game.shopclip.so.obuya.gotoAndStop(2);
};
_root.game.shopclip.so.obuya.onRollOut = function () {
_root.game.shopclip.so.obuya.gotoAndStop(1);
};
_root.game.shopclip.so.obuya.onRelease = function () {
if (itembox[0] < 9 && coinhave >= 50) {
coinhave -= 50;
itembox[0] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyb.onRollOver = function () {
_root.game.shopclip.so.obuyb.gotoAndStop(2);
};
_root.game.shopclip.so.obuyb.onRollOut = function () {
_root.game.shopclip.so.obuyb.gotoAndStop(1);
};
_root.game.shopclip.so.obuyb.onRelease = function () {
if (itembox[1] < 9 && coinhave >= 200) {
coinhave -= 200;
itembox[1] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyc.onRollOver = function () {
_root.game.shopclip.so.obuyc.gotoAndStop(2);
};
_root.game.shopclip.so.obuyc.onRollOut = function () {
_root.game.shopclip.so.obuyc.gotoAndStop(1);
};
_root.game.shopclip.so.obuyc.onRelease = function () {
if (itembox[2] < 9 && coinhave >= 1000) {
coinhave -= 1000;
itembox[2] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyd.onRollOver = function () {
_root.game.shopclip.so.obuyd.gotoAndStop(2);
};
_root.game.shopclip.so.obuyd.onRollOut = function () {
_root.game.shopclip.so.obuyd.gotoAndStop(1);
};
_root.game.shopclip.so.obuyd.onRelease = function () {
if (itembox[3] < 9 && coinhave >= 30) {
coinhave -= 30;
itembox[3] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuye.onRollOver = function () {
_root.game.shopclip.so.obuye.gotoAndStop(2);
};
_root.game.shopclip.so.obuye.onRollOut = function () {
_root.game.shopclip.so.obuye.gotoAndStop(1);
};
_root.game.shopclip.so.obuye.onRelease = function () {
if (itembox[4] < 9 && coinhave >= 80) {
coinhave -= 80;
itembox[4] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyf.onRollOver = function () {
_root.game.shopclip.so.obuyf.gotoAndStop(2);
};
_root.game.shopclip.so.obuyf.onRollOut = function () {
_root.game.shopclip.so.obuyf.gotoAndStop(1);
};
_root.game.shopclip.so.obuyf.onRelease = function () {
if (itembox[5] < 9 && coinhave >= 50) {
coinhave -= 50;
itembox[5] += 1;
_root.compras.gotoAndPlay(2);
}
};
if (swordhave == 1) {
_root.game.shopclip.so.obuyg.gotoAndStop(3);
}
_root.game.shopclip.so.obuyg.onRollOver = function () {
if (swordhave == 0) {
_root.game.shopclip.so.obuyg.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyg.onRollOut = function () {
if (swordhave == 0) {
_root.game.shopclip.so.obuyg.gotoAndStop(1);
}
if (swordhave == 1) {
_root.game.shopclip.so.obuyg.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyg.onRelease = function () {
if (coinhave >= 100 && swordhave == 0) {
coinhave -= 100;
swordhave = 1;
_root.compras.gotoAndPlay(2);
}
};
if (itembox[6] == 16 || itembox[6] > 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(3);
}
_root.game.shopclip.so.obuyh.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyh.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(1);
}
if (itembox[6] == 16 || itembox[6] > 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyh.onRelease = function () {
if (coinhave >= 50 && itembox[6] == 0 || coinhave >= 50 && itembox[6] < 16) {
coinhave -= 50;
itembox[6] = 16;
_root.compras.gotoAndPlay(2);
}
};
if (itembox[6] == 17 || itembox[6] > 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(3);
}
_root.game.shopclip.so.obuyi.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyi.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(1);
}
if (itembox[6] == 17 || itembox[6] > 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyi.onRelease = function () {
if (coinhave >= 1000 && itembox[6] == 0 || coinhave >= 1000 && itembox[6] < 17) {
coinhave -= 1000;
itembox[6] = 17;
if (itemhave[4][0] < 17 && equipw1 == 3 || itemhave[4][0] < 17 && equipw2 == 3) {
itemhave[4][0] = 17;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 18 || itembox[6] > 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(3);
}
_root.game.shopclip.so.obuyj.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyj.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(1);
}
if (itembox[6] == 18 || itembox[6] > 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyj.onRelease = function () {
if (coinhave >= 5000 && itembox[6] == 0 || coinhave >= 5000 && itembox[6] < 18) {
coinhave -= 5000;
itembox[6] = 18;
if (itemhave[4][0] < 18 && equipw1 == 3 || itemhave[4][0] < 18 && equipw2 == 3) {
itemhave[4][0] = 18;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 19 || itembox[6] > 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(3);
}
_root.game.shopclip.so.obuyk.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyk.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(1);
}
if (itembox[6] == 18 || itembox[6] > 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyk.onRelease = function () {
if (coinhave >= 15000 && itembox[6] == 0 || coinhave >= 15000 && itembox[6] < 19) {
coinhave -= 15000;
itembox[6] = 19;
if (itemhave[4][0] < 19 && equipw1 == 3 || itemhave[4][0] < 19 && equipw2 == 3) {
itemhave[4][0] = 19;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 20 || itembox[6] > 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(3);
}
_root.game.shopclip.so.obuyl.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyl.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(1);
}
if (itembox[6] == 20 || itembox[6] > 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyl.onRelease = function () {
if (coinhave >= 50000 && itembox[6] == 0 || coinhave >= 50000 && itembox[6] < 20) {
coinhave -= 50000;
itembox[6] = 20;
if (itemhave[4][0] < 20 && equipw1 == 3 || itemhave[4][0] < 20 && equipw2 == 3) {
itemhave[4][0] = 20;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 21 || itembox[6] > 21) {
_root.game.shopclip.so.obuym.gotoAndStop(3);
}
_root.game.shopclip.so.obuym.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 21) {
_root.game.shopclip.so.obuym.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuym.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 21) {
_root.game.shopclip.so.obuym.gotoAndStop(1);
}
if (itembox[6] == 21 || itembox[6] > 21) {
_root.game.shopclip.so.obuym.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuym.onRelease = function () {
if (coinhave >= 100000 && itembox[6] == 0 || coinhave >= 100000 && itembox[6] < 21) {
coinhave -= 100000;
itembox[6] = 21;
if (itemhave[4][0] < 21 && equipw1 == 3 || itemhave[4][0] < 21 && equipw2 == 3) {
itemhave[4][0] = 21;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (gunhave == 1) {
_root.game.shopclip.so.obuyn.gotoAndStop(3);
}
_root.game.shopclip.so.obuyn.onRollOver = function () {
if (gunhave == 0) {
_root.game.shopclip.so.obuyn.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyn.onRollOut = function () {
if (gunhave == 0) {
_root.game.shopclip.so.obuyn.gotoAndStop(1);
}
if (gunhave == 1) {
_root.game.shopclip.so.obuyn.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyn.onRelease = function () {
if (coinhave >= 1000 && gunhave == 0) {
coinhave -= 1000;
gunhave = 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.exito.onRollOver = function () {
_root.game.shopclip.so.exito.gotoAndStop(2);
};
_root.game.shopclip.so.exito.onRollOut = function () {
_root.game.shopclip.so.exito.gotoAndStop(1);
};
_root.game.shopclip.so.exito.onRelease = function () {
beginshopa = false;
_root.game.shopclip.gotoAndStop(1);
};
}
function showcoins() {
cmillo = Math.floor(coinhave / 100000000);
ccmildeci = Math.floor((coinhave - cmillo * 100000000) / 10000000);
ccmiluni = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000) / 1000000);
ccmil = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000) / 100000);
cmildeci = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000) / 10000);
cmiluni = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000) / 1000);
cmil = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000 - cmiluni * 1000) / 100);
cdeci = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000 - cmiluni * 1000 - cmil * 100) / 10);
cuni = Math.floor(coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000 - cmiluni * 1000 - cmil * 100 - cdeci * 10);
_root.game.shopclip.so.couni.gotoAndStop(cuni + 1);
_root.game.shopclip.so.codeci.gotoAndStop(cdeci + 1);
_root.game.shopclip.so.comil.gotoAndStop(cmil + 1);
_root.game.shopclip.so.comiluni.gotoAndStop(cmiluni + 1);
_root.game.shopclip.so.comildeci.gotoAndStop(cmildeci + 1);
_root.game.shopclip.so.cocmil.gotoAndStop(ccmil + 1);
_root.game.shopclip.so.cocmiluni.gotoAndStop(ccmiluni + 1);
_root.game.shopclip.so.cocmildeci.gotoAndStop(ccmildeci + 1);
_root.game.shopclip.so.comillo.gotoAndStop(cmillo + 1);
if (cmillo > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 100;
_root.game.shopclip.so.cocmildeci._alpha = 100;
_root.game.shopclip.so.comillo._alpha = 100;
} else {
if (ccmildeci > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 100;
_root.game.shopclip.so.cocmildeci._alpha = 100;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (ccmiluni > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 100;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (ccmil > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmildeci > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmiluni > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmil > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmil > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cdeci > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 0;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cuni > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 0;
_root.game.shopclip.so.comil._alpha = 0;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cuni == 0 && cdeci == 0 && cmil == 0 && cmiluni == 0 && cmildeci == 0 && ccmil == 0 && ccmiluni == 0 && ccmildeci == 0 && cmillo == 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 0;
_root.game.shopclip.so.comil._alpha = 0;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
}
}
function onemoretime() {
_root.game.trysign.livesc.gotoAndStop(lives + 1);
if (_root.game.cortinag.blackc._currentframe == 1) {
_root.endss.gotoAndPlay(2);
}
if (lives == 0 && lock == false && _root.game.cortinag.blackc._currentframe == 40) {
_root.game.gsign.swapDepths(99899998);
_root.game.gsign.play();
lock = true;
_root.oversound.gotoAndStop(2);
}
if (lives > 0 && lock == false) {
if (_root.game.cortinag.blackc._currentframe == 40) {
_root.game.trysign.swapDepths(99899998);
_root.game.trysign.gotoAndStop(2);
_root.oversound.gotoAndStop(2);
}
_root.game.trysign.yestry.onRollOver = function () {
_root.game.trysign.yestry.gotoAndStop(2);
};
_root.game.trysign.yestry.onRollOut = function () {
_root.game.trysign.yestry.gotoAndStop(1);
};
_root.game.trysign.yestry.onRelease = function () {
if (lives > 0) {
lives -= 1;
}
lock = true;
datagameover();
_root.cortinaingame.play();
};
_root.game.trysign.notry.onRollOver = function () {
_root.game.trysign.notry.gotoAndStop(2);
};
_root.game.trysign.notry.onRollOut = function () {
_root.game.trysign.notry.gotoAndStop(1);
};
_root.game.trysign.notry.onRelease = function () {
_root.game.trysign.gotoAndStop(1);
_root.game.gsign.swapDepths(99899998);
_root.game.gsign.play();
lock = true;
};
}
}
function checkmedals() {
timeplaying += 1;
if (medal[0] == 0 && greenflea >= 10) {
medal[0] = 1;
_root.game.archi.gotoAndStop(2);
_root.adchiso.gotoAndPlay(2);
}
if (medal[1] == 0 && redsquid >= 10) {
medal[1] = 1;
_root.game.archi.gotoAndStop(3);
_root.adchiso.gotoAndPlay(2);
}
if (medal[2] == 0 && leach >= 10) {
medal[2] = 1;
_root.game.archi.gotoAndStop(4);
_root.adchiso.gotoAndPlay(2);
}
if (medal[3] == 0 && plasma >= 10) {
medal[3] = 1;
_root.game.archi.gotoAndStop(5);
_root.adchiso.gotoAndPlay(2);
}
if (medal[4] == 0 && abomination >= 10) {
medal[4] = 1;
_root.game.archi.gotoAndStop(6);
_root.adchiso.gotoAndPlay(2);
}
if (medal[5] == 0 && devourer >= 10) {
medal[5] = 1;
_root.game.archi.gotoAndStop(7);
_root.adchiso.gotoAndPlay(2);
}
if (medal[6] == 0 && firefly >= 10) {
medal[6] = 1;
_root.game.archi.gotoAndStop(8);
_root.adchiso.gotoAndPlay(2);
}
if (medal[7] == 0 && coinhave >= 100) {
medal[7] = 1;
_root.game.archi.gotoAndStop(9);
_root.adchiso.gotoAndPlay(2);
}
if (medal[8] == 0 && expw1lv >= 5) {
medal[8] = 1;
_root.game.archi.gotoAndStop(10);
_root.adchiso.gotoAndPlay(2);
}
if (medal[9] == 0 && expw2lv >= 5) {
medal[9] = 1;
_root.game.archi.gotoAndStop(11);
_root.adchiso.gotoAndPlay(2);
}
if (medal[10] == 0 && expw3lv >= 2) {
medal[10] = 1;
_root.game.archi.gotoAndStop(12);
_root.adchiso.gotoAndPlay(2);
}
if (medal[11] == 0 && lvplayer >= 5) {
medal[11] = 1;
_root.game.archi.gotoAndStop(13);
_root.adchiso.gotoAndPlay(2);
}
if (medal[12] == 0 && hits >= 50) {
medal[12] = 1;
_root.game.archi.gotoAndStop(14);
_root.adchiso.gotoAndPlay(2);
}
if (medal[13] == 0 && healp >= 5) {
medal[13] = 1;
_root.game.archi.gotoAndStop(15);
_root.adchiso.gotoAndPlay(2);
}
if (medal[14] == 0 && clearing >= 2) {
medal[14] = 1;
_root.game.archi.gotoAndStop(16);
_root.adchiso.gotoAndPlay(2);
}
if (medal[15] == 0 && powering >= 5) {
medal[15] = 1;
_root.game.archi.gotoAndStop(17);
_root.adchiso.gotoAndPlay(2);
}
if (medal[16] == 0 && itemhave[0][0] != 0 && itemhave[1][0] != 0 && itemhave[2][0] != 0 && itemhave[3][0] != 0 && itemhave[4][0] != 0) {
medal[16] = 1;
_root.game.archi.gotoAndStop(18);
_root.adchiso.gotoAndPlay(2);
}
if (medal[18] == 0 && greenflea >= 100) {
medal[18] = 1;
_root.game.archi.gotoAndStop(20);
_root.adchiso.gotoAndPlay(2);
}
if (medal[19] == 0 && redsquid >= 100) {
medal[19] = 1;
_root.game.archi.gotoAndStop(21);
_root.adchiso.gotoAndPlay(2);
}
if (medal[20] == 0 && leach >= 100) {
medal[20] = 1;
_root.game.archi.gotoAndStop(22);
_root.adchiso.gotoAndPlay(2);
}
if (medal[21] == 0 && plasma >= 50) {
medal[21] = 1;
_root.game.archi.gotoAndStop(23);
_root.adchiso.gotoAndPlay(2);
}
if (medal[22] == 0 && abomination >= 25) {
medal[22] = 1;
_root.game.archi.gotoAndStop(24);
_root.adchiso.gotoAndPlay(2);
}
if (medal[23] == 0 && devourer >= 25) {
medal[23] = 1;
_root.game.archi.gotoAndStop(25);
_root.adchiso.gotoAndPlay(2);
}
if (medal[24] == 0 && firefly >= 25) {
medal[24] = 1;
_root.game.archi.gotoAndStop(26);
_root.adchiso.gotoAndPlay(2);
}
if (medal[25] == 0 && coinhave >= 1000) {
medal[25] = 1;
_root.game.archi.gotoAndStop(27);
_root.adchiso.gotoAndPlay(2);
}
if (medal[26] == 0 && expw1lv >= 15) {
medal[26] = 1;
_root.game.archi.gotoAndStop(28);
_root.adchiso.gotoAndPlay(2);
}
if (medal[27] == 0 && expw2lv >= 15) {
medal[27] = 1;
_root.game.archi.gotoAndStop(29);
_root.adchiso.gotoAndPlay(2);
}
if (medal[28] == 0 && expw3lv >= 3) {
medal[28] = 1;
_root.game.archi.gotoAndStop(30);
_root.adchiso.gotoAndPlay(2);
}
if (medal[29] == 0 && lvplayer >= 15) {
medal[29] = 1;
_root.game.archi.gotoAndStop(31);
_root.adchiso.gotoAndPlay(2);
}
if (medal[30] == 0 && hits >= 100) {
medal[30] = 1;
_root.game.archi.gotoAndStop(32);
_root.adchiso.gotoAndPlay(2);
}
if (medal[31] == 0 && healp >= 10) {
medal[31] = 1;
_root.game.archi.gotoAndStop(33);
_root.adchiso.gotoAndPlay(2);
}
if (medal[32] == 0 && powering >= 10) {
medal[32] = 1;
_root.game.archi.gotoAndStop(34);
_root.adchiso.gotoAndPlay(2);
}
if (medal[33] == 0 && greenflea >= 300) {
medal[33] = 1;
_root.game.archi.gotoAndStop(35);
_root.adchiso.gotoAndPlay(2);
}
if (medal[34] == 0 && redsquid >= 150) {
medal[34] = 1;
_root.game.archi.gotoAndStop(36);
_root.adchiso.gotoAndPlay(2);
}
if (medal[35] == 0 && leach >= 300) {
medal[35] = 1;
_root.game.archi.gotoAndStop(37);
_root.adchiso.gotoAndPlay(2);
}
if (medal[36] == 0 && plasma >= 100) {
medal[36] = 1;
_root.game.archi.gotoAndStop(38);
_root.adchiso.gotoAndPlay(2);
}
if (medal[37] == 0 && abomination >= 50) {
medal[37] = 1;
_root.game.archi.gotoAndStop(39);
_root.adchiso.gotoAndPlay(2);
}
if (medal[38] == 0 && devourer >= 50) {
medal[38] = 1;
_root.game.archi.gotoAndStop(40);
_root.adchiso.gotoAndPlay(2);
}
if (medal[39] == 0 && firefly >= 50) {
medal[39] = 1;
_root.game.archi.gotoAndStop(41);
_root.adchiso.gotoAndPlay(2);
}
if (medal[40] == 0 && itembox[0] == 9 && itembox[1] == 9 && itembox[2] == 9 && itembox[3] == 9 && itembox[4] == 9 && itembox[5] == 9) {
medal[40] = 1;
_root.game.archi.gotoAndStop(42);
_root.adchiso.gotoAndPlay(2);
}
if (medal[41] == 0 && octron >= 1) {
medal[41] = 1;
_root.game.archi.gotoAndStop(43);
_root.adchiso.gotoAndPlay(2);
}
if (medal[42] == 0 && lily >= 1) {
medal[42] = 1;
_root.game.archi.gotoAndStop(44);
_root.adchiso.gotoAndPlay(2);
}
if (medal[43] == 0 && errorr >= 1) {
medal[43] = 1;
_root.game.archi.gotoAndStop(45);
_root.adchiso.gotoAndPlay(2);
}
if (medal[44] == 0 && qsoldier >= 1) {
medal[43] = 1;
_root.game.archi.gotoAndStop(46);
_root.adchiso.gotoAndPlay(2);
}
if (medal[45] == 0 && mom >= 1) {
medal[45] = 1;
_root.game.archi.gotoAndStop(47);
_root.adchiso.gotoAndPlay(2);
}
if (medal[47] == 0 && coinhave >= 1000000) {
medal[47] = 1;
_root.game.archi.gotoAndStop(49);
_root.adchiso.gotoAndPlay(2);
}
if (medal[48] == 0 && expw1lv >= 20) {
medal[48] = 1;
_root.game.archi.gotoAndStop(50);
_root.adchiso.gotoAndPlay(2);
}
if (medal[49] == 0 && expw2lv >= 20) {
medal[49] = 1;
_root.game.archi.gotoAndStop(51);
_root.adchiso.gotoAndPlay(2);
}
if (medal[50] == 0 && expw3lv >= 4) {
medal[50] = 1;
_root.game.archi.gotoAndStop(52);
_root.adchiso.gotoAndPlay(2);
}
if (medal[51] == 0 && lvplayer >= 25) {
medal[51] = 1;
_root.game.archi.gotoAndStop(53);
_root.adchiso.gotoAndPlay(2);
}
if (medal[52] == 0 && hits >= 200) {
medal[52] = 1;
_root.game.archi.gotoAndStop(54);
_root.adchiso.gotoAndPlay(2);
}
if (medal[53] == 0 && timeplaying >= 720) {
medal[53] = 1;
_root.game.archi.gotoAndStop(55);
_root.adchiso.gotoAndPlay(2);
}
if (medal[54] == 0 && timeplaying >= 3600) {
medal[54] = 1;
_root.game.archi.gotoAndStop(56);
_root.adchiso.gotoAndPlay(2);
}
if (medal[55] == 0 && timeplaying >= 7200) {
medal[55] = 1;
_root.game.archi.gotoAndStop(57);
_root.adchiso.gotoAndPlay(2);
}
if (medal[56] == 0 && timeplaying >= 14400) {
medal[56] = 1;
_root.game.archi.gotoAndStop(58);
_root.adchiso.gotoAndPlay(2);
}
if (medal[57] == 0 && timeplaying >= 43200) {
medal[57] = 1;
_root.game.archi.gotoAndStop(59);
_root.adchiso.gotoAndPlay(2);
}
}
function doorsensors() {
i = 0;
while (i < 10) {
sen = _root.game.backg['pad' + i];
sx1 = _root.game.playerfull._x - (_root.game.backg._x + sen._x + sen.dsensor1._x);
sy1 = _root.game.playerfull._y - (_root.game.backg._y + sen._y + sen.dsensor1._y);
ristalx1 = Math.sqrt(sx1 * sx1);
ristaly1 = Math.sqrt(sy1 * sy1);
sx2 = _root.game.playerfull._x - (_root.game.backg._x + sen._x + sen.dsensor2._x);
sy2 = _root.game.playerfull._y - (_root.game.backg._y + sen._y + sen.dsensor2._y);
ristalx2 = Math.sqrt(sx2 * sx2);
ristaly2 = Math.sqrt(sy2 * sy2);
sx3 = _root.game.playerfull._x - (_root.game.backg._x + sen._x + sen.dsensor3._x);
sy3 = _root.game.playerfull._y - (_root.game.backg._y + sen._y + sen.dsensor3._y);
ristalx3 = Math.sqrt(sx3 * sx3);
ristaly3 = Math.sqrt(sy3 * sy3);
if (ristalx1 < 100 && ristaly1 < 50) {
sensorac1 = true;
}
if (ristalx2 < 100 && ristaly2 < 50) {
sensorac2 = true;
}
if (ristalx3 < 100 && ristaly3 < 50) {
sensorac3 = true;
}
trace('x' + ristalx1);
trace('y' + ristaly1);
++i;
}
}
stop();
stop();
local_data = SharedObject.getLocal('AS_data');
handhave = local_data.data.handhave;
swordhave = local_data.data.swordhave;
gunhave = local_data.data.gunhave;
var lock = false;
var mutek = local_data.data.mutek;
var timeplaying = local_data.data.timeplaying;
var greenflea = local_data.data.greenflea;
var redsquid = local_data.data.redsquid;
var leach = local_data.data.leach;
var plasma = local_data.data.plasma;
var abomination = local_data.data.abomination;
var devourer = local_data.data.devourer;
var firefly = local_data.data.firefly;
var octron = local_data.data.octron;
var lily = local_data.data.lily;
var errorr = local_data.data.errorr;
var qsoldier = local_data.data.qsoldier;
var mom = local_data.data.mom;
var healp = local_data.data.healp;
var powering = local_data.data.powering;
var clearing = local_data.data.clearing;
var lives = local_data.data.lives;
var levelpass = local_data.data.levelpass;
var medal = local_data.data.medal;
var ojoen = false;
var ojoac = false;
var specialboss = false;
var bosstrap = false;
var beginshopa = false;
var shopa = false;
var canonotime = 0;
var magneton = false;
var magnetac = false;
var magcount = 0;
var magnetnum = 0;
var magnetolist = new Array();
var magchoose = 0;
var defenseen = false;
var defenseac = false;
var numcanon = 0;
var accecount = 0;
var accelerate = false;
var slowcount = 0;
var slow = false;
var speedup = 0;
w1attack = local_data.data.w1attack;
w2attack = local_data.data.w2attack;
guncost = local_data.data.guncost;
var superp = false;
var gameover = false;
var place1 = 0;
var place2 = 0;
var place3 = 0;
var place4 = 0;
var place5 = 0;
var uncathcount = 1;
var playercath = false;
var pressright = false;
var pressleft = false;
var movingmap = false;
var itemname = 0;
var eyelist = new Array();
var enemylist = new Array();
var manchaslist = new Array();
var sballlist = new Array();
var canoneslist = new Array();
var enemytogo = new Array();
var itemappear = new Array();
var damageappear = new Array();
var nexxtlv = new Array();
var nexxtlvw1 = new Array();
var nexxtlvw2 = new Array();
var nexxtlvw3 = new Array();
var playerbe = new Array();
var fullmap = new Array();
nexxtlv = local_data.data.nexxtlv;
nexxtlvw1 = local_data.data.nexxtlvw1;
nexxtlvw2 = local_data.data.nexxtlvw2;
nexxtlvw3 = local_data.data.nexxtlvw3;
enemytogo = [0];
playerbe = local_data.data.playerbe;
fullmap = [[[], [], [], [[8], [17], [0], [1]], [], [], [], []], [[], [[5, 3, 4], [6, 3, 14], [1], [1]], [[8, 7, 7, 7, 9], [17, 15, 16, 15, 18], [1], [1]], [[8, 9], [19, 18], [1], [1]], [[8, 7, 7, 9], [17, 16, 15, 18], [1], [1]], [[10, 11, 13, 11, 12], [20, 21, 21, 21, 22], [1], [1]], [[8, 7, 7, 7, 9], [17, 15, 16, 15, 18], [1], [1]], [[5, 3, 3, 3, 4], [6, 3, 3, 3, 23], [1], [1]]], [[[1, 1, 1, 1, 2], [7, 8, 9, 1, 2], [1], [0]], [[5, 3, 4], [6, 10, 5], [1], [1]], [], [], [], [], [], []], [[], [[3, 3, 3, 4], [13, 3, 3, 11], [1], [0]], [[6], [12], [0], [0]], [], [], [], [], []], [[], [], [], [], [], [], [], []]];
var entrance = local_data.data.entrance;
var posix = _root.game.playerfull._x;
var posiy = _root.game.playerfull._y;
var walkspeed = 10;
var direct = 0;
var nowalk = true;
var enemyon = enemytogo.length;
var enemyin = 1;
var deepen = 0;
var enemygo = false;
var coune = 10;
var alienatk = 0;
var knucleuse = true;
var sworduse = false;
var gunuse = false;
var atacktime = false;
var presy = false;
var balaco = 100000;
var itemn = 1;
var dmgn = 1;
var hpfinal = 100;
var playerhp = local_data.data.playerhp;
var dañoplayer = local_data.data.dañoplayer;
var lvplayer = local_data.data.lvplayer;
var coinhave = local_data.data.coinhave;
var ammocapa = 100;
var ammog = 0;
var limitpower = 100;
var power = local_data.data.power;
var sword3d = 120;
var equipw1 = local_data.data.equipw1;
var equipw2 = local_data.data.equipw2;
var ammoeq = 10;
var typeammo = 0;
var axe = 0;
var score = local_data.data.score;
var mineraltogo = 0;
var mineral = local_data.data.mineral;
var expw1lv = local_data.data.expw1lv;
var expw2lv = local_data.data.expw2lv;
var expw3lv = local_data.data.expw3lv;
var expw1 = local_data.data.expw1;
var expw2 = local_data.data.expw2;
var expw3 = local_data.data.expw3;
var expw1g = nexxtlvw1[expw1lv];
var expw2g = nexxtlvw2[expw2lv];
var expw3g = nexxtlvw3[expw3lv];
var expe = local_data.data.expe;
var expetogo = nexxtlv[lvplayer];
var itempress = false;
var itemhave = new Array();
var hits = 0;
var timehit = 0;
var combot = false;
var timing = false;
var tempscore = 0;
var bosshere = false;
var blocks = false;
var evade = false;
var timings = false;
var sensorac1 = false;
var sensorac2 = false;
var sensorac3 = false;
itemhave = local_data.data.itemhave;
itembox = local_data.data.itembox;
timew = setInterval(givepos, 10000);
if (equipw1 == 1) {
knucleuse = true;
sworduse = false;
gunuse = false;
}
if (equipw1 == 2) {
knucleuse = false;
sworduse = true;
gunuse = false;
}
if (equipw1 == 3) {
knucleuse = false;
sworduse = false;
gunuse = true;
}
if (knucleuse == true) {
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
}
_root.bmute.onRelease = function () {
if (mutek == 0) {
_root.titleson = new Sound();
_root.titleson.setVolume(0);
_root.bmute.gotoAndStop(2);
mutek = 1;
} else {
if (mutek == 1) {
_root.titleson = new Sound();
_root.titleson.setVolume(300);
_root.bmute.gotoAndStop(1);
mutek = 0;
}
}
};
_root.game.meseg.swapDepths(98000003);
_root.game.itembase.swapDepths(97999999);
_root.game.combosign.swapDepths(97999995);
_root.game.gosign.swapDepths(97999994);
_root.game.wicona.swapDepths(97999993);
_root.game.wiconb.swapDepths(97999992);
_root.game.lvuni.swapDepths(97999991);
_root.game.lvdeci.swapDepths(97999990);
_root.game.avatarim.swapDepths(97999989);
_root.game.mapbase.swapDepths(97999988);
_root.game.basehp.swapDepths(97999987);
_root.game.imhpbar.swapDepths(97999986);
_root.game.spbar.swapDepths(97999985);
_root.game.archi.swapDepths(97999984);
_root.game.alarmred.swapDepths(97999983);
alignitems();
domap();
informationp();
experietolv();
mineraltolv();
_root.game.onEnterFrame = function () {
finishg();
onemoretime();
if (gameover == false) {
doorsensors();
musicon();
checkmedals();
ojoslaser();
supamagnet();
canoneslaser();
gamagemove();
combocon();
useitemn();
informationp();
takeitems();
alienmove();
playerwalk();
playeratk();
alienclone();
equipwepon();
scrollmove();
if (shopa == true) {
shophere();
}
}
};
}
movieClip 392 {
}
movieClip 407 {
}
movieClip 410 {
}
movieClip 416 {
}
movieClip 424 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 429 {
}
movieClip 430 {
}
movieClip 433 {
}
movieClip 457 {
}
movieClip 462 {
}
movieClip 484 {
}
movieClip 488 {
}
movieClip 492 {
}
movieClip 511 {
}
movieClip 520 {
}
movieClip 521 pared1 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
frame 19 {
stop();
}
frame 20 {
stop();
}
frame 21 {
stop();
}
frame 22 {
stop();
}
frame 23 {
stop();
}
frame 24 {
stop();
}
frame 25 {
stop();
}
frame 26 {
stop();
}
frame 27 {
stop();
}
frame 28 {
stop();
}
frame 29 {
stop();
}
frame 30 {
stop();
}
frame 31 {
stop();
}
frame 32 {
stop();
}
frame 33 {
stop();
}
frame 34 {
stop();
}
frame 35 {
stop();
}
frame 36 {
stop();
}
frame 37 {
stop();
}
frame 38 {
stop();
}
frame 39 {
stop();
}
frame 40 {
stop();
}
frame 41 {
stop();
}
frame 42 {
stop();
}
frame 43 {
stop();
}
frame 44 {
stop();
}
frame 45 {
stop();
}
frame 46 {
stop();
}
frame 47 {
stop();
}
frame 48 {
stop();
}
frame 49 {
stop();
}
frame 50 {
stop();
}
frame 51 {
stop();
}
frame 52 {
stop();
}
frame 53 {
stop();
}
frame 54 {
stop();
}
frame 55 {
stop();
}
frame 56 {
stop();
}
frame 57 {
stop();
}
frame 58 {
stop();
}
frame 59 {
stop();
}
frame 60 {
stop();
}
frame 61 {
stop();
}
frame 62 {
stop();
}
frame 63 {
stop();
}
frame 64 {
stop();
}
frame 65 {
stop();
}
frame 66 {
stop();
}
frame 67 {
stop();
}
frame 68 {
stop();
}
frame 69 {
stop();
}
frame 70 {
stop();
}
frame 71 {
stop();
}
}
movieClip 538 {
}
movieClip 556 {
}
movieClip 565 {
}
movieClip 575 {
}
movieClip 585 {
}
movieClip 596 piso1 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
frame 19 {
stop();
}
frame 20 {
stop();
}
frame 21 {
stop();
}
frame 22 {
stop();
}
frame 23 {
stop();
}
frame 24 {
stop();
}
frame 25 {
stop();
}
frame 26 {
stop();
}
frame 27 {
stop();
}
frame 28 {
stop();
}
frame 29 {
stop();
}
frame 30 {
stop();
}
frame 31 {
stop();
}
}
movieClip 610 {
}
movieClip 613 {
}
movieClip 627 {
}
movieClip 638 {
}
movieClip 649 {
}
movieClip 650 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 661 {
}
movieClip 672 {
}
movieClip 673 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 675 {
}
movieClip 689 {
}
movieClip 717 {
frame 5 {
stop();
}
frame 11 {
stop();
}
frame 13 {
stop();
}
frame 21 {
stop();
}
frame 27 {
stop();
}
}
movieClip 751 {
frame 5 {
stop();
}
frame 11 {
stop();
}
frame 13 {
stop();
}
frame 21 {
stop();
}
frame 27 {
stop();
}
}
movieClip 787 {
frame 5 {
stop();
}
frame 10 {
stop();
}
frame 15 {
stop();
}
frame 16 {
}
frame 20 {
stop();
}
frame 38 {
stop();
}
}
movieClip 823 {
frame 38 {
stop();
}
}
movieClip 866 {
}
movieClip 910 {
}
movieClip 925 {
frame 14 {
stop();
}
}
movieClip 940 {
frame 14 {
stop();
}
}
movieClip 962 {
}
movieClip 984 {
}
movieClip 1007 {
}
movieClip 1030 {
}
movieClip 1034 {
}
movieClip 1038 {
}
movieClip 1053 {
frame 35 {
stop();
}
}
movieClip 1068 {
frame 35 {
stop();
}
}
movieClip 1070 {
}
movieClip 1072 {
}
movieClip 1078 {
frame 6 {
stop();
}
}
movieClip 1084 {
frame 6 {
stop();
}
}
movieClip 1085 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
frame 19 {
stop();
}
frame 20 {
stop();
}
frame 21 {
stop();
}
frame 22 {
stop();
}
frame 23 {
stop();
}
frame 24 {
stop();
}
}
movieClip 1095 {
}
movieClip 1104 {
}
movieClip 1110 {
frame 9 {
}
}
movieClip 1117 {
frame 9 {
}
}
movieClip 1124 {
frame 7 {
stop();
}
}
movieClip 1131 {
frame 7 {
stop();
}
}
movieClip 1134 {
}
movieClip 1137 {
}
movieClip 1138 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
movieClip 1150 {
}
movieClip 1165 {
}
movieClip 1180 {
}
movieClip 1195 {
}
movieClip 1203 {
}
movieClip 1212 {
}
movieClip 1223 {
frame 11 {
stop();
}
}
movieClip 1235 {
frame 11 {
stop();
}
}
movieClip 1236 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
}
movieClip 1241 {
}
movieClip 1245 {
}
movieClip 1256 {
}
movieClip 1267 {
}
movieClip 1278 {
}
movieClip 1289 {
}
movieClip 1296 {
frame 7 {
stop();
}
}
movieClip 1303 {
frame 7 {
stop();
}
}
movieClip 1311 {
frame 8 {
stop();
}
}
movieClip 1319 {
frame 8 {
stop();
}
}
movieClip 1320 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1331 {
}
movieClip 1341 {
}
movieClip 1361 {
frame 22 {
stop();
}
}
movieClip 1383 {
frame 22 {
stop();
}
}
movieClip 1394 {
frame 12 {
stop();
}
}
movieClip 1405 {
frame 12 {
stop();
}
}
movieClip 1406 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1467 {
}
movieClip 1528 {
}
movieClip 1546 {
}
movieClip 1563 {
}
movieClip 1584 {
frame 20 {
stop();
}
}
movieClip 1604 {
frame 20 {
stop();
}
}
movieClip 1616 {
frame 12 {
stop();
}
}
movieClip 1628 {
frame 12 {
stop();
}
}
movieClip 1629 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
movieClip 1637 {
}
movieClip 1642 {
frame 5 {
stop();
}
}
movieClip 1643 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1649 {
frame 6 {
stop();
}
}
movieClip 1655 {
frame 6 {
stop();
}
}
movieClip 1661 {
}
movieClip 1667 {
}
movieClip 1674 {
frame 8 {
stop();
}
}
movieClip 1681 {
frame 8 {
stop();
}
}
movieClip 1695 {
frame 40 {
stop();
}
}
movieClip 1700 {
}
movieClip 1722 {
frame 41 {
stop();
}
}
movieClip 1741 {
}
movieClip 1760 {
frame 19 {
stop();
}
}
movieClip 1761 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1772 {
}
movieClip 1784 {
}
movieClip 1785 {
}
movieClip 1788 {
}
movieClip 1808 {
}
movieClip 1831 {
}
movieClip 1846 {
}
movieClip 1869 {
}
movieClip 1885 {
}
movieClip 1907 {
}
movieClip 1917 {
frame 10 {
stop();
}
}
movieClip 1927 {
frame 10 {
stop();
}
}
movieClip 1928 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1938 {
frame 78 {
stop();
}
}
movieClip 1948 {
frame 78 {
stop();
}
}
movieClip 1958 {
frame 78 {
stop();
}
}
movieClip 1959 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 1969 {
frame 9 {
stop();
}
}
movieClip 1977 {
}
movieClip 2009 {
frame 31 {
stop();
}
}
movieClip 2017 {
frame 38 {
stop();
}
}
movieClip 2034 {
frame 15 {
stop();
}
}
movieClip 2035 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 2053 {
frame 27 {
stop();
}
}
movieClip 2065 {
}
movieClip 2077 {
}
movieClip 2094 {
frame 16 {
stop();
}
}
movieClip 2111 {
frame 16 {
stop();
}
}
movieClip 2113 {
}
movieClip 2119 {
}
movieClip 2127 {
frame 8 {
stop();
}
}
movieClip 2135 {
frame 8 {
stop();
}
}
movieClip 2165 {
frame 24 {
gotoAndPlay(20);
}
frame 44 {
stop();
}
}
movieClip 2206 {
frame 23 {
gotoAndPlay(20);
}
frame 44 {
stop();
}
}
movieClip 2228 {
frame 23 {
stop();
}
}
movieClip 2251 {
frame 23 {
stop();
}
}
movieClip 2252 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
}
movieClip 2283 {
frame 1 {
stop();
}
frame 36 {
stop();
}
}
movieClip 2303 {
frame 18 {
stop();
}
}
movieClip 2316 {
}
movieClip 2317 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 2335 {
frame 1 {
stop();
}
frame 21 {
stop();
}
}
movieClip 2336 {
frame 5 {
stop();
}
}
movieClip 2341 {
frame 5 {
stop();
}
}
movieClip 2346 {
}
movieClip 2356 {
frame 10 {
stop();
}
}
movieClip 2367 {
}
movieClip 2380 {
frame 14 {
stop();
}
}
movieClip 2381 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 2395 {
frame 14 {
stop();
}
}
movieClip 2409 {
frame 14 {
stop();
}
}
movieClip 2416 {
}
movieClip 2422 {
}
movieClip 2433 {
frame 7 {
gotoAndPlay(5);
}
frame 12 {
stop();
}
}
movieClip 2444 {
frame 7 {
gotoAndPlay(5);
}
frame 12 {
stop();
}
}
movieClip 2455 {
frame 14 {
stop();
}
}
movieClip 2466 {
frame 14 {
stop();
}
}
movieClip 2477 {
frame 17 {
stop();
}
}
movieClip 2488 {
frame 17 {
stop();
}
}
movieClip 2501 {
frame 13 {
stop();
}
}
movieClip 2514 {
frame 13 {
stop();
}
}
movieClip 2532 {
frame 19 {
stop();
}
}
movieClip 2551 {
frame 19 {
stop();
}
}
movieClip 2560 {
frame 6 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2561 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 2576 {
frame 15 {
gotoAndPlay(8);
}
}
movieClip 2577 vines {
frame 16 {
gotoAndPlay(8);
}
}
movieClip 2590 {
frame 1 {
stop();
}
frame 14 {
gotoAndPlay(2);
}
}
movieClip 2595 {
}
movieClip 2621 {
frame 26 {
gotoAndPlay(16);
}
}
movieClip 2634 {
frame 18 {
gotoAndPlay(16);
}
}
movieClip 2655 {
frame 30 {
gotoAndPlay(22);
}
}
movieClip 2669 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2671 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2673 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2676 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2678 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2680 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2682 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2684 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2686 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2688 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2690 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2692 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2703 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2704 {
}
movieClip 2706 {
}
movieClip 2719 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2721 {
frame 26 {
stop();
}
}
movieClip 2722 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2724 {
frame 26 {
stop();
}
}
movieClip 2725 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2726 {
}
movieClip 2728 {
}
movieClip 2729 {
}
movieClip 2735 {
}
movieClip 2738 {
}
movieClip 2739 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2740 {
}
movieClip 2742 {
}
movieClip 2744 {
}
movieClip 2756 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2757 {
}
movieClip 2763 {
frame 4 {
stop();
}
}
movieClip 2764 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2770 {
frame 4 {
stop();
}
}
movieClip 2771 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2777 {
frame 4 {
stop();
}
}
movieClip 2778 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2779 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 2790 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 2791 {
frame 1 {
stop();
}
frame 12 {
gotoAndPlay(1);
}
}
movieClip 2793 {
}
movieClip 2804 {
frame 40 {
stop();
}
}
movieClip 2805 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2808 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 2824 {
}
movieClip 2857 {
}
movieClip 2888 {
}
movieClip 3005 {
frame 136 {
stop();
}
}
movieClip 3119 {
frame 136 {
stop();
}
}
movieClip 3120 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 3121 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3123 {
frame 74 {
stop();
}
}
movieClip 3124 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3128 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3131 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3136 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 3137 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3153 {
frame 1 {
stop();
}
frame 55 {
stop();
}
}
movieClip 3163 {
frame 300 {
stop();
}
}
movieClip 3169 {
frame 53 {
stop();
}
}
movieClip 3173 {
frame 48 {
stop();
}
}
movieClip 3178 {
frame 94 {
stop();
}
}
movieClip 3182 {
frame 53 {
stop();
}
}
movieClip 3185 {
frame 53 {
stop();
}
}
movieClip 3188 {
frame 53 {
stop();
}
}
movieClip 3191 {
frame 53 {
stop();
}
}
movieClip 3195 {
frame 48 {
stop();
}
}
movieClip 3198 {
frame 53 {
stop();
}
}
movieClip 3199 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 3211 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 3214 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3218 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3221 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3224 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3227 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3230 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3233 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3237 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3241 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3245 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3249 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3253 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3257 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3261 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3265 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3277 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 3279 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 3281 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 3283 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 3285 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 3287 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 3296 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
}
movieClip 3300 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3304 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3307 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3310 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3313 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3315 {
}
movieClip 3316 {
}
movieClip 3317 {
}
movieClip 3318 {
}
movieClip 3319 {
}
movieClip 3320 {
}
movieClip 3321 {
}
movieClip 3322 {
frame 1 {
stop();
}
}
movieClip 3323 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3325 {
}
movieClip 3326 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3328 {
frame 45 {
stop();
}
}
movieClip 3330 {
frame 45 {
stop();
}
}
movieClip 3332 {
frame 45 {
stop();
}
}
movieClip 3334 {
frame 45 {
stop();
}
}
movieClip 3336 {
frame 45 {
stop();
}
}
movieClip 3338 {
frame 45 {
stop();
}
}
movieClip 3340 {
frame 45 {
stop();
}
}
movieClip 3342 {
frame 45 {
stop();
}
}
movieClip 3344 {
frame 46 {
stop();
}
}
movieClip 3346 {
frame 45 {
stop();
}
}
movieClip 3348 {
frame 45 {
stop();
}
}
movieClip 3350 {
frame 45 {
stop();
}
}
movieClip 3352 {
frame 45 {
stop();
}
}
movieClip 3354 {
frame 45 {
stop();
}
}
movieClip 3356 {
}
movieClip 3358 {
frame 45 {
stop();
}
}
movieClip 3360 {
frame 45 {
stop();
}
}
movieClip 3362 {
frame 45 {
stop();
}
}
movieClip 3364 {
frame 45 {
stop();
}
}
movieClip 3366 {
frame 45 {
stop();
}
}
movieClip 3368 {
frame 45 {
stop();
}
}
movieClip 3370 {
frame 45 {
stop();
}
}
movieClip 3372 {
frame 45 {
stop();
}
}
movieClip 3374 {
frame 45 {
stop();
}
}
movieClip 3376 {
frame 45 {
stop();
}
}
movieClip 3378 {
frame 45 {
stop();
}
}
movieClip 3380 {
frame 45 {
stop();
}
}
movieClip 3382 {
frame 45 {
stop();
}
}
movieClip 3384 {
frame 50 {
stop();
}
}
movieClip 3386 {
frame 45 {
stop();
}
}
movieClip 3388 {
frame 45 {
stop();
}
}
movieClip 3390 {
frame 45 {
stop();
}
}
movieClip 3392 {
frame 45 {
stop();
}
}
movieClip 3394 {
frame 45 {
stop();
}
}
movieClip 3396 {
frame 45 {
stop();
}
}
movieClip 3398 {
frame 45 {
stop();
}
}
movieClip 3400 {
frame 45 {
stop();
}
}
movieClip 3402 {
frame 45 {
stop();
}
}
movieClip 3404 {
frame 45 {
stop();
}
}
movieClip 3406 {
frame 45 {
stop();
}
}
movieClip 3408 {
frame 44 {
stop();
}
}
movieClip 3410 {
frame 45 {
stop();
}
}
movieClip 3412 {
frame 45 {
stop();
}
}
movieClip 3414 {
frame 45 {
stop();
}
}
movieClip 3416 {
frame 45 {
stop();
}
}
movieClip 3418 {
frame 50 {
stop();
}
}
movieClip 3420 {
frame 55 {
stop();
}
}
movieClip 3422 {
frame 45 {
stop();
}
}
movieClip 3424 {
frame 45 {
stop();
}
}
movieClip 3426 {
frame 45 {
stop();
}
}
movieClip 3428 {
frame 45 {
stop();
}
}
movieClip 3430 {
frame 45 {
stop();
}
}
movieClip 3432 {
frame 45 {
stop();
}
}
movieClip 3434 {
frame 45 {
stop();
}
}
movieClip 3436 {
frame 45 {
stop();
}
}
movieClip 3438 {
frame 45 {
stop();
}
}
movieClip 3440 {
frame 45 {
stop();
}
}
movieClip 3442 {
frame 45 {
stop();
}
}
movieClip 3444 {
frame 45 {
stop();
}
}
movieClip 3445 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 3328 {
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
frame 19 {
stop();
}
frame 20 {
stop();
}
frame 21 {
stop();
}
frame 22 {
stop();
}
frame 23 {
stop();
}
frame 24 {
stop();
}
frame 25 {
stop();
}
frame 26 {
stop();
}
frame 27 {
stop();
}
frame 28 {
stop();
}
frame 29 {
stop();
}
frame 30 {
stop();
}
frame 31 {
stop();
}
frame 32 {
stop();
}
frame 33 {
stop();
}
frame 34 {
stop();
}
frame 35 {
stop();
}
frame 36 {
stop();
}
frame 37 {
stop();
}
frame 38 {
stop();
}
frame 39 {
stop();
}
frame 40 {
stop();
}
frame 41 {
stop();
}
frame 42 {
stop();
}
frame 43 {
stop();
}
frame 44 {
stop();
}
frame 45 {
stop();
}
frame 46 {
stop();
}
frame 47 {
stop();
}
frame 48 {
stop();
}
frame 49 {
stop();
}
frame 50 {
stop();
}
frame 51 {
stop();
}
frame 52 {
stop();
}
frame 53 {
stop();
}
frame 54 {
stop();
}
frame 55 {
stop();
}
frame 56 {
stop();
}
frame 57 {
stop();
}
frame 58 {
stop();
}
frame 59 {
stop();
}
frame 60 {
stop();
}
}
movieClip 3447 levi {
}
movieClip 3448 {
}
movieClip 3451 {
frame 1 {
stop();
}
}
movieClip 3453 {
frame 1 {
stop();
}
}
movieClip 3460 {
frame 12 {
stop();
}
frame 24 {
stop();
}
}
movieClip 3461 {
}
movieClip 3462 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3463 {
}
movieClip 3464 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3465 {
}
movieClip 3466 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3467 {
}
movieClip 3468 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3469 {
}
movieClip 3470 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3474 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3477 {
frame 1 {
stop();
}
}
movieClip 3479 {
frame 1 {
stop();
}
}
movieClip 3481 {
frame 1 {
stop();
}
}
movieClip 3483 {
frame 1 {
stop();
}
}
movieClip 3485 {
frame 1 {
stop();
}
}
movieClip 3487 {
frame 1 {
stop();
}
}
movieClip 3489 {
}
movieClip 3490 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3492 {
frame 1 {
stop();
}
}
movieClip 3494 {
frame 1 {
stop();
}
}
movieClip 3496 {
frame 1 {
stop();
}
}
movieClip 3498 {
frame 1 {
stop();
}
}
movieClip 3500 {
frame 1 {
stop();
}
}
movieClip 3502 {
frame 1 {
stop();
}
}
movieClip 3504 {
frame 1 {
stop();
}
}
movieClip 3506 {
frame 1 {
stop();
}
}
movieClip 3508 {
frame 1 {
stop();
}
}
movieClip 3510 {
frame 1 {
stop();
}
}
movieClip 3512 {
frame 1 {
stop();
}
}
movieClip 3513 {
frame 1 {
stop();
}
}
movieClip 3515 {
frame 1 {
stop();
}
}
movieClip 3517 {
frame 1 {
stop();
}
}
movieClip 3520 {
frame 1 {
stop();
}
}
frame 356 {
function givepos() {}
function musicon() {
if (gameover == false) {
if (playerbe[2] == 2) {
if (bosshere == false) {
_root.niv2.gotoAndStop(2);
_root.bosss.gotoAndStop(1);
_root.oversound.gotoAndStop(1);
}
if (bosshere == true) {
_root.bosss.gotoAndStop(2);
_root.niv2.gotoAndStop(1);
_root.oversound.gotoAndStop(1);
}
}
}
}
function domap() {
_root.game.createEmptyMovieClip('backg', -1);
espaciom = 320 * (fullmap[playerbe[0]][playerbe[1]][0].length - 1);
a = 0;
while (a < fullmap[playerbe[0]][playerbe[1]][0].length) {
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 1) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(1);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 2) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(2);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 3) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(3);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 4) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(4);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 5) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(5);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 6) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(6);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 7) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(7);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 8) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(8);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 9) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(9);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 10) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(10);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 11) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(11);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 12) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(12);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 13) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(13);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 14) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(14);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 15) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(15);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 16) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(16);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 17) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(17);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 18) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(18);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 19) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(19);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 20) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(20);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 21) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(21);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 22) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(22);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 23) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(23);
}
++a;
}
i = 0;
while (i < fullmap[playerbe[0]][playerbe[1]][1].length) {
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 1) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(1);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 2) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(2);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 3) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(3);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 4) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(4);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 5) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(5);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 6) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(6);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 7) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(7);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 8) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(8);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 9) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(9);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 10) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(10);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 11) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(11);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 12) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(12);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 13) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(13);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 14) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(14);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 15) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(15);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 16) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(16);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 17) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(17);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 18) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(18);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 19) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(19);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 20) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(20);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 21) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(21);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 22) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(22);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 23) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(23);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 24) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(24);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 25) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(25);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 26) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(26);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 27) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(27);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 28) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(28);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 29) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(29);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 30) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(30);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 31) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(31);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 32) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(32);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 33) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(33);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 34) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(34);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 35) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(35);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 36) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(36);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 37) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(37);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 38) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(38);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 39) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(39);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 40) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(40);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 41) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(41);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 42) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(42);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 43) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(43);
}
++i;
}
if (fullmap[playerbe[0]][playerbe[1]][2][0] == 1) {
_root.game.backg.attachMovie('levi', 'lev', game.backg.getNextHighestDepth(), {'_x': fullmap[playerbe[0]][playerbe[1]][0].length * 320 - 120, '_y': 400, '_rotation': -48, '_alpha': 0});
}
if (fullmap[playerbe[0]][playerbe[1]][3][0] == 1) {
_root.game.backg.attachMovie('levi', 'levi', game.backg.getNextHighestDepth(), {'_x': fullmap[playerbe[0]][playerbe[1]][0].length * 320 * -1 + 120, '_y': 400, '_rotation': 48, '_alpha': 0});
}
if (entrance == 1) {
_root.game.backg._x += _root.game.backg._width / 2;
direct = 0;
_root.game.playerfull._x = 300.5;
}
if (entrance == 2) {
_root.game.backg._x -= _root.game.backg._width / 2 - 640;
direct = 1;
_root.game.playerfull._x = 300.5;
}
if (entrance == 3) {
direct = 1;
_root.game.backg._x += 320;
_root.game.playerfull._x = 320.5;
}
if (entrance == 4) {
direct = 1;
_root.game.backg._x += 640;
_root.game.playerfull._x = 320.5;
}
}
function alignitems() {
_root.game.itembase.vitalidcon._y = -1500;
_root.game.itembase.mediccon._y = -1500;
_root.game.itembase.regencon._y = -1500;
_root.game.itembase.energycon._y = -1500;
_root.game.itembase.xhcon._y = -1500;
_root.game.itembase.blindcon._y = -1500;
_root.game.itembase.ammoacon._y = -1500;
_root.game.itembase.ammobcon._y = -1500;
_root.game.itembase.ammoccon._y = -1500;
_root.game.itembase.ammodcon._y = -1500;
_root.game.itembase.ammoecon._y = -1500;
_root.game.itembase.ammoxcon._y = -1500;
i = 0;
while (i < itemhave.length) {
if (itemhave[i][0] == 1) {
_root.game.itembase.vitalidcon._x = -76.5 + i * 37;
_root.game.itembase.vitalidcon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.vitalidcon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 2) {
_root.game.itembase.mediccon._x = -76.5 + i * 37;
_root.game.itembase.mediccon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.mediccon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 3) {
_root.game.itembase.regencon._x = -76.5 + i * 37;
_root.game.itembase.regencon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.regencon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 4) {
_root.game.itembase.energycon._x = -76.5 + i * 37;
_root.game.itembase.energycon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.energycon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 5) {
_root.game.itembase.xhcon._x = -76.5 + i * 37;
_root.game.itembase.xhcon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.xhcon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 6) {
_root.game.itembase.soldiercon._x = -76.5 + i * 37;
_root.game.itembase.soldiercon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.soldiercon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 7) {
_root.game.itembase.blindcon._x = -76.5 + i * 37;
_root.game.itembase.blindcon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.blindcon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 16) {
_root.game.itembase.ammoacon._x = -76.5 + i * 37;
_root.game.itembase.ammoacon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 1;
_root.game.itembase.ammoacon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 17) {
_root.game.itembase.ammobcon._x = -76.5 + i * 37;
_root.game.itembase.ammobcon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 2;
_root.game.itembase.ammobcon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 18) {
_root.game.itembase.ammoccon._x = -76.5 + i * 37;
_root.game.itembase.ammoccon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 3;
_root.game.itembase.ammoccon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 19) {
_root.game.itembase.ammodcon._x = -76.5 + i * 37;
_root.game.itembase.ammodcon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 4;
_root.game.itembase.ammodcon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 20) {
_root.game.itembase.ammoecon._x = -76.5 + i * 37;
_root.game.itembase.ammoecon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 5;
_root.game.itembase.ammoecon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 21) {
_root.game.itembase.ammoxcon._x = -76.5 + i * 37;
_root.game.itembase.ammoxcon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 6;
_root.game.itembase.ammoxcon.gotoAndStop(2);
}
}
++i;
}
}
function useitemn() {
if (Key.isDown(97) && atacktime != true && itempress == false || Key.isDown(49) && atacktime != true && itempress == false) {
itempress = true;
axe = 0;
idenitem();
}
if (Key.isDown(98) && atacktime != true && itempress == false || Key.isDown(50) && atacktime != true && itempress == false) {
itempress = true;
axe = 1;
idenitem();
}
if (Key.isDown(99) && atacktime != true && itempress == false || Key.isDown(51) && atacktime != true && itempress == false) {
itempress = true;
axe = 2;
idenitem();
}
if (Key.isDown(100) && atacktime != true && itempress == false || Key.isDown(52) && atacktime != true && itempress == false) {
itempress = true;
axe = 3;
idenitem();
}
if (Key.isDown(101) && atacktime != true && itempress == false || Key.isDown(53) && atacktime != true && itempress == false) {
itempress = true;
axe = 4;
idenitem();
}
if (!Key.isDown(101) && !Key.isDown(98) && !Key.isDown(99) && !Key.isDown(100) && !Key.isDown(97) && itempress == true && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52) && !Key.isDown(53)) {
itempress = false;
}
}
function idenitem() {
if (itemhave[axe][0] == 1) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[0] -= 1;
dañoplayer -= 50;
healp += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.vitalidcon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 2) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[1] -= 1;
dañoplayer -= 300;
healp += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.mediccon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 3) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[2] -= 1;
dañoplayer = 0;
healp += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.regencon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 4) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[3] -= 1;
power += 100;
powering += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.energycon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 5) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[4] -= 1;
power += 100;
dañoplayer -= 500;
powering += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.xhcon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 6) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
cuanti = itemhave[axe][1] + 1;
acceleration = true;
_root.game.itembase.soldiercon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 7) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[5] -= 1;
clearing += 1;
l = 0;
while (l < manchaslist.length) {
manchis = _root.game[manchaslist[l]];
manchis.removeMovieClip();
++l;
}
manchaslist.splice(0, manchaslist.length);
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.blindcon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 16) {
ammoeq = axe;
typeammo = 1;
_root.game.itembase.ammoacon.gotoAndStop(2);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 17) {
ammoeq = axe;
typeammo = 2;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(2);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 18) {
ammoeq = axe;
typeammo = 3;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(2);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 19) {
ammoeq = axe;
typeammo = 4;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(2);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 20) {
ammoeq = axe;
typeammo = 5;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(2);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 21) {
ammoeq = axe;
typeammo = 6;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(2);
}
}
function informationp() {
if (knucleuse == true) {
mineral = expw1;
mineraltogo = expw1g;
if (expw1 >= expw1g) {
expw1lv += 1;
expw1 = 0;
expw1g = nexxtlvw1[expw1lv];
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
w1attack += 5;
_root.game.itembase.weponups.gotoAndStop(2);
}
}
if (sworduse == true) {
mineral = expw2;
mineraltogo = expw2g;
if (expw2 >= expw2g) {
expw2lv += 1;
expw2 = 0;
expw2g = nexxtlvw2[expw2lv];
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
w2attack += 5;
_root.game.itembase.weponups.gotoAndStop(2);
}
}
if (gunuse == true) {
mineral = expw3;
mineraltogo = expw3g;
if (expw3 >= expw3g) {
expw3lv += 1;
expw3 = 0;
expw3g = nexxtlvw3[expw3lv];
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
guncost += 1;
_root.game.itembase.weponups.gotoAndStop(2);
}
}
if (_root.game.itembase.weponups.web._currentframe == 26) {
_root.game.itembase.weponups.gotoAndStop(1);
}
if (_root.game.itembase.levelups.web._currentframe == 26) {
_root.game.itembase.levelups.gotoAndStop(1);
}
if (expe >= expetogo) {
lvplayer += 1;
expe = 0;
expetogo = nexxtlv[lvplayer];
experietolv();
playerhp += 50;
dañoplayer = 0;
_root.game.itembase.levelups.gotoAndStop(2);
}
if (power > 200) {
power = 200;
}
if (power == 200) {
_root.game.spbar.gotoAndStop(2);
}
if (power < 200) {
_root.game.spbar.gotoAndStop(1);
}
if (dañoplayer < 0) {
dañoplayer = 0;
}
totalpower = Math.floor(power);
_root.game.spbar.spmask._xscale = totalpower / 2;
levelde = Math.floor(lvplayer / 10);
levelun = Math.floor(lvplayer - levelde * 10);
_root.game.lvdeci.gotoAndStop(levelde + 1);
_root.game.lvuni.gotoAndStop(levelun + 1);
smillo = Math.floor(mineral / 100000000);
ssmildeci = Math.floor((mineral - smillo * 100000000) / 10000000);
ssmiluni = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000) / 1000000);
ssmil = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000) / 100000);
smildeci = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000) / 10000);
smiluni = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000) / 1000);
smil = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000 - smiluni * 1000) / 100);
sdeci = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000 - smiluni * 1000 - smil * 100) / 10);
suni = Math.floor(mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000 - smiluni * 1000 - smil * 100 - sdeci * 10);
_root.game.itembase.souni.gotoAndStop(suni + 1);
_root.game.itembase.sodeci.gotoAndStop(sdeci + 1);
_root.game.itembase.somil.gotoAndStop(smil + 1);
_root.game.itembase.somiluni.gotoAndStop(smiluni + 1);
_root.game.itembase.somildeci.gotoAndStop(smildeci + 1);
_root.game.itembase.socmil.gotoAndStop(ssmil + 1);
_root.game.itembase.socmiluni.gotoAndStop(ssmiluni + 1);
_root.game.itembase.socmildeci.gotoAndStop(ssmildeci + 1);
_root.game.itembase.somillo.gotoAndStop(smillo + 1);
if (smillo > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 100;
_root.game.itembase.socmildeci._alpha = 100;
_root.game.itembase.somillo._alpha = 100;
} else {
if (ssmildeci > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 100;
_root.game.itembase.socmildeci._alpha = 100;
_root.game.itembase.somillo._alpha = 0;
} else {
if (ssmiluni > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 100;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (ssmil > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (smildeci > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (smiluni > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (smil > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (sdeci > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 0;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (suni > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 0;
_root.game.itembase.somil._alpha = 0;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (suni == 0 && sdeci == 0 && smil == 0 && smiluni == 0 && smildeci == 0 && ssmil == 0 && ssmiluni == 0 && ssmildeci == 0 && smillo == 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 0;
_root.game.itembase.somil._alpha = 0;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
scoremi = Math.floor((mineral / mineraltogo) * 100);
_root.game.itembase.scoremask._xscale = scoremi;
emillo = Math.floor(expe / 100000000);
eemildeci = Math.floor((expe - emillo * 100000000) / 10000000);
eemiluni = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000) / 1000000);
eemil = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000) / 100000);
emildeci = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000) / 10000);
emiluni = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000) / 1000);
emil = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000 - emiluni * 1000) / 100);
edeci = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000 - emiluni * 1000 - emil * 100) / 10);
euni = Math.floor(expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000 - emiluni * 1000 - emil * 100 - edeci * 10);
_root.game.itembase.eouni.gotoAndStop(euni + 1);
_root.game.itembase.eodeci.gotoAndStop(edeci + 1);
_root.game.itembase.eomil.gotoAndStop(emil + 1);
_root.game.itembase.eomiluni.gotoAndStop(emiluni + 1);
_root.game.itembase.eomildeci.gotoAndStop(emildeci + 1);
_root.game.itembase.eocmil.gotoAndStop(eemil + 1);
_root.game.itembase.eocmiluni.gotoAndStop(eemiluni + 1);
_root.game.itembase.eocmildeci.gotoAndStop(eemildeci + 1);
_root.game.itembase.eomillo.gotoAndStop(emillo + 1);
if (emillo > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 100;
_root.game.itembase.eocmildeci._alpha = 100;
_root.game.itembase.eomillo._alpha = 100;
} else {
if (eemildeci > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 100;
_root.game.itembase.eocmildeci._alpha = 100;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (eemiluni > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 100;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (eemil > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (emildeci > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.itembase.eomillo._alpha = 0;
} else {
if (emiluni > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (emil > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (edeci > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 0;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (euni > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 0;
_root.game.itembase.eomil._alpha = 0;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (euni == 0 && edeci == 0 && emil == 0 && emiluni == 0 && emildeci == 0 && eemil == 0 && eemiluni == 0 && eemildeci == 0 && emillo == 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 0;
_root.game.itembase.eomil._alpha = 0;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
expemi = Math.floor((expe / expetogo) * 100);
_root.game.itembase.expmask._xscale = expemi;
hppb = Math.floor(100 - (dañoplayer / playerhp) * 100);
_root.game.imhpbar.hpmask._xscale = hpfinal;
if (hpfinal != hppb) {
hpfinal = hppb;
}
}
function playerwalk() {
while (_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true)) {
_root.game.playerfull._x -= 10;
}
while (_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true)) {
_root.game.playerfull._x += 10;
}
if (uncathcount >= 10) {
playercath = false;
atacktime = false;
presy = false;
uncathcount = 0;
}
if (acceleration == true) {
acceleration = false;
acecount = 1440;
speedup = 10;
}
if (acecount > 0) {
acecount -= 1;
}
if (acecount <= 0) {
speedup = 0;
}
if (slow == true) {
slow = false;
acecount = 240;
speedup = -5;
}
_root.game.playerfull.swapDepths(_root.game.playerfull._y * _root.game.playerfull._y);
if (nowalk == true && direct == 0 && blocks == false && evade == false && atacktime == false && !Key.isDown(38) && !Key.isDown(40)) {
_root.game.playerfull.gotoAndStop(1);
}
if (nowalk == true && direct == 1 && blocks == false && evade == false && atacktime == false && !Key.isDown(38) && !Key.isDown(40)) {
_root.game.playerfull.gotoAndStop(4);
}
if (Key.isDown(39)) {
scrollmove();
if (_root.game.playerfull._x < 610 && atacktime == false && playercath == false && blocks == false && evade == false) {
_root.game.playerfull._x += walkspeed + speedup + speedupextra1 + speedupextra2 + speedupextra3 + speedupextra4;
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
if (sworduse == true) {
_root.game.playerfull.swalkr.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(2);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
direct = 0;
nowalk = false;
}
if (playercath == true && pressright == false) {
uncathcount += 1;
pressright = true;
pressleft = false;
}
} else {
if (Key.isDown(37)) {
scrollmove();
if (_root.game.playerfull._x > 30 && atacktime == false && playercath == false && blocks == false && evade == false) {
_root.game.playerfull._x -= walkspeed + speedup + speedupextra1 + speedupextra2 + speedupextra3 + speedupextra4;
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
if (sworduse == true) {
_root.game.playerfull.swalkl.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(3);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
direct = 1;
nowalk = false;
}
if (playercath == true && pressleft == false) {
uncathcount += 1;
pressleft = true;
pressright = false;
}
} else {
if (!Key.isDown(39)) {
nowalk = true;
}
}
}
if (Key.isDown(38)) {
if (_root.game.playerfull._y > 250 && atacktime == false && blocks == false && evade == false) {
if (movingmap == false) {
_root.game.playerfull._y -= walkspeed + speedup + speedupextra1 + speedupextra2 + speedupextra3 + speedupextra4;
}
if (movingmap == true) {
_root.game.playerfull._y -= 10;
}
if (direct == 0) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
if (sworduse == true) {
_root.game.playerfull.swalkr.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(2);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
}
if (direct == 1) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
if (sworduse == true) {
_root.game.playerfull.swalkl.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(3);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
}
}
} else {
if (Key.isDown(40)) {
if (_root.game.playerfull._y < 440 && atacktime == false && blocks == false && evade == false) {
if (movingmap == false) {
_root.game.playerfull._y += walkspeed + speedup + speedupextra1 + speedupextra2 + speedupextra3 + speedupextra4;
}
if (movingmap == true) {
_root.game.playerfull._y += 10;
}
if (direct == 0) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
if (sworduse == true) {
_root.game.playerfull.swalkr.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(2);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
}
if (direct == 1) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
if (sworduse == true) {
_root.game.playerfull.swalkl.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(3);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
}
}
}
}
}
function playeratk() {
if (_root.game.playerfull.revade._currentframe == 6 && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
evade = false;
presy = false;
}
if (_root.game.playerfull.revade._currentframe == 6 && direct == 1) {
_root.game.playerfull.gotoAndStop(1);
direct = 0;
evade = false;
presy = false;
}
if (_root.game.playerfull.levade._currentframe == 6 && direct == 0) {
_root.game.playerfull.gotoAndStop(4);
direct = 1;
evade = false;
presy = false;
}
if (_root.game.playerfull.levade._currentframe == 6 && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
evade = false;
presy = false;
}
if (_root.game.playerfull.revade._currentframe == 2 && direct == 0) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 3 && direct == 0) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 4 && direct == 0) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 2 && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 3 && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 4 && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.levade._currentframe == 2 && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 3 && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 4 && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 2 && direct == 1) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 3 && direct == 1) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 4 && direct == 1) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.kpd._currentframe == 4) {
atacktime = false;
_root.game.playerfull.gotoAndStop(1);
}
if (_root.game.playerfull.kpi._currentframe == 4) {
atacktime = false;
_root.game.playerfull.gotoAndStop(4);
}
if (_root.game.playerfull.specialpd._currentframe == 5 && knucleuse == true && direct == 0) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (ristalx <= 120 && ristaly <= 100 && alienob.signs != 1) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 200;
damagedo = w1attack + 200;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
++a;
}
}
if (_root.game.playerfull.specialpd._currentframe == 14 && knucleuse == true && direct == 0) {
superp = false;
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.specialpi._currentframe == 5 && knucleuse == true && direct == 1) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (ristalx <= 120 && ristaly <= 100 && alienob.signs != 1) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 200;
damagedo = w1attack + 200;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
++a;
}
}
if (_root.game.playerfull.specialpi._currentframe == 14 && knucleuse == true && direct == 1) {
superp = false;
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 4 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
power += 2;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 5;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 9 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 40;
damagedo = w1attack + 40;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 20;
}
power += 3;
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 17 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 60;
damagedo = w1attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 30;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 23 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 24 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 25 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 16 && knucleuse == true && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.rpunch._currentframe == 17 && knucleuse == true && direct == 0) {
deraprox = _root.game.playerfull._x + 20;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 20;
}
}
if (_root.game.playerfull.rpunch._currentframe == 18 && knucleuse == true && direct == 0) {
deraprox = _root.game.playerfull._x + 10;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 10;
}
}
if (_root.game.playerfull.rpunch._currentframe == 5 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 13 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 21 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 27 && knucleuse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.rpunch._currentframe > 2 && _root.game.playerfull.rpunch._currentframe <= 5 && knucleuse == true && direct == 0 && presy == false) {
timing = true;
}
if (_root.game.playerfull.rpunch._currentframe == 5 && knucleuse == true && direct == 0 && timing == true) {
timing = false;
_root.game.playerfull.rpunch.gotoAndPlay(7);
}
if (Key.isDown(88) && _root.game.playerfull.rpunch._currentframe > 8 && _root.game.playerfull.rpunch._currentframe <= 11 && knucleuse == true && direct == 0 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.rpunch._currentframe == 11 && knucleuse == true && direct == 0 && timing == true && power >= 5) {
timing = false;
power -= 5;
_root.game.playerfull.rpunch.gotoAndPlay(14);
}
if (_root.game.playerfull.rpunch._currentframe == 11 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.rpunch.gotoAndPlay(12);
}
if (Key.isDown(88) && _root.game.playerfull.rpunch._currentframe > 16 && _root.game.playerfull.rpunch._currentframe <= 21 && knucleuse == true && direct == 0 && presy == false && power >= 10) {
timing = true;
}
if (_root.game.playerfull.rpunch._currentframe == 21 && knucleuse == true && direct == 0 && timing == true && power >= 10) {
timing = false;
power -= 10;
_root.game.playerfull.rpunch.gotoAndPlay(22);
}
if (_root.game.playerfull.lpunch._currentframe == 4 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
power += 2;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 5;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 9 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 40;
damagedo = w1attack + 40;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 20;
}
power += 3;
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 17 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 60;
damagedo = w1attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 30;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 23 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 24 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 25 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 16 && knucleuse == true && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.lpunch._currentframe == 17 && knucleuse == true && direct == 1) {
deraprox = _root.game.playerfull._x - 20;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 20;
}
}
if (_root.game.playerfull.lpunch._currentframe == 18 && knucleuse == true && direct == 1) {
deraprox = _root.game.playerfull._x - 10;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 10;
}
}
if (_root.game.playerfull.lpunch._currentframe == 5 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lpunch._currentframe == 13 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lpunch._currentframe == 21 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lpunch._currentframe == 27 && knucleuse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.lpunch._currentframe > 2 && _root.game.playerfull.lpunch._currentframe <= 5 && knucleuse == true && direct == 1 && presy == false) {
timing = true;
}
if (_root.game.playerfull.lpunch._currentframe == 5 && knucleuse == true && direct == 1 && timing == true) {
timing = false;
_root.game.playerfull.lpunch.gotoAndPlay(7);
}
if (Key.isDown(88) && _root.game.playerfull.lpunch._currentframe > 8 && _root.game.playerfull.lpunch._currentframe <= 11 && knucleuse == true && direct == 1 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.lpunch._currentframe == 11 && knucleuse == true && direct == 1 && timing == true && power >= 5) {
timing = false;
power -= 5;
_root.game.playerfull.lpunch.gotoAndPlay(14);
}
if (_root.game.playerfull.lpunch._currentframe == 11 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.lpunch.gotoAndPlay(12);
}
if (Key.isDown(88) && _root.game.playerfull.lpunch._currentframe > 16 && _root.game.playerfull.lpunch._currentframe <= 21 && knucleuse == true && direct == 1 && presy == false && power >= 10) {
timing = true;
}
if (_root.game.playerfull.lpunch._currentframe == 21 && knucleuse == true && direct == 1 && timing == true && power >= 10) {
timing = false;
power -= 10;
_root.game.playerfull.lpunch.gotoAndPlay(22);
}
if (_root.game.playerfull.rswing._currentframe == 28 && sworduse == true && direct == 0) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 200 && ristaly < 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 100;
damagedo = w2attack + 100;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 28 && sworduse == true && direct == 1) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 200 && ristaly < 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 100;
damagedo = w2attack + 100;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 3 && sworduse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 30;
damagedo = w2attack + 30;
damagefun();
power += 1;
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 7 && sworduse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 50;
damagedo = w2attack + 50;
damagefun();
power += 2;
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 12 && sworduse == true && direct == 0 && power >= 3) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
sworddam = sword3d + 30;
if (alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= sworddam && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 60;
damagedo = w2attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 5 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rswing._currentframe == 10 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rswing._currentframe == 20 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.lswing._currentframe == 38 && sworduse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.rswing._currentframe > 2 && _root.game.playerfull.rswing._currentframe <= 4 && sworduse == true && direct == 0 && presy == false) {
timing = true;
}
if (_root.game.playerfull.rswing._currentframe == 4 && sworduse == true && direct == 0 && timing == true) {
timing = false;
_root.game.playerfull.rswing.gotoAndPlay(6);
}
if (Key.isDown(88) && _root.game.playerfull.rswing._currentframe > 6 && _root.game.playerfull.rswing._currentframe <= 9 && sworduse == true && direct == 0 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.rswing._currentframe == 9 && sworduse == true && direct == 0 && timing == true && movingmap == false && power >= 3) {
timing = false;
power -= 5;
_root.game.playerfull.rswing.gotoAndPlay(11);
}
if (Key.isDown(88) && _root.game.playerfull.rswing._currentframe > 12 && _root.game.playerfull.rswing._currentframe <= 15 && sworduse == true && direct == 0 && presy == false && power >= 15) {
timing = true;
}
if (_root.game.playerfull.rswing._currentframe == 15 && sworduse == true && direct == 0 && timing == true && power >= 15) {
timing = false;
power -= 10;
direct = 1;
_root.game.playerfull.gotoAndStop(8);
_root.game.playerfull.lswing.gotoAndPlay(21);
}
if (_root.game.playerfull.rswing._currentframe == 15 && sworduse == true && direct == 0 && timing == false) {
timing = false;
_root.game.playerfull.rswing.gotoAndPlay(16);
}
if (_root.game.playerfull.rswing._currentframe == 12 && sworduse == true && direct == 0) {
deraprox = _root.game.playerfull._x + sword3d;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += sword3d;
}
}
if (_root.game.playerfull.rswing._currentframe == 13 && sworduse == true && direct == 0) {
deraprox = _root.game.playerfull._x + sword3d;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += sword3d;
}
}
if (_root.game.playerfull.lswing._currentframe == 3 && sworduse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 30;
damagedo = w2attack + 30;
damagefun();
power += 1;
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 7 && sworduse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 50;
damagedo = w2attack + 50;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
power += 2;
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 12 && sworduse == true && direct == 1 && power >= 3) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
sworddam = sword3d + 30;
if (alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= sword3d && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 60;
damagedo = w2attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 5 && sworduse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lswing._currentframe == 10 && sworduse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lswing._currentframe == 20 && sworduse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.rswing._currentframe == 38 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.lswing._currentframe > 2 && _root.game.playerfull.lswing._currentframe <= 5 && sworduse == true && direct == 1 && presy == false) {
timing = true;
}
if (_root.game.playerfull.lswing._currentframe == 5 && sworduse == true && direct == 1 && timing == true) {
timing = false;
_root.game.playerfull.lswing.gotoAndPlay(6);
}
if (Key.isDown(88) && _root.game.playerfull.lswing._currentframe > 6 && _root.game.playerfull.lswing._currentframe <= 9 && sworduse == true && direct == 1 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.lswing._currentframe == 9 && sworduse == true && direct == 1 && timing == true && movingmap == false && power >= 3) {
timing = false;
power -= 5;
_root.game.playerfull.lswing.gotoAndPlay(11);
}
if (Key.isDown(88) && _root.game.playerfull.lswing._currentframe > 12 && _root.game.playerfull.lswing._currentframe <= 15 && sworduse == true && direct == 1 && presy == false && power >= 15) {
timing = true;
}
if (_root.game.playerfull.lswing._currentframe == 15 && sworduse == true && direct == 1 && timing == true && power >= 15) {
timing = false;
power -= 10;
direct = 0;
_root.game.playerfull.gotoAndStop(7);
_root.game.playerfull.rswing.gotoAndPlay(21);
}
if (_root.game.playerfull.lswing._currentframe == 15 && sworduse == true && direct == 1 && timing == false) {
timing = false;
_root.game.playerfull.lswing.gotoAndPlay(16);
}
if (_root.game.playerfull.lswing._currentframe == 12 && sworduse == true && direct == 1) {
deraprox = _root.game.playerfull._x - sword3d;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= sword3d;
}
}
if (_root.game.playerfull.lswing._currentframe == 13 && sworduse == true && direct == 1) {
deraprox = _root.game.playerfull._x - sword3d;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= sword3d;
}
}
if (_root.game.playerfull.rshot._currentframe == 37 && gunuse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rshot._currentframe == 23 && gunuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rshot._currentframe == 12 && gunuse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.rshot._currentframe > 5 && _root.game.playerfull.rshot._currentframe <= 8 && gunuse == true && direct == 0 && presy == false) {
timing = true;
}
if (Key.isDown(88) && _root.game.playerfull.rshot._currentframe > 5 && _root.game.playerfull.rshot._currentframe <= 8 && gunuse == true && direct == 0 && presy == false) {
timing = false;
timings = true;
}
if (_root.game.playerfull.rshot._currentframe == 8 && gunuse == true && direct == 0 && timing == true) {
timing = false;
_root.game.playerfull.rshot.gotoAndPlay(4);
}
if (_root.game.playerfull.rshot._currentframe == 8 && gunuse == true && direct == 0 && timings == true && power >= 10) {
timings = false;
power -= 10;
_root.game.playerfull.rshot.gotoAndPlay(13);
}
if (Key.isDown(88) && _root.game.playerfull.rshot._currentframe > 15 && _root.game.playerfull.rshot._currentframe <= 23 && gunuse == true && direct == 0 && presy == false) {
timing = true;
}
if (_root.game.playerfull.rshot._currentframe == 23 && gunuse == true && direct == 0 && timing == true && power >= 25) {
timing = false;
power -= 25;
_root.game.playerfull.rshot.gotoAndPlay(24);
}
if (_root.game.playerfull.lshot._currentframe == 37 && gunuse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lshot._currentframe == 23 && gunuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lshot._currentframe == 12 && gunuse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.lshot._currentframe > 5 && _root.game.playerfull.lshot._currentframe <= 8 && gunuse == true && direct == 1 && presy == false) {
timing = true;
}
if (Key.isDown(88) && _root.game.playerfull.lshot._currentframe > 5 && _root.game.playerfull.lshot._currentframe <= 8 && gunuse == true && direct == 1 && presy == false) {
timing = false;
timings = true;
}
if (_root.game.playerfull.lshot._currentframe == 8 && gunuse == true && direct == 1 && timing == true) {
timing = false;
_root.game.playerfull.lshot.gotoAndPlay(4);
}
if (_root.game.playerfull.lshot._currentframe == 8 && gunuse == true && direct == 1 && timings == true && power >= 10) {
timings = false;
power -= 10;
_root.game.playerfull.lshot.gotoAndPlay(13);
}
if (Key.isDown(88) && _root.game.playerfull.lshot._currentframe > 15 && _root.game.playerfull.lshot._currentframe <= 23 && gunuse == true && direct == 1 && presy == false) {
timing = true;
}
if (_root.game.playerfull.lshot._currentframe == 23 && gunuse == true && direct == 1 && timing == true && power >= 25) {
timing = false;
power -= 25;
_root.game.playerfull.lshot.gotoAndPlay(24);
}
if (_root.game.playerfull.rshot._currentframe == 18 && gunuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x < alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x < alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 9 || _root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 10) {
if (ristalx < 600 && ristaly < 50) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (_root.game.playerfull.rshot._currentframe == 30 && gunuse == true && direct == 0 || _root.game.playerfull.rshot._currentframe == 31 && gunuse == true && direct == 0 || _root.game.playerfull.rshot._currentframe == 32 && gunuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x < alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x < alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 9 || _root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 10) {
if (ristalx < 600 && ristaly < 75) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (_root.game.playerfull.rshot._currentframe == 5 && gunuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x < alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x < alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 9 || _root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 10) {
if (ristalx < 600 && ristaly < 25) {
hits += 1;
combot = true;
power += guncost;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
_root.game.bulletd.duplicateMovieClip('balaex', 99999999, {'_x': alienob._x, '_y': alienob._y});
break;
}
}
++a;
}
}
if (_root.game.playerfull.lshot._currentframe == 5 && gunuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x > alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x > alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 9 || _root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 10) {
if (ristalx < 600 && ristaly < 25) {
hits += 1;
combot = true;
power += guncost;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
_root.game.bulletd.duplicateMovieClip('balaex', 99999999, {'_x': alienob._x, '_y': alienob._y});
break;
}
}
++a;
}
}
if (_root.game.playerfull.lshot._currentframe == 18 && gunuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x > alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x > alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 9 || _root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 10) {
if (ristalx < 600 && ristaly < 50) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (_root.game.playerfull.lshot._currentframe == 30 && gunuse == true && direct == 1 || _root.game.playerfull.lshot._currentframe == 31 && gunuse == true && direct == 1 || _root.game.playerfull.lshot._currentframe == 32 && gunuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x > alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x > alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 9 || _root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 10) {
if (ristalx < 600 && ristaly < 75) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (Key.isDown(90) && superp == false && evade == false && blocks == false) {
if (knucleuse == true && direct == 0 && presy == false) {
_root.game.playerfull.gotoAndStop(5);
presy = true;
atacktime = true;
}
if (knucleuse == true && direct == 1 && presy == false) {
_root.game.playerfull.gotoAndStop(6);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 0 && presy == false) {
_root.game.playerfull.gotoAndStop(7);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 1 && presy == false) {
_root.game.playerfull.gotoAndStop(8);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 0 && presy == false) {
_root.game.playerfull.gotoAndStop(9);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 1 && presy == false) {
_root.game.playerfull.gotoAndStop(10);
presy = true;
atacktime = true;
}
}
if (!Key.isDown(90) && presy == true && playercath == false && !Key.isDown(88)) {
blocks = false;
presy = false;
}
if (!Key.isDown(67)) {
blocks = false;
}
if (Key.isDown(45) && atacktime == false && evade == false && blocks == false && blocks == false) {
if (knucleuse == true && direct == 0 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(11);
presy = true;
atacktime = true;
}
if (knucleuse == true && direct == 1 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(12);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 0 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(13);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 1 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(14);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 0 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(15);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 1 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(16);
presy = true;
atacktime = true;
}
presy = true;
}
if (Key.isDown(67) && superp == false && evade == false && atacktime == false) {
if (direct == 0) {
_root.game.playerfull.gotoAndStop(21);
}
if (direct == 1) {
_root.game.playerfull.gotoAndStop(22);
}
blocks = true;
presy = true;
}
if (blocks == true && superp == false && Key.isDown(37) && evade == false && atacktime == false && movingmap == false && power >= 3) {
blocks = false;
evade = true;
power -= 3;
_root.game.playerfull.gotoAndStop(23);
}
if (blocks == true && superp == false && Key.isDown(39) && evade == false && atacktime == false && movingmap == false && power >= 3) {
blocks = false;
evade = true;
power -= 3;
_root.game.playerfull.gotoAndStop(24);
}
if (_root.game.gosign._x == 500) {
_root.beepgo.gotoAndStop(2);
_root.game.gosign._x = 501;
}
if (_root.game.gosign._x == 130) {
_root.beepgo.gotoAndStop(2);
_root.game.gosign._x = 131;
}
if (_root.game.gosign._x == 800) {
_root.beepgo.gotoAndStop(1);
}
if (_root.game.playerfull.rpunch._currentframe == 23) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 23) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.rpunch._currentframe == 3) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.rpunch._currentframe == 8) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 3) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 8) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.rpunch._currentframe == 15) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 15) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 1) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 6) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 11) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 1) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 6) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 11) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 21) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 28) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 21) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 28) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.rshot._currentframe == 4) {
_root.gunnys.gotoAndPlay(2);
}
if (_root.game.playerfull.rshot._currentframe == 18) {
_root.entresas.gotoAndPlay(2);
}
if (_root.game.playerfull.lshot._currentframe == 4) {
_root.gunnys.gotoAndPlay(2);
}
if (_root.game.playerfull.lshot._currentframe == 18) {
_root.entresas.gotoAndPlay(2);
}
if (_root.game.playerfull.rshot._currentframe == 30) {
_root.swas.gotoAndPlay(2);
}
if (_root.game.playerfull.lshot._currentframe == 30) {
_root.swas.gotoAndPlay(2);
}
if (_root.game.playerfull.revade._currentframe == 1) {
_root.evadefx.gotoAndPlay(2);
}
if (_root.game.playerfull.levade._currentframe == 1) {
_root.evadefx.gotoAndPlay(2);
}
}
function equipwepon() {
if (knucleuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (Key.isDown(65) && atacktime != true) {
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(1);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(1);
}
}
if (Key.isDown(83) && atacktime != true) {
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(1);
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(1);
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(1);
}
}
if (_root.game.balaex._currentframe == 5) {
_root.game.balaex.removeMovieClip();
}
}
function alienclone() {
++coune;
if (coune == 36) {
enemygo = true;
coune = 0;
}
if (enemyon != enemyin && enemygo == true) {
if (enemytogo[enemyin] == 1) {
randy = Math.floor(Math.random() * 2);
altus = Math.floor(Math.random() * 211);
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
xan = 700;
}
if (sitedoor == 0) {
xan = -100;
}
_root.game.alienen.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan, '_y': altus + 260, 'hpen': 200, 'eny': 1, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 0, 'scoredrop': 10, 'expdrop': 15, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 12;
}
if (enemytogo[enemyin] == 2) {
randy = Math.floor(Math.random() * 2);
altus = _root.playerfull._y;
_root.game.aliendos.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan, '_y': altus + 0.5, 'hpen': 150, 'eny': 2, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 30, 'expdrop': 25, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 0;
}
if (enemytogo[enemyin] == 3) {
randy = Math.floor(Math.random() * 2);
altus = Math.floor(Math.random() * 211);
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
xan = 700;
}
if (sitedoor == 0) {
xan = -100;
}
_root.game.alientres.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan + 0.5, '_y': altus + 260.5, 'hpen': 100, 'eny': 3, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 1, 'item3': 1, 'scoredrop': 1, 'expdrop': 2, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 28;
}
if (enemytogo[enemyin] == 4) {
_root.game.aliencuatro.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 400, 'eny': 4, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 50, 'expdrop': 40, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 5;
}
if (enemytogo[enemyin] == 5) {
_root.game.aliencinco.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 400, 'eny': 5, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 200, 'expdrop': 150, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = -10;
}
if (enemytogo[enemyin] == 6) {
_root.game.alienseis.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 600, 'eny': 6, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 2, 'scoredrop': 500, 'expdrop': 300, 'exis': 1, 'signs': 0, 'standc': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
if (enemytogo[enemyin] == 7) {
_root.game.aliensiete.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 400, 'eny': 7, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 300, 'expdrop': 300, 'exis': 1, 'signs': 0, 'downup': 0, 'timeat': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
if (enemytogo[enemyin] == 8) {
_root.game.bossone.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 350.5, '_y': 300, 'hpen': 4000, 'eny': 8, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 2, 'scoredrop': 2000, 'expdrop': 600, 'exis': 1, 'signs': 0, 'timeat': 0, 'downup': 0, 'righleft': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
if (enemytogo[enemyin] == 9) {
_root.game.rooty.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 350, '_y': 300, 'hpen': 1000, 'eny': 9, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 0, 'item2': 0, 'item3': 0, 'scoredrop': 500, 'expdrop': 300, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 30;
}
if (enemytogo[enemyin] == 10) {
_root.game.bosstwo.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 350, '_y': 300, 'hpen': 1000, 'eny': 10, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 1, 'item3': 2, 'scoredrop': 500, 'expdrop': 2000, 'exis': 1, 'signs': 0, 'timer': 0, 'boing': 0, 'ori': 1});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 35;
}
if (enemytogo[enemyin] == 11) {
_root.game.bosstwo.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 350, '_y': 300, 'hpen': 4000, 'eny': 10, 'siten': 0, 'fase': 1.5, 'atakan': 0, 'item1': 1, 'item2': 1, 'item3': 2, 'scoredrop': 500, 'expdrop': 2000, 'exis': 1, 'signs': 0, 'timer': 0, 'boing': 0, 'ori': 1});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 35;
}
}
}
function alienmove() {
t = 0;
while (t < manchaslist.length) {
manchis = _root.game[manchaslist[t]];
if (manchis._currentframe == 300) {
manchis.removeMovieClip();
manchaslist.splice(t, 1);
}
++t;
}
r = 0;
while (r < enemylist.length) {
alienob = _root.game[enemylist[r]];
alienob.swapDepths(alienob._y * alienob._y);
dx = _root.game.playerfull._x - alienob._x;
dy = _root.game.playerfull._y - alienob._y;
distal = Math.sqrt(dx * dx + dy * dy);
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
ranspace = Math.floor(Math.random() * 100);
if (alienob.exis != 1) {
enemylist.splice(r, 1);
}
if (alienob.eny == 1) {
if (distalx < 150 - ranspace && alienob.fase == 1) {
alienob.fase = 2;
}
if (alienob.fase == 66) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(7);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(8);
}
}
if (alienob.knol._currentframe == 3) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x += 10;
alienob.fase = 3;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x -= 10;
alienob.fase = 3;
alienob.gotoAndStop(2);
}
}
if (alienob.knod._currentframe == 3) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x += 10;
alienob.fase = 3;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x -= 10;
alienob.fase = 3;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 1) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 5;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 5;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 2) {
if (alienatk < 4) {
alienatk += 1;
alienob.fase = 3;
}
selectf = Math.floor(Math.random() * 2);
if (selectf == 0 && alienob.fase == 2) {
alienob.fase = 4;
}
if (selectf == 1 && alienob.fase == 2) {
alienob.fase = 5;
}
}
if (alienob.fase == 4) {
alienob._y -= 4;
if (alienob._y < 250) {
alienob.fase = 5;
}
if (distalx > 150 && alienob.fase == 4) {
alienob.fase = 1;
}
othewa = Math.floor(Math.random() * 40);
if (othewa == 2) {
alienob.fase = 5;
}
if (alienatk < 4) {
alienob.fase = 2;
}
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 5) {
alienob._y += 4;
if (alienob._y > 460) {
alienob.fase = 4;
}
if (distalx > 150 && alienob.fase == 5) {
alienob.fase = 1;
}
othewa = Math.floor(Math.random() * 40);
if (othewa == 3) {
alienob.fase = 4;
}
if (alienatk < 4) {
alienob.fase = 2;
}
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 3) {
if (distalx < 60 && distaly < 25) {
alienob.fase = 6;
}
if (distalx > 40 && alienob.fase == 3) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 5;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 5;
alienob.gotoAndStop(2);
}
}
if (distaly > 15 && alienob.fase == 3) {
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 5;
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 5;
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
}
}
if (alienob.fase == 6) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(3);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(4);
}
if (alienob.ratka._currentframe == 4) {
_root.ensouno.gotoAndPlay(2);
alienob._x -= 5;
}
if (alienob.ratka._currentframe == 5 && distalx < 55 && distaly < 25) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 1;
if (power < 200) {
power += 1;
}
}
}
}
if (alienob.latka._currentframe == 4) {
_root.ensouno.gotoAndPlay(2);
alienob._x += 5;
}
if (alienob.latka._currentframe == 5 && distalx < 55 && distaly < 25) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 1;
if (power < 200) {
power += 1;
}
}
}
}
if (alienob.ratka._currentframe == 8) {
alienob.fase = 3;
}
if (alienob.latka._currentframe == 8) {
alienob.fase = 3;
}
}
if (alienob.hpen <= 0 && alienob.fase != 7 && alienob.fase != 8) {
alienob.fase = 7;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
greenflea += 1;
}
if (alienob.fase == 7) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(5);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(6);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 10, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 8;
}
if (alienob.deathr._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.deathl._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.deathr._currentframe == 7) {
alienob.removeMovieClip();
alienatk -= 1;
enemylist.splice(r, 1);
}
if (alienob.deathl._currentframe == 7) {
alienob.removeMovieClip();
alienatk -= 1;
enemylist.splice(r, 1);
}
}
if (alienob.eny == 2) {
if (alienob.fase == 1) {
alienob.siten = Math.floor(Math.random() * 2);
if (alienob.siten == 1) {
_root.alienob._x = 580;
alienob.gotoAndStop(3);
_root.alienob._y = _root.game.playerfull._y + 0.5;
alienob.fase = 2;
}
if (alienob.siten == 0) {
_root.alienob._x = 70;
alienob.gotoAndStop(2);
_root.alienob._y = _root.game.playerfull._y + 0.5;
alienob.fase = 2;
}
}
if (alienob.fase == 2) {
if (alienob.alidosd._currentframe == 12) {
alienob.gotoAndStop(4);
alienob.fase = 3;
}
if (alienob.alidosi._currentframe == 12) {
alienob.gotoAndStop(5);
alienob.fase = 3;
}
}
if (alienob.fase == 3) {
if (alienob.alidosad._currentframe == 10) {
_root.entresas.gotoAndPlay(2);
}
if (alienob.alidosai._currentframe == 10) {
_root.entresas.gotoAndPlay(2);
}
if (alienob.alidosad._currentframe == 15) {
alienob.gotoAndStop(6);
alienob.fase = 4;
}
if (alienob.alidosad._currentframe == 11 && distaly < 20) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 15;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
if (alienob.alidosai._currentframe == 11 && distaly < 20) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 15;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
if (alienob.alidosai._currentframe == 15) {
alienob.gotoAndStop(7);
alienob.fase = 4;
}
}
if (alienob.fase == 4) {
if (alienob.alidosgd._currentframe == 9) {
alienob.fase = 1;
}
if (alienob.alidosgi._currentframe == 9) {
alienob.fase = 1;
}
}
if (alienob.hpen <= 0 && alienob.fase != 5 && alienob.fase != 6) {
alienob.fase = 5;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
redsquid += 1;
}
if (alienob.fase == 5) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(9);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(8);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 20, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 6;
}
if (alienob.alidosdd._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.alidosdi._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.alidosdd._currentframe == 11) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.alidosdi._currentframe == 11) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 3) {
if (alienob.fase == 1) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 5;
alienob.gotoAndStop(2);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 5;
alienob.gotoAndStop(3);
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 3;
}
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 3;
}
}
if (alienob.fase == 1 && distalx < 100 && distaly < 15) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(4);
alienob.fase = 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(5);
alienob.fase = 2;
}
}
if (alienob.fase == 2) {
if (alienob.ratkiz._currentframe == 2 || alienob.ratkiz._currentframe == 3 || alienob.ratkiz._currentframe == 4 || alienob.ratkiz._currentframe == 5 || alienob.ratkiz._currentframe == 6 || alienob.ratkiz._currentframe == 7 || alienob.ratkiz._currentframe == 8 || alienob.ratkiz._currentframe == 9 || alienob.ratkiz._currentframe == 10) {
alienob._x -= 15;
}
if (alienob.ratkiz._currentframe == 10) {
alienob.fase = 1;
}
if (alienob.ratkiz._currentframe == 6 && distalx < 30 && distaly < 50 || alienob.ratkiz._currentframe == 7 && distalx < 30 && distaly < 50 || alienob.ratkiz._currentframe == 8 && distalx < 30 && distaly < 50) {
alienob.gotoAndStop(6);
alienob.fase = 3;
}
if (alienob.ratkder._currentframe == 2 || alienob.ratkder._currentframe == 3 || alienob.ratkder._currentframe == 4 || alienob.ratkder._currentframe == 5 || alienob.ratkder._currentframe == 6 || alienob.ratkder._currentframe == 7 || alienob.ratkder._currentframe == 8 || alienob.ratkder._currentframe == 9 || alienob.ratkder._currentframe == 10) {
alienob._x += 15;
}
if (alienob.ratkder._currentframe == 10) {
alienob.fase = 1;
}
if (alienob.ratkder._currentframe == 6 && distalx < 30 && distaly < 50 || alienob.ratkder._currentframe == 7 && distalx < 30 && distaly < 50 || alienob.ratkder._currentframe == 8 && distalx < 30 && distaly < 50) {
alienob.gotoAndStop(7);
alienob.fase = 3;
}
}
if (alienob.fase == 3) {
alienob._x = _root.game.playerfull._x;
alienob._y = _root.game.playerfull._y + 1;
dañoplayer += 1;
}
if (alienob.hpen <= 0 && alienob.fase != 4 && alienob.fase != 5) {
alienob.fase = 4;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
leach += 1;
}
if (alienob.fase == 4) {
if (alienob._currentframe == 6) {
alienob.gotoAndStop(10);
alienob._y += 25;
}
if (alienob._currentframe == 7) {
alienob.gotoAndStop(11);
alienob._y += 25;
}
if (alienob._currentframe == 4) {
alienob.gotoAndStop(10);
alienob._y += 25;
}
if (alienob._currentframe == 5) {
alienob.gotoAndStop(11);
alienob._y += 25;
}
if (alienob._currentframe == 2) {
alienob.gotoAndStop(8);
}
if (alienob._currentframe == 3) {
alienob.gotoAndStop(9);
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40 + 0.5, 'mount': 1, 'typeob': 1, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40 + 0.5, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40 + 0.5, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 5;
}
if (alienob.rolldi._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.rolldd._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.suckiz._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.suckde._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.rolldi._currentframe == 7) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.rolldd._currentframe == 7) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.suckiz._currentframe == 8) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.suckde._currentframe == 8) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 4) {
if (alienob.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 700.5;
alienob.fase = 2;
alienob.gotoAndStop(1);
}
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = -100.5;
alienob.fase = 3;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 2) {
if (alienob.aci._currentframe == 2) {
alienob._x -= 2;
}
if (alienob.aci._currentframe == 3) {
alienob._x -= 4;
}
if (alienob.aci._currentframe == 4 || alienob.aci._currentframe == 5 || alienob.aci._currentframe == 6) {
alienob._x -= 6;
}
if (alienob.aci._currentframe == 7) {
alienob._x -= 3;
}
if (alienob._x < -50) {
alienob.fase = 1;
}
if (_root.game.playerfull._x < alienob._x && distalx < 80 && distaly < 50) {
alienob.fase = 4;
alienob.gotoAndStop(3);
}
}
if (alienob.fase == 3) {
if (alienob.acd._currentframe == 2) {
alienob._x += 2;
}
if (alienob.acd._currentframe == 3) {
alienob._x += 4;
}
if (alienob.acd._currentframe == 4 || alienob.acd._currentframe == 5 || alienob.acd._currentframe == 6) {
alienob._x += 6;
}
if (alienob.acd._currentframe == 7) {
alienob._x += 3;
}
if (alienob._x > 700) {
alienob.fase = 1;
}
if (_root.game.playerfull._x > alienob._x && distalx < 70 && distaly < 40) {
alienob.fase = 5;
alienob.gotoAndStop(4);
}
}
if (alienob.fase == 4) {
if (alienob.aai._currentframe == 13) {
_root.blobs.gotoAndPlay(2);
}
if (alienob.aai._currentframe == 16) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aai._currentframe == 17) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aai._currentframe == 18) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 5;
}
if (blocks == true) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aai._currentframe == 22) {
alienob.gotoAndStop(1);
alienob.fase = 2;
}
}
if (alienob.fase == 5) {
if (alienob.aad._currentframe == 13) {
_root.blobs.gotoAndPlay(2);
}
if (alienob.aad._currentframe == 16) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aad._currentframe == 17) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aad._currentframe == 18) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 5;
}
if (blocks == true) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aad._currentframe == 22) {
alienob.gotoAndStop(2);
alienob.fase = 3;
}
}
if (alienob.hpen <= 0 && alienob.fase != 6 && alienob.fase != 7) {
alienob.fase = 6;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
plasma += 1;
}
if (alienob.fase == 6) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(5);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(6);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40, 'mount': 30, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 7;
}
if (alienob.ami._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.amd._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.ami._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.amd._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 5) {
if (alienob.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 670;
alienob.fase = 2;
alienob.signs = 1;
alienob.gotoAndStop(1);
}
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = -30;
alienob.fase = 3;
alienob.signs = 1;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 2 && alienob.si._currentframe == 60) {
alienob._x += 100;
alienob.gotoAndStop(3);
alienob.fase = 4;
alienob.signs = 0;
}
if (alienob.fase == 3 && alienob.sd._currentframe == 60) {
alienob._x -= 100;
alienob.gotoAndStop(4);
alienob.fase = 5;
alienob.signs = 0;
}
if (alienob.fase == 4) {
alienob._x -= 3;
if (distalx < 150 && alienob._x < 620) {
alienob.fase = 6;
alienob.gotoAndStop(5);
}
}
if (alienob.fase == 5) {
alienob._x += 3;
if (distalx < 150 && alienob._x > 30) {
alienob.fase = 8;
alienob.gotoAndStop(6);
}
}
if (alienob.fase == 6 && alienob.ai._currentframe == 12) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 1, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 2, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 3, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 4, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.fase == 6 && alienob.ai._currentframe == 10) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 5, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 6, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 7, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 8, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.fase == 8 && alienob.ad._currentframe == 12) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 1, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 2, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 3, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 4, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.fase == 8 && alienob.ad._currentframe == 10) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 5, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 6, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 7, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 8, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.hpen <= 0 && alienob.fase != 9 && alienob.fase != 7) {
alienob.fase = 9;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
abomination += 1;
}
if (alienob.fase == 9) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(7);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(8);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 50, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 5, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 7;
}
if (alienob.di._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.dd._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.ai._currentframe == 20) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.ad._currentframe == 20) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 999) {
if (alienob.fase == 1) {
alienob.din -= 1;
alienob._x -= 1;
}
if (alienob.fase == 2) {
alienob.din -= 1;
alienob._x += 1;
alienob.hpen -= 1;
}
if (alienob.fase == 3) {
alienob.din -= 1;
alienob._y -= 1;
}
if (alienob.fase == 4) {
alienob.din -= 1;
alienob._y += 1;
}
if (alienob.fase == 5) {
alienob.din -= 1;
alienob._x += 1;
alienob._y += 1;
}
if (alienob.fase == 6) {
alienob.din -= 1;
alienob._x += 1;
alienob._y -= 1;
alienob.hpen -= 1;
}
if (alienob.fase == 7) {
alienob.din -= 1;
alienob._x -= 1;
alienob._y -= 1;
}
if (alienob.fase == 8) {
alienob.din -= 1;
alienob._x -= 1;
alienob._y += 1;
}
if (distalx < 20 && distaly < 20 && alienob.fase != 10) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 10;
if (power < 100) {
power += 1;
}
}
}
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
alienob.fase = 10;
alienob.gotoAndStop(2);
}
if (alienob.expl._currentframe == 5) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.din < 0 || alienob._y < 250) {
alienob.fase = 10;
alienob.gotoAndStop(2);
}
}
if (alienob.eny == 6) {
if (alienob.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 600;
alienob.fase = 2;
alienob.signs = 1;
alienob.gotoAndStop(2);
}
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 50;
alienob.fase = 3;
alienob.signs = 1;
alienob.gotoAndStop(1);
}
}
if (alienob.fase == 2) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
}
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 4;
alienob.fase = 3;
momento = alienob.apeari._currentframe;
alienob.gotoAndStop(2);
alienob.apeard.gotoAndPlay(momento);
}
if (alienob.apeard._currentframe == 6) {
alienob.fase = 4;
alienob.gotoAndStop(3);
}
if (alienob.apeari._currentframe == 6) {
alienob.fase = 5;
alienob.gotoAndStop(4);
}
}
if (alienob.fase == 3) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
alienob.fase = 2;
momento = alienob.apeard._currentframe;
alienob.gotoAndStop(1);
alienob.apeari.gotoAndPlay(momento);
}
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 4;
}
if (alienob.apeari._currentframe == 6) {
alienob.fase = 5;
alienob.gotoAndStop(4);
}
if (alienob.apeard._currentframe == 6) {
alienob.fase = 4;
alienob.gotoAndStop(3);
}
}
if (alienob.fase == 4) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
}
if (_root.playerfull._x < alienob._x) {
alienob._x -= 4;
alienob.fase = 5;
momento = alienob.walkd._currentframe;
alienob.gotoAndStop(4);
alienob.walki.gotoAndPlay(momento);
}
if (distalx < 150 && distaly < 100) {
alienob.fase = 6;
alienob.gotoAndStop(5);
}
}
if (alienob.fase == 5) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
alienob.fase = 4;
momento = alienob.walki._currentframe;
alienob.gotoAndStop(3);
alienob.walkd.gotoAndPlay(momento);
}
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 4;
}
if (distalx < 150 && distaly < 100) {
alienob.fase = 7;
alienob.gotoAndStop(6);
}
}
if (alienob.fase == 6) {
alienob._x += 4;
if (alienob.desad._currentframe == 8) {
alienob.fase = 8;
}
}
if (alienob.fase == 7) {
alienob._x -= 4;
if (alienob.desai._currentframe == 8) {
alienob.fase = 9;
}
}
if (alienob.fase == 8 || alienob.fase == 9) {
alienob._x = _root.game.playerfull._x + 0.5;
alienob._y = _root.game.playerfull._y + 10.5;
_root.bgussa.gotoAndPlay(2);
alienob.gotoAndStop(7);
alienob.fase = 10;
}
if (alienob.fase == 10 && distalx < 30 && distaly < 20 && alienob.ataca._currentframe == 6 && playercath == false && evade == false) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
playercath = true;
atacktime = true;
presy = true;
_root.game.playerfull._x = alienob._x + 1.5;
_root.game.playerfull._y = alienob._y - 20.5;
alienob.gotoAndStop(8);
uncathcount = 0;
dañoplayer += 20;
}
if (blocks == true) {
blocks = false;
playercath = true;
atacktime = true;
presy = true;
_root.game.playerfull._x = alienob._x + 1.5;
_root.game.playerfull._y = alienob._y - 20.5;
alienob.gotoAndStop(8);
uncathcount = 0;
dañoplayer += 10;
}
}
}
if (alienob.fase == 10 && playercath == false && alienob._currentframe == 8) {
alienob.gotoAndStop(7);
alienob.ataca.gotoAndPlay(7);
}
if (alienob.fase == 10 && alienob.ataca._currentframe == 40) {
alienob.fase = 11;
alienob.standc += 1;
}
if (alienob.fase == 11 && alienob.standc == 3) {
alienob.fase = 12;
alienob.standc = 0;
}
if (alienob.fase == 11) {
alienob.fase = 3;
alienob.gotoAndStop(2);
if (_root.game.playerfull._x > alienob._x) {
alienob.fase = 2;
alienob.gotoAndStop(1);
}
}
if (alienob.fase == 12) {
altuen = Math.floor(Math.random() * 200);
dismun = Math.floor(Math.random() * 600);
alienob._y = 250 + altuen;
alienob._x = dismun;
alienob.gotoAndStop(9);
alienob.signs = 0;
alienob.fase = 13;
}
if (alienob.fase == 13 && alienob.astand._currentframe == 41) {
alienob.signs = 1;
alienob.fase = 1;
}
if (alienob.fase == 13 && alienob.astand._currentframe == 6) {
_root.gusswk.gotoAndPlay(2);
}
if (alienob.hpen <= 0 && alienob.fase != 14 && alienob.fase != 15) {
alienob.fase = 14;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
devourer += 1;
}
if (alienob.fase == 14) {
alienob.gotoAndStop(11);
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 100, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 5, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 15;
}
if (alienob.adeath._currentframe == 1) {
_root.multid.gotoAndPlay(2);
}
if (alienob.adeath._currentframe == 19) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
++r;
}
g = 0;
while (g < enemylist.length) {
alienoc = _root.game[enemylist[g]];
alienoc.swapDepths(alienoc._y * alienoc._y);
dx = _root.game.playerfull._x - alienoc._x;
dy = _root.game.playerfull._y - alienoc._y;
distal = Math.sqrt(dx * dx + dy * dy);
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
ranspace = Math.floor(Math.random() * 100);
if (alienoc.eny == 7) {
if (alienoc.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienoc._y = 250.5 + altuen;
alienoc._x = 630;
alienoc.fase = 2;
alienoc.gotoAndStop(2);
}
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienoc._y = 250.5 + altuen;
alienoc._x = 10;
alienoc.fase = 3;
alienoc.gotoAndStop(1);
}
}
if (alienoc.goind._currentframe == 2) {
alienoc._x += 32;
}
if (alienoc.goind._currentframe == 3) {
alienoc._x += 51;
}
if (alienoc.goind._currentframe == 4) {
alienoc._x -= 3;
}
if (alienoc.goind._currentframe == 5) {
alienoc._x -= 10;
}
if (alienoc.goind._currentframe == 6) {
alienoc._x -= 15;
}
if (alienoc.goind._currentframe == 7) {
alienoc._x -= 8;
}
if (alienoc.goini._currentframe == 2) {
alienoc._x -= 32;
}
if (alienoc.goini._currentframe == 3) {
alienoc._x -= 51;
}
if (alienoc.goini._currentframe == 4) {
alienoc._x += 3;
}
if (alienoc.goini._currentframe == 5) {
alienoc._x += 10;
}
if (alienoc.goini._currentframe == 6) {
alienoc._x += 18;
}
if (alienoc.goini._currentframe == 7) {
alienoc._x += 12;
}
if (alienoc.goind._currentframe == 12) {
alienoc.gotoAndStop(3);
alienoc.fase = 4;
}
if (alienoc.goini._currentframe == 12) {
alienoc.gotoAndStop(4);
alienoc.fase = 5;
}
if (alienoc.fase == 4 || alienoc.fase == 5) {
if (alienoc.downup == 0) {
alienoc._y += 5;
alienoc.timeat += 1;
}
if (alienoc.downup == 1) {
alienoc._y -= 5;
alienoc.timeat += 1;
}
if (alienoc.downup == 0 && alienoc._y > 450) {
alienoc.downup = 1;
}
if (alienoc.downup == 1 && alienoc._y < 250) {
alienoc.downup = 0;
}
}
if (alienoc.timeat >= 60 && alienoc.fase == 4) {
typeats = Math.floor(Math.random() * 3);
if (typeats == 0) {
alienoc.fase = 6;
alienoc.gotoAndStop(5);
}
if (typeats == 1) {
alienoc.fase = 7;
alienoc.gotoAndStop(7);
}
if (typeats == 2) {
alienoc.fase = 8;
alienoc.gotoAndStop(9);
}
alienoc.timeat = 0;
}
if (alienoc.timeat >= 60 && alienoc.fase == 5) {
typeats = Math.floor(Math.random() * 3);
if (typeats == 0) {
alienoc.fase = 9;
alienoc.gotoAndStop(6);
}
if (typeats == 1) {
alienoc.fase = 10;
alienoc.gotoAndStop(8);
}
if (typeats == 2) {
alienoc.fase = 11;
alienoc.gotoAndStop(10);
}
alienoc.timeat = 0;
}
if (alienoc.fase == 6) {
if (alienoc.atkd._currentframe == 18) {
alienoc._x += 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atkd._currentframe == 19 || alienoc.atkd._currentframe == 20 || alienoc.atkd._currentframe == 21 || alienoc.atkd._currentframe == 22 || alienoc.atkd._currentframe == 23) {
alienoc._x += 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atkd._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 7) {
if (alienoc.atkd._currentframe == 18) {
alienoc._x += 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atkd._currentframe == 19 || alienoc.atkd._currentframe == 20 || alienoc.atkd._currentframe == 21 || alienoc.atkd._currentframe == 22 || alienoc.atkd._currentframe == 23) {
alienoc._x += 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atkd._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 8) {
if (alienoc.atkd._currentframe == 18) {
alienoc._x += 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atkd._currentframe == 19 || alienoc.atkd._currentframe == 20 || alienoc.atkd._currentframe == 21 || alienoc.atkd._currentframe == 22 || alienoc.atkd._currentframe == 23) {
alienoc._x += 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atkd._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 9) {
if (alienoc.atki._currentframe == 18) {
alienoc._x -= 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atki._currentframe == 19 || alienoc.atki._currentframe == 20 || alienoc.atki._currentframe == 21 || alienoc.atki._currentframe == 22 || alienoc.atki._currentframe == 23) {
alienoc._x -= 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atki._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 10) {
if (alienoc.atki._currentframe == 18) {
alienoc._x -= 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atki._currentframe == 19 || alienoc.atki._currentframe == 20 || alienoc.atki._currentframe == 21 || alienoc.atki._currentframe == 22 || alienoc.atki._currentframe == 23) {
alienoc._x -= 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atki._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 11) {
if (alienoc.atki._currentframe == 18) {
alienoc._x -= 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atki._currentframe == 19 || alienoc.atki._currentframe == 20 || alienoc.atki._currentframe == 21 || alienoc.atki._currentframe == 22 || alienoc.atki._currentframe == 23) {
alienoc._x -= 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atki._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.hpen <= 0 && alienoc.fase != 12 && alienoc.fase != 13) {
alienoc.fase = 12;
tempscore += alienoc.scoredrop;
expe += alienoc.expdrop;
firefly += 1;
}
if (alienoc.fase == 12 && alienoc.eny == 7) {
if (_root.game.playerfull._x < alienoc._x) {
alienoc.gotoAndStop(12);
} else {
if (_root.game.playerfull._x > alienoc._x) {
alienoc.gotoAndStop(11);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienoc.item1;
}
if (randitem == 4) {
itemname = alienoc.item2;
}
if (randitem == 5) {
itemname = alienoc.item3;
}
profun = alienoc.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'mount': 10, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienoc.fase = 13;
}
if (alienoc.death._currentframe == 10) {
alienoc.removeMovieClip();
enemylist.splice(g, 1);
}
}
if (alienoc.eny == 8) {
if (alienoc.hpen > 1500 && bosstrap == false) {
spedyb = 3;
}
if (alienoc.hpen < 1500 && bosstrap == false) {
bosstrap = true;
magnetac = true;
magnetnum = 3;
spedyb = 9;
}
if (alienoc.fase == 1) {
if (alienoc.getin._currentframe == 9) {
alienoc.gotoAndStop(2);
alienoc.fase = 2;
}
}
if (alienoc.fase == 2) {
alienoc.gotoAndStop(2);
alienoc.timeat += 1;
if (alienoc._x >= 560) {
alienoc.righleft = 1;
}
if (alienoc._x <= 80) {
alienoc.righleft = 0;
}
if (alienoc.righleft == 0) {
alienoc._x += spedyb;
}
if (alienoc.righleft == 1) {
alienoc._x -= spedyb;
}
if (alienoc._y >= 430) {
alienoc.downup = 1;
}
if (alienoc._y <= 250) {
alienoc.downup = 0;
}
if (alienoc.downup == 0) {
alienoc._y += spedyb;
}
if (alienoc.downup == 1) {
alienoc._y -= spedyb;
}
if (alienoc.timeat == 48) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.timeat == 96) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.timeat == 144) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.timeat == 192) {
typeats = Math.floor(Math.random() * 2);
if (typeats == 0) {
alienoc.gotoAndStop(3);
alienoc.fase = 3;
}
if (typeats == 1) {
alienoc.gotoAndStop(4);
alienoc.fase = 4;
}
alienoc.timeat = 0;
}
}
if (alienoc.fase == 3) {
if (alienoc.spin._currentframe == 21) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 50, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y - 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 23) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 20, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 100, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 25) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 20, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 27) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 50, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 31) {
alienoc.gotoAndStop(2);
alienoc.fase = 2;
}
}
if (alienoc.fase == 4) {
if (alienoc.medi._currentframe == 9) {
specialboss = true;
}
if (alienoc.medi._currentframe == 38) {
alienoc.gotoAndStop(2);
alienoc.fase = 2;
}
}
if (alienoc.hpen <= 0 && alienoc.fase != 5 && alienoc.fase != 6) {
alienoc.fase = 5;
tempscore += alienoc.scoredrop;
expe += alienoc.expdrop;
octron += 1;
}
if (alienoc.fase == 5 && alienoc.eny == 8) {
alienoc.gotoAndStop(5);
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 0 || randitem == 1 || randitem == 3 || randitem == 2) {
itemname = alienoc.item1;
}
if (randitem == 4) {
itemname = alienoc.item2;
}
if (randitem == 5) {
itemname = alienoc.item3;
}
profun = alienoc.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'mount': 300, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'mater': 20, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienoc.fase = 6;
}
if (alienoc.die._currentframe == 15) {
alienoc.removeMovieClip();
enemylist.splice(g, 1);
}
}
if (alienoc.eny == 9) {
if (alienoc.fase == 1) {
altuen = Math.floor(Math.random() * 200);
dismun = Math.floor(Math.random() * 600);
alienoc._y = 250 + altuen;
alienoc._x = 0.5 + dismun;
alienoc.fase = 2;
_root.bgussa.gotoAndPlay(2);
}
if (alienoc.fase == 2) {
if (alienoc.rotap._currentframe == 10) {
alienoc.gotoAndStop(2);
alienoc.fase = 3;
}
}
if (alienoc.hpen <= 0 && alienoc.fase != 5 && alienoc.fase != 6) {
alienoc.fase = 5;
tempscore += alienoc.scoredrop;
expe += alienoc.expdrop;
}
if (alienoc.fase == 5 && alienoc.eny == 9) {
_root.endieso.gotoAndPlay(2);
alienoc.gotoAndStop(3);
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 0 || randitem == 1 || randitem == 3 || randitem == 2) {
itemname = alienoc.item1;
}
if (randitem == 4) {
itemname = alienoc.item2;
}
if (randitem == 5) {
itemname = alienoc.item3;
}
profun = alienoc.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'mount': 300, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'mater': 20, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienoc.fase = 6;
}
if (alienoc.die._currentframe == 14) {
alienoc.removeMovieClip();
enemylist.splice(g, 1);
}
}
if (alienoc.eny == 10) {
if (alienoc.fase == 1) {
alienoc._y = 350.5;
alienoc._x = 550.5;
alienoc.fase = 2;
_root.bgussa.gotoAndPlay(2);
}
if (alienoc.fase == 1.5) {
alienoc._y = 350.5;
alienoc._x = 150.5;
alienoc.fase = 2;
alienoc.gotoAndStop(2);
_root.bgussa.gotoAndPlay(2);
}
if (alienoc.fase == 2) {
if (alienoc.apiz._currentframe == 14) {
alienoc.gotoAndStop(3);
alienoc.timer = 0;
}
if (alienoc.apde._currentframe == 14) {
alienoc.gotoAndStop(4);
alienoc.timer = 0;
}
if (alienoc._currentframe == 3) {
alienoc.timer += 1;
}
if (alienoc._currentframe == 4) {
alienoc.timer += 1;
}
if (alienoc._currentframe == 3 && alienoc.timer == 60) {
alienoc.timer = 0;
alienoc.gotoAndStop(5);
}
if (alienoc._currentframe == 4 && alienoc.timer == 60) {
alienoc.timer = 0;
alienoc.gotoAndStop(6);
}
if (alienoc.ruiz._currentframe == 5) {
alienoc.fase = 3;
ranco = Math.floor(Math.random() * 80);
limitrun = 150 + ranco;
}
if (alienoc.rude._currentframe == 5) {
alienoc.fase = 3;
ranco = Math.floor(Math.random() * 80);
limitrun = 150 + ranco;
}
}
if (alienoc.fase == 3) {
alienoc.timer += 1;
if (distalx < 40 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
if (alienoc._currentframe == 5 && alienoc.boing == 0) {
alienoc._y -= 4;
alienoc._x -= 30;
}
if (alienoc._currentframe == 5 && alienoc.boing == 1) {
alienoc._y += 4;
alienoc._x -= 30;
}
if (alienoc._currentframe == 6 && alienoc.boing == 0) {
alienoc._y -= 4;
alienoc._x += 30;
}
if (alienoc._currentframe == 6 && alienoc.boing == 1) {
alienoc._y += 4;
alienoc._x += 30;
}
if (alienoc._x >= 590) {
alienoc.gotoAndStop(5);
alienoc.ruiz.gotoAndPlay(5);
}
if (alienoc._x <= 60) {
alienoc.gotoAndStop(6);
alienoc.rude.gotoAndPlay(5);
}
if (alienoc._y >= 430) {
alienoc.boing = 0;
}
if (alienoc._y <= 250) {
alienoc.boing = 1;
}
if (alienoc._currentframe == 5 && alienoc.timer == limitrun) {
alienoc.timer = 0;
alienoc.fase = 4;
alienoc.ruiz.gotoAndPlay(8);
}
if (alienoc._currentframe == 6 && alienoc.timer == limitrun) {
alienoc.timer = 0;
alienoc.fase = 4;
alienoc.rude.gotoAndPlay(8);
}
}
if (alienoc.fase == 4) {
if (alienoc.ruiz._currentframe == 12) {
alienoc.gotoAndStop(3);
alienoc.timer = 0;
}
if (alienoc.rude._currentframe == 12) {
alienoc.gotoAndStop(4);
alienoc.timer = 0;
}
if (alienoc._currentframe == 3) {
alienoc.timer += 1;
}
if (alienoc._currentframe == 4) {
alienoc.timer += 1;
}
if (alienoc._currentframe == 3 && alienoc.timer == 60) {
alienoc.timer = 0;
nexta = Math.floor(Math.random() * 2);
if (nexta == 0) {
alienoc.gotoAndStop(7);
alienoc.fase = 5;
}
if (nexta == 1) {
alienoc.gotoAndStop(9);
alienoc.fase = 6;
}
}
if (alienoc._currentframe == 4 && alienoc.timer == 60) {
alienoc.timer = 0;
nexta = Math.floor(Math.random() * 2);
if (nexta == 0) {
alienoc.gotoAndStop(8);
alienoc.fase = 5;
}
if (nexta == 1) {
alienoc.gotoAndStop(10);
alienoc.fase = 6;
}
}
}
if (alienoc.fase == 5) {
if (alienoc.bliz._currentframe == 14) {
alienoc.fase = 2;
alienoc.gotoAndStop(5);
}
if (alienoc.blde._currentframe == 14) {
alienoc.fase = 2;
alienoc.gotoAndStop(6);
}
if (alienoc.bliz._currentframe == 11) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 1, '_y': alienoc._y - 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 1, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 1, '_y': alienoc._y - 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 2, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 1, '_y': alienoc._y + 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 3, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 1, '_y': alienoc._y + 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 4, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.blde._currentframe == 11) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 1, '_y': alienoc._y - 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 1, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 1, '_y': alienoc._y - 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 2, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 1, '_y': alienoc._y + 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 3, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 1, '_y': alienoc._y + 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 4, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.bliz._currentframe == 13) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 1, '_y': alienoc._y - 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 5, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 1, '_y': alienoc._y - 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 6, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 1, '_y': alienoc._y + 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 7, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 1, '_y': alienoc._y + 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 8, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.blde._currentframe == 13) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 1, '_y': alienoc._y - 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 5, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 1, '_y': alienoc._y - 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 6, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 1, '_y': alienoc._y + 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 7, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 1, '_y': alienoc._y + 1.5, 'hpen': 0, 'eny': 60, 'siten': 0, 'fase': 8, 'exis': 1, 'din': 70});
sballlist.push('newalien' + deepen);
++deepen;
}
}
if (alienoc.fase == 6) {
if (alienoc.diiz._currentframe == 6) {
_root.bgussa.gotoAndPlay(2);
}
if (alienoc.dide._currentframe == 6) {
_root.bgussa.gotoAndPlay(2);
}
if (alienoc.diiz._currentframe == 11) {
randix = Math.floor(Math.random() * 550);
randiy = Math.floor(Math.random() * 250);
alienoc._y = randiy + 250.5;
alienoc._x = randix + 0.5;
}
if (alienoc.dide._currentframe == 11) {
randix = Math.floor(Math.random() * 550);
randiy = Math.floor(Math.random() * 250);
alienoc._y = randiy + 250.5;
alienoc._x = randix + 0.5;
}
if (alienoc.diiz._currentframe == 12 || alienoc.diiz._currentframe == 14) {
_root.bosyball.gotoAndPlay(2);
randix = Math.floor(Math.random() * 550);
randiy = Math.floor(Math.random() * 200);
_root.game.videde.duplicateMovieClip('newalien' + deepen, deepen, {'_x': randix + 25.5, '_y': randiy + 250.5, 'hpen': 0, 'eny': 70, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.dide._currentframe == 12 || alienoc.dide._currentframe == 14) {
_root.bosyball.gotoAndPlay(2);
randix = Math.floor(Math.random() * 550);
randiy = Math.floor(Math.random() * 200);
_root.game.videde.duplicateMovieClip('newalien' + deepen, deepen, {'_x': randix + 25.5, '_y': randiy + 250.5, 'hpen': 0, 'eny': 70, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.diiz._currentframe == 17) {
alienoc.fase = 2;
_root.bgussa.gotoAndPlay(2);
alienoc.gotoAndStop(1);
}
if (alienoc.dide._currentframe == 17) {
alienoc.fase = 2;
_root.bgussa.gotoAndPlay(2);
alienoc.gotoAndStop(2);
}
}
if (alienoc.hpen <= 2000 && alienoc.ori == 1 && alienoc._currentframe == 3) {
alienoc.ori = 0;
alienoc.gotoAndStop(11);
}
if (alienoc.hpen <= 2000 && alienoc.ori == 1 && alienoc._currentframe == 4) {
alienoc.ori = 0;
alienoc.gotoAndStop(12);
}
if (alienoc.cliz._currentframe == 12) {
_root.game.bosstwo.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 49, '_y': alienoc._y, 'hpen': 2000, 'eny': 10, 'siten': 0, 'fase': 2, 'atakan': 0, 'item1': 1, 'item2': 1, 'item3': 2, 'scoredrop': 500, 'expdrop': 2000, 'exis': 1, 'signs': 0, 'timer': 0, 'boing': 0, 'ori': 0});
enemylist.push('newalien' + deepen);
tempo = game['newalien' + deepen];
tempo.gotoAndStop(3);
alienoc.gotoAndStop(4);
alienoc._x -= 42;
++deepen;
alienoc.fase = 2;
}
if (alienoc.clde._currentframe == 12) {
_root.game.bosstwo.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 42, '_y': alienoc._y, 'hpen': 2000, 'eny': 10, 'siten': 0, 'fase': 2, 'atakan': 0, 'item1': 1, 'item2': 1, 'item3': 2, 'scoredrop': 500, 'expdrop': 2000, 'exis': 1, 'signs': 0, 'timer': 0, 'boing': 0, 'ori': 0});
enemylist.push('newalien' + deepen);
tempo = game['newalien' + deepen];
tempo.gotoAndStop(4);
alienoc.gotoAndStop(3);
alienoc._x -= 49;
++deepen;
alienoc.fase = 2;
}
if (alienoc.hpen <= 0 && alienoc.fase != 7 && alienoc.fase != 8) {
alienoc.fase = 7;
tempscore += alienoc.scoredrop;
expe += alienoc.expdrop;
lily += 1;
}
if (alienoc.fase == 7 && alienoc.eny == 10) {
if (alienoc._currentframe == 1 || alienoc._currentframe == 3 || alienoc._currentframe == 5 || alienoc._currentframe == 7 || alienoc._currentframe == 9 || alienoc._currentframe == 11) {
alienoc.gotoAndStop(13);
}
if (alienoc._currentframe == 2 || alienoc._currentframe == 4 || alienoc._currentframe == 6 || alienoc._currentframe == 8 || alienoc._currentframe == 10 || alienoc._currentframe == 12) {
alienoc.gotoAndStop(14);
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 0 || randitem == 1 || randitem == 3 || randitem == 2) {
itemname = alienoc.item1;
}
if (randitem == 4) {
itemname = alienoc.item2;
}
if (randitem == 5) {
itemname = alienoc.item3;
}
profun = alienoc.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40.5, 'mount': 1000, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40.5, 'mater': 20, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40.5, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienoc.fase = 8;
}
if (alienoc.muiz._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienoc.muiz._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienoc.muiz._currentframe == 19) {
alienoc.removeMovieClip();
enemylist.splice(g, 1);
}
if (alienoc.mude._currentframe == 19) {
alienoc.removeMovieClip();
enemylist.splice(g, 1);
}
}
++g;
}
i = 0;
while (i < sballlist.length) {
ballx = _root.game[sballlist[i]];
ballx.swapDepths(ballx._y * ballx._y);
dx = _root.game.playerfull._x - ballx._x;
dy = _root.game.playerfull._y - ballx._y;
px = ballx.xgo - ballx._x;
py = ballx.ygo - ballx._y;
rx = ballx.xgo - ballx.exgo;
ry = ballx.ygo - ballx.eygo;
angy = Math.atan2(ry, rx);
vx = Math.cos(angy) * 15;
vy = Math.sin(angy) * 15;
distal = Math.sqrt(dx * dx + dy * dy);
pistal = Math.sqrt(px * px + py * py);
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
ranspace = Math.floor(Math.random() * 100);
if (ballx.eny == 666) {
if (distalx < 40 && distaly < 40) {
if (ballx.fase == 1) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': ballx._x + 1.5, '_y': ballx._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (ballx.fase == 2) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 10;
if (power < 100) {
power += 1;
}
}
}
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (ballx.fase == 3) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 5;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
slow = true;
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
}
}
if (ballx.eny == 50) {
ballx.swapDepths(ballx._y * ballx._y * 2);
if (ballx._x < ballx.xgo) {
ballx._x += vx;
}
if (ballx._x > ballx.xgo) {
ballx._x += vx;
}
if (ballx._y < ballx.ygo) {
ballx._y += vy;
}
if (ballx._y > ballx.ygo) {
ballx._y += vy;
}
if (ballx._y > 580 || ballx._x < -50 || ballx._x > 690) {
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (distalx < 40 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': _root.game.playerfull._x + 1.5, '_y': _root.game.playerfull._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
}
}
if (ballx.eny == 60) {
ballx.swapDepths(ballx._y * ballx._y * 2);
if (ballx.fase == 1) {
ballx.din -= 1;
ballx._x -= 8;
}
if (ballx.fase == 2) {
ballx.din -= 1;
ballx._x += 8;
}
if (ballx.fase == 3) {
ballx.din -= 1;
ballx._y -= 8;
}
if (ballx.fase == 4) {
ballx.din -= 1;
ballx._y += 8;
}
if (ballx.fase == 5) {
ballx.din -= 1;
ballx._x += 5;
ballx._y += 5;
}
if (ballx.fase == 6) {
ballx.din -= 1;
ballx._x += 5;
ballx._y -= 5;
}
if (ballx.fase == 7) {
ballx.din -= 1;
ballx._x -= 5;
ballx._y -= 5;
}
if (ballx.fase == 8) {
ballx.din -= 1;
ballx._x -= 5;
ballx._y += 5;
}
if (distalx < 40 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 10;
if (power < 100) {
power += 1;
}
}
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': ballx._x + 1.5, '_y': ballx._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
}
if (ballx.din < 0 || ballx._y < 250) {
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
}
if (ballx.eny == 70) {
ballx.swapDepths(ballx._y * ballx._y);
if (distalx < 30 && distaly < 40 && ballx._currentframe == 6) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 10;
if (power < 100) {
power += 1;
}
}
ballx.play();
}
}
if (ballx._currentframe == 10) {
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (enemylist.length == 0) {
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
}
if (enemylist.length == 0) {
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
++i;
}
}
function takeitems() {
i = 0;
while (i < itemappear.length) {
itemob = _root.game[itemappear[i]];
ix = _root.game.playerfull._x - itemob._x;
iy = _root.game.playerfull._y - itemob._y;
idistal = Math.sqrt(ix * ix + iy * iy);
idistalx = Math.sqrt(ix * ix);
idistaly = Math.sqrt(iy * iy);
if (itemob._x < 0) {
itemob._x = 50;
}
if (itemob._x > 640) {
itemob._x = 600;
}
if (itemob._y > 480) {
itemob._y = 440;
}
if (itemob.exis != 1) {
itemappear.splice(i, 1);
}
if (Key.isDown(90) && idistalx < 60 && idistaly < 50 && presy == false || Key.isDown(88) && idistalx < 60 && idistaly < 50 && presy == false) {
if (itemob.typeob == 1) {
coinhave += itemob.mount;
_root.cachso.gotoAndPlay(2);
}
if (itemob.typeob == 2) {
if (knucleuse == true) {
expw1 += itemob.mater;
}
if (sworduse == true) {
expw2 += itemob.mater;
}
if (gunuse == true) {
expw3 += itemob.mater;
}
_root.cachso.gotoAndPlay(2);
}
if (itemob.typeob == 3) {
dañoplayer -= 50;
_root.regeso.gotoAndPlay(2);
}
itemob.removeMovieClip();
itemappear.splice(i, 1);
break;
}
++i;
}
}
function experietolv() {
gemillo = Math.floor(expetogo / 100000000);
geemildeci = Math.floor((expetogo - gemillo * 100000000) / 10000000);
geemiluni = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000) / 1000000);
geemil = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000) / 100000);
gemildeci = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000) / 10000);
gemiluni = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000) / 1000);
gemil = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000 - gemiluni * 1000) / 100);
gedeci = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000 - gemiluni * 1000 - gemil * 100) / 10);
geuni = Math.floor(expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000 - gemiluni * 1000 - gemil * 100 - gedeci * 10);
_root.game.itembase.geouni.gotoAndStop(geuni + 1);
_root.game.itembase.geodeci.gotoAndStop(gedeci + 1);
_root.game.itembase.geomil.gotoAndStop(gemil + 1);
_root.game.itembase.geomiluni.gotoAndStop(gemiluni + 1);
_root.game.itembase.geomildeci.gotoAndStop(gemildeci + 1);
_root.game.itembase.geocmil.gotoAndStop(geemil + 1);
_root.game.itembase.geocmiluni.gotoAndStop(geemiluni + 1);
_root.game.itembase.geocmildeci.gotoAndStop(geemildeci + 1);
_root.game.itembase.geomillo.gotoAndStop(gemillo + 1);
if (gemillo > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 100;
_root.game.itembase.geocmildeci._alpha = 100;
_root.game.itembase.geomillo._alpha = 100;
} else {
if (geemildeci > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 100;
_root.game.itembase.geocmildeci._alpha = 100;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (geemiluni > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 100;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (geemil > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gemildeci > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gemiluni > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gemil > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gedeci > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 0;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.itembase.geomillo._alpha = 0;
} else {
if (geuni > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 0;
_root.game.itembase.geomil._alpha = 0;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (geuni == 0 && gedeci == 0 && gemil == 0 && gemiluni == 0 && gemildeci == 0 && geemil == 0 && geemiluni == 0 && geemildeci == 0 && gemillo == 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 0;
_root.game.itembase.geomil._alpha = 0;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
}
function mineraltolv() {
gsemillo = Math.floor(mineraltogo / 100000000);
gseemildeci = Math.floor((mineraltogo - gsemillo * 100000000) / 10000000);
gseemiluni = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000) / 1000000);
gseemil = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000) / 100000);
gsemildeci = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000) / 10000);
gsemiluni = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000) / 1000);
gsemil = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000 - gsemiluni * 1000) / 100);
gsedeci = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000 - gsemiluni * 1000 - gsemil * 100) / 10);
gseuni = Math.floor(mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000 - gsemiluni * 1000 - gsemil * 100 - gsedeci * 10);
_root.game.itembase.gseouni.gotoAndStop(gseuni + 1);
_root.game.itembase.gseodeci.gotoAndStop(gsedeci + 1);
_root.game.itembase.gseomil.gotoAndStop(gsemil + 1);
_root.game.itembase.gseomiluni.gotoAndStop(gsemiluni + 1);
_root.game.itembase.gseomildeci.gotoAndStop(gsemildeci + 1);
_root.game.itembase.gseocmil.gotoAndStop(gseemil + 1);
_root.game.itembase.gseocmiluni.gotoAndStop(gseemiluni + 1);
_root.game.itembase.gseocmildeci.gotoAndStop(gseemildeci + 1);
_root.game.itembase.gseomillo.gotoAndStop(gsemillo + 1);
if (gsemillo > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 100;
_root.game.itembase.gseocmildeci._alpha = 100;
_root.game.itembase.gseomillo._alpha = 100;
} else {
if (gseemildeci > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 100;
_root.game.itembase.gseocmildeci._alpha = 100;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseemiluni > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 100;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseemil > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsemildeci > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsemiluni > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsemil > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsedeci > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 0;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseuni > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 0;
_root.game.itembase.gseomil._alpha = 0;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseuni == 0 && gsedeci == 0 && gsemil == 0 && gsemiluni == 0 && gsemildeci == 0 && gseemil == 0 && gseemiluni == 0 && gseemildeci == 0 && gsemillo == 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 0;
_root.game.itembase.gseomil._alpha = 0;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
}
function combocon() {
timehit += 1;
if (combot == true) {
timehit = 0;
combot = false;
}
if (timehit > 72) {
hitr = Math.floor(hits / 10);
score += tempscore + tempscore * hitr;
tempscore = 0;
combot = false;
hits = 0;
}
hitcien = Math.floor(hits / 100);
hitde = Math.floor((hits - hitcien * 100) / 10);
hitun = Math.floor(hits - hitde * 10 - hitcien * 100);
_root.game.combosign.combocien.gotoAndStop(hitcien + 1);
_root.game.combosign.combodeci.gotoAndStop(hitde + 1);
_root.game.combosign.combouni.gotoAndStop(hitun + 1);
if (hits > 1) {
if (_root.game.playerfull._x < 320) {
_root.game.combosign._x = 570.5;
_root.game.combosign.combocien._x = -165;
_root.game.combosign.combodeci._x = -120;
_root.game.combosign.combouni._x = -76;
}
if (_root.game.playerfull._x > 320 && hits < 10) {
_root.game.combosign._x = 70.5;
_root.game.combosign.combouni._x = 81;
}
if (_root.game.playerfull._x > 320 && hits > 9 && hits < 100) {
_root.game.combosign._x = 70.5;
_root.game.combosign.combodeci._x = 81;
_root.game.combosign.combouni._x = 126;
}
if (_root.game.playerfull._x > 320 && hits > 99) {
_root.game.combosign._x = 70.5;
_root.game.combosign.combocien._x = 81;
_root.game.combosign.combodeci._x = 126;
_root.game.combosign.combouni._x = 170;
}
}
if (hits < 1) {
_root.game.combosign._x = 900;
}
if (hitcien > 0) {
_root.game.combosign.combocien._alpha = 100;
_root.game.combosign.combodeci._alpha = 100;
_root.game.combosign.combouni._alpha = 100;
} else {
if (hitde > 0) {
_root.game.combosign.combocien._alpha = 0;
_root.game.combosign.combodeci._alpha = 100;
_root.game.combosign.combouni._alpha = 100;
} else {
if (hitde <= 0) {
_root.game.combosign.combocien._alpha = 0;
_root.game.combosign.combodeci._alpha = 0;
_root.game.combosign.combouni._alpha = 100;
}
}
}
}
function damagefun() {
profund = alienob.getDepth();
_root.game.damageco.duplicateMovieClip('dmgc' + dmgn, profund + 1, {'_alpha': 0, '_x': Math.floor(_root.alienob._x), '_y': Math.floor(_root.alienob._y - 40) + 0.5, 'dmgself': damagedo});
damageappear.push('dmgc' + dmgn);
++dmgn;
}
function gamagemove() {
r = 0;
while (r < damageappear.length) {
dmgclip = _root.game[damageappear[r]];
if (dmgclip._currentframe == 1) {
dhitmil = Math.floor(dmgclip.dmgself / 1000);
dhitcien = Math.floor((dmgclip.dmgself - dhitmil * 1000) / 100);
dhitde = Math.floor((dmgclip.dmgself - dhitcien * 100 - dhitmil * 1000) / 10);
dhitun = Math.floor(dmgclip.dmgself - dhitde * 10 - dhitcien * 100 - dhitmil * 1000);
dmgclip.damamil.gotoAndStop(dhitmil + 1);
dmgclip.damacenti.gotoAndStop(dhitcien + 1);
dmgclip.damadeci.gotoAndStop(dhitde + 1);
dmgclip.damauni.gotoAndStop(dhitun + 1);
if (dhitmil > 0) {
dmgclip.damamil._alpha = 100;
dmgclip.damacenti._alpha = 100;
dmgclip.damadeci._alpha = 100;
dmgclip.damauni._alpha = 100;
} else {
if (dhitcien > 0) {
dmgclip.damamil._alpha = 0;
dmgclip.damacenti._alpha = 100;
dmgclip.damadeci._alpha = 100;
dmgclip.damauni._alpha = 100;
} else {
if (dhitde > 0) {
dmgclip.damamil._alpha = 0;
dmgclip.damacenti._alpha = 0;
dmgclip.damadeci._alpha = 100;
dmgclip.damauni._alpha = 100;
} else {
if (dhitde <= 0) {
dmgclip.damamil._alpha = 0;
dmgclip.damacenti._alpha = 0;
dmgclip.damadeci._alpha = 0;
dmgclip.damauni._alpha = 100;
}
}
}
}
dmgclip._alpha = 100;
}
dmgclip._y -= 5;
newprof = dmgclip.getDepth();
newprof += 1;
dmgclip.swapDepths(newprof);
dmgclip.nextFrame();
if (dmgclip._currentframe == 8) {
dmgclip._alpha = 80;
}
if (dmgclip._currentframe == 9) {
dmgclip._alpha = 60;
}
if (dmgclip._currentframe == 10) {
dmgclip._alpha = 40;
}
if (dmgclip._currentframe == 11) {
dmgclip._alpha = 0;
}
if (dmgclip._currentframe == 12) {
dmgclip.removeMovieClip();
damageappear.splice(r, 1);
}
++r;
}
}
function scrollmove() {
if (playerbe[2] == 2) {
if (playerbe[0] == 4 && playerbe[1] == 0) {
lv1_1();
}
if (playerbe[0] == 3 && playerbe[1] == 0) {
lv1_2();
}
if (playerbe[0] == 4 && playerbe[1] == 1) {
lv1_3();
}
if (playerbe[0] == 4 && playerbe[1] == 2) {
lv1_4();
}
if (playerbe[0] == 3 && playerbe[1] == 2) {
lv1_5();
}
if (playerbe[0] == 3 && playerbe[1] == 3) {
lv1_6();
}
if (playerbe[0] == 2 && playerbe[1] == 3) {
lv1_7();
}
if (playerbe[0] == 4 && playerbe[1] == 3) {
lv1_8();
}
if (playerbe[0] == 1 && playerbe[1] == 3) {
lv1_9();
}
if (playerbe[0] == 1 && playerbe[1] == 4) {
lv1_10();
}
if (playerbe[0] == 2 && playerbe[1] == 2) {
lv1_11();
}
if (playerbe[0] == 1 && playerbe[1] == 2) {
lv1_12();
}
if (playerbe[0] == 0 && playerbe[1] == 2) {
lv1_13();
}
if (playerbe[0] == 2 && playerbe[1] == 4) {
lv1_14();
}
if (playerbe[0] == 3 && playerbe[1] == 4) {
lv1_15();
}
if (playerbe[0] == 2 && playerbe[1] == 5) {
lv1_16();
}
if (playerbe[0] == 1 && playerbe[1] == 5) {
lv1_17();
}
if (playerbe[0] == 0 && playerbe[1] == 5) {
lv1_18();
}
if (playerbe[0] == 4 && playerbe[1] == 4) {
lv1_19();
}
if (playerbe[0] == 4 && playerbe[1] == 5) {
lv1_20();
}
if (playerbe[0] == 4 && playerbe[1] == 6) {
lv1_21();
}
}
if (_root.game.playerfull._x > 320 && derep > 640 && Key.isDown(39) && movingmap == true && atacktime == false && blocks == false) {
_root.game.backg._x -= 5;
speedup = 0;
walkspeed = 0;
} else {
if (_root.game.playerfull._x < 320 && izqp < -10 && Key.isDown(37) && movingmap == true && atacktime == false && blocks == false) {
_root.game.backg._x += 5;
speedup = 0;
walkspeed = 0;
} else {
walkspeed = 10;
}
}
}
function lv1_1() {
if (entrance == 1 || entrance == 2 || entrance == 3) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 1, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 0, 2];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_2() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
shopa = true;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 0, 2];
local_data.data.entrance = 3;
datasave();
}
}
}
}
function lv1_3() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 0, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 2, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 645 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [3, 3, 3, 1, 3, 3, 3, 3, 1, 3, 3, 3, 3];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < 5 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 0, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 2, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > -5 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [3, 3, 3, 3, 3, 3, 1, 3, 3, 3, 3, 1, 3, 3, 3, 3];
enemyon = enemytogo.length;
}
if (_root.game.backg._x > 635 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 3, 3, 3, 1];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
}
function lv1_4() {
if (entrance == 1) {
if (fbarrier1 == 0) {
_root.game.backg.pad1.florb._alpha = 100;
}
if (fbarrier1 == 1) {
_root.game.backg.pad1.florb._alpha = 0;
}
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false && fbarrier1 == 1)) break;
local_data.data.playerbe = [3, 2, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 1, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 3, 2];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 2) {
if (fbarrier1 == 0) {
_root.game.backg.pad1.florb._alpha = 100;
}
if (fbarrier1 == 1) {
_root.game.backg.pad1.florb._alpha = 0;
}
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false && fbarrier1 == 1)) break;
local_data.data.playerbe = [3, 2, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 1, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 3, 2];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_5() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 2, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 3, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 645 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 2, 2, 3, 3, 3, 1, 1, 1, 3, 3, 3, 2, 2];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < 5 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 3, 3, 1, 1, 1, 6, 1, 1, 1, 3, 3, 3, 1, 1, 1];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 2, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 3, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > -5 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 3, 3, 3, 1, 2, 2, 3, 3, 3, 1, 1, 1, 3, 2, 2];
enemyon = enemytogo.length;
}
if (_root.game.backg._x > 635 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 1, 1, 1, 6, 1, 1, 1, 3, 3, 3, 1, 1, 3, 3, 3, 3, 3, 3];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
}
function lv1_6() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
magneton = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
magneton = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 2, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 3, 2];
local_data.data.entrance = 4;
datasave();
}
}
if (_root.game.backg._x < 645 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [4, 4, 4, 4, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 4, 4, 4, 1, 1, 1, 1, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 2;
}
if (_root.game.backg._x < 5 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 3, 3, 3, 3, 1, 1, 1, 1, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 1, 3, 1, 3, 1, 3, 1];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 3;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
magneton = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 2, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 3, 2];
local_data.data.entrance = 4;
datasave();
}
}
if (_root.game.backg._x > -5 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [4, 4, 4, 4, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 4, 4, 4, 1, 1, 1, 1, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 2;
}
if (_root.game.backg._x > 635 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 3, 3, 3, 3, 1, 1, 1, 1, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 1, 3, 1, 3, 1, 3, 1];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 3;
_root.game.gosign._x = 800;
}
}
}
function lv1_7() {
if (entrance == 4) {
if (fbarrier2 == 0) {
_root.game.backg.pisos0.florb._alpha = 100;
}
if (fbarrier2 == 1) {
_root.game.backg.pisos0.florb._alpha = 0;
}
if (fbarrier3 == 0) {
_root.game.backg.pisos3.florb._alpha = 100;
}
if (fbarrier3 == 1) {
_root.game.backg.pisos3.florb._alpha = 0;
}
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 3, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [1, 3, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && fbarrier2 == 1)) break;
local_data.data.playerbe = [2, 2, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && fbarrier3 == 1)) break;
local_data.data.playerbe = [2, 4, 2];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 1) {
if (fbarrier2 == 0) {
_root.game.backg.pisos0.florb._alpha = 100;
}
if (fbarrier2 == 1) {
_root.game.backg.pisos0.florb._alpha = 0;
}
if (fbarrier3 == 0) {
_root.game.backg.pisos3.florb._alpha = 100;
}
if (fbarrier3 == 1) {
_root.game.backg.pisos3.florb._alpha = 0;
}
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 3, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [1, 3, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && fbarrier2 == 1)) break;
local_data.data.playerbe = [2, 2, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && fbarrier3 == 1)) break;
local_data.data.playerbe = [2, 4, 2];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 3) {
if (fbarrier2 == 0) {
_root.game.backg.pisos0.florb._alpha = 100;
}
if (fbarrier2 == 1) {
_root.game.backg.pisos0.florb._alpha = 0;
}
if (fbarrier3 == 0) {
_root.game.backg.pisos3.florb._alpha = 100;
}
if (fbarrier3 == 1) {
_root.game.backg.pisos3.florb._alpha = 0;
}
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 3, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [1, 3, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && fbarrier2 == 1)) break;
local_data.data.playerbe = [2, 2, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && fbarrier3 == 1)) break;
local_data.data.playerbe = [2, 4, 2];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 2) {
if (fbarrier2 == 0) {
_root.game.backg.pisos0.florb._alpha = 100;
}
if (fbarrier2 == 1) {
_root.game.backg.pisos0.florb._alpha = 0;
}
if (fbarrier3 == 0) {
_root.game.backg.pisos3.florb._alpha = 100;
}
if (fbarrier3 == 1) {
_root.game.backg.pisos3.florb._alpha = 0;
}
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 3, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [1, 3, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && fbarrier2 == 1)) break;
local_data.data.playerbe = [2, 2, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && fbarrier3 == 1)) break;
local_data.data.playerbe = [2, 4, 2];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_8() {
if (entrance == 1) {
if (fbarrier4 == 0) {
_root.game.backg.pisos2.florb._alpha = 100;
}
if (fbarrier4 == 1) {
_root.game.backg.pisos2.florb._alpha = 0;
}
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
if (fbarrier1 == 0) {
_root.game.meseg.gotoAndStop(5);
fbarrier1 = 1;
}
fbarrier1 = 1;
defenseac = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 130;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 500;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 2, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && fbarrier4 == 1)) break;
local_data.data.playerbe = [4, 4, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 5 && movingmap == true && place1 == 0 && fbarrier1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [9, 9, 9, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
defenseen = true;
}
if (_root.game.backg._x < 5 && movingmap == true && place1 == 0 && fbarrier1 == 1) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
defenseen = true;
}
}
}
function lv1_9() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
if (fbarrier2 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier2 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
if (fbarrier2 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier2 == 1) {
_root.game.gosign._x = 130;
}
defenseac = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 3, 2];
local_data.data.entrance = 3;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 4, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 645 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 1, 1, 3, 3, 1];
enemyon = enemytogo.length;
defenseen = true;
}
if (_root.game.backg._x < 5 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3];
enemyon = enemytogo.length;
defenseen = true;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
if (fbarrier2 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier2 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
if (fbarrier2 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier2 == 1) {
_root.game.gosign._x = 130;
}
defenseac = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 3, 2];
local_data.data.entrance = 3;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 4, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > -5 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 1, 1, 3, 3, 1];
enemyon = enemytogo.length;
defenseen = true;
}
if (_root.game.backg._x > 635 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3];
enemyon = enemytogo.length;
defenseen = true;
_root.game.gosign._x = 800;
}
}
}
function lv1_10() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
_root.game.gosign._x = 130;
if (fbarrier2 == 0) {
_root.game.meseg.gotoAndStop(6);
fbarrier2 = 1;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 3, 2];
local_data.data.entrance = 2;
datasave();
}
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0 && fbarrier2 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [9, 9, 9, 9, 1, 1, 1, 3, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2];
enemyon = enemytogo.length;
defenseen = true;
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0 && fbarrier2 == 1) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2];
enemyon = enemytogo.length;
defenseen = true;
}
}
}
function lv1_11() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
magneton = false;
if (fbarrier3 == 0) {
_root.game.gosign._x = 130;
}
if (fbarrier3 == 1) {
_root.game.gosign._x = 500;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
if (fbarrier3 == 0) {
_root.game.gosign._x = 130;
}
if (fbarrier3 == 1) {
_root.game.gosign._x = 500;
}
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
if (fbarrier3 == 0) {
_root.game.gosign._x = 130;
}
if (fbarrier3 == 1) {
_root.game.gosign._x = 500;
}
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 3, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 2, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 640 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 4, 4, 4, 1, 3, 3, 3, 1, 3, 1, 4, 4, 4, 4, 1, 3, 1, 3, 1, 3, 1, 2, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 1;
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 3, 1, 3, 1, 3, 1, 6, 3, 3, 3, 3, 1, 4, 4, 4, 4, 1, 1, 1, 1, 2, 2, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 3;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x < -320 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [6, 1, 1, 1, 6, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 4, 4, 4, 4, 4];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 2;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
magneton = false;
if (fbarrier3 == 0) {
_root.game.gosign._x = 130;
}
if (fbarrier3 == 1) {
_root.game.gosign._x = 500;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
if (fbarrier3 == 0) {
_root.game.gosign._x = 130;
}
if (fbarrier3 == 1) {
_root.game.gosign._x = 500;
}
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
if (fbarrier3 == 0) {
_root.game.gosign._x = 130;
}
if (fbarrier3 == 1) {
_root.game.gosign._x = 500;
}
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 3, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 2, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > -320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 4, 4, 4, 1, 3, 3, 3, 1, 3, 1, 3, 4, 4, 4, 4, 1, 3, 1, 3, 1, 2, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 1;
}
if (_root.game.backg._x > 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 3, 1, 3, 1, 3, 1, 6, 3, 3, 3, 3, 1, 1, 4, 4, 4, 1, 1, 1, 1, 2, 2, 2];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 3;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x > 640 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 4, 4, 4, 4, 4];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 2;
_root.game.gosign._x = 800;
}
}
}
function lv1_12() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
if (fbarrier3 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier3 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
defenseac = false;
magneton = false;
if (fbarrier3 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier3 == 1) {
_root.game.gosign._x = 130;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 2, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 2, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 640 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 2, 2, 2, 3, 1, 3, 1, 3, 1, 3, 1, 1, 1, 1, 2, 2, 2];
enemyon = enemytogo.length;
defenseen = true;
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 2, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1, 2, 1];
enemyon = enemytogo.length;
defenseen = true;
magnetac = true;
magnetnum = 2;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
if (fbarrier3 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier3 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
defenseac = false;
magneton = false;
if (fbarrier3 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier3 == 1) {
_root.game.gosign._x = 130;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 2, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 2, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > 320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 2, 2, 2, 3, 1, 3, 1, 3, 1, 3, 1, 1, 1, 1, 2, 2, 2];
enemyon = enemytogo.length;
defenseen = true;
}
if (_root.game.backg._x > 640 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1];
enemyon = enemytogo.length;
defenseen = true;
magnetac = true;
magnetnum = 2;
_root.game.gosign._x = 800;
}
}
}
function lv1_13() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
_root.game.gosign._x = 130;
if (fbarrier3 == 0) {
_root.game.meseg.gotoAndStop(7);
fbarrier3 = 1;
}
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 2];
local_data.data.entrance = 2;
datasave();
}
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0 && fbarrier3 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [9, 9, 9, 9, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 2, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3];
enemyon = enemytogo.length;
defenseen = true;
magnetac = true;
magnetnum = 3;
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0 && fbarrier3 == 1) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 2, 2, 1, 1, 2, 3, 1, 3, 1, 3, 1, 3, 1, 3];
enemyon = enemytogo.length;
defenseen = true;
magnetac = true;
magnetnum = 3;
}
}
}
function lv1_14() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 3, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 5, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 4, 2];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 3, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 5, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 4, 2];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 3) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 3, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 5, 2];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 4, 2];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_15() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
shopa = true;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 4, 2];
local_data.data.entrance = 3;
datasave();
}
}
}
}
function lv1_16() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
magneton = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
magneton = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 4, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 5, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 640 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 4, 4, 4, 4, 3, 3, 3, 3, 1, 1, 3, 3, 1, 1, 3, 3, 1, 1];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 3;
}
if (_root.game.backg._x < -320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [2, 2, 1, 1, 1, 4, 4, 4, 4, 1, 3, 1, 1, 2, 1, 2, 1, 1, 4, 4, 4, 4, 4, 4, 1, 1, 1, 2, 2, 1, 3, 1, 3, 1, 3];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 1;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
magneton = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
magneton = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 4, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 5, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > -320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 1, 2, 1, 1, 3, 3, 3, 3, 1, 1, 3, 3, 1, 1, 3, 3, 1, 1];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 3;
}
if (_root.game.backg._x > 640 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [2, 2, 1, 1, 1, 4, 4, 4, 4, 4, 4, 1, 3, 1, 3, 1, 3, 1, 1, 2, 1, 2, 1, 1, 4, 4, 4, 4, 2, 1, 3, 1, 3, 1, 3];
enemyon = enemytogo.length;
magnetac = true;
magnetnum = 1;
_root.game.gosign._x = 800;
}
}
}
function lv1_17() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
defenseac = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 5, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 5, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 640 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [3, 3, 3, 3, 3, 3, 3, 6, 1, 1, 1, 1, 1, 2, 1, 3, 1, 3, 1, 3, 1, 6];
enemyon = enemytogo.length;
defenseen = true;
}
if (_root.game.backg._x < -320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [6, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 6, 1, 3, 1, 3, 1, 3, 3, 1, 3, 1];
enemyon = enemytogo.length;
defenseen = true;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
defenseac = false;
if (fbarrier4 == 0) {
_root.game.gosign._x = 500;
}
if (fbarrier4 == 1) {
_root.game.gosign._x = 130;
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 5, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 5, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > -320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [3, 3, 3, 3, 3, 3, 3, 6, 1, 1, 1, 1, 1, 2, 1, 3, 1, 3, 1, 3, 1, 6];
enemyon = enemytogo.length;
defenseen = true;
}
if (_root.game.backg._x > 640 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [6, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 6, 1, 3, 1, 3, 1, 3, 3, 1, 3, 1];
enemyon = enemytogo.length;
defenseen = true;
_root.game.gosign._x = 800;
}
}
}
function lv1_18() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
_root.game.gosign._x = 130;
if (fbarrier4 == 0) {
_root.game.meseg.gotoAndStop(8);
fbarrier4 = 1;
}
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 2];
local_data.data.entrance = 2;
datasave();
}
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0 && fbarrier4 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [9, 9, 9, 9, 6, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 6, 3, 3, 3, 3, 3, 3, 3, 1, 1, 3, 1, 4, 4, 4, 4, 4];
enemyon = enemytogo.length;
defenseen = true;
magnetac = true;
magnetnum = 1;
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0 && fbarrier4 == 1) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [6, 3, 3, 3, 3, 3, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 3, 3, 3, 4, 4, 4, 4, 4];
enemyon = enemytogo.length;
defenseen = true;
magnetac = true;
magnetnum = 1;
}
}
}
function lv1_19() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
magneton = false;
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
defenseac = false;
magneton = false;
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 3, 2];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 5, 2];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 640 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 3, 1, 1, 1, 1, 2, 2, 1, 1, 3, 1, 1, 5, 5, 5, 5];
enemyon = enemytogo.length;
defenseen = true;
magnetac = true;
magnetnum = 2;
}
if (_root.game.backg._x < -320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 2, 1, 1, 2, 3, 3, 3, 3, 3, 1, 1, 5, 5, 5, 5, 5, 5];
enemyon = enemytogo.length;
defenseen = true;
magnetac = true;
magnetnum = 3;
_root.game.gosign._x = 800;
}
}
}
function lv1_20() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
if (place2 == 0 && place1 == 1) {
defenseac = false;
magneton = false;
_root.game.gosign._x = 500;
bosshere = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 6, 2];
local_data.data.entrance = 1;
datasave();
}
if (_root.game.backg._x == 960) {
_root.game.meseg.gotoAndStop(9);
}
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [10, 11];
enemyon = enemytogo.length;
bosshere = true;
}
}
}
function lv1_21() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
levelpass = 1;
if (medal[17] == 0 && lives == 4) {
medal[17] = 1;
_root.game.archi.gotoAndStop(19);
}
local_data.data.levelpass = levelpass;
local_data.flush();
datasave();
}
if (_root.game.backg._x == 960) {
_root.game.meseg.gotoAndStop(9);
}
}
}
}
function finishg() {
if (_root.cortinaingame._currentframe == 24) {
gotoAndStop(366);
}
if (_root.game.gsign._currentframe == 55) {
gotoAndPlay(1);
}
if (dañoplayer >= playerhp) {
gameover = true;
_root.niv2.gotoAndStop(1);
_root.bosss.gotoAndStop(1);
_root.game.itembase.swapDepths(1);
_root.game.cortinag.swapDepths(98999998);
_root.game.playerfull.swapDepths(98999999);
h = 0;
while (h < manchaslist.length) {
manchis = _root.game[manchaslist[h]];
manchis.removeMovieClip();
++h;
}
r = 0;
while (r < enemylist.length) {
itemob = _root.game[itemappear[r]];
alienob = _root.game[enemylist[r]];
alienob.removeMovieClip();
itemob.removeMovieClip();
++r;
}
s = 0;
while (s < canoneslist.length) {
canonx = _root.game[canoneslist[s]];
canonx.removeMovieClip();
++s;
}
if (direct == 1) {
_root.game.playerfull.gotoAndStop(20);
_root.game.cortinag.gotoAndStop(2);
}
if (direct == 0) {
_root.game.playerfull.gotoAndStop(19);
_root.game.cortinag.gotoAndStop(2);
}
}
}
function datasave() {
playercath = true;
local_data.data.playerhp = playerhp;
local_data.data.dañoplayer = dañoplayer;
local_data.data.lvplayer = lvplayer;
local_data.data.coinhave = coinhave;
local_data.data.power = power;
local_data.data.equipw1 = equipw1;
local_data.data.equipw2 = equipw2;
local_data.data.score = score;
local_data.data.mineral = mineral;
local_data.data.expw1lv = expw1lv;
local_data.data.expw2lv = expw2lv;
local_data.data.expw3lv = expw3lv;
local_data.data.expw1 = expw1;
local_data.data.expw2 = expw2;
local_data.data.expw3 = expw3;
local_data.data.expe = expe;
local_data.data.itemhave = itemhave;
local_data.data.itembox = itembox;
local_data.data.w1attack = w1attack;
local_data.data.w2attack = w2attack;
local_data.data.guncost = guncost;
local_data.data.handhave = handhave;
local_data.data.swordhave = swordhave;
local_data.data.gunhave = gunhave;
local_data.data.medal = medal;
local_data.data.greenflea = greenflea;
local_data.data.redsquid = redsquid;
local_data.data.leach = leach;
local_data.data.plasma = plasma;
local_data.data.abomination = abomination;
local_data.data.devourer = devourer;
local_data.data.firefly = firefly;
local_data.data.octron = octron;
local_data.data.lily = lily;
local_data.data.errorr = errorr;
local_data.data.qsoldier = qsoldier;
local_data.data.mom = mom;
local_data.data.healp = healp;
local_data.data.powering = powering;
local_data.data.clearing = clearing;
local_data.data.lives = lives;
local_data.data.timeplaying = timeplaying;
local_data.data.fbarrier1 = fbarrier1;
local_data.data.fbarrier2 = fbarrier2;
local_data.data.fbarrier3 = fbarrier3;
local_data.data.fbarrier4 = fbarrier4;
local_data.flush();
_root.cortinaingame.play();
}
function datagameover() {
local_data.data.playerhp = playerhp;
local_data.data.dañoplayer = 0;
local_data.data.lvplayer = lvplayer;
local_data.data.coinhave = coinhave;
local_data.data.power = 0;
local_data.data.equipw1 = equipw1;
local_data.data.equipw2 = equipw2;
local_data.data.score = score;
local_data.data.mineral = mineral;
local_data.data.expw1lv = expw1lv;
local_data.data.expw2lv = expw2lv;
local_data.data.expw3lv = expw3lv;
local_data.data.expw1 = expw1;
local_data.data.expw2 = expw2;
local_data.data.expw3 = expw3;
local_data.data.expe = expe;
local_data.data.itemhave = itemhave;
local_data.data.itembox = itembox;
local_data.data.w1attack = w1attack;
local_data.data.w2attack = w2attack;
local_data.data.guncost = guncost;
local_data.data.handhave = handhave;
local_data.data.swordhave = swordhave;
local_data.data.gunhave = gunhave;
local_data.data.medal = medal;
local_data.data.greenflea = greenflea;
local_data.data.redsquid = redsquid;
local_data.data.leach = leach;
local_data.data.plasma = plasma;
local_data.data.abomination = abomination;
local_data.data.devourer = devourer;
local_data.data.firefly = firefly;
local_data.data.octron = octron;
local_data.data.lily = lily;
local_data.data.errorr = errorr;
local_data.data.qsoldier = qsoldier;
local_data.data.mom = mom;
local_data.data.healp = healp;
local_data.data.powering = powering;
local_data.data.clearing = clearing;
local_data.data.lives = lives;
local_data.data.timeplaying = timeplaying;
local_data.data.fbarrier1 = fbarrier1;
local_data.data.fbarrier2 = fbarrier2;
local_data.data.fbarrier3 = fbarrier3;
local_data.data.fbarrier4 = fbarrier4;
local_data.flush();
}
function supamagnet() {
if (magnetac == true) {
if (magnetnum == 1) {
_root.game.createEmptyMovieClip('vain1', 100000);
c = 0;
while (c < 8) {
_root.game.vain1.attachMovie('vines', 'vines' + c, game.vain1.getNextHighestDepth(), {'_x': 40 + c * 80});
++c;
}
_root.game.createEmptyMovieClip('vain2', 103001);
c = 0;
while (c < 8) {
_root.game.vain2.attachMovie('vines', 'vines' + c, game.vain2.getNextHighestDepth(), {'_x': 40 + c * 80});
++c;
}
_root.game.createEmptyMovieClip('vain3', 103002);
c = 0;
while (c < 8) {
_root.game.vain3.attachMovie('vines', 'vines' + c, game.vain3.getNextHighestDepth(), {'_x': 40 + c * 80});
++c;
}
_root.game.createEmptyMovieClip('vain4', 103003);
c = 0;
while (c < 8) {
_root.game.vain4.attachMovie('vines', 'vines' + c, game.vain4.getNextHighestDepth(), {'_x': 40 + c * 80});
++c;
}
_root.game.vain1._y = 275.5;
_root.game.vain2._y = 335.5;
_root.game.vain3._y = 395.5;
_root.game.vain4._y = 455.5;
magnetolist.push(vain1);
magnetolist.push(vain2);
magnetolist.push(vain3);
magnetolist.push(vain4);
magnetac = false;
magneton = true;
}
if (magnetnum == 2) {
_root.game.createEmptyMovieClip('vain1', 100000);
c = 0;
while (c < 8) {
_root.game.vain1.attachMovie('vines', 'vines' + c, game.vain1.getNextHighestDepth(), {'_x': 40 + c * 80});
++c;
}
_root.game.createEmptyMovieClip('vain2', 103001);
c = 0;
while (c < 8) {
_root.game.vain2.attachMovie('vines', 'vines' + c, game.vain2.getNextHighestDepth(), {'_x': 40 + c * 80});
++c;
}
_root.game.vain1._y = 300.5;
_root.game.vain2._y = 400.5;
magnetolist.push(vain1);
magnetolist.push(vain2);
magnetac = false;
magneton = true;
}
if (magnetnum == 3) {
_root.game.createEmptyMovieClip('vain1', 100000);
c = 0;
while (c < 8) {
_root.game.vain1.attachMovie('vines', 'vines' + c, game.vain1.getNextHighestDepth(), {'_x': 40 + c * 80});
++c;
}
_root.game.createEmptyMovieClip('vain2', 103001);
c = 0;
while (c < 8) {
_root.game.vain2.attachMovie('vines', 'vines' + c, game.vain2.getNextHighestDepth(), {'_x': 40 + c * 80});
++c;
}
_root.game.createEmptyMovieClip('vain3', 103002);
c = 0;
while (c < 8) {
_root.game.vain3.attachMovie('vines', 'vines' + c, game.vain3.getNextHighestDepth(), {'_x': 40 + c * 80});
++c;
}
_root.game.vain1._y = 275.5;
_root.game.vain2._y = 355.5;
_root.game.vain3._y = 435.5;
magnetolist.push(vain1);
magnetolist.push(vain2);
magnetolist.push(vain3);
magnetac = false;
magneton = true;
}
}
if (magneton == true) {
magx1 = _root.game.vain1;
tx1 = _root.game.playerfull._x - magx1._x;
ty1 = _root.game.playerfull._y - magx1._y;
magx1.swapDepths(magx1._y * magx1._y);
distaly1 = Math.sqrt(ty1 * ty1);
magx2 = _root.game.vain2;
tx2 = _root.game.playerfull._x - magx2._x;
ty2 = _root.game.playerfull._y - magx2._y;
magx2.swapDepths(magx2._y * magx2._y);
distaly2 = Math.sqrt(ty2 * ty2);
magx3 = _root.game.vain3;
tx3 = _root.game.playerfull._x - magx3._x;
ty3 = _root.game.playerfull._y - magx3._y;
magx3.swapDepths(magx3._y * magx3._y);
distaly3 = Math.sqrt(ty3 * ty3);
magx4 = _root.game.vain4;
tx4 = _root.game.playerfull._x - magx4._x;
ty4 = _root.game.playerfull._y - magx4._y;
magx4.swapDepths(magx4._y * magx4._y);
distaly4 = Math.sqrt(ty4 * ty4);
if (distaly1 < 20) {
speedupextra1 = -6;
}
if (distaly1 > 20) {
speedupextra1 = 0;
}
if (distaly2 < 20) {
speedupextra2 = -6;
}
if (distaly2 > 20) {
speedupextra2 = 0;
}
if (distaly3 < 20) {
speedupextra3 = -6;
}
if (distaly3 > 20) {
speedupextra3 = 0;
}
if (distaly4 < 20) {
speedupextra4 = -6;
}
if (distaly4 > 20) {
speedupextra4 = 0;
}
}
if (magneton == false) {
_root.game.vain1.removeMovieClip();
_root.game.vain2.removeMovieClip();
_root.game.vain3.removeMovieClip();
_root.game.vain4.removeMovieClip();
speedupextra1 = 0;
speedupextra2 = 0;
speedupextra3 = 0;
speedupextra4 = 0;
magnetolist.splice(0, magnetolist.length);
}
}
function canoneslaser() {
if (defenseen == true) {
_root.game.libelu.duplicateMovieClip('canon' + deepen, deepen, {'_x': 720, '_y': 135});
canoneslist.push('canon' + deepen);
++deepen;
defenseen = false;
defenseac = true;
canonotime = 0;
}
if (defenseac == true) {
canonotime += 1;
if (canonotime == 60) {
golib = true;
}
}
i = 0;
while (i < canoneslist.length) {
canonx = _root.game[canoneslist[i]];
canonx.swapDepths(canonx._y * canonx._y + 600000);
dx = _root.game.playerfull._x - canonx._x;
dy = _root.game.playerfull._y - canonx._y;
distalx = Math.sqrt(dx * dx);
if (golib == true) {
if (canonx._x == 720) {
canonx.gotoAndPlay(2);
}
canonx._x -= 10;
}
if (canonx._x == 600) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': canonx._x + 20, '_y': canonx._y + 20.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': canonx._x, 'eygo': canonx._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (canonx._x == 480) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': canonx._x + 20, '_y': canonx._y + 20.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': canonx._x + 20, 'eygo': canonx._y + 20});
sballlist.push('newalien' + deepen);
++deepen;
}
if (canonx._x == 360) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': canonx._x + 20, '_y': canonx._y + 20.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': canonx._x + 20, 'eygo': canonx._y + 20});
sballlist.push('newalien' + deepen);
++deepen;
}
if (canonx._x == 240) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': canonx._x + 20, '_y': canonx._y + 20.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': canonx._x + 20, 'eygo': canonx._y + 20});
sballlist.push('newalien' + deepen);
++deepen;
}
if (canonx._x == 120) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigabg.duplicateMovieClip('newalien' + deepen, deepen, {'_x': canonx._x + 20, '_y': canonx._y + 20.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': canonx._x + 20, 'eygo': canonx._y + 20});
sballlist.push('newalien' + deepen);
++deepen;
}
if (canonx._x == -100) {
canonx._x = 720;
golib = false;
canonotime = 0;
canonx.gotoAndStop(1);
}
if (defenseac == false) {
canonx.removeMovieClip();
}
++i;
}
if (defenseac == false) {
canoneslist.splice(0, canoneslist.length);
}
}
function shophere() {
_root.game.roboto._x = 493.5;
_root.game.roboto._y = 350;
robogo = _root.game.roboto;
robogo.swapDepths(robogo._y * robogo._y);
fx = _root.game.playerfull._x - robogo._x;
fy = _root.game.playerfull._y - robogo._y;
fistal = Math.sqrt(fx * fx + fy * fy);
if (Key.isDown(90) && fistal <= 80) {
beginshopa = true;
_root.game.shopclip.swapDepths(98000001);
_root.game.shopclip.gotoAndStop(2);
}
if (beginshopa == true) {
showcoins();
buythings();
showitembox();
dragput();
}
}
function dragput() {
_root.game.shopclip.so.boxa.onPress = function () {
_root.game.shopclip.so.boxa.startDrag(0);
};
_root.game.shopclip.so.boxa.onRelease = function () {
_root.game.shopclip.so.boxa.stopDrag(0);
dlxa = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 1;
itemhave[0][1] = itembox[0];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 1;
itemhave[1][1] = itembox[0];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 1;
itemhave[2][1] = itembox[0];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 1;
itemhave[3][1] = itembox[0];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 1;
itemhave[4][1] = itembox[0];
}
_root.game.shopclip.so.boxa._x = -180;
_root.game.shopclip.so.boxa._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxb.onPress = function () {
_root.game.shopclip.so.boxb.startDrag(0);
};
_root.game.shopclip.so.boxb.onRelease = function () {
_root.game.shopclip.so.boxb.stopDrag(0);
dlxa = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 2;
itemhave[0][1] = itembox[1];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 2;
itemhave[1][1] = itembox[1];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 2;
itemhave[2][1] = itembox[1];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 2;
itemhave[3][1] = itembox[1];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 2;
itemhave[4][1] = itembox[1];
}
_root.game.shopclip.so.boxb._x = -129;
_root.game.shopclip.so.boxb._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxc.onPress = function () {
_root.game.shopclip.so.boxc.startDrag(0);
};
_root.game.shopclip.so.boxc.onRelease = function () {
_root.game.shopclip.so.boxc.stopDrag(0);
dlxa = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 3;
itemhave[0][1] = itembox[2];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 3;
itemhave[1][1] = itembox[2];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 3;
itemhave[2][1] = itembox[2];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 3;
itemhave[3][1] = itembox[2];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 3;
itemhave[4][1] = itembox[2];
}
_root.game.shopclip.so.boxc._x = -79;
_root.game.shopclip.so.boxc._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxd.onPress = function () {
_root.game.shopclip.so.boxd.startDrag(0);
};
_root.game.shopclip.so.boxd.onRelease = function () {
_root.game.shopclip.so.boxd.stopDrag(0);
dlxa = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 4;
itemhave[0][1] = itembox[3];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 4;
itemhave[1][1] = itembox[3];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 4;
itemhave[2][1] = itembox[3];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 4;
itemhave[3][1] = itembox[3];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 4;
itemhave[4][1] = itembox[3];
}
_root.game.shopclip.so.boxd._x = -30;
_root.game.shopclip.so.boxd._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxe.onPress = function () {
_root.game.shopclip.so.boxe.startDrag(0);
};
_root.game.shopclip.so.boxe.onRelease = function () {
_root.game.shopclip.so.boxe.stopDrag(0);
dlxa = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 5;
itemhave[0][1] = itembox[4];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 5;
itemhave[1][1] = itembox[4];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 5;
itemhave[2][1] = itembox[4];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 5;
itemhave[3][1] = itembox[4];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 5;
itemhave[4][1] = itembox[4];
}
_root.game.shopclip.so.boxe._x = 21;
_root.game.shopclip.so.boxe._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxf.onPress = function () {
_root.game.shopclip.so.boxf.startDrag(0);
};
_root.game.shopclip.so.boxf.onRelease = function () {
_root.game.shopclip.so.boxf.stopDrag(0);
dlxa = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 7;
itemhave[0][1] = itembox[5];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 7;
itemhave[1][1] = itembox[5];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 7;
itemhave[2][1] = itembox[5];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 7;
itemhave[3][1] = itembox[5];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 7;
itemhave[4][1] = itembox[5];
}
_root.game.shopclip.so.boxf._x = 71;
_root.game.shopclip.so.boxf._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.pbox.onPress = function () {
_root.game.shopclip.so.pbox.startDrag(0);
};
_root.game.shopclip.so.pbox.onRelease = function () {
_root.game.shopclip.so.pbox.stopDrag(0);
dlxa = _root.game.shopclip.so.pbox._x - _root.game.shopclip.so.equipsa._x;
dlya = _root.game.shopclip.so.pbox._y - _root.game.shopclip.so.equipsa._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.pbox._x - _root.game.shopclip.so.equipss._x;
dlyb = _root.game.shopclip.so.pbox._y - _root.game.shopclip.so.equipss._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
if (distalslota < 30) {
if (handhave == 1) {
if (equipw1 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw1 = 1;
slotuno();
}
}
if (distalslotb < 30) {
if (handhave == 1) {
if (equipw2 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw2 = 1;
slotdos();
}
}
_root.game.shopclip.so.pbox._x = 100;
_root.game.shopclip.so.pbox._y = -46.5;
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.sbox.onPress = function () {
_root.game.shopclip.so.sbox.startDrag(0);
};
_root.game.shopclip.so.sbox.onRelease = function () {
_root.game.shopclip.so.sbox.stopDrag(0);
dlxa = _root.game.shopclip.so.sbox._x - _root.game.shopclip.so.equipsa._x;
dlya = _root.game.shopclip.so.sbox._y - _root.game.shopclip.so.equipsa._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.sbox._x - _root.game.shopclip.so.equipss._x;
dlyb = _root.game.shopclip.so.sbox._y - _root.game.shopclip.so.equipss._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
if (distalslota < 30) {
if (swordhave == 1) {
if (equipw1 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw1 = 2;
slotuno();
}
}
if (distalslotb < 30) {
if (swordhave == 1) {
if (equipw2 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw2 = 2;
slotdos();
}
}
_root.game.shopclip.so.sbox._x = 150;
_root.game.shopclip.so.sbox._y = -46.5;
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.gbox.onPress = function () {
_root.game.shopclip.so.gbox.startDrag(0);
};
_root.game.shopclip.so.gbox.onRelease = function () {
_root.game.shopclip.so.gbox.stopDrag(0);
dlxa = _root.game.shopclip.so.gbox._x - _root.game.shopclip.so.equipsa._x;
dlya = _root.game.shopclip.so.gbox._y - _root.game.shopclip.so.equipsa._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.gbox._x - _root.game.shopclip.so.equipss._x;
dlyb = _root.game.shopclip.so.gbox._y - _root.game.shopclip.so.equipss._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
if (distalslota < 30) {
if (gunhave == 1 && itembox[6] != 0 && equipw2 != 3) {
equipw1 = 3;
slotuno();
itemhave[4][0] = itembox[6];
itemhave[4][1] = 0;
alignitems();
}
}
if (distalslotb < 30) {
if (gunhave == 1 && itembox[6] != 0 && equipw2 != 3) {
equipw2 = 3;
slotdos();
itemhave[4][0] = itembox[6];
itemhave[4][1] = 0;
alignitems();
}
}
_root.game.shopclip.so.gbox._x = 200;
_root.game.shopclip.so.gbox._y = -46.5;
_root.cachso.gotoAndPlay(2);
};
}
function slotuno() {
if (knucleuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(1);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(1);
}
}
function slotdos() {
if (knucleuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(1);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(1);
}
}
function showitembox() {
_root.game.shopclip.so.boxa.gotoAndStop(itembox[0] + 1);
_root.game.shopclip.so.boxb.gotoAndStop(itembox[1] + 1);
_root.game.shopclip.so.boxc.gotoAndStop(itembox[2] + 1);
_root.game.shopclip.so.boxd.gotoAndStop(itembox[3] + 1);
_root.game.shopclip.so.boxe.gotoAndStop(itembox[4] + 1);
_root.game.shopclip.so.boxf.gotoAndStop(itembox[5] + 1);
if (itembox[6] == 16) {
_root.game.shopclip.so.boxg.gotoAndStop(2);
} else {
if (itembox[6] == 17) {
_root.game.shopclip.so.boxg.gotoAndStop(3);
} else {
if (itembox[6] == 18) {
_root.game.shopclip.so.boxg.gotoAndStop(4);
} else {
if (itembox[6] == 19) {
_root.game.shopclip.so.boxg.gotoAndStop(5);
} else {
if (itembox[6] == 20) {
_root.game.shopclip.so.boxg.gotoAndStop(6);
} else {
if (itembox[6] == 21) {
_root.game.shopclip.so.boxg.gotoAndStop(7);
} else {
if (itembox[6] == 0) {
_root.game.shopclip.so.boxg.gotoAndStop(1);
}
}
}
}
}
}
}
if (handhave == 1) {
_root.game.shopclip.so.pbox.gotoAndStop(2);
} else {
_root.game.shopclip.so.pbox.gotoAndStop(1);
}
if (swordhave == 1) {
_root.game.shopclip.so.sbox.gotoAndStop(2);
} else {
_root.game.shopclip.so.sbox.gotoAndStop(1);
}
if (gunhave == 1) {
_root.game.shopclip.so.gbox.gotoAndStop(2);
} else {
_root.game.shopclip.so.gbox.gotoAndStop(1);
}
_root.game.shopclip.so.aequip.gotoAndStop(equipw1);
_root.game.shopclip.so.sequip.gotoAndStop(equipw2);
}
function buythings() {
_root.game.shopclip.so.obuya.onRollOver = function () {
_root.game.shopclip.so.obuya.gotoAndStop(2);
};
_root.game.shopclip.so.obuya.onRollOut = function () {
_root.game.shopclip.so.obuya.gotoAndStop(1);
};
_root.game.shopclip.so.obuya.onRelease = function () {
if (itembox[0] < 9 && coinhave >= 50) {
coinhave -= 50;
itembox[0] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyb.onRollOver = function () {
_root.game.shopclip.so.obuyb.gotoAndStop(2);
};
_root.game.shopclip.so.obuyb.onRollOut = function () {
_root.game.shopclip.so.obuyb.gotoAndStop(1);
};
_root.game.shopclip.so.obuyb.onRelease = function () {
if (itembox[1] < 9 && coinhave >= 200) {
coinhave -= 200;
itembox[1] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyc.onRollOver = function () {
_root.game.shopclip.so.obuyc.gotoAndStop(2);
};
_root.game.shopclip.so.obuyc.onRollOut = function () {
_root.game.shopclip.so.obuyc.gotoAndStop(1);
};
_root.game.shopclip.so.obuyc.onRelease = function () {
if (itembox[2] < 9 && coinhave >= 1000) {
coinhave -= 1000;
itembox[2] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyd.onRollOver = function () {
_root.game.shopclip.so.obuyd.gotoAndStop(2);
};
_root.game.shopclip.so.obuyd.onRollOut = function () {
_root.game.shopclip.so.obuyd.gotoAndStop(1);
};
_root.game.shopclip.so.obuyd.onRelease = function () {
if (itembox[3] < 9 && coinhave >= 30) {
coinhave -= 30;
itembox[3] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuye.onRollOver = function () {
_root.game.shopclip.so.obuye.gotoAndStop(2);
};
_root.game.shopclip.so.obuye.onRollOut = function () {
_root.game.shopclip.so.obuye.gotoAndStop(1);
};
_root.game.shopclip.so.obuye.onRelease = function () {
if (itembox[4] < 9 && coinhave >= 80) {
coinhave -= 80;
itembox[4] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyf.onRollOver = function () {
_root.game.shopclip.so.obuyf.gotoAndStop(2);
};
_root.game.shopclip.so.obuyf.onRollOut = function () {
_root.game.shopclip.so.obuyf.gotoAndStop(1);
};
_root.game.shopclip.so.obuyf.onRelease = function () {
if (itembox[5] < 9 && coinhave >= 50) {
coinhave -= 50;
itembox[5] += 1;
_root.compras.gotoAndPlay(2);
}
};
if (swordhave == 1) {
_root.game.shopclip.so.obuyg.gotoAndStop(3);
}
_root.game.shopclip.so.obuyg.onRollOver = function () {
if (swordhave == 0) {
_root.game.shopclip.so.obuyg.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyg.onRollOut = function () {
if (swordhave == 0) {
_root.game.shopclip.so.obuyg.gotoAndStop(1);
}
if (swordhave == 1) {
_root.game.shopclip.so.obuyg.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyg.onRelease = function () {
if (coinhave >= 100 && swordhave == 0) {
coinhave -= 100;
swordhave = 1;
_root.compras.gotoAndPlay(2);
}
};
if (itembox[6] == 16 || itembox[6] > 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(3);
}
_root.game.shopclip.so.obuyh.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyh.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(1);
}
if (itembox[6] == 16 || itembox[6] > 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyh.onRelease = function () {
if (coinhave >= 50 && itembox[6] == 0 || coinhave >= 50 && itembox[6] < 16) {
coinhave -= 50;
itembox[6] = 16;
_root.compras.gotoAndPlay(2);
}
};
if (itembox[6] == 17 || itembox[6] > 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(3);
}
_root.game.shopclip.so.obuyi.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyi.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(1);
}
if (itembox[6] == 17 || itembox[6] > 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyi.onRelease = function () {
if (coinhave >= 1000 && itembox[6] == 0 || coinhave >= 1000 && itembox[6] < 17) {
coinhave -= 1000;
itembox[6] = 17;
if (itemhave[4][0] < 17 && equipw1 == 3 || itemhave[4][0] < 17 && equipw2 == 3) {
itemhave[4][0] = 17;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 18 || itembox[6] > 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(3);
}
_root.game.shopclip.so.obuyj.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyj.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(1);
}
if (itembox[6] == 18 || itembox[6] > 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyj.onRelease = function () {
if (coinhave >= 5000 && itembox[6] == 0 || coinhave >= 5000 && itembox[6] < 18) {
coinhave -= 5000;
itembox[6] = 18;
if (itemhave[4][0] < 18 && equipw1 == 3 || itemhave[4][0] < 18 && equipw2 == 3) {
itemhave[4][0] = 18;
_root.compras.gotoAndPlay(2);
alignitems();
}
}
};
if (itembox[6] == 19 || itembox[6] > 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(3);
}
_root.game.shopclip.so.obuyk.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyk.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(1);
}
if (itembox[6] == 18 || itembox[6] > 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyk.onRelease = function () {
if (coinhave >= 15000 && itembox[6] == 0 || coinhave >= 15000 && itembox[6] < 19) {
coinhave -= 15000;
itembox[6] = 19;
if (itemhave[4][0] < 19 && equipw1 == 3 || itemhave[4][0] < 19 && equipw2 == 3) {
itemhave[4][0] = 19;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 20 || itembox[6] > 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(3);
}
_root.game.shopclip.so.obuyl.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyl.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(1);
}
if (itembox[6] == 20 || itembox[6] > 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyl.onRelease = function () {
if (coinhave >= 50000 && itembox[6] == 0 || coinhave >= 50000 && itembox[6] < 20) {
coinhave -= 50000;
itembox[6] = 20;
if (itemhave[4][0] < 20 && equipw1 == 3 || itemhave[4][0] < 20 && equipw2 == 3) {
itemhave[4][0] = 20;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 21 || itembox[6] > 21) {
_root.game.shopclip.so.obuym.gotoAndStop(3);
}
_root.game.shopclip.so.obuym.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 21) {
_root.game.shopclip.so.obuym.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuym.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 21) {
_root.game.shopclip.so.obuym.gotoAndStop(1);
}
if (itembox[6] == 21 || itembox[6] > 21) {
_root.game.shopclip.so.obuym.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuym.onRelease = function () {
if (coinhave >= 100000 && itembox[6] == 0 || coinhave >= 100000 && itembox[6] < 21) {
coinhave -= 100000;
itembox[6] = 21;
if (itemhave[4][0] < 21 && equipw1 == 3 || itemhave[4][0] < 21 && equipw2 == 3) {
itemhave[4][0] = 21;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (gunhave == 1) {
_root.game.shopclip.so.obuyn.gotoAndStop(3);
}
_root.game.shopclip.so.obuyn.onRollOver = function () {
if (gunhave == 0) {
_root.game.shopclip.so.obuyn.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyn.onRollOut = function () {
if (gunhave == 0) {
_root.game.shopclip.so.obuyn.gotoAndStop(1);
}
if (gunhave == 1) {
_root.game.shopclip.so.obuyn.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyn.onRelease = function () {
if (coinhave >= 1000 && gunhave == 0) {
coinhave -= 1000;
gunhave = 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.exito.onRollOver = function () {
_root.game.shopclip.so.exito.gotoAndStop(2);
};
_root.game.shopclip.so.exito.onRollOut = function () {
_root.game.shopclip.so.exito.gotoAndStop(1);
};
_root.game.shopclip.so.exito.onRelease = function () {
beginshopa = false;
_root.game.shopclip.gotoAndStop(1);
};
}
function showcoins() {
cmillo = Math.floor(coinhave / 100000000);
ccmildeci = Math.floor((coinhave - cmillo * 100000000) / 10000000);
ccmiluni = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000) / 1000000);
ccmil = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000) / 100000);
cmildeci = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000) / 10000);
cmiluni = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000) / 1000);
cmil = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000 - cmiluni * 1000) / 100);
cdeci = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000 - cmiluni * 1000 - cmil * 100) / 10);
cuni = Math.floor(coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000 - cmiluni * 1000 - cmil * 100 - cdeci * 10);
_root.game.shopclip.so.couni.gotoAndStop(cuni + 1);
_root.game.shopclip.so.codeci.gotoAndStop(cdeci + 1);
_root.game.shopclip.so.comil.gotoAndStop(cmil + 1);
_root.game.shopclip.so.comiluni.gotoAndStop(cmiluni + 1);
_root.game.shopclip.so.comildeci.gotoAndStop(cmildeci + 1);
_root.game.shopclip.so.cocmil.gotoAndStop(ccmil + 1);
_root.game.shopclip.so.cocmiluni.gotoAndStop(ccmiluni + 1);
_root.game.shopclip.so.cocmildeci.gotoAndStop(ccmildeci + 1);
_root.game.shopclip.so.comillo.gotoAndStop(cmillo + 1);
if (cmillo > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 100;
_root.game.shopclip.so.cocmildeci._alpha = 100;
_root.game.shopclip.so.comillo._alpha = 100;
} else {
if (ccmildeci > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 100;
_root.game.shopclip.so.cocmildeci._alpha = 100;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (ccmiluni > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 100;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (ccmil > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmildeci > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmiluni > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmil > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmil > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cdeci > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 0;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cuni > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 0;
_root.game.shopclip.so.comil._alpha = 0;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cuni == 0 && cdeci == 0 && cmil == 0 && cmiluni == 0 && cmildeci == 0 && ccmil == 0 && ccmiluni == 0 && ccmildeci == 0 && cmillo == 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 0;
_root.game.shopclip.so.comil._alpha = 0;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
}
}
function onemoretime() {
_root.game.trysign.livesc.gotoAndStop(lives + 1);
if (_root.game.cortinag.blackc._currentframe == 1) {
_root.endss.gotoAndPlay(2);
}
if (lives == 0 && lock == false && _root.game.cortinag.blackc._currentframe == 40) {
_root.game.gsign.swapDepths(99899998);
_root.game.gsign.play();
lock = true;
_root.oversound.gotoAndStop(2);
}
if (lives > 0 && lock == false) {
if (_root.game.cortinag.blackc._currentframe == 40) {
_root.game.trysign.swapDepths(99899998);
_root.game.trysign.gotoAndStop(2);
_root.oversound.gotoAndStop(2);
}
_root.game.trysign.yestry.onRollOver = function () {
_root.game.trysign.yestry.gotoAndStop(2);
};
_root.game.trysign.yestry.onRollOut = function () {
_root.game.trysign.yestry.gotoAndStop(1);
};
_root.game.trysign.yestry.onRelease = function () {
if (lives > 0) {
lives -= 1;
}
lock = true;
datagameover();
_root.cortinaingame.play();
};
_root.game.trysign.notry.onRollOver = function () {
_root.game.trysign.notry.gotoAndStop(2);
};
_root.game.trysign.notry.onRollOut = function () {
_root.game.trysign.notry.gotoAndStop(1);
};
_root.game.trysign.notry.onRelease = function () {
_root.game.trysign.gotoAndStop(1);
_root.game.gsign.swapDepths(99899998);
_root.game.gsign.play();
lock = true;
};
}
}
function checkmedals() {
timeplaying += 1;
if (medal[0] == 0 && greenflea >= 10) {
medal[0] = 1;
_root.game.archi.gotoAndStop(2);
_root.adchiso.gotoAndPlay(2);
}
if (medal[1] == 0 && redsquid >= 10) {
medal[1] = 1;
_root.game.archi.gotoAndStop(3);
_root.adchiso.gotoAndPlay(2);
}
if (medal[2] == 0 && leach >= 10) {
medal[2] = 1;
_root.game.archi.gotoAndStop(4);
_root.adchiso.gotoAndPlay(2);
}
if (medal[3] == 0 && plasma >= 10) {
medal[3] = 1;
_root.game.archi.gotoAndStop(5);
_root.adchiso.gotoAndPlay(2);
}
if (medal[4] == 0 && abomination >= 10) {
medal[4] = 1;
_root.game.archi.gotoAndStop(6);
_root.adchiso.gotoAndPlay(2);
}
if (medal[5] == 0 && devourer >= 10) {
medal[5] = 1;
_root.game.archi.gotoAndStop(7);
_root.adchiso.gotoAndPlay(2);
}
if (medal[6] == 0 && firefly >= 10) {
medal[6] = 1;
_root.game.archi.gotoAndStop(8);
_root.adchiso.gotoAndPlay(2);
}
if (medal[7] == 0 && coinhave >= 100) {
medal[7] = 1;
_root.game.archi.gotoAndStop(9);
_root.adchiso.gotoAndPlay(2);
}
if (medal[8] == 0 && expw1lv >= 5) {
medal[8] = 1;
_root.game.archi.gotoAndStop(10);
_root.adchiso.gotoAndPlay(2);
}
if (medal[9] == 0 && expw2lv >= 5) {
medal[9] = 1;
_root.game.archi.gotoAndStop(11);
_root.adchiso.gotoAndPlay(2);
}
if (medal[10] == 0 && expw3lv >= 2) {
medal[10] = 1;
_root.game.archi.gotoAndStop(12);
_root.adchiso.gotoAndPlay(2);
}
if (medal[11] == 0 && lvplayer >= 5) {
medal[11] = 1;
_root.game.archi.gotoAndStop(13);
_root.adchiso.gotoAndPlay(2);
}
if (medal[12] == 0 && hits >= 50) {
medal[12] = 1;
_root.game.archi.gotoAndStop(14);
_root.adchiso.gotoAndPlay(2);
}
if (medal[13] == 0 && healp >= 5) {
medal[13] = 1;
_root.game.archi.gotoAndStop(15);
_root.adchiso.gotoAndPlay(2);
}
if (medal[14] == 0 && clearing >= 2) {
medal[14] = 1;
_root.game.archi.gotoAndStop(16);
_root.adchiso.gotoAndPlay(2);
}
if (medal[15] == 0 && powering >= 5) {
medal[15] = 1;
_root.game.archi.gotoAndStop(17);
_root.adchiso.gotoAndPlay(2);
}
if (medal[16] == 0 && itemhave[0][0] != 0 && itemhave[1][0] != 0 && itemhave[2][0] != 0 && itemhave[3][0] != 0 && itemhave[4][0] != 0) {
medal[16] = 1;
_root.game.archi.gotoAndStop(18);
_root.adchiso.gotoAndPlay(2);
}
if (medal[18] == 0 && greenflea >= 100) {
medal[18] = 1;
_root.game.archi.gotoAndStop(20);
_root.adchiso.gotoAndPlay(2);
}
if (medal[19] == 0 && redsquid >= 100) {
medal[19] = 1;
_root.game.archi.gotoAndStop(21);
_root.adchiso.gotoAndPlay(2);
}
if (medal[20] == 0 && leach >= 100) {
medal[20] = 1;
_root.game.archi.gotoAndStop(22);
_root.adchiso.gotoAndPlay(2);
}
if (medal[21] == 0 && plasma >= 50) {
medal[21] = 1;
_root.game.archi.gotoAndStop(23);
_root.adchiso.gotoAndPlay(2);
}
if (medal[22] == 0 && abomination >= 25) {
medal[22] = 1;
_root.game.archi.gotoAndStop(24);
_root.adchiso.gotoAndPlay(2);
}
if (medal[23] == 0 && devourer >= 25) {
medal[23] = 1;
_root.game.archi.gotoAndStop(25);
_root.adchiso.gotoAndPlay(2);
}
if (medal[24] == 0 && firefly >= 25) {
medal[24] = 1;
_root.game.archi.gotoAndStop(26);
_root.adchiso.gotoAndPlay(2);
}
if (medal[25] == 0 && coinhave >= 1000) {
medal[25] = 1;
_root.game.archi.gotoAndStop(27);
_root.adchiso.gotoAndPlay(2);
}
if (medal[26] == 0 && expw1lv >= 15) {
medal[26] = 1;
_root.game.archi.gotoAndStop(28);
_root.adchiso.gotoAndPlay(2);
}
if (medal[27] == 0 && expw2lv >= 15) {
medal[27] = 1;
_root.game.archi.gotoAndStop(29);
_root.adchiso.gotoAndPlay(2);
}
if (medal[28] == 0 && expw3lv >= 3) {
medal[28] = 1;
_root.game.archi.gotoAndStop(30);
_root.adchiso.gotoAndPlay(2);
}
if (medal[29] == 0 && lvplayer >= 15) {
medal[29] = 1;
_root.game.archi.gotoAndStop(31);
_root.adchiso.gotoAndPlay(2);
}
if (medal[30] == 0 && hits >= 100) {
medal[30] = 1;
_root.game.archi.gotoAndStop(32);
_root.adchiso.gotoAndPlay(2);
}
if (medal[31] == 0 && healp >= 10) {
medal[31] = 1;
_root.game.archi.gotoAndStop(33);
_root.adchiso.gotoAndPlay(2);
}
if (medal[32] == 0 && powering >= 10) {
medal[32] = 1;
_root.game.archi.gotoAndStop(34);
_root.adchiso.gotoAndPlay(2);
}
if (medal[33] == 0 && greenflea >= 300) {
medal[33] = 1;
_root.game.archi.gotoAndStop(35);
_root.adchiso.gotoAndPlay(2);
}
if (medal[34] == 0 && redsquid >= 150) {
medal[34] = 1;
_root.game.archi.gotoAndStop(36);
_root.adchiso.gotoAndPlay(2);
}
if (medal[35] == 0 && leach >= 300) {
medal[35] = 1;
_root.game.archi.gotoAndStop(37);
_root.adchiso.gotoAndPlay(2);
}
if (medal[36] == 0 && plasma >= 100) {
medal[36] = 1;
_root.game.archi.gotoAndStop(38);
_root.adchiso.gotoAndPlay(2);
}
if (medal[37] == 0 && abomination >= 50) {
medal[37] = 1;
_root.game.archi.gotoAndStop(39);
_root.adchiso.gotoAndPlay(2);
}
if (medal[38] == 0 && devourer >= 50) {
medal[38] = 1;
_root.game.archi.gotoAndStop(40);
_root.adchiso.gotoAndPlay(2);
}
if (medal[39] == 0 && firefly >= 50) {
medal[39] = 1;
_root.game.archi.gotoAndStop(41);
_root.adchiso.gotoAndPlay(2);
}
if (medal[40] == 0 && itembox[0] == 9 && itembox[1] == 9 && itembox[2] == 9 && itembox[3] == 9 && itembox[4] == 9 && itembox[5] == 9) {
medal[40] = 1;
_root.game.archi.gotoAndStop(42);
_root.adchiso.gotoAndPlay(2);
}
if (medal[41] == 0 && octron >= 1) {
medal[41] = 1;
_root.game.archi.gotoAndStop(43);
_root.adchiso.gotoAndPlay(2);
}
if (medal[42] == 0 && lily >= 1) {
medal[42] = 1;
_root.game.archi.gotoAndStop(44);
_root.adchiso.gotoAndPlay(2);
}
if (medal[43] == 0 && errorr >= 1) {
medal[43] = 1;
_root.game.archi.gotoAndStop(45);
_root.adchiso.gotoAndPlay(2);
}
if (medal[44] == 0 && qsoldier >= 1) {
medal[43] = 1;
_root.game.archi.gotoAndStop(46);
_root.adchiso.gotoAndPlay(2);
}
if (medal[45] == 0 && mom >= 1) {
medal[45] = 1;
_root.game.archi.gotoAndStop(47);
_root.adchiso.gotoAndPlay(2);
}
if (medal[47] == 0 && coinhave >= 1000000) {
medal[47] = 1;
_root.game.archi.gotoAndStop(49);
_root.adchiso.gotoAndPlay(2);
}
if (medal[48] == 0 && expw1lv >= 20) {
medal[48] = 1;
_root.game.archi.gotoAndStop(50);
_root.adchiso.gotoAndPlay(2);
}
if (medal[49] == 0 && expw2lv >= 20) {
medal[49] = 1;
_root.game.archi.gotoAndStop(51);
_root.adchiso.gotoAndPlay(2);
}
if (medal[50] == 0 && expw3lv >= 4) {
medal[50] = 1;
_root.game.archi.gotoAndStop(52);
_root.adchiso.gotoAndPlay(2);
}
if (medal[51] == 0 && lvplayer >= 25) {
medal[51] = 1;
_root.game.archi.gotoAndStop(53);
_root.adchiso.gotoAndPlay(2);
}
if (medal[52] == 0 && hits >= 200) {
medal[52] = 1;
_root.game.archi.gotoAndStop(54);
_root.adchiso.gotoAndPlay(2);
}
if (medal[53] == 0 && timeplaying >= 720) {
medal[53] = 1;
_root.game.archi.gotoAndStop(55);
_root.adchiso.gotoAndPlay(2);
}
if (medal[54] == 0 && timeplaying >= 3600) {
medal[54] = 1;
_root.game.archi.gotoAndStop(56);
_root.adchiso.gotoAndPlay(2);
}
if (medal[55] == 0 && timeplaying >= 7200) {
medal[55] = 1;
_root.game.archi.gotoAndStop(57);
_root.adchiso.gotoAndPlay(2);
}
if (medal[56] == 0 && timeplaying >= 14400) {
medal[56] = 1;
_root.game.archi.gotoAndStop(58);
_root.adchiso.gotoAndPlay(2);
}
if (medal[57] == 0 && timeplaying >= 43200) {
medal[57] = 1;
_root.game.archi.gotoAndStop(59);
_root.adchiso.gotoAndPlay(2);
}
}
function doorsensors() {
i = 0;
while (i < 6) {
sen = _root.game.backg['pad' + i];
sx1 = _root.game.playerfull._x - (_root.game.backg._x + sen._x + sen.dsensor1._x);
sy1 = _root.game.playerfull._y - (_root.game.backg._y + sen._y + sen.dsensor1._y);
ristalx1 = Math.sqrt(sx1 * sx1);
ristaly1 = Math.sqrt(sy1 * sy1);
sx2 = _root.game.playerfull._x - (_root.game.backg._x + sen._x + sen.dsensor2._x);
sy2 = _root.game.playerfull._y - (_root.game.backg._y + sen._y + sen.dsensor2._y);
ristalx2 = Math.sqrt(sx2 * sx2);
ristaly2 = Math.sqrt(sy2 * sy2);
sx3 = _root.game.playerfull._x - (_root.game.backg._x + sen._x + sen.dsensor3._x);
sy3 = _root.game.playerfull._y - (_root.game.backg._y + sen._y + sen.dsensor3._y);
ristalx3 = Math.sqrt(sx3 * sx3);
ristaly3 = Math.sqrt(sy3 * sy3);
if (ristalx1 < 100 && ristaly1 < 50) {
sensorac1 = true;
}
if (ristalx2 < 100 && ristaly2 < 50) {
sensorac2 = true;
}
if (ristalx3 < 100 && ristaly3 < 50) {
sensorac3 = true;
}
++i;
}
}
stop();
stop();
local_data = SharedObject.getLocal('AS_data');
handhave = local_data.data.handhave;
swordhave = local_data.data.swordhave;
gunhave = local_data.data.gunhave;
var lock = false;
var golib = false;
var timeplaying = local_data.data.timeplaying;
var greenflea = local_data.data.greenflea;
var redsquid = local_data.data.redsquid;
var leach = local_data.data.leach;
var plasma = local_data.data.plasma;
var abomination = local_data.data.abomination;
var devourer = local_data.data.devourer;
var firefly = local_data.data.firefly;
var octron = local_data.data.octron;
var lily = local_data.data.lily;
var errorr = local_data.data.errorr;
var qsoldier = local_data.data.qsoldier;
var mom = local_data.data.mom;
var healp = local_data.data.healp;
var powering = local_data.data.powering;
var clearing = local_data.data.clearing;
var lives = local_data.data.lives;
var fbarrier1 = local_data.data.fbarrier1;
var fbarrier2 = local_data.data.fbarrier2;
var fbarrier3 = local_data.data.fbarrier3;
var fbarrier4 = local_data.data.fbarrier4;
var mutek = local_data.data.mutek;
var levelpass = local_data.data.levelpass;
var medal = local_data.data.medal;
var ojoen = false;
var ojoac = false;
var specialboss = false;
var bosstrap = false;
var beginshopa = false;
var shopa = false;
var canonotime = 0;
var magneton = false;
var magnetac = false;
var magcount = 0;
var magnetnum = 0;
var magnetolist = new Array();
var magchoose = 0;
var defenseen = false;
var defenseac = false;
var numcanon = 0;
var accecount = 0;
var accelerate = false;
var slowcount = 0;
var slow = false;
var speedup = 0;
w1attack = local_data.data.w1attack;
w2attack = local_data.data.w2attack;
guncost = local_data.data.guncost;
var speedupextra1 = 0;
var speedupextra2 = 0;
var speedupextra3 = 0;
var speedupextra4 = 0;
var superp = false;
var gameover = false;
var place1 = 0;
var place2 = 0;
var place3 = 0;
var place4 = 0;
var place5 = 0;
var uncathcount = 1;
var playercath = false;
var pressright = false;
var pressleft = false;
var movingmap = false;
var itemname = 0;
var eyelist = new Array();
var enemylist = new Array();
var manchaslist = new Array();
var sballlist = new Array();
var canoneslist = new Array();
var enemytogo = new Array();
var itemappear = new Array();
var damageappear = new Array();
var nexxtlv = new Array();
var nexxtlvw1 = new Array();
var nexxtlvw2 = new Array();
var nexxtlvw3 = new Array();
var playerbe = new Array();
var fullmap = new Array();
nexxtlv = local_data.data.nexxtlv;
nexxtlvw1 = local_data.data.nexxtlvw1;
nexxtlvw2 = local_data.data.nexxtlvw2;
nexxtlvw3 = local_data.data.nexxtlvw3;
enemytogo = [0];
playerbe = local_data.data.playerbe;
fullmap = [[[], [], [[15, 14], [40, 41], [0], [1]], [], [], [[15, 14], [40, 41], [0], [1]], [], []], [[], [], [[18, 14, 14, 16], [32, 24, 24, 26], [1], [1]], [[18, 14, 14, 16], [32, 24, 24, 26], [1], [1]], [[15, 14], [40, 41], [0], [1]], [[15, 14, 14, 16], [25, 24, 24, 26], [1], [1]], [], []], [[], [], [[14, 14, 14, 16], [29, 24, 24, 26], [1], [0]], [[21, 14, 14, 20], [38, 29, 37, 39], [1], [1]], [[15, 14, 16], [25, 34, 26], [1], [1]], [[18, 14, 14, 14], [32, 24, 24, 29], [0], [1]], [], []], [[[15], [28], [0], [1]], [], [[15, 14, 14, 16], [35, 24, 24, 26], [1], [1]], [[15, 14, 14, 14], [25, 24, 24, 29], [0], [1]], [[14], [30], [0], [0]], [], [], []], [[[14, 14, 16], [27, 34, 26], [1], [0]], [[15, 14, 14, 16], [25, 24, 24, 26], [1], [1]], [[18, 17], [32, 33], [1], [1]], [[15, 14, 19], [25, 24, 36], [1], [1]], [[15, 14, 14, 16], [25, 24, 24, 26], [1], [1]], [[22, 14, 16], [40, 41, 42], [1], [1]], [[22, 23], [40, 43], [1], [1]], []]];
var entrance = local_data.data.entrance;
var posix = _root.game.playerfull._x;
var posiy = _root.game.playerfull._y;
var walkspeed = 10;
var direct = 0;
var nowalk = true;
var enemyon = enemytogo.length;
var enemyin = 1;
var deepen = 0;
var enemygo = false;
var coune = 10;
var alienatk = 0;
var knucleuse = true;
var sworduse = false;
var gunuse = false;
var atacktime = false;
var presy = false;
var balaco = 100000;
var itemn = 1;
var dmgn = 1;
var hpfinal = 100;
var playerhp = local_data.data.playerhp;
var dañoplayer = local_data.data.dañoplayer;
var lvplayer = local_data.data.lvplayer;
var coinhave = local_data.data.coinhave;
var ammocapa = 100;
var ammog = 0;
var limitpower = 200;
var power = local_data.data.power;
var sword3d = 120;
var equipw1 = local_data.data.equipw1;
var equipw2 = local_data.data.equipw2;
var ammoeq = 10;
var typeammo = 0;
var axe = 0;
var score = local_data.data.score;
var mineraltogo = 0;
var mineral = local_data.data.mineral;
var expw1lv = local_data.data.expw1lv;
var expw2lv = local_data.data.expw2lv;
var expw3lv = local_data.data.expw3lv;
var expw1 = local_data.data.expw1;
var expw2 = local_data.data.expw2;
var expw3 = local_data.data.expw3;
var expw1g = nexxtlvw1[expw1lv];
var expw2g = nexxtlvw2[expw2lv];
var expw3g = nexxtlvw3[expw3lv];
var expe = local_data.data.expe;
var expetogo = nexxtlv[lvplayer];
var itempress = false;
var itemhave = new Array();
var hits = 0;
var timehit = 0;
var combot = false;
var timing = false;
var tempscore = 0;
var bosshere = false;
var blocks = false;
var evade = false;
var timings = false;
var sensorac1 = false;
var sensorac2 = false;
var sensorac3 = false;
itemhave = local_data.data.itemhave;
itembox = local_data.data.itembox;
timew = setInterval(givepos, 10000);
if (equipw1 == 1) {
knucleuse = true;
sworduse = false;
gunuse = false;
}
if (equipw1 == 2) {
knucleuse = false;
sworduse = true;
gunuse = false;
}
if (equipw1 == 3) {
knucleuse = false;
sworduse = false;
gunuse = true;
}
if (knucleuse == true) {
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
}
_root.bmute.onRelease = function () {
if (mutek == 0) {
_root.titleson = new Sound();
_root.titleson.setVolume(0);
_root.bmute.gotoAndStop(2);
mutek = 1;
} else {
if (mutek == 1) {
_root.titleson = new Sound();
_root.titleson.setVolume(300);
_root.bmute.gotoAndStop(1);
mutek = 0;
}
}
};
_root.game.meseg.swapDepths(98000003);
_root.game.itembase.swapDepths(97999999);
_root.game.combosign.swapDepths(97999995);
_root.game.gosign.swapDepths(97999994);
_root.game.wicona.swapDepths(97999993);
_root.game.wiconb.swapDepths(97999992);
_root.game.lvuni.swapDepths(97999991);
_root.game.lvdeci.swapDepths(97999990);
_root.game.avatarim.swapDepths(97999989);
_root.game.mapbase.swapDepths(97999988);
_root.game.basehp.swapDepths(97999987);
_root.game.imhpbar.swapDepths(97999986);
_root.game.spbar.swapDepths(97999985);
_root.game.archi.swapDepths(97999984);
_root.game.alarmred.swapDepths(97999983);
alignitems();
domap();
informationp();
experietolv();
mineraltolv();
trace('p: ' + _root.game.playerfull._x);
trace('b: ' + _root.game.backg._x);
_root.game.onEnterFrame = function () {
trace('p: ' + _root.game.playerfull._x);
trace('b: ' + _root.game.backg._x);
finishg();
onemoretime();
if (gameover == false) {
doorsensors();
musicon();
checkmedals();
supamagnet();
canoneslaser();
gamagemove();
combocon();
useitemn();
informationp();
takeitems();
alienmove();
playerwalk();
playeratk();
alienclone();
equipwepon();
scrollmove();
if (shopa == true) {
shophere();
}
}
};
}
frame 358 {
function musicon() {
if (gameover == false) {
if (bosshere == false) {
_root.niv3.gotoAndStop(2);
_root.bosss.gotoAndStop(1);
_root.oversound.gotoAndStop(1);
}
if (bosshere == true) {
_root.bosss.gotoAndStop(2);
_root.niv3.gotoAndStop(1);
_root.oversound.gotoAndStop(1);
}
}
}
function givepos() {}
function domap() {
_root.game.createEmptyMovieClip('backg', -1);
espaciom = 320 * (fullmap[playerbe[0]][playerbe[1]][0].length - 1);
a = 0;
while (a < fullmap[playerbe[0]][playerbe[1]][0].length) {
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 1) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(1);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 2) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(2);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 3) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(3);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 4) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(4);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 5) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(5);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 6) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(6);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 7) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(7);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 8) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(8);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 9) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(9);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 10) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(10);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 11) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(11);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 12) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(12);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 13) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(13);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 24) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(24);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 25) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(25);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 26) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(26);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 27) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(27);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 28) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(28);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 29) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(29);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 30) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(30);
}
if (fullmap[playerbe[0]][playerbe[1]][0][a] == 31) {
_root.game.backg.attachMovie('piso1', 'pisos' + a, game.backg.getNextHighestDepth(), {'_x': a * 640 - espaciom, '_y': 400});
_root.game.backg['pisos' + a].gotoAndStop(31);
}
++a;
}
i = 0;
while (i < fullmap[playerbe[0]][playerbe[1]][1].length) {
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 1) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(1);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 2) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(2);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 3) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(3);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 4) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(4);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 5) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(5);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 6) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(6);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 7) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(7);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 8) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(8);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 9) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(9);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 10) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(10);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 11) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(11);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 12) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(12);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 13) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(13);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 14) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(14);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 15) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(15);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 16) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(16);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 17) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(17);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 18) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(18);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 19) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(19);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 20) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(20);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 21) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(21);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 22) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(22);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 23) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(23);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 44) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(44);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 45) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(45);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 46) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(46);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 47) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(47);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 48) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(48);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 49) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(49);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 50) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(50);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 51) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(51);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 52) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(52);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 53) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(53);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 54) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(54);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 55) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(55);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 56) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(56);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 57) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(57);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 58) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(58);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 59) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(59);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 60) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(60);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 61) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(61);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 62) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(62);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 63) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(63);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 64) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(64);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 65) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(65);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 66) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(66);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 67) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(67);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 68) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(68);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 69) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(69);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 70) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(70);
}
if (fullmap[playerbe[0]][playerbe[1]][1][i] == 71) {
_root.game.backg.attachMovie('pared1', 'pad' + i, game.backg.getNextHighestDepth(), {'_x': i * 640 - espaciom, '_y': 140});
_root.game.backg['pad' + i].gotoAndStop(71);
}
++i;
}
if (fullmap[playerbe[0]][playerbe[1]][2][0] == 1) {
_root.game.backg.attachMovie('levi', 'lev', game.backg.getNextHighestDepth(), {'_x': fullmap[playerbe[0]][playerbe[1]][0].length * 320 - 120, '_y': 400, '_rotation': -48, '_alpha': 0});
}
if (fullmap[playerbe[0]][playerbe[1]][3][0] == 1) {
_root.game.backg.attachMovie('levi', 'levi', game.backg.getNextHighestDepth(), {'_x': fullmap[playerbe[0]][playerbe[1]][0].length * 320 * -1 + 120, '_y': 400, '_rotation': 48, '_alpha': 0});
}
if (entrance == 1) {
_root.game.backg._x += _root.game.backg._width / 2;
direct = 0;
_root.game.playerfull._x = 200.5;
}
if (entrance == 2) {
_root.game.backg._x -= _root.game.backg._width / 2 - 640;
direct = 1;
_root.game.playerfull._x = 400.5;
}
if (entrance == 3) {
direct = 1;
_root.game.backg._x += 320;
_root.game.playerfull._x = 320.5;
}
if (entrance == 4) {
direct = 1;
_root.game.backg._x += 640;
_root.game.playerfull._x = 320.5;
}
}
function alignitems() {
_root.game.itembase.vitalidcon._y = -1500;
_root.game.itembase.mediccon._y = -1500;
_root.game.itembase.regencon._y = -1500;
_root.game.itembase.energycon._y = -1500;
_root.game.itembase.xhcon._y = -1500;
_root.game.itembase.blindcon._y = -1500;
_root.game.itembase.ammoacon._y = -1500;
_root.game.itembase.ammobcon._y = -1500;
_root.game.itembase.ammoccon._y = -1500;
_root.game.itembase.ammodcon._y = -1500;
_root.game.itembase.ammoecon._y = -1500;
_root.game.itembase.ammoxcon._y = -1500;
i = 0;
while (i < itemhave.length) {
if (itemhave[i][0] == 1) {
_root.game.itembase.vitalidcon._x = -76.5 + i * 37;
_root.game.itembase.vitalidcon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.vitalidcon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 2) {
_root.game.itembase.mediccon._x = -76.5 + i * 37;
_root.game.itembase.mediccon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.mediccon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 3) {
_root.game.itembase.regencon._x = -76.5 + i * 37;
_root.game.itembase.regencon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.regencon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 4) {
_root.game.itembase.energycon._x = -76.5 + i * 37;
_root.game.itembase.energycon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.energycon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 5) {
_root.game.itembase.xhcon._x = -76.5 + i * 37;
_root.game.itembase.xhcon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.xhcon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 6) {
_root.game.itembase.soldiercon._x = -76.5 + i * 37;
_root.game.itembase.soldiercon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.soldiercon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 7) {
_root.game.itembase.blindcon._x = -76.5 + i * 37;
_root.game.itembase.blindcon._y = -15;
cuanti = itemhave[i][1] + 1;
_root.game.itembase.blindcon.gotoAndStop(cuanti);
}
if (itemhave[i][0] == 16) {
_root.game.itembase.ammoacon._x = -76.5 + i * 37;
_root.game.itembase.ammoacon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 1;
_root.game.itembase.ammoacon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 17) {
_root.game.itembase.ammobcon._x = -76.5 + i * 37;
_root.game.itembase.ammobcon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 2;
_root.game.itembase.ammobcon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 18) {
_root.game.itembase.ammoccon._x = -76.5 + i * 37;
_root.game.itembase.ammoccon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 3;
_root.game.itembase.ammoccon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 19) {
_root.game.itembase.ammodcon._x = -76.5 + i * 37;
_root.game.itembase.ammodcon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 4;
_root.game.itembase.ammodcon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 20) {
_root.game.itembase.ammoecon._x = -76.5 + i * 37;
_root.game.itembase.ammoecon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 5;
_root.game.itembase.ammoecon.gotoAndStop(2);
}
}
if (itemhave[i][0] == 21) {
_root.game.itembase.ammoxcon._x = -76.5 + i * 37;
_root.game.itembase.ammoxcon._y = -15;
cuanti = itemhave[i][1];
ammog = cuanti;
if (ammoeq == 10) {
ammoeq = i;
typeammo = 6;
_root.game.itembase.ammoxcon.gotoAndStop(2);
}
}
++i;
}
}
function useitemn() {
if (Key.isDown(97) && atacktime != true && itempress == false || Key.isDown(49) && atacktime != true && itempress == false) {
itempress = true;
axe = 0;
idenitem();
}
if (Key.isDown(98) && atacktime != true && itempress == false || Key.isDown(50) && atacktime != true && itempress == false) {
itempress = true;
axe = 1;
idenitem();
}
if (Key.isDown(99) && atacktime != true && itempress == false || Key.isDown(51) && atacktime != true && itempress == false) {
itempress = true;
axe = 2;
idenitem();
}
if (Key.isDown(100) && atacktime != true && itempress == false || Key.isDown(52) && atacktime != true && itempress == false) {
itempress = true;
axe = 3;
idenitem();
}
if (Key.isDown(101) && atacktime != true && itempress == false || Key.isDown(53) && atacktime != true && itempress == false) {
itempress = true;
axe = 4;
idenitem();
}
if (!Key.isDown(101) && !Key.isDown(98) && !Key.isDown(99) && !Key.isDown(100) && !Key.isDown(97) && itempress == true && !Key.isDown(49) && !Key.isDown(50) && !Key.isDown(51) && !Key.isDown(52) && !Key.isDown(53)) {
itempress = false;
}
}
function idenitem() {
if (itemhave[axe][0] == 1) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[0] -= 1;
dañoplayer -= 50;
healp += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.vitalidcon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 2) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[1] -= 1;
dañoplayer -= 200;
healp += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.mediccon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 3) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[2] -= 1;
dañoplayer = 0;
healp += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.regencon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 4) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[3] -= 1;
power += 50;
powering += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.energycon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 5) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[4] -= 1;
power += 100;
powering += 1;
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.xhcon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 6) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
cuanti = itemhave[axe][1] + 1;
acceleration = true;
_root.game.itembase.soldiercon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 7) {
if (itemhave[axe][1] > 0) {
itemhave[axe][1] -= 1;
itembox[5] -= 1;
clearing += 1;
l = 0;
while (l < manchaslist.length) {
manchis = _root.game[manchaslist[l]];
manchis.removeMovieClip();
++l;
}
manchaslist.splice(0, manchaslist.length);
cuanti = itemhave[axe][1] + 1;
_root.game.itembase.blindcon.gotoAndStop(cuanti);
_root.regeso.gotoAndPlay(2);
}
}
if (itemhave[axe][0] == 16) {
ammoeq = axe;
typeammo = 1;
_root.game.itembase.ammoacon.gotoAndStop(2);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 17) {
ammoeq = axe;
typeammo = 2;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(2);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 18) {
ammoeq = axe;
typeammo = 3;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(2);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 19) {
ammoeq = axe;
typeammo = 4;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(2);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 20) {
ammoeq = axe;
typeammo = 5;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(2);
_root.game.itembase.ammoxcon.gotoAndStop(1);
}
if (itemhave[axe][0] == 21) {
ammoeq = axe;
typeammo = 6;
_root.game.itembase.ammoacon.gotoAndStop(1);
_root.game.itembase.ammobcon.gotoAndStop(1);
_root.game.itembase.ammoccon.gotoAndStop(1);
_root.game.itembase.ammodcon.gotoAndStop(1);
_root.game.itembase.ammoecon.gotoAndStop(1);
_root.game.itembase.ammoxcon.gotoAndStop(2);
}
}
function informationp() {
if (knucleuse == true) {
mineral = expw1;
mineraltogo = expw1g;
if (expw1 >= expw1g) {
expw1lv += 1;
expw1 = 0;
expw1g = nexxtlvw1[expw1lv];
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
w1attack += 5;
_root.adchiso.gotoAndPlay(2);
_root.game.itembase.weponups.gotoAndStop(2);
}
}
if (sworduse == true) {
mineral = expw2;
mineraltogo = expw2g;
if (expw2 >= expw2g) {
expw2lv += 1;
expw2 = 0;
expw2g = nexxtlvw2[expw2lv];
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
w2attack += 5;
_root.adchiso.gotoAndPlay(2);
_root.game.itembase.weponups.gotoAndStop(2);
}
}
if (gunuse == true) {
mineral = expw3;
mineraltogo = expw3g;
if (expw3 >= expw3g) {
expw3lv += 1;
expw3 = 0;
expw3g = nexxtlvw3[expw3lv];
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
guncost += 1;
_root.adchiso.gotoAndPlay(2);
_root.game.itembase.weponups.gotoAndStop(2);
}
}
if (_root.game.itembase.weponups.web._currentframe == 26) {
_root.game.itembase.weponups.gotoAndStop(1);
}
if (_root.game.itembase.levelups.web._currentframe == 26) {
_root.game.itembase.levelups.gotoAndStop(1);
}
if (expe >= expetogo) {
lvplayer += 1;
expe = 0;
expetogo = nexxtlv[lvplayer];
experietolv();
dañoplayer = 0;
_root.adchiso.gotoAndPlay(2);
playerhp += 50;
_root.game.itembase.levelups.gotoAndStop(2);
}
if (power > 200) {
power = 200;
}
if (power == 200) {
_root.game.spbar.gotoAndStop(2);
}
if (power < 200) {
_root.game.spbar.gotoAndStop(1);
}
if (dañoplayer < 0) {
dañoplayer = 0;
}
totalpower = Math.floor(power);
_root.game.spbar.spmask._xscale = totalpower / 2;
levelde = Math.floor(lvplayer / 10);
levelun = Math.floor(lvplayer - levelde * 10);
_root.game.lvdeci.gotoAndStop(levelde + 1);
_root.game.lvuni.gotoAndStop(levelun + 1);
smillo = Math.floor(mineral / 100000000);
ssmildeci = Math.floor((mineral - smillo * 100000000) / 10000000);
ssmiluni = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000) / 1000000);
ssmil = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000) / 100000);
smildeci = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000) / 10000);
smiluni = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000) / 1000);
smil = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000 - smiluni * 1000) / 100);
sdeci = Math.floor((mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000 - smiluni * 1000 - smil * 100) / 10);
suni = Math.floor(mineral - smillo * 100000000 - ssmildeci * 10000000 - ssmiluni * 1000000 - ssmil * 100000 - smildeci * 10000 - smiluni * 1000 - smil * 100 - sdeci * 10);
_root.game.itembase.souni.gotoAndStop(suni + 1);
_root.game.itembase.sodeci.gotoAndStop(sdeci + 1);
_root.game.itembase.somil.gotoAndStop(smil + 1);
_root.game.itembase.somiluni.gotoAndStop(smiluni + 1);
_root.game.itembase.somildeci.gotoAndStop(smildeci + 1);
_root.game.itembase.socmil.gotoAndStop(ssmil + 1);
_root.game.itembase.socmiluni.gotoAndStop(ssmiluni + 1);
_root.game.itembase.socmildeci.gotoAndStop(ssmildeci + 1);
_root.game.itembase.somillo.gotoAndStop(smillo + 1);
if (smillo > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 100;
_root.game.itembase.socmildeci._alpha = 100;
_root.game.itembase.somillo._alpha = 100;
} else {
if (ssmildeci > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 100;
_root.game.itembase.socmildeci._alpha = 100;
_root.game.itembase.somillo._alpha = 0;
} else {
if (ssmiluni > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 100;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (ssmil > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 100;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (smildeci > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 100;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (smiluni > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 100;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (smil > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 100;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (sdeci > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 100;
_root.game.itembase.somil._alpha = 0;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (suni > 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 0;
_root.game.itembase.somil._alpha = 0;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
} else {
if (suni == 0 && sdeci == 0 && smil == 0 && smiluni == 0 && smildeci == 0 && ssmil == 0 && ssmiluni == 0 && ssmildeci == 0 && smillo == 0) {
_root.game.itembase.souni._alpha = 100;
_root.game.itembase.sodeci._alpha = 0;
_root.game.itembase.somil._alpha = 0;
_root.game.itembase.somiluni._alpha = 0;
_root.game.itembase.somildeci._alpha = 0;
_root.game.itembase.socmil._alpha = 0;
_root.game.itembase.socmiluni._alpha = 0;
_root.game.itembase.socmildeci._alpha = 0;
_root.game.itembase.somillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
scoremi = Math.floor((mineral / mineraltogo) * 100);
_root.game.itembase.scoremask._xscale = scoremi;
emillo = Math.floor(expe / 100000000);
eemildeci = Math.floor((expe - emillo * 100000000) / 10000000);
eemiluni = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000) / 1000000);
eemil = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000) / 100000);
emildeci = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000) / 10000);
emiluni = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000) / 1000);
emil = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000 - emiluni * 1000) / 100);
edeci = Math.floor((expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000 - emiluni * 1000 - emil * 100) / 10);
euni = Math.floor(expe - emillo * 100000000 - eemildeci * 10000000 - eemiluni * 1000000 - eemil * 100000 - emildeci * 10000 - emiluni * 1000 - emil * 100 - edeci * 10);
_root.game.itembase.eouni.gotoAndStop(euni + 1);
_root.game.itembase.eodeci.gotoAndStop(edeci + 1);
_root.game.itembase.eomil.gotoAndStop(emil + 1);
_root.game.itembase.eomiluni.gotoAndStop(emiluni + 1);
_root.game.itembase.eomildeci.gotoAndStop(emildeci + 1);
_root.game.itembase.eocmil.gotoAndStop(eemil + 1);
_root.game.itembase.eocmiluni.gotoAndStop(eemiluni + 1);
_root.game.itembase.eocmildeci.gotoAndStop(eemildeci + 1);
_root.game.itembase.eomillo.gotoAndStop(emillo + 1);
if (emillo > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 100;
_root.game.itembase.eocmildeci._alpha = 100;
_root.game.itembase.eomillo._alpha = 100;
} else {
if (eemildeci > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 100;
_root.game.itembase.eocmildeci._alpha = 100;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (eemiluni > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 100;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (eemil > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 100;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (emildeci > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 100;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.itembase.eomillo._alpha = 0;
} else {
if (emiluni > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 100;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (emil > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 100;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (edeci > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 100;
_root.game.itembase.eomil._alpha = 0;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (euni > 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 0;
_root.game.itembase.eomil._alpha = 0;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
} else {
if (euni == 0 && edeci == 0 && emil == 0 && emiluni == 0 && emildeci == 0 && eemil == 0 && eemiluni == 0 && eemildeci == 0 && emillo == 0) {
_root.game.itembase.eouni._alpha = 100;
_root.game.itembase.eodeci._alpha = 0;
_root.game.itembase.eomil._alpha = 0;
_root.game.itembase.eomiluni._alpha = 0;
_root.game.itembase.eomildeci._alpha = 0;
_root.game.itembase.eocmil._alpha = 0;
_root.game.itembase.eocmiluni._alpha = 0;
_root.game.itembase.eocmildeci._alpha = 0;
_root.game.itembase.eomillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
expemi = Math.floor((expe / expetogo) * 100);
_root.game.itembase.expmask._xscale = expemi;
hppb = Math.floor(100 - (dañoplayer / playerhp) * 100);
_root.game.imhpbar.hpmask._xscale = hpfinal;
if (hpfinal != hppb) {
hpfinal = hppb;
}
}
function playerwalk() {
while (_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true)) {
_root.game.playerfull._x -= 10;
}
while (_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true)) {
_root.game.playerfull._x += 10;
}
if (uncathcount >= 10) {
playercath = false;
atacktime = false;
presy = false;
blocks = false;
uncathcount = 0;
}
if (acceleration == true) {
acceleration = false;
acecount = 1440;
speedup = 10;
}
if (acecount > 0) {
acecount -= 1;
}
if (acecount <= 0) {
speedup = 0;
}
if (slow == true) {
slow = false;
acecount = 240;
speedup = -5;
}
_root.game.playerfull.swapDepths(_root.game.playerfull._y * _root.game.playerfull._y);
if (nowalk == true && direct == 0 && blocks == false && evade == false && atacktime == false && !Key.isDown(38) && !Key.isDown(40)) {
_root.game.playerfull.gotoAndStop(1);
}
if (nowalk == true && direct == 1 && blocks == false && evade == false && atacktime == false && !Key.isDown(38) && !Key.isDown(40)) {
_root.game.playerfull.gotoAndStop(4);
}
if (Key.isDown(39)) {
scrollmove();
if (_root.game.playerfull._x < 610 && atacktime == false && playercath == false && blocks == false && evade == false) {
_root.game.playerfull._x += walkspeed + speedup;
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
if (sworduse == true) {
_root.game.playerfull.swalkr.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(2);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
direct = 0;
nowalk = false;
}
if (playercath == true && pressright == false) {
uncathcount += 1;
pressright = true;
pressleft = false;
}
} else {
if (Key.isDown(37)) {
scrollmove();
if (_root.game.playerfull._x > 30 && atacktime == false && playercath == false && blocks == false && evade == false) {
_root.game.playerfull._x -= walkspeed + speedup;
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
if (sworduse == true) {
_root.game.playerfull.swalkl.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(3);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
direct = 1;
nowalk = false;
}
if (playercath == true && pressleft == false) {
uncathcount += 1;
pressleft = true;
pressright = false;
}
} else {
if (!Key.isDown(39)) {
nowalk = true;
}
}
}
if (Key.isDown(38)) {
if (_root.game.playerfull._y > 250 && atacktime == false && blocks == false && evade == false) {
if (movingmap == false) {
_root.game.playerfull._y -= walkspeed + speedup;
}
if (movingmap == true) {
_root.game.playerfull._y -= 10;
}
if (direct == 0) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
if (sworduse == true) {
_root.game.playerfull.swalkr.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(2);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
}
if (direct == 1) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
if (sworduse == true) {
_root.game.playerfull.swalkl.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(3);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
}
}
} else {
if (Key.isDown(40)) {
if (_root.game.playerfull._y < 440 && atacktime == false && blocks == false && evade == false) {
if (movingmap == false) {
_root.game.playerfull._y += walkspeed + speedup;
}
if (movingmap == true) {
_root.game.playerfull._y += 10;
}
if (direct == 0) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
if (sworduse == true) {
_root.game.playerfull.swalkr.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(2);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(2);
}
}
if (direct == 1) {
if (knucleuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
if (sworduse == true) {
_root.game.playerfull.swalkl.gotoAndStop(2);
_root.game.playerfull.gotoAndStop(3);
}
if (gunuse == true) {
_root.game.playerfull.gotoAndStop(3);
}
}
}
}
}
}
function playeratk() {
if (_root.game.playerfull.revade._currentframe == 6 && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
evade = false;
presy = false;
}
if (_root.game.playerfull.revade._currentframe == 6 && direct == 1) {
_root.game.playerfull.gotoAndStop(1);
direct = 0;
evade = false;
presy = false;
}
if (_root.game.playerfull.levade._currentframe == 6 && direct == 0) {
_root.game.playerfull.gotoAndStop(4);
direct = 1;
evade = false;
presy = false;
}
if (_root.game.playerfull.levade._currentframe == 6 && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
evade = false;
presy = false;
}
if (_root.game.playerfull.revade._currentframe == 2 && direct == 0) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 3 && direct == 0) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 4 && direct == 0) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 2 && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 3 && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.revade._currentframe == 4 && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.levade._currentframe == 2 && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 3 && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 4 && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 2 && direct == 1) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 3 && direct == 1) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.levade._currentframe == 4 && direct == 1) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.kpd._currentframe == 4) {
atacktime = false;
_root.game.playerfull.gotoAndStop(1);
}
if (_root.game.playerfull.kpi._currentframe == 4) {
atacktime = false;
_root.game.playerfull.gotoAndStop(4);
}
if (_root.game.playerfull.specialpd._currentframe == 5 && knucleuse == true && direct == 0) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (ristalx <= 120 && ristaly <= 100 && alienob.signs != 1) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 200;
damagedo = w1attack + 200;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
++a;
}
}
if (_root.game.playerfull.specialpd._currentframe == 14 && knucleuse == true && direct == 0) {
superp = false;
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.specialpi._currentframe == 5 && knucleuse == true && direct == 1) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (ristalx <= 120 && ristaly <= 100 && alienob.signs != 1) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 200;
damagedo = w1attack + 200;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
++a;
}
}
if (_root.game.playerfull.specialpi._currentframe == 14 && knucleuse == true && direct == 1) {
superp = false;
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 4 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
power += 2;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 5;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 9 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 40;
damagedo = w1attack + 40;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 20;
}
power += 3;
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 17 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 60;
damagedo = w1attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 30;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 23 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 24 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 25 && knucleuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x += 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.rpunch._currentframe == 16 && knucleuse == true && direct == 0) {
deraprox = _root.game.playerfull._x + 30;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 30;
}
}
if (_root.game.playerfull.rpunch._currentframe == 17 && knucleuse == true && direct == 0) {
deraprox = _root.game.playerfull._x + 20;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 20;
}
}
if (_root.game.playerfull.rpunch._currentframe == 18 && knucleuse == true && direct == 0) {
deraprox = _root.game.playerfull._x + 10;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += 10;
}
}
if (_root.game.playerfull.rpunch._currentframe == 5 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 13 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 21 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rpunch._currentframe == 27 && knucleuse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.rpunch._currentframe > 2 && _root.game.playerfull.rpunch._currentframe <= 5 && knucleuse == true && direct == 0 && presy == false) {
timing = true;
}
if (_root.game.playerfull.rpunch._currentframe == 5 && knucleuse == true && direct == 0 && timing == true) {
timing = false;
_root.game.playerfull.rpunch.gotoAndPlay(7);
}
if (Key.isDown(88) && _root.game.playerfull.rpunch._currentframe > 8 && _root.game.playerfull.rpunch._currentframe <= 11 && knucleuse == true && direct == 0 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.rpunch._currentframe == 11 && knucleuse == true && direct == 0 && timing == true && power >= 5) {
timing = false;
power -= 5;
_root.game.playerfull.rpunch.gotoAndPlay(14);
}
if (_root.game.playerfull.rpunch._currentframe == 11 && knucleuse == true && direct == 0 && timing == false) {
_root.game.playerfull.rpunch.gotoAndPlay(12);
}
if (Key.isDown(88) && _root.game.playerfull.rpunch._currentframe > 16 && _root.game.playerfull.rpunch._currentframe <= 21 && knucleuse == true && direct == 0 && presy == false && power >= 10) {
timing = true;
}
if (_root.game.playerfull.rpunch._currentframe == 21 && knucleuse == true && direct == 0 && timing == true && power >= 10) {
timing = false;
power -= 10;
_root.game.playerfull.rpunch.gotoAndPlay(22);
}
if (_root.game.playerfull.lpunch._currentframe == 4 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
power += 2;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 5;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 9 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 40;
damagedo = w1attack + 40;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 20;
}
power += 3;
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 17 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 70 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 60;
damagedo = w1attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 30;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 23 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 24 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 25 && knucleuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 120 && ristaly < 30) {
hits += 1;
combot = true;
alienob.hpen -= w1attack + 30;
damagedo = w1attack + 30;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
alienob._x -= 10;
}
}
}
++a;
}
}
if (_root.game.playerfull.lpunch._currentframe == 16 && knucleuse == true && direct == 1) {
deraprox = _root.game.playerfull._x - 30;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 30;
}
}
if (_root.game.playerfull.lpunch._currentframe == 17 && knucleuse == true && direct == 1) {
deraprox = _root.game.playerfull._x - 20;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 20;
}
}
if (_root.game.playerfull.lpunch._currentframe == 18 && knucleuse == true && direct == 1) {
deraprox = _root.game.playerfull._x - 10;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= 10;
}
}
if (_root.game.playerfull.lpunch._currentframe == 5 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lpunch._currentframe == 13 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lpunch._currentframe == 21 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lpunch._currentframe == 27 && knucleuse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.lpunch._currentframe > 2 && _root.game.playerfull.lpunch._currentframe <= 5 && knucleuse == true && direct == 1 && presy == false) {
timing = true;
}
if (_root.game.playerfull.lpunch._currentframe == 5 && knucleuse == true && direct == 1 && timing == true) {
timing = false;
_root.game.playerfull.lpunch.gotoAndPlay(7);
}
if (Key.isDown(88) && _root.game.playerfull.lpunch._currentframe > 8 && _root.game.playerfull.lpunch._currentframe <= 11 && knucleuse == true && direct == 1 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.lpunch._currentframe == 11 && knucleuse == true && direct == 1 && timing == true && power >= 5) {
timing = false;
power -= 5;
_root.game.playerfull.lpunch.gotoAndPlay(14);
}
if (_root.game.playerfull.lpunch._currentframe == 11 && knucleuse == true && direct == 1 && timing == false) {
_root.game.playerfull.lpunch.gotoAndPlay(12);
}
if (Key.isDown(88) && _root.game.playerfull.lpunch._currentframe > 16 && _root.game.playerfull.lpunch._currentframe <= 21 && knucleuse == true && direct == 1 && presy == false && power >= 10) {
timing = true;
}
if (_root.game.playerfull.lpunch._currentframe == 21 && knucleuse == true && direct == 1 && timing == true && power >= 10) {
timing = false;
power -= 10;
_root.game.playerfull.lpunch.gotoAndPlay(22);
}
if (_root.game.playerfull.rswing._currentframe == 28 && sworduse == true && direct == 0) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 200 && ristaly < 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 100;
damagedo = w2attack + 100;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 28 && sworduse == true && direct == 1) {
a = 0;
while (a < enemylist.length) {
alienob = _root.game[enemylist[a]];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx < 200 && ristaly < 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 100;
damagedo = w2attack + 100;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 3 && sworduse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 20;
damagedo = w2attack + 20;
damagefun();
power += 1;
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 7 && sworduse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x <= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 30;
damagedo = w2attack + 30;
damagefun();
power += 2;
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 12 && sworduse == true && direct == 0 && power >= 3) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
sworddam = sword3d + 30;
if (alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= sworddam && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 60;
damagedo = w2attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.rswing._currentframe == 5 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rswing._currentframe == 10 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rswing._currentframe == 20 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.lswing._currentframe == 38 && sworduse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.rswing._currentframe > 2 && _root.game.playerfull.rswing._currentframe <= 4 && sworduse == true && direct == 0 && presy == false) {
timing = true;
}
if (_root.game.playerfull.rswing._currentframe == 4 && sworduse == true && direct == 0 && timing == true) {
timing = false;
_root.game.playerfull.rswing.gotoAndPlay(6);
}
if (Key.isDown(88) && _root.game.playerfull.rswing._currentframe > 6 && _root.game.playerfull.rswing._currentframe <= 9 && sworduse == true && direct == 0 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.rswing._currentframe == 9 && sworduse == true && direct == 0 && timing == true && movingmap == false && power >= 3) {
timing = false;
power -= 5;
_root.game.playerfull.rswing.gotoAndPlay(11);
}
if (Key.isDown(88) && _root.game.playerfull.rswing._currentframe > 12 && _root.game.playerfull.rswing._currentframe <= 15 && sworduse == true && direct == 0 && presy == false && power >= 15) {
timing = true;
}
if (_root.game.playerfull.rswing._currentframe == 15 && sworduse == true && direct == 0 && timing == true && power >= 15) {
timing = false;
power -= 10;
direct = 1;
_root.game.playerfull.gotoAndStop(8);
_root.game.playerfull.lswing.gotoAndPlay(21);
}
if (_root.game.playerfull.rswing._currentframe == 15 && sworduse == true && direct == 0 && timing == false) {
timing = false;
_root.game.playerfull.rswing.gotoAndPlay(16);
}
if (_root.game.playerfull.rswing._currentframe == 12 && sworduse == true && direct == 0) {
deraprox = _root.game.playerfull._x + sword3d;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += sword3d;
}
}
if (_root.game.playerfull.rswing._currentframe == 13 && sworduse == true && direct == 0) {
deraprox = _root.game.playerfull._x + sword3d;
if (deraprox > 610) {
_root.game.playerfull._x = 610.5;
} else {
_root.game.playerfull._x += sword3d;
}
}
if (_root.game.playerfull.lswing._currentframe == 3 && sworduse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 30;
damagedo = w2attack + 30;
damagefun();
power += 1;
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 7 && sworduse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x >= alienob._x && alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= 120 && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 50;
damagedo = w2attack + 50;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
power += 2;
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 12 && sworduse == true && direct == 1 && power >= 3) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
sworddam = sword3d + 30;
if (alienob.hpen > 0 && alienob.signs != 1) {
if (ristalx <= sword3d && ristaly <= 50) {
hits += 1;
combot = true;
alienob.hpen -= w2attack + 60;
damagedo = w2attack + 60;
damagefun();
if (alienob.eny == 1) {
alienob.fase = 66;
}
}
}
++a;
}
}
if (_root.game.playerfull.lswing._currentframe == 5 && sworduse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lswing._currentframe == 10 && sworduse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lswing._currentframe == 20 && sworduse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.rswing._currentframe == 38 && sworduse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.lswing._currentframe > 2 && _root.game.playerfull.lswing._currentframe <= 5 && sworduse == true && direct == 1 && presy == false) {
timing = true;
}
if (_root.game.playerfull.lswing._currentframe == 5 && sworduse == true && direct == 1 && timing == true) {
timing = false;
_root.game.playerfull.lswing.gotoAndPlay(6);
}
if (Key.isDown(88) && _root.game.playerfull.lswing._currentframe > 6 && _root.game.playerfull.lswing._currentframe <= 9 && sworduse == true && direct == 1 && presy == false && power >= 5) {
timing = true;
}
if (_root.game.playerfull.lswing._currentframe == 9 && sworduse == true && direct == 1 && timing == true && movingmap == false && power >= 3) {
timing = false;
power -= 5;
_root.game.playerfull.lswing.gotoAndPlay(11);
}
if (Key.isDown(88) && _root.game.playerfull.lswing._currentframe > 12 && _root.game.playerfull.lswing._currentframe <= 15 && sworduse == true && direct == 1 && presy == false && power >= 15) {
timing = true;
}
if (_root.game.playerfull.lswing._currentframe == 15 && sworduse == true && direct == 1 && timing == true && power >= 15) {
timing = false;
power -= 10;
direct = 0;
_root.game.playerfull.gotoAndStop(7);
_root.game.playerfull.rswing.gotoAndPlay(21);
}
if (_root.game.playerfull.lswing._currentframe == 15 && sworduse == true && direct == 1 && timing == false) {
timing = false;
_root.game.playerfull.lswing.gotoAndPlay(16);
}
if (_root.game.playerfull.lswing._currentframe == 12 && sworduse == true && direct == 1) {
deraprox = _root.game.playerfull._x - sword3d;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= sword3d;
}
}
if (_root.game.playerfull.lswing._currentframe == 13 && sworduse == true && direct == 1) {
deraprox = _root.game.playerfull._x - sword3d;
if (deraprox < 30) {
_root.game.playerfull._x = 30.5;
} else {
_root.game.playerfull._x -= sword3d;
}
}
if (_root.game.playerfull.rshot._currentframe == 37 && gunuse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rshot._currentframe == 23 && gunuse == true && direct == 0 && timing == false) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (_root.game.playerfull.rshot._currentframe == 12 && gunuse == true && direct == 0) {
_root.game.playerfull.gotoAndStop(1);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.rshot._currentframe > 5 && _root.game.playerfull.rshot._currentframe <= 8 && gunuse == true && direct == 0 && presy == false) {
timing = true;
}
if (Key.isDown(88) && _root.game.playerfull.rshot._currentframe > 5 && _root.game.playerfull.rshot._currentframe <= 8 && gunuse == true && direct == 0 && presy == false) {
timing = false;
timings = true;
}
if (_root.game.playerfull.rshot._currentframe == 8 && gunuse == true && direct == 0 && timing == true) {
timing = false;
_root.game.playerfull.rshot.gotoAndPlay(4);
}
if (_root.game.playerfull.rshot._currentframe == 8 && gunuse == true && direct == 0 && timings == true && power >= 10) {
timings = false;
power -= 10;
_root.game.playerfull.rshot.gotoAndPlay(13);
}
if (Key.isDown(88) && _root.game.playerfull.rshot._currentframe > 15 && _root.game.playerfull.rshot._currentframe <= 23 && gunuse == true && direct == 0 && presy == false) {
timing = true;
}
if (_root.game.playerfull.rshot._currentframe == 23 && gunuse == true && direct == 0 && timing == true && power >= 25) {
timing = false;
power -= 25;
_root.game.playerfull.rshot.gotoAndPlay(24);
}
if (_root.game.playerfull.lshot._currentframe == 37 && gunuse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lshot._currentframe == 23 && gunuse == true && direct == 1 && timing == false) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (_root.game.playerfull.lshot._currentframe == 12 && gunuse == true && direct == 1) {
_root.game.playerfull.gotoAndStop(4);
atacktime = false;
}
if (Key.isDown(90) && _root.game.playerfull.lshot._currentframe > 5 && _root.game.playerfull.lshot._currentframe <= 8 && gunuse == true && direct == 1 && presy == false) {
timing = true;
}
if (Key.isDown(88) && _root.game.playerfull.lshot._currentframe > 5 && _root.game.playerfull.lshot._currentframe <= 8 && gunuse == true && direct == 1 && presy == false) {
timing = false;
timings = true;
}
if (_root.game.playerfull.lshot._currentframe == 8 && gunuse == true && direct == 1 && timing == true) {
timing = false;
_root.game.playerfull.lshot.gotoAndPlay(4);
}
if (_root.game.playerfull.lshot._currentframe == 8 && gunuse == true && direct == 1 && timings == true && power >= 10) {
timings = false;
power -= 10;
_root.game.playerfull.lshot.gotoAndPlay(13);
}
if (Key.isDown(88) && _root.game.playerfull.lshot._currentframe > 15 && _root.game.playerfull.lshot._currentframe <= 23 && gunuse == true && direct == 1 && presy == false) {
timing = true;
}
if (_root.game.playerfull.lshot._currentframe == 23 && gunuse == true && direct == 1 && timing == true && power >= 25) {
timing = false;
power -= 25;
_root.game.playerfull.lshot.gotoAndPlay(24);
}
if (_root.game.playerfull.rshot._currentframe == 18 && gunuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x < alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x < alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 11) {
if (ristalx < 600 && ristaly < 50) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (_root.game.playerfull.rshot._currentframe == 30 && gunuse == true && direct == 0 || _root.game.playerfull.rshot._currentframe == 31 && gunuse == true && direct == 0 || _root.game.playerfull.rshot._currentframe == 32 && gunuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x < alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x < alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 11) {
if (ristalx < 600 && ristaly < 75) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (_root.game.playerfull.rshot._currentframe == 5 && gunuse == true && direct == 0) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x < alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x < alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x < alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x < alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x < alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x < alienob._x && alienob.fase != 7 && alienob.eny == 11) {
if (ristalx < 600 && ristaly < 25) {
hits += 1;
combot = true;
power += guncost;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
_root.game.bulletd.duplicateMovieClip('balaex', 99999999, {'_x': alienob._x, '_y': alienob._y});
break;
}
}
++a;
}
}
if (_root.game.playerfull.lshot._currentframe == 5 && gunuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x > alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x > alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 11) {
if (ristalx < 600 && ristaly < 25) {
hits += 1;
combot = true;
power += guncost;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
_root.game.bulletd.duplicateMovieClip('balaex', 99999999, {'_x': alienob._x, '_y': alienob._y});
break;
}
}
++a;
}
}
if (_root.game.playerfull.lshot._currentframe == 18 && gunuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x > alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x > alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 11) {
if (ristalx < 600 && ristaly < 50) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (_root.game.playerfull.lshot._currentframe == 30 && gunuse == true && direct == 1 || _root.game.playerfull.lshot._currentframe == 31 && gunuse == true && direct == 1 || _root.game.playerfull.lshot._currentframe == 32 && gunuse == true && direct == 1) {
a = 0;
while (a < deepen) {
alienob = _root.game['newalien' + a];
rx = _root.game.playerfull._x - alienob._x;
ry = _root.game.playerfull._y - alienob._y;
ristal = Math.sqrt(rx * rx + ry * ry);
ristalx = Math.sqrt(rx * rx);
ristaly = Math.sqrt(ry * ry);
if (_root.game.playerfull._x > alienob._x && alienob.fase != 8 && alienob.eny == 1 || _root.game.playerfull._x > alienob._x && alienob.fase != 6 && alienob.eny == 2 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 3 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 4 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 5 || _root.game.playerfull._x > alienob._x && alienob.fase != 15 && alienob.eny == 6 || _root.game.playerfull._x > alienob._x && alienob.fase != 12 && alienob.eny == 7 || _root.game.playerfull._x > alienob._x && alienob.fase != 5 && alienob.eny == 8 || _root.game.playerfull._x > alienob._x && alienob.fase != 7 && alienob.eny == 11) {
if (ristalx < 600 && ristaly < 75) {
hits += 1;
combot = true;
if (itemhave[ammoeq][0] == 16) {
alienob.hpen -= 100;
damagedo = 100;
damagefun();
}
if (itemhave[ammoeq][0] == 17) {
alienob.hpen -= 200;
damagedo = 200;
damagefun();
}
if (itemhave[ammoeq][0] == 18) {
alienob.hpen -= 300;
damagedo = 300;
damagefun();
}
if (itemhave[ammoeq][0] == 19) {
alienob.hpen -= 400;
damagedo = 400;
damagefun();
}
if (itemhave[ammoeq][0] == 20) {
alienob.hpen -= 500;
damagedo = 500;
damagefun();
}
if (itemhave[ammoeq][0] == 21) {
alienob.hpen -= 600;
damagedo = 600;
damagefun();
}
}
}
++a;
}
}
if (Key.isDown(90) && superp == false && evade == false && blocks == false) {
if (knucleuse == true && direct == 0 && presy == false) {
_root.game.playerfull.gotoAndStop(5);
presy = true;
atacktime = true;
}
if (knucleuse == true && direct == 1 && presy == false) {
_root.game.playerfull.gotoAndStop(6);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 0 && presy == false) {
_root.game.playerfull.gotoAndStop(7);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 1 && presy == false) {
_root.game.playerfull.gotoAndStop(8);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 0 && presy == false) {
_root.game.playerfull.gotoAndStop(9);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 1 && presy == false) {
_root.game.playerfull.gotoAndStop(10);
presy = true;
atacktime = true;
}
}
if (!Key.isDown(90) && presy == true && playercath == false && !Key.isDown(88)) {
blocks = false;
presy = false;
}
if (!Key.isDown(67)) {
blocks = false;
}
if (Key.isDown(45) && atacktime == false && evade == false && blocks == false && blocks == false) {
if (knucleuse == true && direct == 0 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(11);
presy = true;
atacktime = true;
}
if (knucleuse == true && direct == 1 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(12);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 0 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(13);
presy = true;
atacktime = true;
}
if (sworduse == true && direct == 1 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(14);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 0 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(15);
presy = true;
atacktime = true;
}
if (gunuse == true && direct == 1 && presy == false && power >= 200) {
superp = true;
power -= 200;
_root.game.playerfull.gotoAndStop(16);
presy = true;
atacktime = true;
}
presy = true;
}
if (Key.isDown(67) && superp == false && evade == false && atacktime == false) {
if (direct == 0) {
_root.game.playerfull.gotoAndStop(21);
}
if (direct == 1) {
_root.game.playerfull.gotoAndStop(22);
}
blocks = true;
presy = true;
}
if (blocks == true && superp == false && Key.isDown(37) && evade == false && atacktime == false && movingmap == false && power >= 3) {
blocks = false;
evade = true;
power -= 3;
_root.game.playerfull.gotoAndStop(23);
}
if (blocks == true && superp == false && Key.isDown(39) && evade == false && atacktime == false && movingmap == false && power >= 3) {
blocks = false;
evade = true;
power -= 3;
_root.game.playerfull.gotoAndStop(24);
}
if (_root.game.gosign._x == 500) {
_root.beepgo.gotoAndStop(2);
_root.game.gosign._x = 501;
}
if (_root.game.gosign._x == 130) {
_root.beepgo.gotoAndStop(2);
_root.game.gosign._x = 131;
}
if (_root.game.gosign._x == 800) {
_root.beepgo.gotoAndStop(1);
}
if (_root.game.playerfull.rpunch._currentframe == 23) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 23) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.rpunch._currentframe == 3) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.rpunch._currentframe == 8) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 3) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 8) {
_root.punchs1.gotoAndPlay(2);
}
if (_root.game.playerfull.rpunch._currentframe == 15) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.lpunch._currentframe == 15) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 1) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 6) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 11) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 1) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 6) {
_root.essow.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 11) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 21) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.rswing._currentframe == 28) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 21) {
_root.essowx.gotoAndPlay(2);
}
if (_root.game.playerfull.lswing._currentframe == 28) {
_root.spunchs.gotoAndPlay(2);
}
if (_root.game.playerfull.rshot._currentframe == 4) {
_root.gunnys.gotoAndPlay(2);
}
if (_root.game.playerfull.rshot._currentframe == 18) {
_root.entresas.gotoAndPlay(2);
}
if (_root.game.playerfull.lshot._currentframe == 4) {
_root.gunnys.gotoAndPlay(2);
}
if (_root.game.playerfull.lshot._currentframe == 18) {
_root.entresas.gotoAndPlay(2);
}
if (_root.game.playerfull.rshot._currentframe == 30) {
_root.swas.gotoAndPlay(2);
}
if (_root.game.playerfull.lshot._currentframe == 30) {
_root.swas.gotoAndPlay(2);
}
if (_root.game.playerfull.revade._currentframe == 1) {
_root.evadefx.gotoAndPlay(2);
}
if (_root.game.playerfull.levade._currentframe == 1) {
_root.evadefx.gotoAndPlay(2);
}
}
function equipwepon() {
if (knucleuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (Key.isDown(65) && atacktime != true) {
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(1);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(1);
}
}
if (Key.isDown(83) && atacktime != true) {
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(1);
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(1);
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(1);
}
}
if (_root.game.balaex._currentframe == 5) {
_root.game.balaex.removeMovieClip();
}
}
function alienclone() {
++coune;
if (coune == 36) {
enemygo = true;
coune = 0;
}
if (enemyon != enemyin && enemygo == true) {
if (enemytogo[enemyin] == 1) {
randy = Math.floor(Math.random() * 2);
altus = Math.floor(Math.random() * 211);
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
xan = 700;
}
if (sitedoor == 0) {
xan = -100;
}
_root.game.alienen.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan, '_y': altus + 260, 'hpen': 300, 'eny': 1, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 0, 'scoredrop': 10, 'expdrop': 25, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 12;
}
if (enemytogo[enemyin] == 2) {
randy = Math.floor(Math.random() * 2);
altus = _root.playerfull._y;
_root.game.aliendos.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan, '_y': altus + 0.5, 'hpen': 200, 'eny': 2, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 30, 'expdrop': 30, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 0;
}
if (enemytogo[enemyin] == 3) {
randy = Math.floor(Math.random() * 2);
altus = Math.floor(Math.random() * 211);
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
xan = 700;
}
if (sitedoor == 0) {
xan = -100;
}
_root.game.alientres.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan + 0.5, '_y': altus + 260.5, 'hpen': 100, 'eny': 3, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 1, 'item3': 1, 'scoredrop': 1, 'expdrop': 5, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 28;
}
if (enemytogo[enemyin] == 4) {
_root.game.aliencuatro.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 500, 'eny': 4, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 50, 'expdrop': 60, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 5;
}
if (enemytogo[enemyin] == 5) {
_root.game.aliencinco.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 500, 'eny': 5, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 200, 'expdrop': 200, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = -10;
}
if (enemytogo[enemyin] == 6) {
_root.game.alienseis.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 600, 'eny': 6, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 500, 'expdrop': 400, 'exis': 1, 'signs': 0, 'standc': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
if (enemytogo[enemyin] == 7) {
_root.game.aliensiete.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 500, 'eny': 7, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 300, 'expdrop': 300, 'exis': 1, 'signs': 0, 'downup': 0, 'timeat': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
if (enemytogo[enemyin] == 8) {
_root.game.bossone.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 350.5, '_y': 300, 'hpen': 3000, 'eny': 8, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 2, 'scoredrop': 2000, 'expdrop': 500, 'exis': 1, 'signs': 0, 'timeat': 0, 'downup': 0, 'righleft': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
if (enemytogo[enemyin] == 11) {
_root.game.bosstree.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 500.5, '_y': 350, 'hpen': 6000, 'eny': 11, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 1, 'item3': 2, 'scoredrop': 500, 'expdrop': 15000, 'exis': 1, 'signs': 0, 'standc': 0, 'direct': 1, 'shots': 0, 'spinc': 0, 'updown': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 30;
}
}
}
function alienmove() {
t = 0;
while (t < manchaslist.length) {
manchis = _root.game[manchaslist[t]];
if (manchis._currentframe == 300) {
manchis.removeMovieClip();
manchaslist.splice(t, 1);
}
++t;
}
r = 0;
while (r < enemylist.length) {
alienob = _root.game[enemylist[r]];
alienob.swapDepths(alienob._y * alienob._y);
dx = _root.game.playerfull._x - alienob._x;
dy = _root.game.playerfull._y - alienob._y;
distal = Math.sqrt(dx * dx + dy * dy);
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
ranspace = Math.floor(Math.random() * 100);
if (alienob.exis != 1) {
enemylist.splice(r, 1);
}
if (alienob.eny == 1) {
if (distalx < 150 - ranspace && alienob.fase == 1) {
alienob.fase = 2;
}
if (alienob.fase == 66) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(7);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(8);
}
}
if (alienob.knol._currentframe == 3) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x += 10;
alienob.fase = 3;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x -= 10;
alienob.fase = 3;
alienob.gotoAndStop(2);
}
}
if (alienob.knod._currentframe == 3) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x += 10;
alienob.fase = 3;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x -= 10;
alienob.fase = 3;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 1) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 5;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 5;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 2) {
if (alienatk < 4) {
alienatk += 1;
alienob.fase = 3;
}
selectf = Math.floor(Math.random() * 2);
if (selectf == 0 && alienob.fase == 2) {
alienob.fase = 4;
}
if (selectf == 1 && alienob.fase == 2) {
alienob.fase = 5;
}
}
if (alienob.fase == 4) {
alienob._y -= 4;
if (alienob._y < 250) {
alienob.fase = 5;
}
if (distalx > 150 && alienob.fase == 4) {
alienob.fase = 1;
}
othewa = Math.floor(Math.random() * 40);
if (othewa == 2) {
alienob.fase = 5;
}
if (alienatk < 4) {
alienob.fase = 2;
}
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 5) {
alienob._y += 4;
if (alienob._y > 460) {
alienob.fase = 4;
}
if (distalx > 150 && alienob.fase == 5) {
alienob.fase = 1;
}
othewa = Math.floor(Math.random() * 40);
if (othewa == 3) {
alienob.fase = 4;
}
if (alienatk < 4) {
alienob.fase = 2;
}
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 3) {
if (distalx < 60 && distaly < 25) {
alienob.fase = 6;
}
if (distalx > 40 && alienob.fase == 3) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 5;
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 5;
alienob.gotoAndStop(2);
}
}
if (distaly > 15 && alienob.fase == 3) {
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 5;
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 5;
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(1);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(2);
}
}
}
}
if (alienob.fase == 6) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(3);
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(4);
}
if (alienob.ratka._currentframe == 4) {
_root.ensouno.gotoAndPlay(2);
alienob._x -= 5;
}
if (alienob.ratka._currentframe == 5 && distalx < 55 && distaly < 25) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 8;
}
if (blocks == true) {
dañoplayer += 1;
if (power < 200) {
power += 1;
}
}
}
}
if (alienob.latka._currentframe == 4) {
_root.ensouno.gotoAndPlay(2);
alienob._x += 5;
}
if (alienob.latka._currentframe == 5 && distalx < 55 && distaly < 25) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 8;
}
if (blocks == true) {
dañoplayer += 1;
if (power < 200) {
power += 1;
}
}
}
}
if (alienob.ratka._currentframe == 8) {
alienob.fase = 3;
}
if (alienob.latka._currentframe == 8) {
alienob.fase = 3;
}
}
if (alienob.hpen <= 0 && alienob.fase != 7 && alienob.fase != 8) {
alienob.fase = 7;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
greenflea += 1;
}
if (alienob.fase == 7) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(5);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(6);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 20, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 8;
}
if (alienob.deathr._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.deathl._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.deathr._currentframe == 7) {
alienob.removeMovieClip();
alienatk -= 1;
enemylist.splice(r, 1);
}
if (alienob.deathl._currentframe == 7) {
alienob.removeMovieClip();
alienatk -= 1;
enemylist.splice(r, 1);
}
}
if (alienob.eny == 2) {
if (alienob.fase == 1) {
alienob.siten = Math.floor(Math.random() * 2);
if (alienob.siten == 1) {
_root.alienob._x = 580;
alienob.gotoAndStop(3);
_root.alienob._y = _root.game.playerfull._y + 0.5;
alienob.fase = 2;
}
if (alienob.siten == 0) {
_root.alienob._x = 70;
alienob.gotoAndStop(2);
_root.alienob._y = _root.game.playerfull._y + 0.5;
alienob.fase = 2;
}
}
if (alienob.fase == 2) {
if (alienob.alidosd._currentframe == 12) {
alienob.gotoAndStop(4);
alienob.fase = 3;
}
if (alienob.alidosi._currentframe == 12) {
alienob.gotoAndStop(5);
alienob.fase = 3;
}
}
if (alienob.fase == 3) {
if (alienob.alidosad._currentframe == 10) {
_root.entresas.gotoAndPlay(2);
}
if (alienob.alidosai._currentframe == 10) {
_root.entresas.gotoAndPlay(2);
}
if (alienob.alidosad._currentframe == 15) {
alienob.gotoAndStop(6);
alienob.fase = 4;
}
if (alienob.alidosad._currentframe == 11 && distaly < 20) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
if (alienob.alidosai._currentframe == 11 && distaly < 20) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
if (alienob.alidosai._currentframe == 15) {
alienob.gotoAndStop(7);
alienob.fase = 4;
}
}
if (alienob.fase == 4) {
if (alienob.alidosgd._currentframe == 9) {
alienob.fase = 1;
}
if (alienob.alidosgi._currentframe == 9) {
alienob.fase = 1;
}
}
if (alienob.hpen <= 0 && alienob.fase != 5 && alienob.fase != 6) {
alienob.fase = 5;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
redsquid += 1;
}
if (alienob.fase == 5) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(9);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(8);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 30, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 6;
}
if (alienob.alidosdd._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.alidosdi._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.alidosdd._currentframe == 11) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.alidosdi._currentframe == 11) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 3) {
if (alienob.fase == 1) {
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 5;
alienob.gotoAndStop(2);
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 5;
alienob.gotoAndStop(3);
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 3;
}
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 3;
}
}
if (alienob.fase == 1 && distalx < 100 && distaly < 15) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(4);
alienob.fase = 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(5);
alienob.fase = 2;
}
}
if (alienob.fase == 2) {
if (alienob.ratkiz._currentframe == 2 || alienob.ratkiz._currentframe == 3 || alienob.ratkiz._currentframe == 4 || alienob.ratkiz._currentframe == 5 || alienob.ratkiz._currentframe == 6 || alienob.ratkiz._currentframe == 7 || alienob.ratkiz._currentframe == 8 || alienob.ratkiz._currentframe == 9 || alienob.ratkiz._currentframe == 10) {
alienob._x -= 15;
}
if (alienob.ratkiz._currentframe == 10) {
alienob.fase = 1;
}
if (alienob.ratkiz._currentframe == 6 && distalx < 30 && distaly < 50 || alienob.ratkiz._currentframe == 7 && distalx < 30 && distaly < 50 || alienob.ratkiz._currentframe == 8 && distalx < 30 && distaly < 50) {
alienob.gotoAndStop(6);
alienob.fase = 3;
}
if (alienob.ratkder._currentframe == 2 || alienob.ratkder._currentframe == 3 || alienob.ratkder._currentframe == 4 || alienob.ratkder._currentframe == 5 || alienob.ratkder._currentframe == 6 || alienob.ratkder._currentframe == 7 || alienob.ratkder._currentframe == 8 || alienob.ratkder._currentframe == 9 || alienob.ratkder._currentframe == 10) {
alienob._x += 15;
}
if (alienob.ratkder._currentframe == 10) {
alienob.fase = 1;
}
if (alienob.ratkder._currentframe == 6 && distalx < 30 && distaly < 50 || alienob.ratkder._currentframe == 7 && distalx < 30 && distaly < 50 || alienob.ratkder._currentframe == 8 && distalx < 30 && distaly < 50) {
alienob.gotoAndStop(7);
alienob.fase = 3;
}
}
if (alienob.fase == 3) {
alienob._x = _root.game.playerfull._x;
alienob._y = _root.game.playerfull._y + 1;
dañoplayer += 2;
}
if (alienob.hpen <= 0 && alienob.fase != 4 && alienob.fase != 5) {
alienob.fase = 4;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
leach += 1;
}
if (alienob.fase == 4) {
if (alienob._currentframe == 6) {
alienob.gotoAndStop(10);
alienob._y += 25;
}
if (alienob._currentframe == 7) {
alienob.gotoAndStop(11);
alienob._y += 25;
}
if (alienob._currentframe == 4) {
alienob.gotoAndStop(10);
alienob._y += 25;
}
if (alienob._currentframe == 5) {
alienob.gotoAndStop(11);
alienob._y += 25;
}
if (alienob._currentframe == 2) {
alienob.gotoAndStop(8);
}
if (alienob._currentframe == 3) {
alienob.gotoAndStop(9);
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40 + 0.5, 'mount': 10, 'typeob': 1, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40 + 0.5, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40 + 0.5, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 5;
}
if (alienob.rolldi._currentframe == 7) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.rolldd._currentframe == 7) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.suckiz._currentframe == 8) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.suckde._currentframe == 8) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 4) {
if (alienob.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 700.5;
alienob.fase = 2;
alienob.gotoAndStop(1);
}
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = -100.5;
alienob.fase = 3;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 2) {
if (alienob.aci._currentframe == 2) {
alienob._x -= 2;
}
if (alienob.aci._currentframe == 3) {
alienob._x -= 4;
}
if (alienob.aci._currentframe == 4 || alienob.aci._currentframe == 5 || alienob.aci._currentframe == 6) {
alienob._x -= 6;
}
if (alienob.aci._currentframe == 7) {
alienob._x -= 3;
}
if (alienob._x < -50) {
alienob.fase = 1;
}
if (_root.game.playerfull._x < alienob._x && distalx < 80 && distaly < 50) {
alienob.fase = 4;
alienob.gotoAndStop(3);
}
}
if (alienob.fase == 3) {
if (alienob.acd._currentframe == 2) {
alienob._x += 2;
}
if (alienob.acd._currentframe == 3) {
alienob._x += 4;
}
if (alienob.acd._currentframe == 4 || alienob.acd._currentframe == 5 || alienob.acd._currentframe == 6) {
alienob._x += 6;
}
if (alienob.acd._currentframe == 7) {
alienob._x += 3;
}
if (alienob._x > 700) {
alienob.fase = 1;
}
if (_root.game.playerfull._x > alienob._x && distalx < 70 && distaly < 40) {
alienob.fase = 5;
alienob.gotoAndStop(4);
}
}
if (alienob.fase == 4) {
if (alienob.aai._currentframe == 13) {
_root.blobs.gotoAndPlay(2);
}
if (alienob.aai._currentframe == 16) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aai._currentframe == 17) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aai._currentframe == 18) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 10;
}
if (blocks == true) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aai._currentframe == 22) {
alienob.gotoAndStop(1);
alienob.fase = 2;
}
}
if (alienob.fase == 5) {
if (alienob.aad._currentframe == 13) {
_root.blobs.gotoAndPlay(2);
}
if (alienob.aad._currentframe == 16) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aad._currentframe == 17) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aad._currentframe == 18) {
if (distalx < 80 && distaly < 40) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 10;
}
if (blocks == true) {
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 2;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienob.aad._currentframe == 22) {
alienob.gotoAndStop(2);
alienob.fase = 3;
}
}
if (alienob.hpen <= 0 && alienob.fase != 6 && alienob.fase != 7) {
alienob.fase = 6;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
plasma += 1;
}
if (alienob.fase == 6) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(5);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(6);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40, 'mount': 50, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40, 'mater': 1, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x + 0.5, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 7;
}
if (alienob.ami._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.amd._currentframe == 1) {
_root.endieso.gotoAndPlay(2);
}
if (alienob.ami._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.amd._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 5) {
if (alienob.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 670;
alienob.fase = 2;
alienob.signs = 1;
alienob.gotoAndStop(1);
}
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = -30;
alienob.fase = 3;
alienob.signs = 1;
alienob.gotoAndStop(2);
}
}
if (alienob.fase == 2 && alienob.si._currentframe == 60) {
alienob._x += 100;
alienob.gotoAndStop(3);
alienob.fase = 4;
alienob.signs = 0;
}
if (alienob.fase == 3 && alienob.sd._currentframe == 60) {
alienob._x -= 100;
alienob.gotoAndStop(4);
alienob.fase = 5;
alienob.signs = 0;
}
if (alienob.fase == 4) {
alienob._x -= 3;
if (distalx < 150 && alienob._x < 620) {
alienob.fase = 6;
alienob.gotoAndStop(5);
}
}
if (alienob.fase == 5) {
alienob._x += 3;
if (distalx < 150 && alienob._x > 30) {
alienob.fase = 8;
alienob.gotoAndStop(6);
}
}
if (alienob.ai._currentframe == 8) {
_root.blobs.gotoAndPlay(2);
}
if (alienob.ad._currentframe == 8) {
_root.blobs.gotoAndPlay(2);
}
if (alienob.di._currentframe == 2) {
_root.blobs.gotoAndPlay(2);
}
if (alienob.dd._currentframe == 2) {
_root.blobs.gotoAndPlay(2);
}
if (alienob.fase == 6 && alienob.ai._currentframe == 12) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 1, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 2, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 3, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 4, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.fase == 6 && alienob.ai._currentframe == 10) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 5, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 6, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 7, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x - 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 8, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.fase == 8 && alienob.ad._currentframe == 12) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 1, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 2, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 3, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 4, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.fase == 8 && alienob.ad._currentframe == 10) {
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 5, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 6, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 7, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
_root.game.sporee.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienob._x + 30, '_y': alienob._y, 'hpen': 0, 'eny': 999, 'siten': 0, 'fase': 8, 'exis': 1, 'din': 300});
enemylist.push('newalien' + deepen);
++deepen;
}
if (alienob.hpen <= 0 && alienob.fase != 9 && alienob.fase != 7) {
alienob.fase = 9;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
abomination += 1;
}
if (alienob.fase == 9) {
if (_root.game.playerfull._x < alienob._x) {
alienob.gotoAndStop(7);
} else {
if (_root.game.playerfull._x > alienob._x) {
alienob.gotoAndStop(8);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 80, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 5, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 7;
}
if (alienob.di._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.dd._currentframe == 12) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.ai._currentframe == 20) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.ad._currentframe == 20) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
if (alienob.eny == 999) {
if (alienob.fase == 1) {
alienob.din -= 1;
alienob._x -= 1;
}
if (alienob.fase == 2) {
alienob.din -= 1;
alienob._x += 1;
alienob.hpen -= 1;
}
if (alienob.fase == 3) {
alienob.din -= 1;
alienob._y -= 1;
}
if (alienob.fase == 4) {
alienob.din -= 1;
alienob._y += 1;
}
if (alienob.fase == 5) {
alienob.din -= 1;
alienob._x += 1;
alienob._y += 1;
}
if (alienob.fase == 6) {
alienob.din -= 1;
alienob._x += 1;
alienob._y -= 1;
alienob.hpen -= 1;
}
if (alienob.fase == 7) {
alienob.din -= 1;
alienob._x -= 1;
alienob._y -= 1;
}
if (alienob.fase == 8) {
alienob.din -= 1;
alienob._x -= 1;
alienob._y += 1;
}
if (distalx < 20 && distaly < 20 && alienob.fase != 10) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 10;
if (power < 100) {
power += 1;
}
}
}
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': alienob._x + 1.5, '_y': alienob._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
alienob.fase = 10;
alienob.gotoAndStop(2);
}
if (alienob.expl._currentframe == 5) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
if (alienob.din < 0 || alienob._y < 250) {
alienob.fase = 10;
alienob.gotoAndStop(2);
}
}
if (alienob.eny == 6) {
if (alienob.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 600;
alienob.fase = 2;
alienob.signs = 1;
alienob.gotoAndStop(2);
}
if (sitedoor == 0) {
altuen = Math.floor(Math.random() * 200);
alienob._y = 250 + altuen;
alienob._x = 50;
alienob.fase = 3;
alienob.signs = 1;
alienob.gotoAndStop(1);
}
}
if (alienob.fase == 2) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
}
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 4;
alienob.fase = 3;
momento = alienob.apeari._currentframe;
alienob.gotoAndStop(2);
alienob.apeard.gotoAndPlay(momento);
}
if (alienob.apeard._currentframe == 6) {
alienob.fase = 4;
alienob.gotoAndStop(3);
}
if (alienob.apeari._currentframe == 6) {
alienob.fase = 5;
alienob.gotoAndStop(4);
}
}
if (alienob.fase == 3) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
alienob.fase = 2;
momento = alienob.apeard._currentframe;
alienob.gotoAndStop(1);
alienob.apeari.gotoAndPlay(momento);
}
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 4;
}
if (alienob.apeari._currentframe == 6) {
alienob.fase = 5;
alienob.gotoAndStop(4);
}
if (alienob.apeard._currentframe == 6) {
alienob.fase = 4;
alienob.gotoAndStop(3);
}
}
if (alienob.fase == 4) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
}
if (_root.playerfull._x < alienob._x) {
alienob._x -= 4;
alienob.fase = 5;
momento = alienob.walkd._currentframe;
alienob.gotoAndStop(4);
alienob.walki.gotoAndPlay(momento);
}
if (distalx < 150 && distaly < 100) {
alienob.fase = 6;
alienob.gotoAndStop(5);
}
}
if (alienob.fase == 5) {
if (_root.game.playerfull._y > alienob._y) {
alienob._y += 2;
}
if (_root.game.playerfull._y < alienob._y) {
alienob._y -= 2;
}
if (_root.game.playerfull._x > alienob._x) {
alienob._x += 4;
alienob.fase = 4;
momento = alienob.walki._currentframe;
alienob.gotoAndStop(3);
alienob.walkd.gotoAndPlay(momento);
}
if (_root.game.playerfull._x < alienob._x) {
alienob._x -= 4;
}
if (distalx < 150 && distaly < 100) {
alienob.fase = 7;
alienob.gotoAndStop(6);
}
}
if (alienob.fase == 6) {
alienob._x += 4;
if (alienob.desad._currentframe == 8) {
alienob.fase = 8;
}
}
if (alienob.fase == 7) {
alienob._x -= 4;
if (alienob.desai._currentframe == 8) {
alienob.fase = 9;
}
}
if (alienob.fase == 8 || alienob.fase == 9) {
alienob._x = _root.game.playerfull._x + 0.5;
alienob._y = _root.game.playerfull._y + 10.5;
_root.bgussa.gotoAndPlay(2);
alienob.gotoAndStop(7);
alienob.fase = 10;
}
if (alienob.fase == 10 && distalx < 30 && distaly < 20 && alienob.ataca._currentframe == 6 && playercath == false && evade == false) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
playercath = true;
atacktime = true;
presy = true;
_root.game.playerfull._x = alienob._x + 1.5;
_root.game.playerfull._y = alienob._y - 20.5;
alienob.gotoAndStop(8);
uncathcount = 0;
dañoplayer += 20;
}
if (blocks == true) {
blocks = false;
playercath = true;
atacktime = true;
presy = true;
_root.game.playerfull._x = alienob._x + 1.5;
_root.game.playerfull._y = alienob._y - 20.5;
alienob.gotoAndStop(8);
uncathcount = 0;
dañoplayer += 10;
}
}
}
if (alienob.fase == 10 && playercath == false && alienob._currentframe == 8) {
alienob.gotoAndStop(7);
alienob.ataca.gotoAndPlay(7);
}
if (alienob.fase == 10 && alienob.ataca._currentframe == 40) {
alienob.fase = 11;
alienob.standc += 1;
}
if (alienob.fase == 11 && alienob.standc == 3) {
alienob.fase = 12;
alienob.standc = 0;
}
if (alienob.fase == 11) {
alienob.fase = 3;
alienob.gotoAndStop(2);
if (_root.game.playerfull._x > alienob._x) {
alienob.fase = 2;
alienob.gotoAndStop(1);
}
}
if (alienob.fase == 12) {
altuen = Math.floor(Math.random() * 200);
dismun = Math.floor(Math.random() * 600);
alienob._y = 250 + altuen;
alienob._x = dismun;
alienob.gotoAndStop(9);
alienob.signs = 0;
alienob.fase = 13;
}
if (alienob.fase == 13 && alienob.astand._currentframe == 41) {
alienob.signs = 1;
alienob.fase = 1;
}
if (alienob.fase == 13 && alienob.astand._currentframe == 6) {
_root.gusswk.gotoAndPlay(2);
}
if (alienob.hpen <= 0 && alienob.fase != 14 && alienob.fase != 15) {
alienob.fase = 14;
tempscore += alienob.scoredrop;
expe += alienob.expdrop;
devourer += 1;
}
if (alienob.fase == 14) {
alienob.gotoAndStop(11);
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienob.item1;
}
if (randitem == 4) {
itemname = alienob.item2;
}
if (randitem == 5) {
itemname = alienob.item3;
}
profun = alienob.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mount': 150, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'mater': 5, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienob._x, '_y': _root.alienob._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienob.fase = 15;
}
if (alienob.adeath._currentframe == 1) {
_root.multid.gotoAndPlay(2);
}
if (alienob.adeath._currentframe == 19) {
alienob.removeMovieClip();
enemylist.splice(r, 1);
}
}
++r;
}
g = 0;
while (g < enemylist.length) {
alienoc = _root.game[enemylist[g]];
alienoc.swapDepths(alienoc._y * alienoc._y);
dx = _root.game.playerfull._x - alienoc._x;
dy = _root.game.playerfull._y - alienoc._y;
distal = Math.sqrt(dx * dx + dy * dy);
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
ranspace = Math.floor(Math.random() * 100);
if (alienoc.eny == 7) {
if (alienoc.fase == 1) {
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 0) {
_root.bosyball.gotoAndPlay(2);
altuen = Math.floor(Math.random() * 200);
alienoc._y = 250.5 + altuen;
alienoc._x = 630;
alienoc.fase = 2;
alienoc.gotoAndStop(2);
}
if (sitedoor == 1) {
_root.bosyball.gotoAndPlay(2);
altuen = Math.floor(Math.random() * 200);
alienoc._y = 250.5 + altuen;
alienoc._x = 10;
alienoc.fase = 3;
alienoc.gotoAndStop(1);
}
}
if (alienoc.goind._currentframe == 2) {
alienoc._x += 32;
}
if (alienoc.goind._currentframe == 3) {
alienoc._x += 51;
}
if (alienoc.goind._currentframe == 4) {
alienoc._x -= 3;
}
if (alienoc.goind._currentframe == 5) {
alienoc._x -= 10;
}
if (alienoc.goind._currentframe == 6) {
alienoc._x -= 15;
}
if (alienoc.goind._currentframe == 7) {
alienoc._x -= 8;
}
if (alienoc.goini._currentframe == 2) {
alienoc._x -= 32;
}
if (alienoc.goini._currentframe == 3) {
alienoc._x -= 51;
}
if (alienoc.goini._currentframe == 4) {
alienoc._x += 3;
}
if (alienoc.goini._currentframe == 5) {
alienoc._x += 10;
}
if (alienoc.goini._currentframe == 6) {
alienoc._x += 18;
}
if (alienoc.goini._currentframe == 7) {
alienoc._x += 12;
}
if (alienoc.goind._currentframe == 12) {
alienoc.gotoAndStop(3);
alienoc.fase = 4;
}
if (alienoc.goini._currentframe == 12) {
alienoc.gotoAndStop(4);
alienoc.fase = 5;
}
if (alienoc.fase == 4 || alienoc.fase == 5) {
if (alienoc.downup == 0) {
alienoc._y += 5;
alienoc.timeat += 1;
}
if (alienoc.downup == 1) {
alienoc._y -= 5;
alienoc.timeat += 1;
}
if (alienoc.downup == 0 && alienoc._y > 450) {
alienoc.downup = 1;
}
if (alienoc.downup == 1 && alienoc._y < 250) {
alienoc.downup = 0;
}
}
if (alienoc.timeat >= 60 && alienoc.fase == 4) {
typeats = Math.floor(Math.random() * 3);
_root.gusswk.gotoAndPlay(2);
if (typeats == 0) {
alienoc.fase = 6;
alienoc.gotoAndStop(5);
}
if (typeats == 1) {
alienoc.fase = 7;
alienoc.gotoAndStop(7);
}
if (typeats == 2) {
alienoc.fase = 8;
alienoc.gotoAndStop(9);
}
alienoc.timeat = 0;
}
if (alienoc.timeat >= 60 && alienoc.fase == 5) {
typeats = Math.floor(Math.random() * 3);
_root.gusswk.gotoAndPlay(2);
if (typeats == 0) {
alienoc.fase = 9;
alienoc.gotoAndStop(6);
}
if (typeats == 1) {
alienoc.fase = 10;
alienoc.gotoAndStop(8);
}
if (typeats == 2) {
alienoc.fase = 11;
alienoc.gotoAndStop(10);
}
alienoc.timeat = 0;
}
if (alienoc.atkd._currentframe == 18) {
_root.giira.gotoAndPlay(2);
}
if (alienoc.atki._currentframe == 18) {
_root.giira.gotoAndPlay(2);
}
if (alienoc.fase == 6) {
if (alienoc.atkd._currentframe == 18) {
alienoc._x += 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atkd._currentframe == 19 || alienoc.atkd._currentframe == 20 || alienoc.atkd._currentframe == 21 || alienoc.atkd._currentframe == 22 || alienoc.atkd._currentframe == 23) {
alienoc._x += 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atkd._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 7) {
if (alienoc.atkd._currentframe == 18) {
alienoc._x += 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atkd._currentframe == 19 || alienoc.atkd._currentframe == 20 || alienoc.atkd._currentframe == 21 || alienoc.atkd._currentframe == 22 || alienoc.atkd._currentframe == 23) {
alienoc._x += 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atkd._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 8) {
if (alienoc.atkd._currentframe == 18) {
alienoc._x += 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atkd._currentframe == 19 || alienoc.atkd._currentframe == 20 || alienoc.atkd._currentframe == 21 || alienoc.atkd._currentframe == 22 || alienoc.atkd._currentframe == 23) {
alienoc._x += 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atkd._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 9) {
if (alienoc.atki._currentframe == 18) {
alienoc._x -= 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atki._currentframe == 19 || alienoc.atki._currentframe == 20 || alienoc.atki._currentframe == 21 || alienoc.atki._currentframe == 22 || alienoc.atki._currentframe == 23) {
alienoc._x -= 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 1, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(1);
++deepen;
}
if (alienoc.atki._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 10) {
if (alienoc.atki._currentframe == 18) {
alienoc._x -= 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atki._currentframe == 19 || alienoc.atki._currentframe == 20 || alienoc.atki._currentframe == 21 || alienoc.atki._currentframe == 22 || alienoc.atki._currentframe == 23) {
alienoc._x -= 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 2, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(2);
++deepen;
}
if (alienoc.atki._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.fase == 11) {
if (alienoc.atki._currentframe == 18) {
alienoc._x -= 20;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atki._currentframe == 19 || alienoc.atki._currentframe == 20 || alienoc.atki._currentframe == 21 || alienoc.atki._currentframe == 22 || alienoc.atki._currentframe == 23) {
alienoc._x -= 115;
_root.game.sball.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 30, '_y': alienoc._y + 0.5, 'hpen': 0, 'eny': 666, 'siten': 0, 'fase': 3, 'exis': 1});
sballlist.push('newalien' + deepen);
statusb = _root.game['newalien' + deepen];
statusb.gotoAndStop(3);
++deepen;
}
if (alienoc.atki._currentframe == 24) {
alienoc.fase = 1;
}
}
if (alienoc.hpen <= 0 && alienoc.fase != 12 && alienoc.fase != 13) {
alienoc.fase = 12;
tempscore += alienoc.scoredrop;
expe += alienoc.expdrop;
firefly += 1;
}
if (alienoc.fase == 12 && alienoc.eny == 7) {
if (_root.game.playerfull._x < alienoc._x) {
alienoc.gotoAndStop(12);
} else {
if (_root.game.playerfull._x > alienoc._x) {
alienoc.gotoAndStop(11);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienoc.item1;
}
if (randitem == 4) {
itemname = alienoc.item2;
}
if (randitem == 5) {
itemname = alienoc.item3;
}
profun = alienoc.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'mount': 80, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'mater': 5, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienoc.fase = 13;
}
if (alienoc.death._currentframe == 2) {
_root.endieso.gotoAndPlay(2);
}
if (alienoc.death._currentframe == 10) {
alienoc.removeMovieClip();
enemylist.splice(g, 1);
}
}
if (alienoc.eny == 8) {
if (alienoc.hpen > 1500 && bosstrap == false) {
spedyb = 3;
}
if (alienoc.hpen < 1500 && bosstrap == false) {
bosstrap = true;
magnetac = true;
magnetnum = 3;
spedyb = 9;
}
if (alienoc.fase == 1) {
if (alienoc.getin._currentframe == 9) {
alienoc.gotoAndStop(2);
alienoc.fase = 2;
}
}
if (alienoc.fase == 2) {
alienoc.gotoAndStop(2);
alienoc.timeat += 1;
if (alienoc._x >= 560) {
alienoc.righleft = 1;
}
if (alienoc._x <= 80) {
alienoc.righleft = 0;
}
if (alienoc.righleft == 0) {
alienoc._x += spedyb;
}
if (alienoc.righleft == 1) {
alienoc._x -= spedyb;
}
if (alienoc._y >= 430) {
alienoc.downup = 1;
}
if (alienoc._y <= 250) {
alienoc.downup = 0;
}
if (alienoc.downup == 0) {
alienoc._y += spedyb;
}
if (alienoc.downup == 1) {
alienoc._y -= spedyb;
}
if (alienoc.timeat == 48) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.timeat == 96) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.timeat == 144) {
_root.bosyball.gotoAndPlay(2);
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.timeat == 192) {
typeats = Math.floor(Math.random() * 2);
if (typeats == 0) {
alienoc.gotoAndStop(3);
alienoc.fase = 3;
}
if (typeats == 1) {
alienoc.gotoAndStop(4);
alienoc.fase = 4;
}
alienoc.timeat = 0;
}
}
if (alienoc.fase == 3) {
if (alienoc.spin._currentframe == 21) {
_root.giira.gotoAndPlay(2);
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 50, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y - 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 23) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x - 20, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 100, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 25) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 20, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y + 50, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 27) {
_root.game.gigab.duplicateMovieClip('newalien' + deepen, deepen, {'_x': alienoc._x + 50, '_y': alienoc._y - 50.5, 'hpen': 0, 'eny': 50, 'siten': 0, 'fase': 1, 'exis': 1, 'xgo': _root.game.playerfull._x, 'ygo': _root.game.playerfull._y, 'exgo': alienoc._x, 'eygo': alienoc._y});
sballlist.push('newalien' + deepen);
++deepen;
}
if (alienoc.spin._currentframe == 31) {
alienoc.gotoAndStop(2);
alienoc.fase = 2;
}
}
if (alienoc.fase == 4) {
if (alienoc.medi._currentframe == 9) {
specialboss = true;
}
if (alienoc.medi._currentframe == 38) {
alienoc.gotoAndStop(2);
alienoc.fase = 2;
}
}
if (alienoc.hpen <= 0 && alienoc.fase != 5 && alienoc.fase != 6) {
alienoc.fase = 5;
tempscore += alienoc.scoredrop;
expe += alienoc.expdrop;
octron += 1;
}
if (alienoc.fase == 5 && alienoc.eny == 8) {
alienoc.gotoAndStop(5);
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 0 || randitem == 1 || randitem == 3 || randitem == 2) {
itemname = alienoc.item1;
}
if (randitem == 4) {
itemname = alienoc.item2;
}
if (randitem == 5) {
itemname = alienoc.item3;
}
profun = alienoc.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'mount': 300, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'mater': 20, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x + 0.5, '_y': _root.alienoc._y + 40, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienoc.fase = 6;
}
if (alienoc.die._currentframe == 2) {
_root.multid.gotoAndPlay(2);
}
if (alienoc.die._currentframe == 15) {
alienoc.removeMovieClip();
enemylist.splice(g, 1);
}
}
if (alienoc.eny == 11) {
if (alienoc.fase == 1) {
if (alienoc.appear._currentframe == 27) {
alienoc.gotoAndStop(2);
}
if (alienoc.standi._currentframe == 13) {
alienoc.standc += 1;
}
if (alienoc.standd._currentframe == 13) {
alienoc.standc += 1;
}
if (alienoc.standc == 3 && alienoc.direct == 1) {
alienoc.standc = 0;
ranco = Math.floor(Math.random() * 2);
if (ranco == 1) {
alienoc.fase = 2;
alienoc.gotoAndStop(4);
}
if (ranco == 0) {
alienoc.fase = 3;
alienoc.gotoAndStop(4);
alienoc.shots += 5;
}
}
if (alienoc.standc == 3 && alienoc.direct == 0) {
alienoc.standc = 0;
ranco = Math.floor(Math.random() * 2);
if (ranco == 1) {
alienoc.fase = 2;
alienoc.gotoAndStop(5);
}
if (ranco == 0) {
alienoc.fase = 3;
alienoc.gotoAndStop(5);
alienoc.shots += 5;
}
}
}
if (alienoc.fase == 2) {
if (_root.game.trampboss.at1._currentframe > 10 && _root.game.trampboss.at1._currentframe < 22 && _root.game.playerfull._x > 0 && _root.game.playerfull._x < 90 || _root.game.trampboss.at1._currentframe > 50 && _root.game.trampboss.at1._currentframe < 63 && _root.game.playerfull._x > 0 && _root.game.playerfull._x < 90 || _root.game.trampboss.at1._currentframe > 23 && _root.game.trampboss.at1._currentframe < 34 && _root.game.playerfull._x > 110 && _root.game.playerfull._x < 180 || _root.game.trampboss.at1._currentframe > 61 && _root.game.trampboss.at1._currentframe < 74 && _root.game.playerfull._x > 110 && _root.game.playerfull._x < 180 || _root.game.trampboss.at1._currentframe > 33 && _root.game.trampboss.at1._currentframe < 46 && _root.game.playerfull._x > 200 && _root.game.playerfull._x < 270 || _root.game.trampboss.at1._currentframe > 73 && _root.game.trampboss.at1._currentframe < 86 && _root.game.playerfull._x > 200 && _root.game.playerfull._x < 270 || _root.game.trampboss.at1._currentframe > 44 && _root.game.trampboss.at1._currentframe < 57 && _root.game.playerfull._x > 290 && _root.game.playerfull._x < 360 || _root.game.trampboss.at1._currentframe > 84 && _root.game.trampboss.at1._currentframe < 97 && _root.game.playerfull._x > 290 && _root.game.playerfull._x < 360 || _root.game.trampboss.at1._currentframe > 56 && _root.game.trampboss.at1._currentframe < 69 && _root.game.playerfull._x > 390 && _root.game.playerfull._x < 460 || _root.game.trampboss.at1._currentframe > 96 && _root.game.trampboss.at1._currentframe < 109 && _root.game.playerfull._x > 390 && _root.game.playerfull._x < 460 || _root.game.trampboss.at1._currentframe > 67 && _root.game.trampboss.at1._currentframe < 80 && _root.game.playerfull._x > 490 && _root.game.playerfull._x < 550 || _root.game.trampboss.at1._currentframe > 107 && _root.game.trampboss.at1._currentframe < 120 && _root.game.playerfull._x > 490 && _root.game.playerfull._x < 550 || _root.game.trampboss.at1._currentframe > 79 && _root.game.trampboss.at1._currentframe < 92 && _root.game.playerfull._x > 580 && _root.game.playerfull._x < 610 || _root.game.trampboss.at1._currentframe > 119 && _root.game.trampboss.at1._currentframe < 132 && _root.game.playerfull._x > 580 && _root.game.playerfull._x < 610) {
dañoplayer += 10;
}
if (_root.game.trampboss.at2._currentframe > 10 && _root.game.trampboss.at2._currentframe < 22 && _root.game.playerfull._x > 580 && _root.game.playerfull._x < 610 || _root.game.trampboss.at2._currentframe > 50 && _root.game.trampboss.at2._currentframe < 63 && _root.game.playerfull._x > 580 && _root.game.playerfull._x < 610 || _root.game.trampboss.at2._currentframe > 21 && _root.game.trampboss.at2._currentframe < 34 && _root.game.playerfull._x > 490 && _root.game.playerfull._x < 550 || _root.game.trampboss.at2._currentframe > 61 && _root.game.trampboss.at2._currentframe < 74 && _root.game.playerfull._x > 490 && _root.game.playerfull._x < 550 || _root.game.trampboss.at2._currentframe > 33 && _root.game.trampboss.at2._currentframe < 46 && _root.game.playerfull._x > 390 && _root.game.playerfull._x < 460 || _root.game.trampboss.at2._currentframe > 73 && _root.game.trampboss.at2._currentframe < 86 && _root.game.playerfull._x > 390 && _root.game.playerfull._x < 460 || _root.game.trampboss.at2._currentframe > 44 && _root.game.trampboss.at2._currentframe < 57 && _root.game.playerfull._x > 290 && _root.game.playerfull._x < 360 || _root.game.trampboss.at2._currentframe > 84 && _root.game.trampboss.at2._currentframe < 97 && _root.game.playerfull._x > 290 && _root.game.playerfull._x < 360 || _root.game.trampboss.at2._currentframe > 56 && _root.game.trampboss.at2._currentframe < 69 && _root.game.playerfull._x > 200 && _root.game.playerfull._x < 270 || _root.game.trampboss.at2._currentframe > 96 && _root.game.trampboss.at2._currentframe < 109 && _root.game.playerfull._x > 200 && _root.game.playerfull._x < 270 || _root.game.trampboss.at2._currentframe > 67 && _root.game.trampboss.at2._currentframe < 80 && _root.game.playerfull._x > 110 && _root.game.playerfull._x < 180 || _root.game.trampboss.at2._currentframe > 107 && _root.game.trampboss.at2._currentframe < 120 && _root.game.playerfull._x > 110 && _root.game.playerfull._x < 180 || _root.game.trampboss.at2._currentframe > 79 && _root.game.trampboss.at2._currentframe < 92 && _root.game.playerfull._x > 0 && _root.game.playerfull._x < 90 || _root.game.trampboss.at2._currentframe > 119 && _root.game.trampboss.at2._currentframe < 132 && _root.game.playerfull._x > 0 && _root.game.playerfull._x < 90) {
dañoplayer += 10;
}
if (alienoc.bursti._currentframe == 16) {
alienoc.gotoAndStop(6);
_root.game.trampboss.gotoAndStop(2);
}
if (alienoc.burstd._currentframe == 16) {
alienoc.gotoAndStop(7);
_root.game.trampboss.gotoAndStop(3);
}
if (_root.game.trampboss.at1._currentframe == 136) {
_root.game.trampboss.gotoAndStop(1);
alienoc.gotoAndStop(8);
}
if (_root.game.trampboss.at2._currentframe == 136) {
_root.game.trampboss.gotoAndStop(1);
alienoc.gotoAndStop(9);
}
if (alienoc.finati._currentframe == 8) {
alienoc.gotoAndStop(10);
alienoc.fase = 4;
alienoc.spinc += 100;
alienoc.direct = 0;
}
if (alienoc.finatd._currentframe == 8) {
alienoc.gotoAndStop(11);
alienoc.fase = 4;
alienoc.spinc += 100;
alienoc.direct = 1;
}
}
if (alienoc.fase == 3) {
if (alienoc.bursti._currentframe == 16) {
alienoc.gotoAndStop(6);
}
if (alienoc.burstd._currentframe == 16) {
alienoc.gotoAndStop(7);
}
if (alienoc.brieyei._currentframe == 4 && alienoc.shots > 0) {
ranco = Math.floor(Math.random() * 5);
if (ranco == 2 || ranco == 3) {
_root.game.aliencinco.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 400, 'eny': 5, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 200, 'expdrop': 100, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = -10;
}
if (ranco == 0 || ranco == 1) {
randy = Math.floor(Math.random() * 2);
altus = Math.floor(Math.random() * 211);
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
xan = 700;
}
if (sitedoor == 0) {
xan = -100;
}
_root.game.alientres.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan + 0.5, '_y': altus + 260.5, 'hpen': 300, 'eny': 3, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 1, 'item3': 1, 'scoredrop': 1, 'expdrop': 1, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 28;
}
if (ranco == 4) {
_root.game.aliensiete.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 400, 'eny': 7, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 300, 'expdrop': 300, 'exis': 1, 'signs': 0, 'downup': 0, 'timeat': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
alienoc.shots -= 1;
}
if (alienoc.brieyed._currentframe == 4 && alienoc.shots > 0) {
ranco = Math.floor(Math.random() * 5);
if (ranco == 2 || ranco == 3) {
_root.game.aliencinco.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 400, 'eny': 5, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 200, 'expdrop': 100, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = -10;
}
if (ranco == 0 || ranco == 1) {
randy = Math.floor(Math.random() * 2);
altus = Math.floor(Math.random() * 211);
sitedoor = Math.floor(Math.random() * 2);
if (sitedoor == 1) {
xan = 700;
}
if (sitedoor == 0) {
xan = -100;
}
_root.game.alientres.duplicateMovieClip('newalien' + deepen, deepen, {'_x': xan + 0.5, '_y': altus + 260.5, 'hpen': 300, 'eny': 3, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 1, 'item3': 1, 'scoredrop': 1, 'expdrop': 1, 'exis': 1, 'signs': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 28;
}
if (ranco == 4) {
_root.game.aliensiete.duplicateMovieClip('newalien' + deepen, deepen, {'_x': 800, '_y': 800, 'hpen': 400, 'eny': 7, 'siten': 0, 'fase': 1, 'atakan': 0, 'item1': 1, 'item2': 2, 'item3': 20, 'scoredrop': 300, 'expdrop': 300, 'exis': 1, 'signs': 0, 'downup': 0, 'timeat': 0});
enemylist.push('newalien' + deepen);
++deepen;
++enemyin;
enemygo = false;
coune = 1;
}
alienoc.shots -= 1;
}
if (alienoc.shots <= 0 && alienoc.direct == 1) {
alienoc.gotoAndStop(8);
}
if (alienoc.shots <= 0 && alienoc.direct == 0) {
alienoc.gotoAndStop(9);
}
if (alienoc.finati._currentframe == 8) {
alienoc.gotoAndStop(10);
alienoc.fase = 4;
alienoc.spinc += 100;
alienoc.direct = 0;
}
if (alienoc.finatd._currentframe == 8) {
alienoc.gotoAndStop(11);
alienoc.fase = 4;
alienoc.spinc += 100;
alienoc.direct = 1;
}
}
if (alienoc.fase == 4) {
if (alienoc.spini._currentframe > 19 && alienoc.spini._currentframe < 25 && alienoc.spinc > 0 || alienoc.spind._currentframe > 19 && alienoc.spind._currentframe < 25 && alienoc.spinc > 0) {
if (_root.game.playerfull._x < alienoc._x) {
alienoc._x -= 5;
alienoc.spinc -= 1;
}
if (_root.game.playerfull._x > alienoc._x) {
alienoc._x += 5;
alienoc.spinc -= 1;
}
if (alienoc._y >= 430) {
alienoc.updown = 1;
}
if (alienoc._y <= 250) {
alienoc.updown = 0;
}
if (alienoc.updown == 0) {
alienoc._y += 15;
}
if (alienoc.updown == 1) {
alienoc._y -= 15;
}
if (distalx < 50 && distaly < 50) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
}
if (alienoc.spinc <= 0) {
if (alienoc.direct == 0) {
alienoc.spini.gotoAndPlay(26);
alienoc.spinc = 1;
}
if (alienoc.direct == 1) {
alienoc.spind.gotoAndPlay(26);
alienoc.spinc = 1;
}
}
if (alienoc.spini._currentframe == 44) {
alienoc.gotoAndStop(3);
alienoc.fase = 1;
}
if (alienoc.spind._currentframe == 44) {
alienoc.gotoAndStop(2);
alienoc.fase = 1;
}
}
if (alienoc.hpen <= 0 && alienoc.fase != 6 && alienoc.fase != 7) {
alienoc.fase = 6;
tempscore += alienoc.scoredrop;
expe += alienoc.expdrop;
errorr += 1;
}
if (alienoc.fase == 6 && alienoc.eny == 11) {
if (_root.game.playerfull._x < alienoc._x) {
alienoc.gotoAndStop(12);
} else {
if (_root.game.playerfull._x > alienoc._x) {
alienoc.gotoAndStop(13);
}
}
randitem = Math.floor(Math.random() * 6);
itemname = 0;
if (randitem == 3 || randitem == 2) {
itemname = alienoc.item1;
}
if (randitem == 4) {
itemname = alienoc.item2;
}
if (randitem == 5) {
itemname = alienoc.item3;
}
profun = alienoc.getDepth();
if (itemname == 1) {
_root.game.coins.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'mount': 2000, 'typeob': 1, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname > 1 && itemname < 19) {
_root.game.material.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'mater': 50, 'typeob': 2, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
if (itemname == 20) {
_root.game.potiond.duplicateMovieClip('itemdrop' + itemn, profun + 1, {'_x': _root.alienoc._x, '_y': _root.alienoc._y + 40.5, 'typeob': 3, 'exis': 1});
itemappear.push('itemdrop' + itemn);
++itemn;
}
alienoc.fase = 7;
}
if (alienoc.death._currentframe == 23) {
alienoc.removeMovieClip();
enemylist.splice(g, 1);
}
}
++g;
}
i = 0;
while (i < sballlist.length) {
ballx = _root.game[sballlist[i]];
ballx.swapDepths(ballx._y * ballx._y);
dx = _root.game.playerfull._x - ballx._x;
dy = _root.game.playerfull._y - ballx._y;
px = ballx.xgo - ballx._x;
py = ballx.ygo - ballx._y;
rx = ballx.xgo - ballx.exgo;
ry = ballx.ygo - ballx.eygo;
angy = Math.atan2(ry, rx);
vx = Math.cos(angy) * 15;
vy = Math.sin(angy) * 15;
distal = Math.sqrt(dx * dx + dy * dy);
pistal = Math.sqrt(px * px + py * py);
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
ranspace = Math.floor(Math.random() * 100);
if (ballx.eny == 666) {
if (distalx < 40 && distaly < 40) {
if (ballx.fase == 1) {
dañoplayer += 10;
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': ballx._x + 1.5, '_y': ballx._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (ballx.fase == 2) {
dañoplayer += 20;
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (ballx.fase == 3) {
dañoplayer += 10;
slow = true;
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
}
}
if (ballx.eny == 50) {
ballx.swapDepths(ballx._y * ballx._y * 2);
if (ballx._x < ballx.xgo) {
ballx._x += vx;
}
if (ballx._x > ballx.xgo) {
ballx._x += vx;
}
if (ballx._y < ballx.ygo) {
ballx._y += vy;
}
if (ballx._y > ballx.ygo) {
ballx._y += vy;
}
if (ballx._y > 580 || ballx._x < -50 || ballx._x > 690 || ballx._y < -50) {
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (distalx < 40 && distaly < 40) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
_root.game.manchak.duplicateMovieClip('newmancha' + deepen, deepen + 899999, {'_x': _root.game.playerfull._x + 1.5, '_y': _root.game.playerfull._y + 1});
manchaslist.push('newmancha' + deepen);
++deepen;
dañoplayer += 10;
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
}
if (ballx.cball._currentframe == 78) {
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (ballx.exis != 1) {
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
if (enemylist.length == 0) {
ballx.removeMovieClip();
sballlist.splice(i, 1);
}
++i;
}
}
function takeitems() {
i = 0;
while (i < itemappear.length) {
itemob = _root.game[itemappear[i]];
ix = _root.game.playerfull._x - itemob._x;
iy = _root.game.playerfull._y - itemob._y;
idistal = Math.sqrt(ix * ix + iy * iy);
idistalx = Math.sqrt(ix * ix);
idistaly = Math.sqrt(iy * iy);
if (itemob._x < 0) {
itemob._x = 50;
}
if (itemob._x > 640) {
itemob._x = 600;
}
if (itemob._y > 480) {
itemob._y = 440;
}
if (itemob.exis != 1) {
itemappear.splice(i, 1);
}
if (Key.isDown(90) && idistalx < 60 && idistaly < 50 && presy == false || Key.isDown(88) && idistalx < 60 && idistaly < 50 && presy == false) {
if (itemob.typeob == 1) {
coinhave += itemob.mount;
_root.cachso.gotoAndPlay(2);
}
if (itemob.typeob == 2) {
if (knucleuse == true) {
expw1 += itemob.mater;
}
if (sworduse == true) {
expw2 += itemob.mater;
}
if (gunuse == true) {
expw3 += itemob.mater;
}
_root.cachso.gotoAndPlay(2);
}
if (itemob.typeob == 3) {
dañoplayer -= 50;
_root.regeso.gotoAndPlay(2);
}
itemob.removeMovieClip();
itemappear.splice(i, 1);
break;
}
++i;
}
}
function experietolv() {
gemillo = Math.floor(expetogo / 100000000);
geemildeci = Math.floor((expetogo - gemillo * 100000000) / 10000000);
geemiluni = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000) / 1000000);
geemil = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000) / 100000);
gemildeci = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000) / 10000);
gemiluni = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000) / 1000);
gemil = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000 - gemiluni * 1000) / 100);
gedeci = Math.floor((expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000 - gemiluni * 1000 - gemil * 100) / 10);
geuni = Math.floor(expetogo - gemillo * 100000000 - geemildeci * 10000000 - geemiluni * 1000000 - geemil * 100000 - gemildeci * 10000 - gemiluni * 1000 - gemil * 100 - gedeci * 10);
_root.game.itembase.geouni.gotoAndStop(geuni + 1);
_root.game.itembase.geodeci.gotoAndStop(gedeci + 1);
_root.game.itembase.geomil.gotoAndStop(gemil + 1);
_root.game.itembase.geomiluni.gotoAndStop(gemiluni + 1);
_root.game.itembase.geomildeci.gotoAndStop(gemildeci + 1);
_root.game.itembase.geocmil.gotoAndStop(geemil + 1);
_root.game.itembase.geocmiluni.gotoAndStop(geemiluni + 1);
_root.game.itembase.geocmildeci.gotoAndStop(geemildeci + 1);
_root.game.itembase.geomillo.gotoAndStop(gemillo + 1);
if (gemillo > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 100;
_root.game.itembase.geocmildeci._alpha = 100;
_root.game.itembase.geomillo._alpha = 100;
} else {
if (geemildeci > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 100;
_root.game.itembase.geocmildeci._alpha = 100;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (geemiluni > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 100;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (geemil > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 100;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gemildeci > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 100;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gemiluni > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 100;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gemil > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 100;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (gedeci > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 100;
_root.game.itembase.geomil._alpha = 0;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.itembase.geomillo._alpha = 0;
} else {
if (geuni > 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 0;
_root.game.itembase.geomil._alpha = 0;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
} else {
if (geuni == 0 && gedeci == 0 && gemil == 0 && gemiluni == 0 && gemildeci == 0 && geemil == 0 && geemiluni == 0 && geemildeci == 0 && gemillo == 0) {
_root.game.itembase.geouni._alpha = 100;
_root.game.itembase.geodeci._alpha = 0;
_root.game.itembase.geomil._alpha = 0;
_root.game.itembase.geomiluni._alpha = 0;
_root.game.itembase.geomildeci._alpha = 0;
_root.game.itembase.geocmil._alpha = 0;
_root.game.itembase.geocmiluni._alpha = 0;
_root.game.itembase.geocmildeci._alpha = 0;
_root.game.itembase.geomillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
}
function mineraltolv() {
gsemillo = Math.floor(mineraltogo / 100000000);
gseemildeci = Math.floor((mineraltogo - gsemillo * 100000000) / 10000000);
gseemiluni = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000) / 1000000);
gseemil = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000) / 100000);
gsemildeci = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000) / 10000);
gsemiluni = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000) / 1000);
gsemil = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000 - gsemiluni * 1000) / 100);
gsedeci = Math.floor((mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000 - gsemiluni * 1000 - gsemil * 100) / 10);
gseuni = Math.floor(mineraltogo - gsemillo * 100000000 - gseemildeci * 10000000 - gseemiluni * 1000000 - gseemil * 100000 - gsemildeci * 10000 - gsemiluni * 1000 - gsemil * 100 - gsedeci * 10);
_root.game.itembase.gseouni.gotoAndStop(gseuni + 1);
_root.game.itembase.gseodeci.gotoAndStop(gsedeci + 1);
_root.game.itembase.gseomil.gotoAndStop(gsemil + 1);
_root.game.itembase.gseomiluni.gotoAndStop(gsemiluni + 1);
_root.game.itembase.gseomildeci.gotoAndStop(gsemildeci + 1);
_root.game.itembase.gseocmil.gotoAndStop(gseemil + 1);
_root.game.itembase.gseocmiluni.gotoAndStop(gseemiluni + 1);
_root.game.itembase.gseocmildeci.gotoAndStop(gseemildeci + 1);
_root.game.itembase.gseomillo.gotoAndStop(gsemillo + 1);
if (gsemillo > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 100;
_root.game.itembase.gseocmildeci._alpha = 100;
_root.game.itembase.gseomillo._alpha = 100;
} else {
if (gseemildeci > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 100;
_root.game.itembase.gseocmildeci._alpha = 100;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseemiluni > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 100;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseemil > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 100;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsemildeci > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 100;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsemiluni > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 100;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsemil > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 100;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gsedeci > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 100;
_root.game.itembase.gseomil._alpha = 0;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseuni > 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 0;
_root.game.itembase.gseomil._alpha = 0;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
} else {
if (gseuni == 0 && gsedeci == 0 && gsemil == 0 && gsemiluni == 0 && gsemildeci == 0 && gseemil == 0 && gseemiluni == 0 && gseemildeci == 0 && gsemillo == 0) {
_root.game.itembase.gseouni._alpha = 100;
_root.game.itembase.gseodeci._alpha = 0;
_root.game.itembase.gseomil._alpha = 0;
_root.game.itembase.gseomiluni._alpha = 0;
_root.game.itembase.gseomildeci._alpha = 0;
_root.game.itembase.gseocmil._alpha = 0;
_root.game.itembase.gseocmiluni._alpha = 0;
_root.game.itembase.gseocmildeci._alpha = 0;
_root.game.itembase.gseomillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
}
function combocon() {
timehit += 1;
if (combot == true) {
timehit = 0;
combot = false;
}
if (timehit > 72) {
hitr = Math.floor(hits / 10);
score += tempscore + tempscore * hitr;
tempscore = 0;
combot = false;
hits = 0;
}
hitcien = Math.floor(hits / 100);
hitde = Math.floor((hits - hitcien * 100) / 10);
hitun = Math.floor(hits - hitde * 10 - hitcien * 100);
_root.game.combosign.combocien.gotoAndStop(hitcien + 1);
_root.game.combosign.combodeci.gotoAndStop(hitde + 1);
_root.game.combosign.combouni.gotoAndStop(hitun + 1);
if (hits > 1) {
if (_root.game.playerfull._x < 320) {
_root.game.combosign._x = 570.5;
_root.game.combosign.combocien._x = -165;
_root.game.combosign.combodeci._x = -120;
_root.game.combosign.combouni._x = -76;
}
if (_root.game.playerfull._x > 320 && hits < 10) {
_root.game.combosign._x = 70.5;
_root.game.combosign.combouni._x = 81;
}
if (_root.game.playerfull._x > 320 && hits > 9 && hits < 100) {
_root.game.combosign._x = 70.5;
_root.game.combosign.combodeci._x = 81;
_root.game.combosign.combouni._x = 126;
}
if (_root.game.playerfull._x > 320 && hits > 99) {
_root.game.combosign._x = 70.5;
_root.game.combosign.combocien._x = 81;
_root.game.combosign.combodeci._x = 126;
_root.game.combosign.combouni._x = 170;
}
}
if (hits < 1) {
_root.game.combosign._x = 900;
}
if (hitcien > 0) {
_root.game.combosign.combocien._alpha = 100;
_root.game.combosign.combodeci._alpha = 100;
_root.game.combosign.combouni._alpha = 100;
} else {
if (hitde > 0) {
_root.game.combosign.combocien._alpha = 0;
_root.game.combosign.combodeci._alpha = 100;
_root.game.combosign.combouni._alpha = 100;
} else {
if (hitde <= 0) {
_root.game.combosign.combocien._alpha = 0;
_root.game.combosign.combodeci._alpha = 0;
_root.game.combosign.combouni._alpha = 100;
}
}
}
}
function damagefun() {
profund = alienob.getDepth();
_root.game.damageco.duplicateMovieClip('dmgc' + dmgn, profund + 1, {'_alpha': 0, '_x': Math.floor(_root.alienob._x), '_y': Math.floor(_root.alienob._y - 40) + 0.5, 'dmgself': damagedo});
damageappear.push('dmgc' + dmgn);
++dmgn;
}
function gamagemove() {
r = 0;
while (r < damageappear.length) {
dmgclip = _root.game[damageappear[r]];
if (dmgclip._currentframe == 1) {
dhitmil = Math.floor(dmgclip.dmgself / 1000);
dhitcien = Math.floor((dmgclip.dmgself - dhitmil * 1000) / 100);
dhitde = Math.floor((dmgclip.dmgself - dhitcien * 100 - dhitmil * 1000) / 10);
dhitun = Math.floor(dmgclip.dmgself - dhitde * 10 - dhitcien * 100 - dhitmil * 1000);
dmgclip.damamil.gotoAndStop(dhitmil + 1);
dmgclip.damacenti.gotoAndStop(dhitcien + 1);
dmgclip.damadeci.gotoAndStop(dhitde + 1);
dmgclip.damauni.gotoAndStop(dhitun + 1);
if (dhitmil > 0) {
dmgclip.damamil._alpha = 100;
dmgclip.damacenti._alpha = 100;
dmgclip.damadeci._alpha = 100;
dmgclip.damauni._alpha = 100;
} else {
if (dhitcien > 0) {
dmgclip.damamil._alpha = 0;
dmgclip.damacenti._alpha = 100;
dmgclip.damadeci._alpha = 100;
dmgclip.damauni._alpha = 100;
} else {
if (dhitde > 0) {
dmgclip.damamil._alpha = 0;
dmgclip.damacenti._alpha = 0;
dmgclip.damadeci._alpha = 100;
dmgclip.damauni._alpha = 100;
} else {
if (dhitde <= 0) {
dmgclip.damamil._alpha = 0;
dmgclip.damacenti._alpha = 0;
dmgclip.damadeci._alpha = 0;
dmgclip.damauni._alpha = 100;
}
}
}
}
dmgclip._alpha = 100;
}
dmgclip._y -= 5;
newprof = dmgclip.getDepth();
newprof += 1;
dmgclip.swapDepths(newprof);
dmgclip.nextFrame();
if (dmgclip._currentframe == 8) {
dmgclip._alpha = 80;
}
if (dmgclip._currentframe == 9) {
dmgclip._alpha = 60;
}
if (dmgclip._currentframe == 10) {
dmgclip._alpha = 40;
}
if (dmgclip._currentframe == 11) {
dmgclip._alpha = 0;
}
if (dmgclip._currentframe == 12) {
dmgclip.removeMovieClip();
damageappear.splice(r, 1);
}
++r;
}
}
function scrollmove() {
if (playerbe[2] == 3) {
if (playerbe[0] == 0 && playerbe[1] == 0) {
lv1_1();
}
if (playerbe[0] == 0 && playerbe[1] == 1) {
lv1_2();
}
if (playerbe[0] == 0 && playerbe[1] == 2) {
lv1_3();
}
if (playerbe[0] == 0 && playerbe[1] == 3) {
lv1_4();
}
if (playerbe[0] == 0 && playerbe[1] == 4) {
lv1_5();
}
if (playerbe[0] == 0 && playerbe[1] == 5) {
lv1_6();
}
if (playerbe[0] == 0 && playerbe[1] == 6) {
lv1_7();
}
if (playerbe[0] == 1 && playerbe[1] == 6) {
lv1_8();
}
if (playerbe[0] == 1 && playerbe[1] == 7) {
lv1_9();
}
if (playerbe[0] == 1 && playerbe[1] == 5) {
lv1_10();
}
if (playerbe[0] == 1 && playerbe[1] == 4) {
lv1_11();
}
if (playerbe[0] == 1 && playerbe[1] == 3) {
lv1_12();
}
if (playerbe[0] == 1 && playerbe[1] == 2) {
lv1_13();
}
if (playerbe[0] == 1 && playerbe[1] == 1) {
lv1_14();
}
if (playerbe[0] == 1 && playerbe[1] == 0) {
lv1_15();
}
if (playerbe[0] == 2 && playerbe[1] == 0) {
lv1_16();
}
if (playerbe[0] == 3 && playerbe[1] == 0) {
lv1_17();
}
if (playerbe[0] == 4 && playerbe[1] == 0) {
lv1_18();
}
if (playerbe[0] == 3 && playerbe[1] == 1) {
lv1_19();
}
if (playerbe[0] == 2 && playerbe[1] == 1) {
lv1_20();
}
if (playerbe[0] == 4 && playerbe[1] == 1) {
lv1_21();
}
if (playerbe[0] == 3 && playerbe[1] == 2) {
lv1_22();
}
if (playerbe[0] == 2 && playerbe[1] == 2) {
lv1_23();
}
if (playerbe[0] == 4 && playerbe[1] == 2) {
lv1_24();
}
if (playerbe[0] == 3 && playerbe[1] == 3) {
lv1_25();
}
if (playerbe[0] == 2 && playerbe[1] == 3) {
lv1_26();
}
if (playerbe[0] == 4 && playerbe[1] == 3) {
lv1_27();
}
if (playerbe[0] == 3 && playerbe[1] == 4) {
lv1_28();
}
if (playerbe[0] == 2 && playerbe[1] == 4) {
lv1_29();
}
if (playerbe[0] == 4 && playerbe[1] == 4) {
lv1_30();
}
if (playerbe[0] == 3 && playerbe[1] == 5) {
lv1_31();
}
if (playerbe[0] == 3 && playerbe[1] == 6) {
lv1_32();
}
if (playerbe[0] == 3 && playerbe[1] == 7) {
lv1_33();
}
}
if (_root.game.playerfull._x > 320 && derep > 640 && Key.isDown(39) && movingmap == true && atacktime == false && blocks == false) {
_root.game.backg._x -= 5;
speedup = 0;
walkspeed = 0;
} else {
if (_root.game.playerfull._x < 320 && izqp < -10 && Key.isDown(37) && movingmap == true && atacktime == false && blocks == false) {
_root.game.backg._x += 5;
speedup = 0;
walkspeed = 0;
} else {
walkspeed = 10;
}
}
}
function lv1_1() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
_root.game.mision3si.gotoAndStop(2);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place1 == 1 && place2 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 1, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 640 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 3, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < 0 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1];
enemyon = enemytogo.length;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 1, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_2() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 0, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [0, 2, 3];
local_data.data.entrance = 1;
datasave();
}
if (_root.game.backg._x == 320) {
_root.game.meseg.gotoAndStop(10);
}
}
if (_root.game.backg._x < 640 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 2];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -320 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 3, 3, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 6, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 0, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [0, 2, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_3() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 1, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [0, 3, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [0, 4, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 1, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [0, 3, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [0, 4, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_4() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [0, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 640 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 6, 2, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 2, 2, 1, 2, 1, 6];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x < -320 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 7, 2, 2, 2, 1, 3, 1, 3, 1, 3, 6];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [0, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_5() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [0, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 640 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < 0 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 5, 5, 5, 5];
enemyon = enemytogo.length;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [0, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_6() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 6, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 640 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [7, 2, 2, 2, 1, 1, 1, 1, 1, 3, 3, 3, 3, 7, 3, 3, 3, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < 0 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [5, 5, 5, 1, 1, 1, 1, 1, 2, 2, 2, 5, 5, 5, 5, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 5, 5, 5, 5];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 6, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_7() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 5, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 6, 3];
local_data.data.entrance = 3;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(2);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [0, 5, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 6, 3];
local_data.data.entrance = 3;
datasave();
}
}
}
}
function lv1_8() {
if (entrance == 3) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [1, 7, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [0, 6, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [1, 7, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [0, 6, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [1, 7, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [0, 6, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
}
function lv1_9() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
shopa = true;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 6, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
}
function lv1_10() {
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 130;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 130;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 130;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.playerfull._y < 279 && _root.game.playerfull._x > 309 && _root.game.playerfull._x < 321 && _root.game.backg._x > 1470 && _root.game.backg._x < 1550 && playercath == false)) break;
local_data.data.playerbe = [1, 4, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 3, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [1, 6, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > -320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 3, 1, 3, 1, 3, 1, 3, 2, 2, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x > 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 5, 5, 5, 5, 5];
enemyon = enemytogo.length;
magnetnum = 1;
magnetac = true;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x > 960 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 3, 3, 3, 3];
magnetnum = 1;
magnetac = true;
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.playerfull._y < 279 && _root.game.playerfull._x > 309 && _root.game.playerfull._x < 321 && _root.game.backg._x > 1470 && _root.game.backg._x < 1550 && playercath == false)) break;
local_data.data.playerbe = [1, 4, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 3, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [1, 6, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_11() {
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 130;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 130;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > 0 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1];
magnetnum = 1;
magnetac = true;
enemyon = enemytogo.length;
}
if (_root.game.backg._x > 640 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 5, 5];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_12() {
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 130;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 130;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > 0 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x > 640 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 7, 1, 1, 1, 1, 3, 1, 3, 1, 3, 2, 2, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_13() {
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 130;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 130;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 130;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 0, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [1, 1, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > -320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 2, 2, 1, 3, 1, 3, 1, 2, 2, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x > 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [5, 5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 5, 5, 5, 5, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
magnetnum = 2;
magnetac = true;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x > 960 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 4, 4, 4, 4, 4, 1, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1];
enemyon = enemytogo.length;
magnetnum = 2;
magnetac = true;
_root.game.gosign._x = 800;
}
}
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [1, 0, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [1, 1, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_14() {
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 130;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 130;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 130;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 0, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > -320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 5, 5, 5, 5, 1, 1, 1, 5, 5, 5, 7, 1, 1, 1, 1, 7, 5, 5, 5, 5, 5];
magnetnum = 3;
magnetac = true;
enemyon = enemytogo.length;
}
if (_root.game.backg._x > 320 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [4, 4, 4, 4, 4, 4, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 2, 2, 1, 3, 1, 3, 1, 1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 2, 2, 1, 1, 1, 1, 1];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
if (_root.game.backg._x > 960 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 6, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5];
magnetnum = 3;
magnetac = true;
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 0, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_15() {
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 130;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 130;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 0, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x > 0 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x > 640 && movingmap == true && place1 == 1 && place2 == 0) {
movingmap = false;
place2 = 1;
enemyin = 0;
enemytogo = [4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 2, 2, 1, 1, 7, 1, 1, 1, 3, 1, 3, 1, 3, 1, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1];
enemyon = enemytogo.length;
magnetnum = 1;
magnetac = true;
_root.game.gosign._x = 800;
}
}
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [2, 0, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_16() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 0, 3];
local_data.data.entrance = 4;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 0, 3];
local_data.data.entrance = 4;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [1, 2, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_17() {
if (entrance == 4) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 0, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 1, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 0, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 0, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 1, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 0, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [4, 0, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 1, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 0, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_18() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
shopa = true;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [3, 0, 3];
local_data.data.entrance = 1;
datasave();
}
}
}
}
function lv1_19() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [4, 1, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [2, 1, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac3 == true && playercath == false)) break;
local_data.data.playerbe = [4, 1, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 0, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [4, 1, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [2, 1, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac3 == true && playercath == false)) break;
local_data.data.playerbe = [4, 1, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 0, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
}
function lv1_20() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 1, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 2, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 370 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 3, 3, 3, 3, 3, 3, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -70 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 7];
enemyon = enemytogo.length;
}
}
}
function lv1_21() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 1, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 1, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 370 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 1, 1, 1, 1, 5, 5, 5, 5, 5, 1, 1, 1, 1, 5, 5, 5, 5];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -70 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
}
}
}
function lv1_22() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 2, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [4, 2, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac3 == true && playercath == false)) break;
local_data.data.playerbe = [4, 2, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 1, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [2, 2, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [4, 2, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac3 == true && playercath == false)) break;
local_data.data.playerbe = [4, 2, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 1, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
}
function lv1_23() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 3, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 370 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 2, 2, 6, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -70 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [6, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1];
enemyon = enemytogo.length;
}
}
}
function lv1_24() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 2, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 2, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 370 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -70 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1, 7, 7, 7, 1, 1, 1, 1, 1, 1, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
}
}
}
function lv1_25() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [4, 3, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [2, 3, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac3 == true && playercath == false)) break;
local_data.data.playerbe = [4, 3, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 2, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [4, 3, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [2, 3, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac3 == true && playercath == false)) break;
local_data.data.playerbe = [4, 3, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 2, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
}
function lv1_26() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 3, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 4, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 370 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -70 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [7, 1, 3, 1, 3, 1, 3, 1, 3, 7, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
}
}
}
function lv1_27() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 3, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 3, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 370 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [5, 5, 5, 5, 5, 5, 7, 5, 5, 5, 5, 5, 7, 5, 5, 5, 5, 5, 7];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -70 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 3, 1, 3, 1, 3, 1, 3, 1, 3];
magnetnum = 3;
magnetac = true;
enemyon = enemytogo.length;
}
}
}
function lv1_28() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [4, 4, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [4, 4, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac3 == true && playercath == false)) break;
local_data.data.playerbe = [2, 4, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 3, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
if (entrance == 2) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(sensorac1 == true && playercath == false)) break;
local_data.data.playerbe = [4, 4, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac2 == true && playercath == false)) break;
local_data.data.playerbe = [4, 4, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(sensorac3 == true && playercath == false)) break;
local_data.data.playerbe = [2, 4, 3];
local_data.data.entrance = 1;
datasave();
}
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 3, 3];
local_data.data.entrance = 2;
datasave();
}
}
}
}
function lv1_29() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 4, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 5, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 690 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 6, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -320 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [7, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 4, 4, 4, 4, 4, 4];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -590 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [2, 2, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 7, 1, 1, 1, 1, 7];
magnetnum = 3;
magnetac = true;
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
}
function lv1_30() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 500;
magneton = false;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.levi.hitTest(_root.game.playerfull._x - _root.game.playerfull._width / 2 + 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
local_data.data.playerbe = [3, 4, 3];
local_data.data.entrance = 2;
datasave();
}
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 4, 3];
local_data.data.entrance = 1;
datasave();
}
}
if (_root.game.backg._x < 690 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4];
magnetnum = 2;
magnetac = true;
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -320 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [7, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 5, 5, 5, 5, 5, 5, 5];
magnetnum = 3;
magnetac = true;
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -590 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 7, 7, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5];
magnetnum = 3;
magnetac = true;
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
}
function lv1_31() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
bosshere = false;
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false && swordhave == 1)) break;
local_data.data.playerbe = [3, 6, 3];
local_data.data.entrance = 1;
datasave();
}
if (_root.game.backg._x == 960) {
_root.game.meseg.gotoAndStop(3);
}
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
enemytogo = [11];
enemyon = enemytogo.length;
bosshere = true;
}
}
}
function lv1_32() {
if (entrance == 1) {
if (enemyin >= enemytogo.length && enemylist.length == 0 && itemappear.length == 0 && sballlist.length == 0) {
if (place1 == 0) {
if (playerbe[2] == 3) {
_root.game.btemple.gotoAndStop(3);
}
}
if (place2 == 0 && place1 == 1) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 0) {
_root.game.gosign._x = 500;
}
if (place2 == 1 && place1 == 1 && place3 == 1 && place4 == 0) {
_root.game.gosign._x = 500;
}
movingmap = true;
dereob = _root.game.limitg._x + _root.game.limitg._width / 2;
izqob = _root.game.limitg._x - _root.game.limitg._width / 2;
derep = _root.game.backg._x + _root.game.backg._width / 2;
izqp = _root.game.backg._x - _root.game.backg._width / 2;
for (;;) {
if (!(_root.game.backg.lev.hitTest(_root.game.playerfull._x + _root.game.playerfull._width / 2 - 1, _root.game.playerfull._y, true) && _root.game.playerfull._y > 329 && _root.game.playerfull._y < 379 && playercath == false)) break;
levelpass = 1;
if (medal[17] == 0 && lives == 4) {
medal[17] = 1;
_root.game.archi.gotoAndStop(19);
}
local_data.data.levelpass = levelpass;
local_data.flush();
datasave();
}
}
if (_root.game.backg._x < 320 && movingmap == true && place1 == 0) {
movingmap = false;
place1 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 5, 5, 5, 5, 5, 5];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -320 && movingmap == true && place2 == 0 && place1 == 1) {
movingmap = false;
place2 = 1;
enemyin = 0;
_root.game.gosign._x = 800;
enemytogo = [5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5];
enemyon = enemytogo.length;
}
if (_root.game.backg._x < -620 && movingmap == true && place1 == 1 && place2 == 1 && place3 == 0) {
movingmap = false;
place3 = 1;
enemyin = 0;
enemytogo = [7, 7, 6, 6, 7, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 7, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1];
enemyon = enemytogo.length;
_root.game.gosign._x = 800;
}
}
}
function finishg() {
if (_root.cortinaingame._currentframe == 24) {
gotoAndStop(366);
}
if (_root.game.gsign._currentframe == 55) {
gotoAndPlay(1);
}
if (dañoplayer >= playerhp) {
gameover = true;
_root.niv3.gotoAndStop(1);
_root.bosss.gotoAndStop(1);
_root.game.itembase.swapDepths(1);
_root.game.cortinag.swapDepths(98999998);
_root.game.playerfull.swapDepths(98999999);
h = 0;
while (h < manchaslist.length) {
manchis = _root.game[manchaslist[h]];
manchis.removeMovieClip();
++h;
}
r = 0;
while (r < enemylist.length) {
itemob = _root.game[itemappear[r]];
alienob = _root.game[enemylist[r]];
alienob.removeMovieClip();
itemob.removeMovieClip();
++r;
}
s = 0;
while (s < canoneslist.length) {
canonx = _root.game[canoneslist[s]];
canonx.removeMovieClip();
++s;
}
if (direct == 1) {
_root.game.playerfull.gotoAndStop(20);
_root.game.cortinag.gotoAndStop(2);
}
if (direct == 0) {
_root.game.playerfull.gotoAndStop(19);
_root.game.cortinag.gotoAndStop(2);
}
}
}
function datasave() {
playercath = true;
local_data.data.playerhp = playerhp;
local_data.data.dañoplayer = dañoplayer;
local_data.data.lvplayer = lvplayer;
local_data.data.coinhave = coinhave;
local_data.data.power = power;
local_data.data.equipw1 = equipw1;
local_data.data.equipw2 = equipw2;
local_data.data.score = score;
local_data.data.mineral = mineral;
local_data.data.expw1lv = expw1lv;
local_data.data.expw2lv = expw2lv;
local_data.data.expw3lv = expw3lv;
local_data.data.expw1 = expw1;
local_data.data.expw2 = expw2;
local_data.data.expw3 = expw3;
local_data.data.expe = expe;
local_data.data.itemhave = itemhave;
local_data.data.itembox = itembox;
local_data.data.w1attack = w1attack;
local_data.data.w2attack = w2attack;
local_data.data.guncost = guncost;
local_data.data.handhave = handhave;
local_data.data.swordhave = swordhave;
local_data.data.gunhave = gunhave;
local_data.data.medal = medal;
local_data.data.greenflea = greenflea;
local_data.data.redsquid = redsquid;
local_data.data.leach = leach;
local_data.data.plasma = plasma;
local_data.data.abomination = abomination;
local_data.data.devourer = devourer;
local_data.data.firefly = firefly;
local_data.data.octron = octron;
local_data.data.lily = lily;
local_data.data.errorr = errorr;
local_data.data.qsoldier = qsoldier;
local_data.data.mom = mom;
local_data.data.healp = healp;
local_data.data.powering = powering;
local_data.data.clearing = clearing;
local_data.data.lives = lives;
local_data.data.timeplaying = timeplaying;
local_data.data.mutek = mutek;
local_data.flush();
_root.cortinaingame.play();
}
function datagameover() {
local_data.data.playerhp = playerhp;
local_data.data.dañoplayer = 0;
local_data.data.lvplayer = lvplayer;
local_data.data.coinhave = coinhave;
local_data.data.power = 0;
local_data.data.equipw1 = equipw1;
local_data.data.equipw2 = equipw2;
local_data.data.score = score;
local_data.data.mineral = mineral;
local_data.data.expw1lv = expw1lv;
local_data.data.expw2lv = expw2lv;
local_data.data.expw3lv = expw3lv;
local_data.data.expw1 = expw1;
local_data.data.expw2 = expw2;
local_data.data.expw3 = expw3;
local_data.data.expe = expe;
local_data.data.itemhave = itemhave;
local_data.data.itembox = itembox;
local_data.data.w1attack = w1attack;
local_data.data.w2attack = w2attack;
local_data.data.guncost = guncost;
local_data.data.handhave = handhave;
local_data.data.swordhave = swordhave;
local_data.data.gunhave = gunhave;
local_data.data.medal = medal;
local_data.data.greenflea = greenflea;
local_data.data.redsquid = redsquid;
local_data.data.leach = leach;
local_data.data.plasma = plasma;
local_data.data.abomination = abomination;
local_data.data.devourer = devourer;
local_data.data.firefly = firefly;
local_data.data.octron = octron;
local_data.data.lily = lily;
local_data.data.errorr = errorr;
local_data.data.qsoldier = qsoldier;
local_data.data.mom = mom;
local_data.data.healp = healp;
local_data.data.powering = powering;
local_data.data.clearing = clearing;
local_data.data.lives = lives;
local_data.data.timeplaying = timeplaying;
local_data.data.mutek = mutek;
local_data.flush();
}
function supamagnet() {
if (magnetac == true) {
if (magnetnum == 1) {
_root.game.trampiso.gotoAndStop(2);
magnetac = false;
magneton = true;
}
if (magnetnum == 2) {
_root.game.trampiso.gotoAndStop(3);
magnetac = false;
magneton = true;
}
if (magnetnum == 3) {
_root.game.trampiso.gotoAndStop(4);
magnetac = false;
magneton = true;
}
}
if (magneton == true) {
if (_root.game.trampiso.tp1._currentframe > 10 && _root.game.trampiso.tp1._currentframe < 23 && _root.game.playerfull._x > 0 && _root.game.playerfull._x < 100 || _root.game.trampiso.tp1._currentframe > 40 && _root.game.trampiso.tp1._currentframe < 53 && _root.game.playerfull._x > 110 && _root.game.playerfull._x < 180 || _root.game.trampiso.tp1._currentframe > 70 && _root.game.trampiso.tp1._currentframe < 83 && _root.game.playerfull._x > 200 && _root.game.playerfull._x < 270 || _root.game.trampiso.tp1._currentframe > 100 && _root.game.trampiso.tp1._currentframe < 113 && _root.game.playerfull._x > 290 && _root.game.playerfull._x < 360 || _root.game.trampiso.tp1._currentframe > 130 && _root.game.trampiso.tp1._currentframe < 143 && _root.game.playerfull._x > 390 && _root.game.playerfull._x < 460 || _root.game.trampiso.tp1._currentframe > 160 && _root.game.trampiso.tp1._currentframe < 173 && _root.game.playerfull._x > 490 && _root.game.playerfull._x < 550 || _root.game.trampiso.tp1._currentframe > 191 && _root.game.trampiso.tp1._currentframe < 204 && _root.game.playerfull._x > 580 && _root.game.playerfull._x < 610) {
dañoplayer += 10;
}
if (_root.game.trampiso.tp2._currentframe > 10 && _root.game.trampiso.tp2._currentframe < 23 && _root.game.playerfull._x > 0 && _root.game.playerfull._x < 100 || _root.game.trampiso.tp2._currentframe > 31 && _root.game.trampiso.tp2._currentframe < 44 && _root.game.playerfull._x > 110 && _root.game.playerfull._x < 180 || _root.game.trampiso.tp2._currentframe > 52 && _root.game.trampiso.tp2._currentframe < 65 && _root.game.playerfull._x > 200 && _root.game.playerfull._x < 270 || _root.game.trampiso.tp2._currentframe > 73 && _root.game.trampiso.tp2._currentframe < 86 && _root.game.playerfull._x > 290 && _root.game.playerfull._x < 360 || _root.game.trampiso.tp2._currentframe > 94 && _root.game.trampiso.tp2._currentframe < 107 && _root.game.playerfull._x > 390 && _root.game.playerfull._x < 460 || _root.game.trampiso.tp2._currentframe > 115 && _root.game.trampiso.tp2._currentframe < 128 && _root.game.playerfull._x > 490 && _root.game.playerfull._x < 550 || _root.game.trampiso.tp2._currentframe > 136 && _root.game.trampiso.tp2._currentframe < 149 && _root.game.playerfull._x > 580 && _root.game.playerfull._x < 610 || _root.game.trampiso.tp2._currentframe > 238 && _root.game.trampiso.tp2._currentframe < 251 && _root.game.playerfull._x > 110 && _root.game.playerfull._x < 180 || _root.game.trampiso.tp2._currentframe > 218 && _root.game.trampiso.tp2._currentframe < 231 && _root.game.playerfull._x > 200 && _root.game.playerfull._x < 270 || _root.game.trampiso.tp2._currentframe > 198 && _root.game.trampiso.tp2._currentframe < 211 && _root.game.playerfull._x > 290 && _root.game.playerfull._x < 360 || _root.game.trampiso.tp2._currentframe > 177 && _root.game.trampiso.tp2._currentframe < 190 && _root.game.playerfull._x > 390 && _root.game.playerfull._x < 460 || _root.game.trampiso.tp2._currentframe > 157 && _root.game.trampiso.tp2._currentframe < 170 && _root.game.playerfull._x > 490 && _root.game.playerfull._x < 550) {
dañoplayer += 10;
}
if (_root.game.trampiso.tp3._currentframe > 10 && _root.game.trampiso.tp3._currentframe < 23 && _root.game.playerfull._x > 0 && _root.game.playerfull._x < 100 || _root.game.trampiso.tp3._currentframe > 10 && _root.game.trampiso.tp3._currentframe < 23 && _root.game.playerfull._x > 200 && _root.game.playerfull._x < 270 || _root.game.trampiso.tp3._currentframe > 10 && _root.game.trampiso.tp3._currentframe < 23 && _root.game.playerfull._x > 390 && _root.game.playerfull._x < 460 || _root.game.trampiso.tp3._currentframe > 10 && _root.game.trampiso.tp3._currentframe < 23 && _root.game.playerfull._x > 580 && _root.game.playerfull._x < 610 || _root.game.trampiso.tp3._currentframe > 46 && _root.game.trampiso.tp3._currentframe < 59 && _root.game.playerfull._x > 110 && _root.game.playerfull._x < 180 || _root.game.trampiso.tp3._currentframe > 46 && _root.game.trampiso.tp3._currentframe < 59 && _root.game.playerfull._x > 290 && _root.game.playerfull._x < 360 || _root.game.trampiso.tp3._currentframe > 46 && _root.game.trampiso.tp3._currentframe < 59 && _root.game.playerfull._x > 490 && _root.game.playerfull._x < 550) {
dañoplayer += 10;
}
if (_root.game.trampiso.tp1._currentframe == 7 || _root.game.trampiso.tp1._currentframe == 37 || _root.game.trampiso.tp1._currentframe == 67 || _root.game.trampiso.tp1._currentframe == 97 || _root.game.trampiso.tp1._currentframe == 127 || _root.game.trampiso.tp1._currentframe == 157 || _root.game.trampiso.tp1._currentframe == 187) {
_root.tpson.gotoAndPlay(2);
}
if (_root.game.trampiso.tp2._currentframe == 7 || _root.game.trampiso.tp2._currentframe == 28 || _root.game.trampiso.tp2._currentframe == 49 || _root.game.trampiso.tp2._currentframe == 70 || _root.game.trampiso.tp2._currentframe == 91 || _root.game.trampiso.tp2._currentframe == 112 || _root.game.trampiso.tp2._currentframe == 133 || _root.game.trampiso.tp2._currentframe == 154 || _root.game.trampiso.tp2._currentframe == 174 || _root.game.trampiso.tp2._currentframe == 195 || _root.game.trampiso.tp2._currentframe == 215 || _root.game.trampiso.tp2._currentframe == 238) {
_root.tpson.gotoAndPlay(2);
}
if (_root.game.trampiso.tp3._currentframe == 7 || _root.game.trampiso.tp3._currentframe == 43) {
_root.tpson.gotoAndPlay(2);
}
}
if (magneton == false) {
_root.game.trampiso.gotoAndStop(1);
}
}
function canoneslaser() {
if (defenseen == true) {
c = 0;
while (c < 4) {
_root.game.canonlaser.duplicateMovieClip('canon' + deepen, deepen, {'_x': 80 + c * 160, '_y': 155.5 - c});
canoneslist.push('canon' + deepen);
++deepen;
++c;
}
defenseen = false;
defenseac = true;
canonotime = 0;
}
if (defenseac == true) {
canonotime += 1;
if (canonotime == 60) {
canonotime = 0;
f = 0;
while (f < numcanon) {
selectcanon = Math.floor(Math.random() * 4);
canonx = _root.game[canoneslist[selectcanon]];
canonx.gotoAndPlay(2);
++f;
}
_root.opencs.gotoAndPlay(2);
}
}
i = 0;
while (i < canoneslist.length) {
canonx = _root.game[canoneslist[i]];
canonx.swapDepths(canonx._y * canonx._y + 600000);
dx = _root.game.playerfull._x - canonx._x;
dy = _root.game.playerfull._y - canonx._y;
distalx = Math.sqrt(dx * dx);
if (canonx._currentframe == 21) {
_root.entresas.gotoAndPlay(2);
}
if (canonx._currentframe == 22 && distalx < 50) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 10;
}
if (blocks == true) {
dañoplayer += 5;
if (power < 100) {
power += 1;
}
}
}
}
if (defenseac == false) {
canonx.removeMovieClip();
}
++i;
}
if (defenseac == false) {
canoneslist.splice(0, canoneslist.length);
}
}
function ojoslaser() {
if (ojoen == true) {
c = 0;
while (c < 4) {
_root.game.eyelasers.duplicateMovieClip('canon' + deepen, deepen, {'_x': 80 + c * 160, '_y': 155.5 - c});
eyelist.push('canon' + deepen);
++deepen;
++c;
}
ojoen = false;
ojoac = true;
}
if (specialboss == true) {
specialboss = false;
f = 0;
while (f < eyelist.length) {
canonx = _root.game[eyelist[f]];
canonx.gotoAndPlay(2);
++f;
}
}
i = 0;
while (i < eyelist.length) {
canonx = _root.game[eyelist[i]];
canonx.swapDepths(canonx._y * canonx._y + 600000);
dx = _root.game.playerfull._x - canonx._x;
dy = _root.game.playerfull._y - canonx._y;
distalx = Math.sqrt(dx * dx);
if (canonx._currentframe == 12) {
_root.entresas.gotoAndPlay(2);
}
if (canonx._currentframe == 14 && distalx < 50) {
if (evade == false) {
if (blocks == false) {
if (direct == 0 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(17);
}
if (direct == 1 && superp == false) {
atacktime = true;
_root.game.playerfull.gotoAndStop(18);
}
}
if (blocks == false) {
dañoplayer += 20;
}
if (blocks == true) {
dañoplayer += 10;
if (power < 100) {
power += 1;
}
}
}
}
if (ojoac == false) {
canonx.removeMovieClip();
}
++i;
}
if (ojoac == false) {
eyelist.splice(0, eyelist.length);
}
}
function shophere() {
_root.game.roboto._x = 493.5;
_root.game.roboto._y = 350;
robogo = _root.game.roboto;
robogo.swapDepths(robogo._y * robogo._y);
fx = _root.game.playerfull._x - robogo._x;
fy = _root.game.playerfull._y - robogo._y;
fistal = Math.sqrt(fx * fx + fy * fy);
if (Key.isDown(90) && fistal <= 80) {
beginshopa = true;
_root.game.shopclip.swapDepths(98000001);
_root.game.shopclip.gotoAndStop(2);
}
if (beginshopa == true) {
showcoins();
buythings();
showitembox();
dragput();
}
}
function dragput() {
_root.game.shopclip.so.boxa.onPress = function () {
_root.game.shopclip.so.boxa.startDrag(0);
};
_root.game.shopclip.so.boxa.onRelease = function () {
_root.game.shopclip.so.boxa.stopDrag(0);
dlxa = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxa._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxa._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 1;
itemhave[0][1] = itembox[0];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 1;
itemhave[1][1] = itembox[0];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 1;
itemhave[2][1] = itembox[0];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 1;
itemhave[3][1] = itembox[0];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 1) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 1;
itemhave[4][1] = itembox[0];
}
_root.game.shopclip.so.boxa._x = -180;
_root.game.shopclip.so.boxa._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxb.onPress = function () {
_root.game.shopclip.so.boxb.startDrag(0);
};
_root.game.shopclip.so.boxb.onRelease = function () {
_root.game.shopclip.so.boxb.stopDrag(0);
dlxa = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxb._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxb._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 2;
itemhave[0][1] = itembox[1];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 2;
itemhave[1][1] = itembox[1];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 2;
itemhave[2][1] = itembox[1];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 2;
itemhave[3][1] = itembox[1];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 2) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 2;
itemhave[4][1] = itembox[1];
}
_root.game.shopclip.so.boxb._x = -129;
_root.game.shopclip.so.boxb._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxc.onPress = function () {
_root.game.shopclip.so.boxc.startDrag(0);
};
_root.game.shopclip.so.boxc.onRelease = function () {
_root.game.shopclip.so.boxc.stopDrag(0);
dlxa = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxc._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxc._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 3;
itemhave[0][1] = itembox[2];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 3;
itemhave[1][1] = itembox[2];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 3;
itemhave[2][1] = itembox[2];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 3;
itemhave[3][1] = itembox[2];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 3) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 3;
itemhave[4][1] = itembox[2];
}
_root.game.shopclip.so.boxc._x = -79;
_root.game.shopclip.so.boxc._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxd.onPress = function () {
_root.game.shopclip.so.boxd.startDrag(0);
};
_root.game.shopclip.so.boxd.onRelease = function () {
_root.game.shopclip.so.boxd.stopDrag(0);
dlxa = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxd._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxd._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 4;
itemhave[0][1] = itembox[3];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 4;
itemhave[1][1] = itembox[3];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 4;
itemhave[2][1] = itembox[3];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 4;
itemhave[3][1] = itembox[3];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 4) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 4;
itemhave[4][1] = itembox[3];
}
_root.game.shopclip.so.boxd._x = -30;
_root.game.shopclip.so.boxd._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxe.onPress = function () {
_root.game.shopclip.so.boxe.startDrag(0);
};
_root.game.shopclip.so.boxe.onRelease = function () {
_root.game.shopclip.so.boxe.stopDrag(0);
dlxa = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxe._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxe._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 5;
itemhave[0][1] = itembox[4];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 5;
itemhave[1][1] = itembox[4];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 5;
itemhave[2][1] = itembox[4];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 5;
itemhave[3][1] = itembox[4];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 5) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 5;
itemhave[4][1] = itembox[4];
}
_root.game.shopclip.so.boxe._x = 21;
_root.game.shopclip.so.boxe._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.boxf.onPress = function () {
_root.game.shopclip.so.boxf.startDrag(0);
};
_root.game.shopclip.so.boxf.onRelease = function () {
_root.game.shopclip.so.boxf.stopDrag(0);
dlxa = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensora._x;
dlya = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensora._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensorb._x;
dlyb = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensorb._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
dlxc = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensorc._x;
dlyc = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensorc._y;
distalslotc = Math.sqrt(dlxc * dlxc + dlyc * dlyc);
dlxd = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensord._x;
dlyd = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensord._y;
distalslotd = Math.sqrt(dlxd * dlxd + dlyd * dlyd);
dlxe = _root.game.shopclip.so.boxf._x - _root.game.shopclip.so.sensore._x;
dlye = _root.game.shopclip.so.boxf._y - _root.game.shopclip.so.sensore._y;
distalslote = Math.sqrt(dlxe * dlxe + dlye * dlye);
if (distalslota < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[0][0] = 7;
itemhave[0][1] = itembox[5];
}
if (distalslotb < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[1][0] = 7;
itemhave[1][1] = itembox[5];
}
if (distalslotc < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[2][0] = 7;
itemhave[2][1] = itembox[5];
}
if (distalslotd < 30) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[3][0] = 7;
itemhave[3][1] = itembox[5];
}
if (distalslote < 30 && itemhave[4][0] < 7) {
d = 0;
while (d < itemhave.length) {
if (itemhave[d][0] == 7) {
itemhave[d][0] = 0;
itemhave[d][1] = 0;
break;
}
++d;
}
itemhave[4][0] = 7;
itemhave[4][1] = itembox[5];
}
_root.game.shopclip.so.boxf._x = 71;
_root.game.shopclip.so.boxf._y = 163.5;
alignitems();
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.pbox.onPress = function () {
_root.game.shopclip.so.pbox.startDrag(0);
};
_root.game.shopclip.so.pbox.onRelease = function () {
_root.game.shopclip.so.pbox.stopDrag(0);
dlxa = _root.game.shopclip.so.pbox._x - _root.game.shopclip.so.equipsa._x;
dlya = _root.game.shopclip.so.pbox._y - _root.game.shopclip.so.equipsa._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.pbox._x - _root.game.shopclip.so.equipss._x;
dlyb = _root.game.shopclip.so.pbox._y - _root.game.shopclip.so.equipss._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
if (distalslota < 30) {
if (handhave == 1) {
if (equipw1 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw1 = 1;
slotuno();
}
}
if (distalslotb < 30) {
if (handhave == 1) {
if (equipw2 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw2 = 1;
slotdos();
}
}
_root.game.shopclip.so.pbox._x = 100;
_root.game.shopclip.so.pbox._y = -46.5;
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.sbox.onPress = function () {
_root.game.shopclip.so.sbox.startDrag(0);
};
_root.game.shopclip.so.sbox.onRelease = function () {
_root.game.shopclip.so.sbox.stopDrag(0);
dlxa = _root.game.shopclip.so.sbox._x - _root.game.shopclip.so.equipsa._x;
dlya = _root.game.shopclip.so.sbox._y - _root.game.shopclip.so.equipsa._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.sbox._x - _root.game.shopclip.so.equipss._x;
dlyb = _root.game.shopclip.so.sbox._y - _root.game.shopclip.so.equipss._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
if (distalslota < 30) {
if (swordhave == 1) {
if (equipw1 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw1 = 2;
slotuno();
}
}
if (distalslotb < 30) {
if (swordhave == 1) {
if (equipw2 == 3) {
itemhave[4][0] = 0;
itemhave[4][1] = 0;
alignitems();
}
equipw2 = 2;
slotdos();
}
}
_root.game.shopclip.so.sbox._x = 150;
_root.game.shopclip.so.sbox._y = -46.5;
_root.cachso.gotoAndPlay(2);
};
_root.game.shopclip.so.gbox.onPress = function () {
_root.game.shopclip.so.gbox.startDrag(0);
};
_root.game.shopclip.so.gbox.onRelease = function () {
_root.game.shopclip.so.gbox.stopDrag(0);
dlxa = _root.game.shopclip.so.gbox._x - _root.game.shopclip.so.equipsa._x;
dlya = _root.game.shopclip.so.gbox._y - _root.game.shopclip.so.equipsa._y;
distalslota = Math.sqrt(dlxa * dlxa + dlya * dlya);
dlxb = _root.game.shopclip.so.gbox._x - _root.game.shopclip.so.equipss._x;
dlyb = _root.game.shopclip.so.gbox._y - _root.game.shopclip.so.equipss._y;
distalslotb = Math.sqrt(dlxb * dlxb + dlyb * dlyb);
if (distalslota < 30) {
if (gunhave == 1 && itembox[6] != 0 && equipw2 != 3) {
equipw1 = 3;
slotuno();
itemhave[4][0] = itembox[6];
itemhave[4][1] = 0;
alignitems();
}
}
if (distalslotb < 30) {
if (gunhave == 1 && itembox[6] != 0 && equipw2 != 3) {
equipw2 = 3;
slotdos();
itemhave[4][0] = itembox[6];
itemhave[4][1] = 0;
alignitems();
}
}
_root.game.shopclip.so.gbox._x = 200;
_root.game.shopclip.so.gbox._y = -46.5;
_root.cachso.gotoAndPlay(2);
};
}
function slotuno() {
if (knucleuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(1);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(1);
}
}
function slotdos() {
if (knucleuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (equipw1 == 1) {
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
knucleuse = true;
sworduse = false;
gunuse = false;
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
}
if (equipw1 == 2) {
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
knucleuse = false;
sworduse = true;
gunuse = false;
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
}
if (equipw1 == 3) {
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
knucleuse = false;
sworduse = false;
gunuse = true;
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
_root.game.wiconb.puicon.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
_root.game.wiconb.swicon.gotoAndStop(1);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
_root.game.wiconb.guicon.gotoAndStop(1);
}
}
function showitembox() {
_root.game.shopclip.so.boxa.gotoAndStop(itembox[0] + 1);
_root.game.shopclip.so.boxb.gotoAndStop(itembox[1] + 1);
_root.game.shopclip.so.boxc.gotoAndStop(itembox[2] + 1);
_root.game.shopclip.so.boxd.gotoAndStop(itembox[3] + 1);
_root.game.shopclip.so.boxe.gotoAndStop(itembox[4] + 1);
_root.game.shopclip.so.boxf.gotoAndStop(itembox[5] + 1);
if (itembox[6] == 16) {
_root.game.shopclip.so.boxg.gotoAndStop(2);
} else {
if (itembox[6] == 17) {
_root.game.shopclip.so.boxg.gotoAndStop(3);
} else {
if (itembox[6] == 18) {
_root.game.shopclip.so.boxg.gotoAndStop(4);
} else {
if (itembox[6] == 19) {
_root.game.shopclip.so.boxg.gotoAndStop(5);
} else {
if (itembox[6] == 20) {
_root.game.shopclip.so.boxg.gotoAndStop(6);
} else {
if (itembox[6] == 21) {
_root.game.shopclip.so.boxg.gotoAndStop(7);
} else {
if (itembox[6] == 0) {
_root.game.shopclip.so.boxg.gotoAndStop(1);
}
}
}
}
}
}
}
if (handhave == 1) {
_root.game.shopclip.so.pbox.gotoAndStop(2);
} else {
_root.game.shopclip.so.pbox.gotoAndStop(1);
}
if (swordhave == 1) {
_root.game.shopclip.so.sbox.gotoAndStop(2);
} else {
_root.game.shopclip.so.sbox.gotoAndStop(1);
}
if (gunhave == 1) {
_root.game.shopclip.so.gbox.gotoAndStop(2);
} else {
_root.game.shopclip.so.gbox.gotoAndStop(1);
}
_root.game.shopclip.so.aequip.gotoAndStop(equipw1);
_root.game.shopclip.so.sequip.gotoAndStop(equipw2);
}
function buythings() {
_root.game.shopclip.so.obuya.onRollOver = function () {
_root.game.shopclip.so.obuya.gotoAndStop(2);
};
_root.game.shopclip.so.obuya.onRollOut = function () {
_root.game.shopclip.so.obuya.gotoAndStop(1);
};
_root.game.shopclip.so.obuya.onRelease = function () {
if (itembox[0] < 9 && coinhave >= 50) {
coinhave -= 50;
itembox[0] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyb.onRollOver = function () {
_root.game.shopclip.so.obuyb.gotoAndStop(2);
};
_root.game.shopclip.so.obuyb.onRollOut = function () {
_root.game.shopclip.so.obuyb.gotoAndStop(1);
};
_root.game.shopclip.so.obuyb.onRelease = function () {
if (itembox[1] < 9 && coinhave >= 200) {
coinhave -= 200;
itembox[1] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyc.onRollOver = function () {
_root.game.shopclip.so.obuyc.gotoAndStop(2);
};
_root.game.shopclip.so.obuyc.onRollOut = function () {
_root.game.shopclip.so.obuyc.gotoAndStop(1);
};
_root.game.shopclip.so.obuyc.onRelease = function () {
if (itembox[2] < 9 && coinhave >= 1000) {
coinhave -= 1000;
itembox[2] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyd.onRollOver = function () {
_root.game.shopclip.so.obuyd.gotoAndStop(2);
};
_root.game.shopclip.so.obuyd.onRollOut = function () {
_root.game.shopclip.so.obuyd.gotoAndStop(1);
};
_root.game.shopclip.so.obuyd.onRelease = function () {
if (itembox[3] < 9 && coinhave >= 300) {
coinhave -= 30;
itembox[3] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuye.onRollOver = function () {
_root.game.shopclip.so.obuye.gotoAndStop(2);
};
_root.game.shopclip.so.obuye.onRollOut = function () {
_root.game.shopclip.so.obuye.gotoAndStop(1);
};
_root.game.shopclip.so.obuye.onRelease = function () {
if (itembox[4] < 9 && coinhave >= 800) {
coinhave -= 80;
itembox[4] += 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.obuyf.onRollOver = function () {
_root.game.shopclip.so.obuyf.gotoAndStop(2);
};
_root.game.shopclip.so.obuyf.onRollOut = function () {
_root.game.shopclip.so.obuyf.gotoAndStop(1);
};
_root.game.shopclip.so.obuyf.onRelease = function () {
if (itembox[5] < 9 && coinhave >= 500) {
coinhave -= 50;
itembox[5] += 1;
_root.compras.gotoAndPlay(2);
}
};
if (swordhave == 1) {
_root.game.shopclip.so.obuyg.gotoAndStop(3);
}
_root.game.shopclip.so.obuyg.onRollOver = function () {
if (swordhave == 0) {
_root.game.shopclip.so.obuyg.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyg.onRollOut = function () {
if (swordhave == 0) {
_root.game.shopclip.so.obuyg.gotoAndStop(1);
}
if (swordhave == 1) {
_root.game.shopclip.so.obuyg.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyg.onRelease = function () {
if (coinhave >= 100 && swordhave == 0) {
coinhave -= 100;
swordhave = 1;
_root.compras.gotoAndPlay(2);
}
};
if (itembox[6] == 16 || itembox[6] > 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(3);
}
_root.game.shopclip.so.obuyh.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyh.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(1);
}
if (itembox[6] == 16 || itembox[6] > 16) {
_root.game.shopclip.so.obuyh.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyh.onRelease = function () {
if (coinhave >= 50 && itembox[6] == 0 || coinhave >= 50 && itembox[6] < 16) {
coinhave -= 50;
itembox[6] = 16;
_root.compras.gotoAndPlay(2);
}
};
if (itembox[6] == 17 || itembox[6] > 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(3);
}
_root.game.shopclip.so.obuyi.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyi.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(1);
}
if (itembox[6] == 17 || itembox[6] > 17) {
_root.game.shopclip.so.obuyi.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyi.onRelease = function () {
if (coinhave >= 1000 && itembox[6] == 0 || coinhave >= 1000 && itembox[6] < 17) {
coinhave -= 1000;
itembox[6] = 17;
if (itemhave[4][0] < 17 && equipw1 == 3 || itemhave[4][0] < 17 && equipw2 == 3) {
itemhave[4][0] = 17;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 18 || itembox[6] > 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(3);
}
_root.game.shopclip.so.obuyj.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyj.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(1);
}
if (itembox[6] == 18 || itembox[6] > 18) {
_root.game.shopclip.so.obuyj.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyj.onRelease = function () {
if (coinhave >= 5000 && itembox[6] == 0 || coinhave >= 5000 && itembox[6] < 18) {
coinhave -= 5000;
itembox[6] = 18;
if (itemhave[4][0] < 18 && equipw1 == 3 || itemhave[4][0] < 18 && equipw2 == 3) {
itemhave[4][0] = 18;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 19 || itembox[6] > 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(3);
}
_root.game.shopclip.so.obuyk.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyk.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(1);
}
if (itembox[6] == 18 || itembox[6] > 19) {
_root.game.shopclip.so.obuyk.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyk.onRelease = function () {
if (coinhave >= 15000 && itembox[6] == 0 || coinhave >= 15000 && itembox[6] < 19) {
coinhave -= 15000;
itembox[6] = 19;
if (itemhave[4][0] < 19 && equipw1 == 3 || itemhave[4][0] < 19 && equipw2 == 3) {
itemhave[4][0] = 19;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 20 || itembox[6] > 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(3);
}
_root.game.shopclip.so.obuyl.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyl.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(1);
}
if (itembox[6] == 20 || itembox[6] > 20) {
_root.game.shopclip.so.obuyl.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyl.onRelease = function () {
if (coinhave >= 50000 && itembox[6] == 0 || coinhave >= 50000 && itembox[6] < 20) {
coinhave -= 50000;
itembox[6] = 20;
if (itemhave[4][0] < 20 && equipw1 == 3 || itemhave[4][0] < 20 && equipw2 == 3) {
itemhave[4][0] = 20;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (itembox[6] == 21 || itembox[6] > 21) {
_root.game.shopclip.so.obuym.gotoAndStop(3);
}
_root.game.shopclip.so.obuym.onRollOver = function () {
if (itembox[6] == 0 || itembox[6] < 21) {
_root.game.shopclip.so.obuym.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuym.onRollOut = function () {
if (itembox[6] == 0 || itembox[6] < 21) {
_root.game.shopclip.so.obuym.gotoAndStop(1);
}
if (itembox[6] == 21 || itembox[6] > 21) {
_root.game.shopclip.so.obuym.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuym.onRelease = function () {
if (coinhave >= 100000 && itembox[6] == 0 || coinhave >= 100000 && itembox[6] < 21) {
coinhave -= 100000;
itembox[6] = 21;
if (itemhave[4][0] < 21 && equipw1 == 3 || itemhave[4][0] < 21 && equipw2 == 3) {
itemhave[4][0] = 21;
alignitems();
_root.compras.gotoAndPlay(2);
}
}
};
if (gunhave == 1) {
_root.game.shopclip.so.obuyn.gotoAndStop(3);
}
_root.game.shopclip.so.obuyn.onRollOver = function () {
if (gunhave == 0) {
_root.game.shopclip.so.obuyn.gotoAndStop(2);
}
};
_root.game.shopclip.so.obuyn.onRollOut = function () {
if (gunhave == 0) {
_root.game.shopclip.so.obuyn.gotoAndStop(1);
}
if (gunhave == 1) {
_root.game.shopclip.so.obuyn.gotoAndStop(3);
}
};
_root.game.shopclip.so.obuyn.onRelease = function () {
if (coinhave >= 1000 && gunhave == 0) {
coinhave -= 1000;
gunhave = 1;
_root.compras.gotoAndPlay(2);
}
};
_root.game.shopclip.so.exito.onRollOver = function () {
_root.game.shopclip.so.exito.gotoAndStop(2);
};
_root.game.shopclip.so.exito.onRollOut = function () {
_root.game.shopclip.so.exito.gotoAndStop(1);
};
_root.game.shopclip.so.exito.onRelease = function () {
beginshopa = false;
_root.game.shopclip.gotoAndStop(1);
};
}
function showcoins() {
cmillo = Math.floor(coinhave / 100000000);
ccmildeci = Math.floor((coinhave - cmillo * 100000000) / 10000000);
ccmiluni = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000) / 1000000);
ccmil = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000) / 100000);
cmildeci = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000) / 10000);
cmiluni = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000) / 1000);
cmil = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000 - cmiluni * 1000) / 100);
cdeci = Math.floor((coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000 - cmiluni * 1000 - cmil * 100) / 10);
cuni = Math.floor(coinhave - cmillo * 100000000 - ccmildeci * 10000000 - ccmiluni * 1000000 - ccmil * 100000 - cmildeci * 10000 - cmiluni * 1000 - cmil * 100 - cdeci * 10);
_root.game.shopclip.so.couni.gotoAndStop(cuni + 1);
_root.game.shopclip.so.codeci.gotoAndStop(cdeci + 1);
_root.game.shopclip.so.comil.gotoAndStop(cmil + 1);
_root.game.shopclip.so.comiluni.gotoAndStop(cmiluni + 1);
_root.game.shopclip.so.comildeci.gotoAndStop(cmildeci + 1);
_root.game.shopclip.so.cocmil.gotoAndStop(ccmil + 1);
_root.game.shopclip.so.cocmiluni.gotoAndStop(ccmiluni + 1);
_root.game.shopclip.so.cocmildeci.gotoAndStop(ccmildeci + 1);
_root.game.shopclip.so.comillo.gotoAndStop(cmillo + 1);
if (cmillo > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 100;
_root.game.shopclip.so.cocmildeci._alpha = 100;
_root.game.shopclip.so.comillo._alpha = 100;
} else {
if (ccmildeci > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 100;
_root.game.shopclip.so.cocmildeci._alpha = 100;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (ccmiluni > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 100;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (ccmil > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 100;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmildeci > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 100;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmiluni > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 100;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmil > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cmil > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 100;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cdeci > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 100;
_root.game.shopclip.so.comil._alpha = 0;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cuni > 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 0;
_root.game.shopclip.so.comil._alpha = 0;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
} else {
if (cuni == 0 && cdeci == 0 && cmil == 0 && cmiluni == 0 && cmildeci == 0 && ccmil == 0 && ccmiluni == 0 && ccmildeci == 0 && cmillo == 0) {
_root.game.shopclip.so.couni._alpha = 100;
_root.game.shopclip.so.codeci._alpha = 0;
_root.game.shopclip.so.comil._alpha = 0;
_root.game.shopclip.so.comiluni._alpha = 0;
_root.game.shopclip.so.comildeci._alpha = 0;
_root.game.shopclip.so.cocmil._alpha = 0;
_root.game.shopclip.so.cocmiluni._alpha = 0;
_root.game.shopclip.so.cocmildeci._alpha = 0;
_root.game.shopclip.so.comillo._alpha = 0;
}
}
}
}
}
}
}
}
}
}
}
}
function onemoretime() {
_root.game.trysign.livesc.gotoAndStop(lives + 1);
if (_root.game.cortinag.blackc._currentframe == 1) {
_root.endss.gotoAndPlay(2);
}
if (lives == 0 && lock == false && _root.game.cortinag.blackc._currentframe == 40) {
_root.game.gsign.swapDepths(99899998);
_root.game.gsign.play();
lock = true;
_root.oversound.gotoAndStop(2);
}
if (lives > 0 && lock == false) {
if (_root.game.cortinag.blackc._currentframe == 40) {
_root.game.trysign.swapDepths(99899998);
_root.game.trysign.gotoAndStop(2);
_root.oversound.gotoAndStop(2);
}
_root.game.trysign.yestry.onRollOver = function () {
_root.game.trysign.yestry.gotoAndStop(2);
};
_root.game.trysign.yestry.onRollOut = function () {
_root.game.trysign.yestry.gotoAndStop(1);
};
_root.game.trysign.yestry.onRelease = function () {
if (lives > 0) {
lives -= 1;
}
lock = true;
datagameover();
_root.cortinaingame.play();
};
_root.game.trysign.notry.onRollOver = function () {
_root.game.trysign.notry.gotoAndStop(2);
};
_root.game.trysign.notry.onRollOut = function () {
_root.game.trysign.notry.gotoAndStop(1);
};
_root.game.trysign.notry.onRelease = function () {
_root.game.trysign.gotoAndStop(1);
_root.game.gsign.swapDepths(99899998);
_root.game.gsign.play();
lock = true;
};
}
}
function checkmedals() {
timeplaying += 1;
if (medal[0] == 0 && greenflea >= 10) {
medal[0] = 1;
_root.game.archi.gotoAndStop(2);
_root.adchiso.gotoAndPlay(2);
}
if (medal[1] == 0 && redsquid >= 10) {
medal[1] = 1;
_root.game.archi.gotoAndStop(3);
_root.adchiso.gotoAndPlay(2);
}
if (medal[2] == 0 && leach >= 10) {
medal[2] = 1;
_root.game.archi.gotoAndStop(4);
_root.adchiso.gotoAndPlay(2);
}
if (medal[3] == 0 && plasma >= 10) {
medal[3] = 1;
_root.game.archi.gotoAndStop(5);
_root.adchiso.gotoAndPlay(2);
}
if (medal[4] == 0 && abomination >= 10) {
medal[4] = 1;
_root.game.archi.gotoAndStop(6);
_root.adchiso.gotoAndPlay(2);
}
if (medal[5] == 0 && devourer >= 10) {
medal[5] = 1;
_root.game.archi.gotoAndStop(7);
_root.adchiso.gotoAndPlay(2);
}
if (medal[6] == 0 && firefly >= 10) {
medal[6] = 1;
_root.game.archi.gotoAndStop(8);
_root.adchiso.gotoAndPlay(2);
}
if (medal[7] == 0 && coinhave >= 100) {
medal[7] = 1;
_root.game.archi.gotoAndStop(9);
_root.adchiso.gotoAndPlay(2);
}
if (medal[8] == 0 && expw1lv >= 5) {
medal[8] = 1;
_root.game.archi.gotoAndStop(10);
_root.adchiso.gotoAndPlay(2);
}
if (medal[9] == 0 && expw2lv >= 5) {
medal[9] = 1;
_root.game.archi.gotoAndStop(11);
_root.adchiso.gotoAndPlay(2);
}
if (medal[10] == 0 && expw3lv >= 2) {
medal[10] = 1;
_root.game.archi.gotoAndStop(12);
_root.adchiso.gotoAndPlay(2);
}
if (medal[11] == 0 && lvplayer >= 5) {
medal[11] = 1;
_root.game.archi.gotoAndStop(13);
_root.adchiso.gotoAndPlay(2);
}
if (medal[12] == 0 && hits >= 50) {
medal[12] = 1;
_root.game.archi.gotoAndStop(14);
_root.adchiso.gotoAndPlay(2);
}
if (medal[13] == 0 && healp >= 5) {
medal[13] = 1;
_root.game.archi.gotoAndStop(15);
_root.adchiso.gotoAndPlay(2);
}
if (medal[14] == 0 && clearing >= 2) {
medal[14] = 1;
_root.game.archi.gotoAndStop(16);
_root.adchiso.gotoAndPlay(2);
}
if (medal[15] == 0 && powering >= 5) {
medal[15] = 1;
_root.game.archi.gotoAndStop(17);
_root.adchiso.gotoAndPlay(2);
}
if (medal[16] == 0 && itemhave[0][0] != 0 && itemhave[1][0] != 0 && itemhave[2][0] != 0 && itemhave[3][0] != 0 && itemhave[4][0] != 0) {
medal[16] = 1;
_root.game.archi.gotoAndStop(18);
_root.adchiso.gotoAndPlay(2);
}
if (medal[18] == 0 && greenflea >= 100) {
medal[18] = 1;
_root.game.archi.gotoAndStop(20);
_root.adchiso.gotoAndPlay(2);
}
if (medal[19] == 0 && redsquid >= 100) {
medal[19] = 1;
_root.game.archi.gotoAndStop(21);
_root.adchiso.gotoAndPlay(2);
}
if (medal[20] == 0 && leach >= 100) {
medal[20] = 1;
_root.game.archi.gotoAndStop(22);
_root.adchiso.gotoAndPlay(2);
}
if (medal[21] == 0 && plasma >= 50) {
medal[21] = 1;
_root.game.archi.gotoAndStop(23);
_root.adchiso.gotoAndPlay(2);
}
if (medal[22] == 0 && abomination >= 25) {
medal[22] = 1;
_root.game.archi.gotoAndStop(24);
_root.adchiso.gotoAndPlay(2);
}
if (medal[23] == 0 && devourer >= 25) {
medal[23] = 1;
_root.game.archi.gotoAndStop(25);
_root.adchiso.gotoAndPlay(2);
}
if (medal[24] == 0 && firefly >= 25) {
medal[24] = 1;
_root.game.archi.gotoAndStop(26);
_root.adchiso.gotoAndPlay(2);
}
if (medal[25] == 0 && coinhave >= 1000) {
medal[25] = 1;
_root.game.archi.gotoAndStop(27);
_root.adchiso.gotoAndPlay(2);
}
if (medal[26] == 0 && expw1lv >= 15) {
medal[26] = 1;
_root.game.archi.gotoAndStop(28);
_root.adchiso.gotoAndPlay(2);
}
if (medal[27] == 0 && expw2lv >= 15) {
medal[27] = 1;
_root.game.archi.gotoAndStop(29);
_root.adchiso.gotoAndPlay(2);
}
if (medal[28] == 0 && expw3lv >= 3) {
medal[28] = 1;
_root.game.archi.gotoAndStop(30);
_root.adchiso.gotoAndPlay(2);
}
if (medal[29] == 0 && lvplayer >= 15) {
medal[29] = 1;
_root.game.archi.gotoAndStop(31);
_root.adchiso.gotoAndPlay(2);
}
if (medal[30] == 0 && hits >= 100) {
medal[30] = 1;
_root.game.archi.gotoAndStop(32);
_root.adchiso.gotoAndPlay(2);
}
if (medal[31] == 0 && healp >= 10) {
medal[31] = 1;
_root.game.archi.gotoAndStop(33);
_root.adchiso.gotoAndPlay(2);
}
if (medal[32] == 0 && powering >= 10) {
medal[32] = 1;
_root.game.archi.gotoAndStop(34);
_root.adchiso.gotoAndPlay(2);
}
if (medal[33] == 0 && greenflea >= 300) {
medal[33] = 1;
_root.game.archi.gotoAndStop(35);
_root.adchiso.gotoAndPlay(2);
}
if (medal[34] == 0 && redsquid >= 150) {
medal[34] = 1;
_root.game.archi.gotoAndStop(36);
_root.adchiso.gotoAndPlay(2);
}
if (medal[35] == 0 && leach >= 300) {
medal[35] = 1;
_root.game.archi.gotoAndStop(37);
_root.adchiso.gotoAndPlay(2);
}
if (medal[36] == 0 && plasma >= 100) {
medal[36] = 1;
_root.game.archi.gotoAndStop(38);
_root.adchiso.gotoAndPlay(2);
}
if (medal[37] == 0 && abomination >= 50) {
medal[37] = 1;
_root.game.archi.gotoAndStop(39);
_root.adchiso.gotoAndPlay(2);
}
if (medal[38] == 0 && devourer >= 50) {
medal[38] = 1;
_root.game.archi.gotoAndStop(40);
_root.adchiso.gotoAndPlay(2);
}
if (medal[39] == 0 && firefly >= 50) {
medal[39] = 1;
_root.game.archi.gotoAndStop(41);
_root.adchiso.gotoAndPlay(2);
}
if (medal[40] == 0 && itembox[0] == 9 && itembox[1] == 9 && itembox[2] == 9 && itembox[3] == 9 && itembox[4] == 9 && itembox[5] == 9) {
medal[40] = 1;
_root.game.archi.gotoAndStop(42);
_root.adchiso.gotoAndPlay(2);
}
if (medal[41] == 0 && octron >= 1) {
medal[41] = 1;
_root.game.archi.gotoAndStop(43);
_root.adchiso.gotoAndPlay(2);
}
if (medal[42] == 0 && lily >= 1) {
medal[42] = 1;
_root.game.archi.gotoAndStop(44);
_root.adchiso.gotoAndPlay(2);
}
if (medal[43] == 0 && errorr >= 1) {
medal[43] = 1;
_root.game.archi.gotoAndStop(45);
_root.adchiso.gotoAndPlay(2);
}
if (medal[44] == 0 && qsoldier >= 1) {
medal[43] = 1;
_root.game.archi.gotoAndStop(46);
_root.adchiso.gotoAndPlay(2);
}
if (medal[45] == 0 && mom >= 1) {
medal[45] = 1;
_root.game.archi.gotoAndStop(47);
_root.adchiso.gotoAndPlay(2);
}
if (medal[47] == 0 && coinhave >= 1000000) {
medal[47] = 1;
_root.game.archi.gotoAndStop(49);
_root.adchiso.gotoAndPlay(2);
}
if (medal[48] == 0 && expw1lv >= 20) {
medal[48] = 1;
_root.game.archi.gotoAndStop(50);
_root.adchiso.gotoAndPlay(2);
}
if (medal[49] == 0 && expw2lv >= 20) {
medal[49] = 1;
_root.game.archi.gotoAndStop(51);
_root.adchiso.gotoAndPlay(2);
}
if (medal[50] == 0 && expw3lv >= 4) {
medal[50] = 1;
_root.game.archi.gotoAndStop(52);
_root.adchiso.gotoAndPlay(2);
}
if (medal[51] == 0 && lvplayer >= 25) {
medal[51] = 1;
_root.game.archi.gotoAndStop(53);
_root.adchiso.gotoAndPlay(2);
}
if (medal[52] == 0 && hits >= 200) {
medal[52] = 1;
_root.game.archi.gotoAndStop(54);
_root.adchiso.gotoAndPlay(2);
}
if (medal[53] == 0 && timeplaying >= 720) {
medal[53] = 1;
_root.game.archi.gotoAndStop(55);
_root.adchiso.gotoAndPlay(2);
}
if (medal[54] == 0 && timeplaying >= 3600) {
medal[54] = 1;
_root.game.archi.gotoAndStop(56);
_root.adchiso.gotoAndPlay(2);
}
if (medal[55] == 0 && timeplaying >= 7200) {
medal[55] = 1;
_root.game.archi.gotoAndStop(57);
_root.adchiso.gotoAndPlay(2);
}
if (medal[56] == 0 && timeplaying >= 14400) {
medal[56] = 1;
_root.game.archi.gotoAndStop(58);
_root.adchiso.gotoAndPlay(2);
}
if (medal[57] == 0 && timeplaying >= 43200) {
medal[57] = 1;
_root.game.archi.gotoAndStop(59);
_root.adchiso.gotoAndPlay(2);
}
}
function doorsensors() {
i = 0;
while (i < 10) {
sen = _root.game.backg['pad' + i];
sx1 = _root.game.playerfull._x - (_root.game.backg._x + sen._x + sen.dsensor1._x);
sy1 = _root.game.playerfull._y - (_root.game.backg._y + sen._y + sen.dsensor1._y);
ristalx1 = Math.sqrt(sx1 * sx1);
ristaly1 = Math.sqrt(sy1 * sy1);
sx2 = _root.game.playerfull._x - (_root.game.backg._x + sen._x + sen.dsensor2._x);
sy2 = _root.game.playerfull._y - (_root.game.backg._y + sen._y + sen.dsensor2._y);
ristalx2 = Math.sqrt(sx2 * sx2);
ristaly2 = Math.sqrt(sy2 * sy2);
sx3 = _root.game.playerfull._x - (_root.game.backg._x + sen._x + sen.dsensor3._x);
sy3 = _root.game.playerfull._y - (_root.game.backg._y + sen._y + sen.dsensor3._y);
ristalx3 = Math.sqrt(sx3 * sx3);
ristaly3 = Math.sqrt(sy3 * sy3);
if (ristalx1 < 100 && ristaly1 < 50) {
sensorac1 = true;
}
if (ristalx2 < 100 && ristaly2 < 50) {
sensorac2 = true;
}
if (ristalx3 < 100 && ristaly3 < 50) {
sensorac3 = true;
}
trace('x' + ristalx1);
trace('y' + ristaly1);
++i;
}
}
stop();
stop();
local_data = SharedObject.getLocal('AS_data');
handhave = local_data.data.handhave;
swordhave = local_data.data.swordhave;
gunhave = local_data.data.gunhave;
var lock = false;
var mutek = local_data.data.mutek;
var timeplaying = local_data.data.timeplaying;
var greenflea = local_data.data.greenflea;
var redsquid = local_data.data.redsquid;
var leach = local_data.data.leach;
var plasma = local_data.data.plasma;
var abomination = local_data.data.abomination;
var devourer = local_data.data.devourer;
var firefly = local_data.data.firefly;
var octron = local_data.data.octron;
var lily = local_data.data.lily;
var errorr = local_data.data.errorr;
var qsoldier = local_data.data.qsoldier;
var mom = local_data.data.mom;
var healp = local_data.data.healp;
var powering = local_data.data.powering;
var clearing = local_data.data.clearing;
var lives = local_data.data.lives;
var levelpass = local_data.data.levelpass;
var medal = local_data.data.medal;
var ojoen = false;
var ojoac = false;
var specialboss = false;
var bosstrap = false;
var beginshopa = false;
var shopa = false;
var canonotime = 0;
var magneton = false;
var magnetac = false;
var magcount = 0;
var magnetnum = 0;
var magnetolist = new Array();
var magchoose = 0;
var defenseen = false;
var defenseac = false;
var numcanon = 0;
var accecount = 0;
var accelerate = false;
var slowcount = 0;
var slow = false;
var speedup = 0;
w1attack = local_data.data.w1attack;
w2attack = local_data.data.w2attack;
guncost = local_data.data.guncost;
var superp = false;
var gameover = false;
var place1 = 0;
var place2 = 0;
var place3 = 0;
var place4 = 0;
var place5 = 0;
var uncathcount = 1;
var playercath = false;
var pressright = false;
var pressleft = false;
var movingmap = false;
var itemname = 0;
var eyelist = new Array();
var enemylist = new Array();
var manchaslist = new Array();
var sballlist = new Array();
var canoneslist = new Array();
var enemytogo = new Array();
var itemappear = new Array();
var damageappear = new Array();
var nexxtlv = new Array();
var nexxtlvw1 = new Array();
var nexxtlvw2 = new Array();
var nexxtlvw3 = new Array();
var playerbe = new Array();
var spelshot = new Array();
var fullmap = new Array();
nexxtlv = local_data.data.nexxtlv;
nexxtlvw1 = local_data.data.nexxtlvw1;
nexxtlvw2 = local_data.data.nexxtlvw2;
nexxtlvw3 = local_data.data.nexxtlvw3;
enemytogo = [0];
playerbe = local_data.data.playerbe;
fullmap = [[[[24, 24, 24, 25], [44, 45, 45, 47], [1], [0]], [[26, 24, 24, 24, 25], [48, 45, 52, 45, 47], [1], [1]], [[26, 24], [50, 51], [0], [1]], [[26, 24, 24, 24, 25], [50, 46, 46, 46, 49], [1], [1]], [[26, 24, 24, 25], [50, 46, 46, 49], [1], [1]], [[26, 24, 24, 25], [50, 46, 53, 49], [1], [1]], [[26, 24], [50, 54], [0], [1]], []], [[[29, 27, 27, 28], [57, 55, 55, 56], [1], [1]], [[29, 27, 27, 27, 28], [57, 55, 55, 55, 56], [1], [1]], [[27, 27, 27, 27, 28], [62, 55, 60, 55, 56], [1], [0]], [[29, 27, 27, 28], [57, 55, 55, 56], [1], [1]], [[29, 27, 27, 28], [57, 55, 55, 56], [1], [1]], [[27, 27, 27, 27, 28], [62, 55, 59, 55, 56], [1], [0]], [[29, 27, 28], [57, 58, 56], [1], [1]], [[27], [58], [0], [0]]], [[[27, 27, 28], [58, 61, 56], [1], [0]], [[29, 27, 27, 28], [57, 55, 55, 56], [1], [1]], [[29, 27, 27, 28], [57, 55, 55, 56], [1], [1]], [[29, 27, 27, 28], [57, 55, 55, 56], [1], [1]], [[29, 27, 27, 27, 28], [57, 55, 55, 55, 56], [1], [1]], [], [], []], [[[29, 27, 27, 28], [57, 58, 63, 56], [1], [1]], [[29, 27, 27], [57, 64, 68], [0], [1]], [[29, 27, 27], [57, 65, 68], [0], [1]], [[29, 27, 27], [57, 66, 68], [0], [1]], [[29, 27, 27], [57, 67, 68], [0], [1]], [[30, 27, 28], [69, 55, 56], [1], [1]], [[30, 27, 27, 27, 31], [69, 55, 70, 55, 71], [1], [1]], []], [[[27], [58], [0], [0]], [[29, 27, 27, 28], [57, 55, 55, 56], [1], [1]], [[29, 27, 27, 28], [57, 55, 55, 56], [1], [1]], [[29, 27, 27, 28], [57, 55, 55, 56], [1], [1]], [[29, 27, 27, 27, 28], [57, 55, 55, 55, 56], [1], [1]], [], [], []]];
var entrance = local_data.data.entrance;
var posix = _root.game.playerfull._x;
var posiy = _root.game.playerfull._y;
var walkspeed = 10;
var direct = 0;
var nowalk = true;
var enemyon = enemytogo.length;
var enemyin = 1;
var deepen = 0;
var enemygo = false;
var coune = 10;
var alienatk = 0;
var knucleuse = true;
var sworduse = false;
var gunuse = false;
var atacktime = false;
var presy = false;
var balaco = 100000;
var itemn = 1;
var dmgn = 1;
var hpfinal = 100;
var playerhp = local_data.data.playerhp;
var dañoplayer = local_data.data.dañoplayer;
var lvplayer = local_data.data.lvplayer;
var coinhave = local_data.data.coinhave;
var ammocapa = 100;
var ammog = 0;
var limitpower = 200;
var power = local_data.data.power;
var sword3d = 120;
var equipw1 = local_data.data.equipw1;
var equipw2 = local_data.data.equipw2;
var ammoeq = 10;
var typeammo = 0;
var axe = 0;
var score = local_data.data.score;
var mineraltogo = 0;
var mineral = local_data.data.mineral;
var expw1lv = local_data.data.expw1lv;
var expw2lv = local_data.data.expw2lv;
var expw3lv = local_data.data.expw3lv;
var expw1 = local_data.data.expw1;
var expw2 = local_data.data.expw2;
var expw3 = local_data.data.expw3;
var expw1g = nexxtlvw1[expw1lv];
var expw2g = nexxtlvw2[expw2lv];
var expw3g = nexxtlvw3[expw3lv];
var expe = local_data.data.expe;
var expetogo = nexxtlv[lvplayer];
var itempress = false;
var itemhave = new Array();
var hits = 0;
var timehit = 0;
var combot = false;
var timing = false;
var tempscore = 0;
var bosshere = false;
var blocks = false;
var evade = false;
var timings = false;
var sensorac1 = false;
var sensorac2 = false;
var sensorac3 = false;
itemhave = local_data.data.itemhave;
itembox = local_data.data.itembox;
timew = setInterval(givepos, 10000);
if (equipw1 == 1) {
knucleuse = true;
sworduse = false;
gunuse = false;
}
if (equipw1 == 2) {
knucleuse = false;
sworduse = true;
gunuse = false;
}
if (equipw1 == 3) {
knucleuse = false;
sworduse = false;
gunuse = true;
}
if (knucleuse == true) {
mineral = expw1;
mineraltogo = expw1g;
mineraltolv();
_root.game.wicona.gotoAndStop(1);
_root.game.wicona.puicon.gotoAndStop(2);
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (sworduse == true) {
mineral = expw2;
mineraltogo = expw2g;
mineraltolv();
_root.game.wicona.gotoAndStop(2);
_root.game.wicona.swicon.gotoAndStop(2);
if (direct == 0) {
_root.game.playerfull.sstandr._alpha = 100;
}
if (direct == 1) {
_root.game.playerfull.sstandl._alpha = 100;
}
}
if (gunuse == true) {
mineral = expw3;
mineraltogo = expw3g;
mineraltolv();
_root.game.wicona.gotoAndStop(3);
_root.game.wicona.guicon.gotoAndStop(2);
_root.game.playerfull.sstandr._alpha = 0;
_root.game.playerfull.sstandl._alpha = 0;
}
if (equipw2 == 1) {
_root.game.wiconb.gotoAndStop(1);
}
if (equipw2 == 2) {
_root.game.wiconb.gotoAndStop(2);
}
if (equipw2 == 3) {
_root.game.wiconb.gotoAndStop(3);
}
_root.bmute.onRelease = function () {
if (mutek == 0) {
_root.titleson = new Sound();
_root.titleson.setVolume(0);
_root.bmute.gotoAndStop(2);
mutek = 1;
} else {
if (mutek == 1) {
_root.titleson = new Sound();
_root.titleson.setVolume(300);
_root.bmute.gotoAndStop(1);
mutek = 0;
}
}
};
_root.game.mision3si.swapDepths(98000004);
_root.game.meseg.swapDepths(98000003);
_root.game.itembase.swapDepths(97999999);
_root.game.combosign.swapDepths(97999995);
_root.game.gosign.swapDepths(97999994);
_root.game.wicona.swapDepths(97999993);
_root.game.wiconb.swapDepths(97999992);
_root.game.lvuni.swapDepths(97999991);
_root.game.lvdeci.swapDepths(97999990);
_root.game.avatarim.swapDepths(97999989);
_root.game.mapbase.swapDepths(97999988);
_root.game.basehp.swapDepths(97999987);
_root.game.imhpbar.swapDepths(97999986);
_root.game.spbar.swapDepths(97999985);
_root.game.archi.swapDepths(97999984);
_root.game.alarmred.swapDepths(97999983);
_root.game.btemple.swapDepths(97999982);
_root.game.trampiso.swapDepths(1000);
_root.game.trampboss.swapDepths(1001);
alignitems();
domap();
informationp();
experietolv();
mineraltolv();
trace('p: ' + _root.game.playerfull._x);
trace('b: ' + _root.game.backg._x);
_root.game.onEnterFrame = function () {
finishg();
onemoretime();
if (gameover == false) {
doorsensors();
musicon();
checkmedals();
ojoslaser();
supamagnet();
canoneslaser();
gamagemove();
combocon();
useitemn();
informationp();
takeitems();
alienmove();
playerwalk();
playeratk();
alienclone();
equipwepon();
scrollmove();
if (shopa == true) {
shophere();
}
}
};
}
frame 366 {
stop();
local_data = SharedObject.getLocal('AS_data');
var levelpass = local_data.data.levelpass;
var playerbe = local_data.data.playerbe;
if (levelpass == 0 && playerbe[2] == 1) {
gotoAndStop(354);
}
if (levelpass == 0 && playerbe[2] == 2) {
gotoAndStop(356);
}
if (levelpass == 0 && playerbe[2] == 3) {
gotoAndStop(358);
}
if (levelpass == 1 && playerbe[2] == 1) {
levelpass = 0;
local_data.data.levelpass = levelpass;
local_data.data.playerbe = [4, 0, 2];
local_data.flush();
gotoAndPlay(367);
}
if (levelpass == 1 && playerbe[2] == 2) {
levelpass = 0;
local_data.data.levelpass = levelpass;
local_data.data.playerbe = [0, 0, 3];
local_data.flush();
gotoAndPlay(620);
}
if (levelpass == 1 && playerbe[2] == 3) {
levelpass = 0;
local_data.data.levelpass = levelpass;
local_data.data.playerbe = [2, 0, 1];
local_data.flush();
gotoAndPlay(621);
}
}
frame 367 {
_root.titleson = new Sound();
var myLoopVolume = 0;
_root.titleson.setVolume(myLoopVolume);
}
movieClip 3558 {
}
frame 368 {
_root.titleson = new Sound();
var myLoopVolume = 10;
_root.titleson.setVolume(myLoopVolume);
}
frame 369 {
_root.titleson = new Sound();
var myLoopVolume = 20;
_root.titleson.setVolume(myLoopVolume);
}
frame 370 {
_root.titleson = new Sound();
var myLoopVolume = 30;
_root.titleson.setVolume(myLoopVolume);
}
frame 371 {
_root.titleson = new Sound();
var myLoopVolume = 40;
_root.titleson.setVolume(myLoopVolume);
}
frame 372 {
_root.titleson = new Sound();
var myLoopVolume = 50;
_root.titleson.setVolume(myLoopVolume);
}
frame 373 {
_root.titleson = new Sound();
var myLoopVolume = 70;
_root.titleson.setVolume(myLoopVolume);
}
frame 374 {
_root.titleson = new Sound();
var myLoopVolume = 80;
_root.titleson.setVolume(myLoopVolume);
}
frame 375 {
_root.titleson = new Sound();
var myLoopVolume = 90;
_root.titleson.setVolume(myLoopVolume);
}
frame 376 {
_root.titleson = new Sound();
var myLoopVolume = 100;
_root.titleson.setVolume(myLoopVolume);
}
frame 608 {
_root.titleson = new Sound();
var myLoopVolume = 90;
_root.titleson.setVolume(myLoopVolume);
}
frame 609 {
_root.titleson = new Sound();
var myLoopVolume = 80;
_root.titleson.setVolume(myLoopVolume);
}
frame 610 {
_root.titleson = new Sound();
var myLoopVolume = 70;
_root.titleson.setVolume(myLoopVolume);
}
frame 611 {
_root.titleson = new Sound();
var myLoopVolume = 60;
_root.titleson.setVolume(myLoopVolume);
}
frame 612 {
_root.titleson = new Sound();
var myLoopVolume = 50;
_root.titleson.setVolume(myLoopVolume);
}
frame 613 {
_root.titleson = new Sound();
var myLoopVolume = 40;
_root.titleson.setVolume(myLoopVolume);
}
frame 614 {
_root.titleson = new Sound();
var myLoopVolume = 30;
_root.titleson.setVolume(myLoopVolume);
}
frame 615 {
_root.titleson = new Sound();
var myLoopVolume = 20;
_root.titleson.setVolume(myLoopVolume);
}
frame 616 {
_root.titleson = new Sound();
var myLoopVolume = 10;
_root.titleson.setVolume(myLoopVolume);
}
frame 617 {
_root.titleson = new Sound();
var myLoopVolume = 0;
_root.titleson.setVolume(myLoopVolume);
}
frame 618 {
_root.titleson = new Sound();
var myLoopVolume = 300;
_root.titleson.setVolume(myLoopVolume);
}
frame 619 {
gotoAndPlay(353);
}
frame 620 {
stop();
gotoAndPlay(353);
}
frame 664 {
stop();
gotoAndPlay(1);
}