STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228126
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/17628170?noj=FRM17628170-13DC" width="1" height="1"></div>

Metal Armor.swf

This is the info page for
Flash #13787

(Click the ID number above for more basic data on this flash file.)


Text
LOAD COMPLETE!

GAME DESIGN

click here to start

LANGUAGE SELECT

ENGLISH

ENGLISH

射击

援助

W

S

A

D

J

K

生命数+1

援助值+1

射击数+1

威力值+1

能量值++

NEXT

NEXT

每关击倒一定数量的敌人后,BOSS就会
出现,打倒BOSS后方可过关。
打倒敌人后有时会掉落道具,拾起后会
产生各种效果。
游戏中按下K键会有我方的直升机增援。

BACK

BACK

OPERATION

UP

LEFT

DOWN

RIGHT

SHOT

CALL

ITEM EFFECT

LIFE NUM+1

STRIKER+1

SHOT NUM+1

POWER+1

ENERGY++

INTRODUCTION

GAME RULE

AFTER YOU BEAT A NUMBER OF ENEMY,THE
BOSS WILL TURN UP.TRY TO BEAT THE
BOSS,YOU CAN GO TO NEXT STAGE.
WHEN YOU BEAT A ENEMY,SOMETIMES IT MAY
DROP A ITEM,AFTER YOU LOAD THE ITEM,IT
CAN MAKE SOME SPECIAL EFFECT FOR YOU.
YOU CAN PRESS "K" BUTTON TO CALL A
HELICOPTER TO HELP YOU IN GAME.

PLAY

PLAY

制作人员

游戏策划:

美工:

程序:

联系方式

QQ:122586884

EMAIL:victboy@sohu.com

victboy@tom.com

HOMEPAGE:http://victboy.yeah.net

HOMEPAGE:http://victboy.yeah.net

STAFF

GAME DESIGN£

ART DESIGN£

PROGRAMME£

CONTACT

REPLAY

REPLAY

ActionScript [AS1/AS2]

Frame 1
fscommand ("showmenu", false); fscommand ("allowscale", false); stop();
Instance of Symbol 189 MovieClip [a] "loading" in Frame 1
onClipEvent (load) { bytesloaded = 0; bytesTotal = 0; bytesTotal = _root.getBytesTotal(); } onClipEvent (enterFrame) { bytesLoaded = _root.getBytesLoaded(); if ((bytesLoaded / bytesTotal) < 0.97) { gotoAndStop (1); } else if (((bytesLoaded / bytesTotal) >= 0.97) && ((bytesLoaded / bytesTotal) < 1)) { gotoAndStop (2); } else { _root.nextFrame(); } }
Frame 2
play();
Frame 182
stop(); this.onEnterFrame = function () { if (Key.isDown(32)) { gotoAndStop (184); } };
Frame 183
stop(); _global.versionCode = "";
Frame 184
stop(); this.onEnterFrame = function () { if (_global.versionCode == "Chinese") { introduction.gotoAndStop(1); } else if (_global.versionCode == "English") { introduction.gotoAndStop(2); } };
Frame 185
stop(); var Gstart = 0; stageDoor.stageDoor.stageNum.gotoAndStop(1); this.onEnterFrame = function () { if (Gstart > 0) { Gstart--; } if (Gstart == 0) { stageDoor.gotoAndPlay(13); Gstart = 49; } if (Gstart == 1) { nextFrame(); } };
Frame 186
function drawMap(map) { mapWidth = map[0].length; mapHeight = map.length; var i = charBotPosY; while (i <= ((viewAreaY + 1) + charBotPosY)) { var j = charBotPosX; while (j <= ((viewAreaX + 1) + charBotPosX)) { wholeMap.attachMovie("tile", (("t_" + i) + "_") + j, (i * (mapWidth + 2)) + j); wholeMap[(("t_" + i) + "_") + j]._x = j * tileW; wholeMap[(("t_" + i) + "_") + j]._y = i * tileH; wholeMap[(("t_" + i) + "_") + j].gotoAndStop(map[i][j] + 1); j++; } i++; } wholeMap._x = (533 - (((viewAreaX + 2) + (charBotPosX * 2)) * tileW)) / 2; wholeMap._y = (400 - (((viewAreaY + 2) + (charBotPosY * 2)) * tileH)) / 2; } function removeMap(map) { var i = 0; while (i <= (map.length + 1)) { var j = 0; while (j <= (map[0].length + 1)) { removeMovieClip(wholeMap[(("t_" + i) + "_") + j]); j++; } i++; } } function scrollMap(dir) { mapWidth = myMap[0].length; mapHeight = myMap.length; if ((dir == "left") && (rightX > (viewAreaX - 1))) { wholemap._x = wholemap._x + scrollspeed; scrollLeftX = scrollLeftX + scrollspeed; if (scrollLeftX >= tileW) { LeftX--; i = topY; while (i <= bottomY) { wholemap.attachMovie("tile", (("t_" + i) + "_") + LeftX, (i * (MapWidth + 2)) + LeftX); wholemap[(("t_" + i) + "_") + LeftX]._x = LeftX * tileW; wholemap[(("t_" + i) + "_") + LeftX]._y = i * tileH; wholemap[(("t_" + i) + "_") + LeftX].depth = (((i + "_") + LeftX) + newline) + ((i * (MapWidth + 2)) + LeftX); wholemap[(("t_" + i) + "_") + LeftX].gotoAndStop(myMap[i][LeftX] + 1); removeMovieClip(wholemap[(("t_" + i) + "_") + RightX]); i++; } scrollLeftX = scrollLeftX - tileW; RightX--; } } else if ((dir == "right") && (leftX < (mapWidth - viewAreaX))) { wholemap._x = wholemap._x - scrollspeed; scrollRightX = scrollRightX + scrollspeed; if (scrollRightX >= tileW) { rightX++; i = topY; while (i <= bottomY) { wholemap.attachMovie("tile", (("t_" + i) + "_") + rightX, (i * (MapWidth + 2)) + rightX); wholemap[(("t_" + i) + "_") + rightX]._x = rightX * tileW; wholemap[(("t_" + i) + "_") + rightX]._y = i * tileH; wholemap[(("t_" + i) + "_") + rightX].depth = (((i + "_") + rightX) + newline) + ((i * (MapWidth + 2)) + rightX); wholemap[(("t_" + i) + "_") + rightX].gotoAndStop(myMap[i][rightX] + 1); removeMovieClip(wholemap[(("t_" + i) + "_") + leftX]); i++; } scrollRightX = scrollRightX - tileW; LeftX++; } } else if ((dir == "up") && (BottomY > (viewAreaY - 1))) { wholemap._y = wholemap._y + scrollspeed; scrollTopY = scrollTopY + scrollspeed; if (scrollTopY >= tileH) { TopY--; i = LeftX; while (i <= RightX) { wholemap.attachMovie("tile", (("t_" + topY) + "_") + i, (topY * (MapWidth + 2)) + i); wholemap[(("t_" + topY) + "_") + i]._x = i * tileH; wholemap[(("t_" + topY) + "_") + i]._y = topY * tileW; wholemap[(("t_" + topY) + "_") + i].depth = (((i + "_") + topY) + newline) + ((i * (MapWidth + 2)) + topY); wholemap[(("t_" + topY) + "_") + i].gotoAndStop(myMap[topY][i] + 1); removeMovieClip(wholemap[(("t_" + bottomY) + "_") + i]); i++; } scrolltopY = scrolltopY - tileH; BottomY--; } } else if ((dir == "down") && (topY < (mapHeight - viewAreaY))) { wholemap._y = wholemap._y - scrollspeed; scrollbottomY = scrollbottomY + scrollspeed; if (scrollBottomY >= tileH) { BottomY++; i = LeftX; while (i <= RightX) { wholemap.attachMovie("tile", (("t_" + bottomY) + "_") + i, (bottomY * (MapWidth + 2)) + i); wholemap[(("t_" + bottomY) + "_") + i]._x = i * tileH; wholemap[(("t_" + bottomY) + "_") + i]._y = bottomY * tileW; wholemap[(("t_" + bottomY) + "_") + i].depth = (((i + "_") + bottomY) + newline) + ((i * (MapWidth + 2)) + bottomY); wholemap[(("t_" + bottomY) + "_") + i].gotoAndStop(myMap[bottomY][i] + 1); removeMovieClip(wholemap[(("t_" + topY) + "_") + i]); i++; } scrollbottomY = scrollbottomY - tileH; TopY++; } } } var charBotPosX = 5; var charBotPosY = 18; var canPassTile = 4; var notPassTile = 23; var tileW = 32; var tileH = 32; var charPos = [13, 27]; var Pos1 = [2, 3]; var Pos2 = [23, 3]; var Pos3 = [23, 19]; var Pos4 = [2, 19]; var bossPos = [13, 3]; var Pos = [23, 3]; viewAreaX = 16; viewAreaY = 12; mask._x = 10.5; mask._y = 8; var scrollspeed = 5; var scrollLeftX = 0; var scrollRightX = 0; var scrollTopY = 0; var scrollbottomY = 0; var leftX = charBotPosX; var rightX = ((viewAreaX + 1) + charBotPosX); var topY = charBotPosY; var bottomY = ((viewAreaY + 1) + charBotPosY); var CharNum = 3; var HLPoursideNum = 0; var score = 0; function ranPos() { var Option = random(4); if (Option == 0) { Pos[0] = Pos1[0]; Pos[1] = Pos1[1]; } else if (Option == 1) { Pos[0] = Pos2[0]; Pos[1] = Pos2[1]; } else if (Option == 2) { Pos[0] = Pos3[0]; Pos[1] = Pos3[1]; } else if (Option == 3) { Pos[0] = Pos4[0]; Pos[1] = Pos4[1]; } } function setChar() { leftX = charBotPosX; rightX = (viewAreaX + 1) + charBotPosX; topY = charBotPosY; bottomY = (viewAreaY + 1) + charBotPosY; removeMap(myMap); drawMap(myMap); wholemap.attachMovie("char", "char", ((mapWidth + 2) * (mapHeight + 2)) + 12); wholemap.char._x = (charPos[0] * tileW) + (tileW / 2); wholemap.char._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot", "shot", ((mapWidth + 2) * (mapHeight + 2)) + 22); wholemap.attachMovie("shotA2", "shotA2", ((mapWidth + 2) * (mapHeight + 2)) + 23); wholemap.attachMovie("shotA3", "shotA3", ((mapWidth + 2) * (mapHeight + 2)) + 24); } function setTankBoss() { wholemap.attachMovie("tankBoss", "tankBoss", ((mapWidth + 2) * (mapHeight + 2)) + 18); wholemap.tankBoss._x = (bossPos[0] * tileW) + (tileW / 2); wholemap.tankBoss._y = (bossPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBoss", "shotBoss", ((mapWidth + 2) * (mapHeight + 2)) + 36); wholemap.attachMovie("shotBossA2", "shotBossA2", ((mapWidth + 2) * (mapHeight + 2)) + 37); wholemap.attachMovie("shotBossA3", "shotBossA3", ((mapWidth + 2) * (mapHeight + 2)) + 38); bossAppear == true; } function setTank() { ranPos(); wholemap.attachMovie("tankEnemy", "tankEnemy", ((mapWidth + 2) * (mapHeight + 2)) + 13); wholemap.tankEnemy._x = (bossPos[0] * tileW) + (tileW / 2); wholemap.tankEnemy._y = (bossPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot2", "shot2", ((mapWidth + 2) * (mapHeight + 2)) + 31); } function setTankSmall() { ranPos(); wholemap.attachMovie("tankSmall", "tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 14); wholemap.tankSmall._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankSmall._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankSmall", "shot-tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 32); } function setTankMiddle() { ranPos(); wholemap.attachMovie("tankMiddle", "tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 15); wholemap.tankMiddle._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankMiddle._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankMiddle", "shot-tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 33); } function setTankE1() { ranPos(); wholemap.attachMovie("tankE1", "tankE1", ((mapWidth + 2) * (mapHeight + 2)) + 16); wholemap.tankE1._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE1._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slugE1", "slugE1", ((mapWidth + 2) * (mapHeight + 2)) + 34); } function setTankE2() { ranPos(); wholemap.attachMovie("tankE2", "tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 17); wholemap.tankE2._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE2._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankE2", "shot-tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 35); } function setMan() { ranPos(); wholemap.attachMovie("man", "man", ((mapWidth + 2) * (mapHeight + 2)) + 5); wholemap.man._x = (Pos[0] * tileW) + (tileW / 2); wholemap.man._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slug", "slug", ((mapWidth + 2) * (mapHeight + 2)) + 11); } function setHLP() { ranPos(); wholemap.attachMovie("helicopter", "helicopter", ((mapWidth + 2) * (mapHeight + 2)) + 101); wholemap.helicopter._x = (Pos[0] * tileW) + (tileW / 2); wholemap.helicopter._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot", "HLP-shot", ((mapWidth + 2) * (mapHeight + 2)) + 111); } function setOurHLP() { wholemap.attachMovie("HLPourside", "HLPourside", ((mapWidth + 2) * (mapHeight + 2)) + 151); wholemap.HLPourside._x = (charPos[0] * tileW) + (tileW / 2); wholemap.HLPourside._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot-ourside", "HLP-shot-ourside", ((mapWidth + 2) * (mapHeight + 2)) + 161); } function dropItem(myTank, itemType) { wholemap.attachMovie(itemType, itemType, ((mapWidth + 2) * (mapHeight + 2)) + 1); wholemap[itemType]._x = (tileW * Math.floor(myTank._x / tileW)) + (tileW / 2); wholemap[itemType]._y = (tileH * Math.floor(myTank._y / tileH)) + (tileH / 2); } myMap = [[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, 50, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 52, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 0], [0, 48, 1, 1, 1, 27, 1, 1, 30, 1, 1, 27, 1, 1, 27, 1, 30, 1, 1, 1, 27, 1, 1, 1, 48, 0], [0, 51, 1, 1, 1, 1, 1, 1, 1, 1, 1, 27, 1, 1, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 51, 0], [0, 48, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 27, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 27, 27, 27, 1, 1, 1, 1, 1, 27, 27, 27, 27, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 15, 15, 12, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 23, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 16, 16, 13, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 23, 23, 23, 23, 1, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 12, 1, 1, 30, 30, 30, 1, 1, 23, 48, 0], [0, 48, 1, 1, 11, 12, 1, 1, 1, 1, 1, 1, 1, 1, 14, 13, 1, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 14, 13, 1, 1, 23, 23, 23, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 23, 1, 1, 23, 1, 1, 1, 1, 1, 1, 30, 30, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 23, 1, 1, 23, 1, 1, 1, 1, 1, 30, 30, 1, 1, 1, 1, 1, 48, 0], [0, 48, 27, 27, 1, 1, 1, 1, 23, 1, 1, 23, 1, 1, 1, 1, 1, 30, 1, 1, 1, 1, 27, 27, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 51, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 51, 0], [0, 48, 27, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 23, 23, 23, 1, 1, 1, 27, 27, 48, 0], [0, 48, 1, 1, 11, 12, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 14, 13, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 27, 27, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 27, 27, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 12, 1, 1, 1, 1, 27, 27, 27, 48, 0], [0, 48, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 13, 1, 1, 1, 1, 1, 1, 27, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 53, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 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]]; var stage = 1; var tankNum = 1; var tankE1Num = 4; var tankE2Num = 4; var tankSmallNum = 3; var tankMiddleNum = 4; var manNum = 4; var HLPNum = 1; var timer = 0; var enemySpace = 0; var npcAIP = 200; setChar(); getCharData.stageNum = stage; setMan(); setTankE1(); setTankE2(); setTankSmall(); this.onEnterFrame = function () { function upDateCHA() { if (enemySpace > 0) { var Option = random(7); if ((((Option == 0) && (tankNum > 0)) && (!wholemap.tankEnemy)) && (tankEnemy != boss)) { setTank(); enemySpace--; } else if (((Option == 1) && (tankSmallNum > 0)) && (!wholemap.tankSmall)) { setTankSmall(); enemySpace--; } else if (((Option == 2) && (tankMiddleNum > 0)) && (!wholemap.tankMiddle)) { setTankMiddle(); enemySpace--; } else if (((Option == 3) && (tankE1Num > 0)) && (!wholemap.tankE1)) { setTankE1(); enemySpace--; } else if (((Option == 4) && (tankE2Num > 0)) && (!wholemap.tankE2)) { setTankE2(); enemySpace--; } else if (((Option == 5) && (manNum > 0)) && (!wholemap.man)) { setMan(); enemySpace--; } else if (((Option == 6) && (HLPNum > 0)) && (!wholemap.helicopter)) { setHLP(); enemySpace--; } } } var ranDrop = random(6); if (wholemap.man.aliveAfter == false) { if (manNum > 0) { manNum--; enemySpace++; removeMovieClip(wholemap.man); } else if (manNum == 0) { removeMovieClip(wholemap.man); } } else if (wholemap.tankEnemy.aliveAfter == false) { if (tankNum > 0) { tankNum--; enemySpace++; dropItem(wholemap.tankEnemy, "addShotNum"); removeMovieClip(wholemap.tankEnemy); } else if (tankNum == 0) { removeMovieClip(wholemap.tankEnemy); } } else if (wholemap.tankSmall.aliveAfter == false) { if (tankSmallNum > 0) { tankSmallNum--; enemySpace++; removeMovieClip(wholemap.tankSmall); } else if (tankSmallNum == 0) { removeMovieClip(wholemap.tankSmall); } } else if (wholemap.tankE1.aliveAfter == false) { if (tankE1Num > 0) { tankE1Num--; enemySpace++; removeMovieClip(wholemap.tankE1); } else if (tankE1 == 0) { removeMovieClip(wholemap.tankE1); } } else if (wholemap.tankE2.aliveAfter == false) { if (tankE2Num > 0) { tankE2Num--; enemySpace++; removeMovieClip(wholemap.tankE2); } else if (tankE2 == 0) { removeMovieClip(wholemap.tankE2); } } else if (wholemap.tankMiddle.aliveAfter == false) { if (tankMiddleNum > 0) { tankMiddleNum--; enemySpace++; if ((ranDrop >= 0) && (ranDrop <= 1)) { dropItem(wholemap.tankMiddle, "medicalBox"); } else if (ranDrop == 2) { dropItem(wholemap.tankMiddle, "addLifeNum"); } removeMovieClip(wholemap.tankMiddle); } else if (tankMiddleNum == 0) { removeMovieClip(wholemap.tankMiddle); } } else if (wholemap.helicopter.aliveAfter == false) { if (HLPNum > 0) { HLPNum--; enemySpace++; dropItem(wholemap.helicopter, "callHLP"); removeMovieClip(wholemap.helicopter); } else if (HLPNum == 0) { removeMovieClip(wholemap.helicopter); } } upDateCHA(); if ((((!wholemap.HLPourside) && (HLPoursideNum > 0)) && (wholemap.char.alive == true)) && (Key.isDown(75))) { setOurHLP(); HLPoursideNum--; } if (wholemap.HLPourside.aliveAfter == false) { removeMovieClip(wholemap.HLPourside); } if ((!wholemap.char) && (charNum > 0)) { setChar(); charNum--; } else if ((!wholemap.char) && (charNum == 0)) { stageDoor.play(); stageDoor.stageDoor.stageText.gotoAndStop("gameover"); stageDoor.stageDoor.stageNum.gotoAndStop(7); showStaff.gotoAndStop(2); if (stageDoor._currentFrame == 13) { showScore.gotoAndStop(2); } else if (stageDoor._currentFrame == 60) { gotoAndStop (192); } } if (wholemap.char.aliveAfter == false) { removeMovieClip(wholemap.char); } if ((((((HLPNum == 0) && (tankMiddleNum == 0)) && (tankSmallNum == 0)) && (!wholemap.helicopter)) && (!wholemap.tankSmall)) && (!wholemap.tankMiddle)) { if ((!wholemap.tankEnemy) && (tankNum > 0)) { setTank(); } } if (((timer == 0) && (!wholemap.tankEnemy)) && (tankNum == 0)) { timer = 121; manNum = 0; tankE1Num = 0; tankE2Num = 0; removeMovieClip(wholemap.man); removeMovieClip(wholemap.tankE1); removeMovieClip(wholemap.tankE2); } if (timer > 0) { timer--; } if (timer == 25) { stageDoor.play(); stageDoor.stageDoor.stageNum.gotoAndStop(2); } if (timer == 1) { nextFrame(); } };
Frame 187
function ranPos() { var Option = random(4); if (Option == 0) { Pos[0] = Pos1[0]; Pos[1] = Pos1[1]; } else if (Option == 1) { Pos[0] = Pos2[0]; Pos[1] = Pos2[1]; } else if (Option == 2) { Pos[0] = Pos3[0]; Pos[1] = Pos3[1]; } else if (Option == 3) { Pos[0] = Pos4[0]; Pos[1] = Pos4[1]; } } function setChar() { leftX = charBotPosX; rightX = (viewAreaX + 1) + charBotPosX; topY = charBotPosY; bottomY = (viewAreaY + 1) + charBotPosY; removeMap(myMap); drawMap(myMap); wholemap.attachMovie("char", "char", ((mapWidth + 2) * (mapHeight + 2)) + 12); wholemap.char._x = (charPos[0] * tileW) + (tileW / 2); wholemap.char._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot", "shot", ((mapWidth + 2) * (mapHeight + 2)) + 22); wholemap.attachMovie("shotA2", "shotA2", ((mapWidth + 2) * (mapHeight + 2)) + 23); wholemap.attachMovie("shotA3", "shotA3", ((mapWidth + 2) * (mapHeight + 2)) + 24); } function setTankBossB() { wholemap.attachMovie("tankBossB", "tankBossB", ((mapWidth + 2) * (mapHeight + 2)) + 18); wholemap.tankBossB._x = (bossPos[0] * tileW) + (tileW / 2); wholemap.tankBossB._y = (bossPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBossB", "shotBossB", ((mapWidth + 2) * (mapHeight + 2)) + 36); wholemap.attachMovie("shotBossB2", "shotBossB2", ((mapWidth + 2) * (mapHeight + 2)) + 37); wholemap.attachMovie("shotBossB3", "shotBossB3", ((mapWidth + 2) * (mapHeight + 2)) + 38); } function setTank() { ranPos(); wholemap.attachMovie("tankEnemy", "tankEnemy", ((mapWidth + 2) * (mapHeight + 2)) + 13); wholemap.tankEnemy._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankEnemy._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot2", "shot2", ((mapWidth + 2) * (mapHeight + 2)) + 31); } function setTankSmall() { ranPos(); wholemap.attachMovie("tankSmall", "tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 14); wholemap.tankSmall._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankSmall._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankSmall", "shot-tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 32); } function setTankMiddle() { ranPos(); wholemap.attachMovie("tankMiddle", "tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 15); wholemap.tankMiddle._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankMiddle._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankMiddle", "shot-tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 33); } function setTankE1() { ranPos(); wholemap.attachMovie("tankE1", "tankE1", ((mapWidth + 2) * (mapHeight + 2)) + 16); wholemap.tankE1._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE1._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slugE1", "slugE1", ((mapWidth + 2) * (mapHeight + 2)) + 34); } function setTankE2() { ranPos(); wholemap.attachMovie("tankE2", "tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 17); wholemap.tankE2._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE2._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankE2", "shot-tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 35); } function setMan() { ranPos(); wholemap.attachMovie("man", "man", ((mapWidth + 2) * (mapHeight + 2)) + 5); wholemap.man._x = (Pos[0] * tileW) + (tileW / 2); wholemap.man._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slug", "slug", ((mapWidth + 2) * (mapHeight + 2)) + 11); } function setHLP() { ranPos(); wholemap.attachMovie("helicopter", "helicopter", ((mapWidth + 2) * (mapHeight + 2)) + 101); wholemap.helicopter._x = (Pos[0] * tileW) + (tileW / 2); wholemap.helicopter._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot", "HLP-shot", ((mapWidth + 2) * (mapHeight + 2)) + 111); } function setOurHLP() { wholemap.attachMovie("HLPourside", "HLPourside", ((mapWidth + 2) * (mapHeight + 2)) + 151); wholemap.HLPourside._x = (charPos[0] * tileW) + (tileW / 2); wholemap.HLPourside._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot-ourside", "HLP-shot-ourside", ((mapWidth + 2) * (mapHeight + 2)) + 161); } function dropItem(myTank, itemType) { wholemap.attachMovie(itemType, itemType, ((mapWidth + 2) * (mapHeight + 2)) + 1); wholemap[itemType]._x = (tileW * Math.floor(myTank._x / tileW)) + (tileW / 2); wholemap[itemType]._y = (tileH * Math.floor(myTank._y / tileH)) + (tileH / 2); } myMap = [[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, 50, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 52, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 0], [0, 48, 2, 2, 2, 29, 2, 2, 31, 2, 2, 29, 2, 2, 29, 2, 31, 2, 2, 2, 29, 2, 2, 2, 48, 0], [0, 51, 2, 2, 2, 2, 2, 2, 2, 2, 2, 29, 2, 2, 29, 2, 2, 2, 2, 2, 2, 2, 2, 2, 51, 0], [0, 48, 29, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 25, 2, 2, 2, 2, 29, 48, 0], [0, 48, 2, 2, 2, 31, 2, 2, 25, 2, 2, 2, 2, 2, 2, 2, 2, 25, 2, 2, 2, 2, 2, 2, 48, 0], [0, 48, 2, 2, 2, 31, 2, 2, 25, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 48, 0], [0, 48, 25, 2, 2, 31, 31, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 25, 48, 0], [0, 48, 2, 2, 2, 2, 2, 2, 2, 2, 17, 21, 21, 21, 21, 21, 21, 21, 21, 18, 2, 2, 2, 25, 48, 0], [0, 48, 25, 2, 2, 2, 2, 2, 2, 2, 20, 22, 22, 22, 22, 22, 22, 22, 22, 19, 2, 2, 2, 2, 48, 0], [0, 48, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 48, 0], [0, 48, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 48, 0], [0, 48, 25, 2, 2, 2, 17, 21, 21, 21, 21, 21, 21, 21, 21, 18, 2, 2, 2, 2, 2, 2, 2, 25, 48, 0], [0, 48, 25, 2, 2, 2, 20, 22, 22, 22, 22, 22, 22, 22, 22, 19, 2, 2, 2, 2, 25, 2, 2, 2, 48, 0], [0, 48, 25, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 25, 25, 2, 2, 2, 2, 48, 0], [0, 48, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 25, 2, 2, 2, 2, 2, 48, 0], [0, 48, 2, 2, 17, 21, 21, 21, 21, 21, 21, 21, 21, 18, 2, 2, 2, 25, 25, 2, 2, 2, 2, 2, 48, 0], [0, 48, 29, 29, 20, 22, 22, 22, 22, 22, 22, 22, 22, 19, 2, 2, 2, 2, 25, 25, 2, 2, 29, 29, 48, 0], [0, 48, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 48, 0], [0, 51, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 51, 0], [0, 48, 29, 29, 2, 2, 2, 2, 17, 21, 21, 21, 21, 21, 21, 21, 21, 18, 25, 2, 2, 2, 29, 29, 48, 0], [0, 48, 2, 2, 2, 2, 2, 2, 20, 22, 22, 22, 22, 22, 22, 22, 22, 19, 2, 25, 2, 2, 2, 2, 48, 0], [0, 48, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 48, 0], [0, 48, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 31, 48, 0], [0, 48, 31, 31, 31, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 31, 31, 48, 0], [0, 48, 31, 2, 2, 2, 2, 2, 2, 2, 29, 29, 29, 29, 29, 2, 2, 2, 2, 25, 2, 2, 2, 2, 48, 0], [0, 48, 2, 2, 2, 2, 2, 25, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 25, 2, 2, 2, 2, 48, 0], [0, 48, 2, 2, 2, 2, 25, 25, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 48, 0], [0, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 53, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 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]]; var stage = 2; var tankNum = 3; var tankE1Num = 2; var tankE2Num = 2; var tankSmallNum = 3; var tankMiddleNum = 4; var tankBossBNum = 1; var manNum = 2; var HLPNum = 3; var HLPoursideNum = 0; var timer = 0; var enemySpace = 0; var npcAIP = 200; drawMap(myMap); setChar(); getCharData.stageNum = stage; setMan(); setTankE1(); setTankE2(); setTankSmall(); if (wholemap.HLPourside) { setOurHLP(); } this.onEnterFrame = function () { function upDateCHA() { if (enemySpace > 0) { var Option = random(7); if (((Option == 0) && (tankNum > 0)) && (!wholemap.tankEnemy)) { setTank(); enemySpace--; } else if (((Option == 1) && (tankSmallNum > 0)) && (!wholemap.tankSmall)) { setTankSmall(); enemySpace--; } else if (((Option == 2) && (tankMiddleNum > 0)) && (!wholemap.tankMiddle)) { setTankMiddle(); enemySpace--; } else if (((Option == 3) && (tankE1Num > 0)) && (!wholemap.tankE1)) { setTankE1(); enemySpace--; } else if (((Option == 4) && (tankE2Num > 0)) && (!wholemap.tankE2)) { setTankE2(); enemySpace--; } else if (((Option == 5) && (manNum > 0)) && (!wholemap.man)) { setMan(); enemySpace--; } else if (((Option == 6) && (HLPNum > 0)) && (!wholemap.helicopter)) { setHLP(); enemySpace--; } } } var ranDrop = random(6); if (wholemap.man.aliveAfter == false) { if (manNum > 0) { manNum--; enemySpace++; removeMovieClip(wholemap.man); } else if (manNum == 0) { removeMovieClip(wholemap.man); } } else if (wholemap.tankEnemy.aliveAfter == false) { if (tankNum > 0) { tankNum--; enemySpace++; if ((ranDrop >= 4) && (ranDrop <= 5)) { dropItem(wholemap.tankEnemy, "addShotNum"); } removeMovieClip(wholemap.tankEnemy); } else if (tankNum == 0) { removeMovieClip(wholemap.tankEnemy); } } else if (wholemap.tankSmall.aliveAfter == false) { if (tankSmallNum > 0) { tankSmallNum--; enemySpace++; removeMovieClip(wholemap.tankSmall); } else if (tankSmallNum == 0) { removeMovieClip(wholemap.tankSmall); } } else if (wholemap.tankE1.aliveAfter == false) { if (tankE1Num > 0) { tankE1Num--; enemySpace++; removeMovieClip(wholemap.tankE1); } else if (tankE1 == 0) { removeMovieClip(wholemap.tankE1); } } else if (wholemap.tankE2.aliveAfter == false) { if (tankE2Num > 0) { tankE2Num--; enemySpace++; removeMovieClip(wholemap.tankE2); } else if (tankE2 == 0) { removeMovieClip(wholemap.tankE2); } } else if (wholemap.tankMiddle.aliveAfter == false) { if (tankMiddleNum > 0) { tankMiddleNum--; enemySpace++; if ((ranDrop >= 0) && (ranDrop <= 1)) { dropItem(wholemap.tankMiddle, "medicalBox"); } else if (ranDrop == 2) { dropItem(wholemap.tankMiddle, "addLifeNum"); } removeMovieClip(wholemap.tankMiddle); } else if (tankMiddleNum == 0) { removeMovieClip(wholemap.tankMiddle); } } else if (wholemap.helicopter.aliveAfter == false) { if (HLPNum > 0) { HLPNum--; enemySpace++; if (ranDrop == 3) { dropItem(wholemap.helicopter, "callHLP"); } removeMovieClip(wholemap.helicopter); } else if (HLPNum == 0) { removeMovieClip(wholemap.helicopter); } } else if (wholemap.tankBossB.aliveAfter == false) { if (tankBossBNum > 0) { tankBossBNum--; enemySpace++; dropItem(wholemap.tankBossB, "powerBox"); removeMovieClip(wholemap.tankBossB); } else if (tankBossNum == 0) { removeMovieClip(wholemap.tankBossB); } } upDateCHA(); if ((((!wholemap.HLPourside) && (HLPoursideNum > 0)) && (wholemap.char.alive == true)) && (Key.isDown(75))) { HLPoursideNum--; } if (wholemap.HLPourside.aliveAfter == false) { removeMovieClip(wholemap.HLPourside); } if ((!wholemap.char) && (charNum > 0)) { setChar(); charNum--; } else if ((!wholemap.char) && (charNum == 0)) { stageDoor.play(); stageDoor.stageDoor.stageText.gotoAndStop("gameover"); stageDoor.stageDoor.stageNum.gotoAndStop(7); if (stageDoor._currentFrame == 13) { showScore.gotoAndStop(2); } else if (stageDoor._currentFrame == 60) { gotoAndStop (192); } } if (wholemap.char.aliveAfter == false) { removeMovieClip(wholemap.char); } if ((((((tankMiddleNum == 0) && (tankNum == 0)) && (HLPNum == 0)) && (!wholemap.tankMiddle)) && (!wholemap.tankEnemy)) && (!wholemap.helicopter)) { if ((!wholemap.tankBossB) && (tankBossBNum > 0)) { setTankBossB(); } } if (((timer == 0) && (!wholemap.tankBossB)) && (tankBossBNum == 0)) { timer = 121; manNum = 0; tankE1Num = 0; tankE2Num = 0; removeMovieClip(wholemap.man); removeMovieClip(wholemap.tankE1); removeMovieClip(wholemap.tankE2); removeMovieClip(wholemap.tankSmall); } if (timer > 0) { timer--; } if (timer == 25) { stageDoor.play(); stageDoor.stageDoor.stageNum.gotoAndStop(3); } if (timer == 1) { nextFrame(); } };
Frame 188
function ranPos() { var Option = random(4); if (Option == 0) { Pos[0] = Pos1[0]; Pos[1] = Pos1[1]; } else if (Option == 1) { Pos[0] = Pos2[0]; Pos[1] = Pos2[1]; } else if (Option == 2) { Pos[0] = Pos3[0]; Pos[1] = Pos3[1]; } else if (Option == 3) { Pos[0] = Pos4[0]; Pos[1] = Pos4[1]; } } function setChar() { leftX = charBotPosX; rightX = (viewAreaX + 1) + charBotPosX; topY = charBotPosY; bottomY = (viewAreaY + 1) + charBotPosY; removeMap(myMap); drawMap(myMap); wholemap.attachMovie("char", "char", ((mapWidth + 2) * (mapHeight + 2)) + 12); wholemap.char._x = (charPos[0] * tileW) + (tileW / 2); wholemap.char._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot", "shot", ((mapWidth + 2) * (mapHeight + 2)) + 22); wholemap.attachMovie("shotA2", "shotA2", ((mapWidth + 2) * (mapHeight + 2)) + 23); wholemap.attachMovie("shotA3", "shotA3", ((mapWidth + 2) * (mapHeight + 2)) + 24); } function setTankBossB() { wholemap.attachMovie("tankBossB", "tankBossB", ((mapWidth + 2) * (mapHeight + 2)) + 18); wholemap.tankBossB._x = (bossPos[0] * tileW) + (tileW / 2); wholemap.tankBossB._y = (bossPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBossB", "shotBossB", ((mapWidth + 2) * (mapHeight + 2)) + 36); wholemap.attachMovie("shotBossB2", "shotBossB2", ((mapWidth + 2) * (mapHeight + 2)) + 37); wholemap.attachMovie("shotBossB3", "shotBossB3", ((mapWidth + 2) * (mapHeight + 2)) + 38); } function setTankBoss() { wholemap.attachMovie("tankBoss", "tankBoss", ((mapWidth + 2) * (mapHeight + 2)) + 18); wholemap.tankBoss._x = (bossPos[0] * tileW) + (tileW / 2); wholemap.tankBoss._y = (bossPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBoss", "shotBoss", ((mapWidth + 2) * (mapHeight + 2)) + 36); wholemap.attachMovie("shotBossA2", "shotBossA2", ((mapWidth + 2) * (mapHeight + 2)) + 37); wholemap.attachMovie("shotBossA3", "shotBossA3", ((mapWidth + 2) * (mapHeight + 2)) + 38); } function setTank() { ranPos(); wholemap.attachMovie("tankEnemy", "tankEnemy", ((mapWidth + 2) * (mapHeight + 2)) + 13); wholemap.tankEnemy._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankEnemy._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot2", "shot2", ((mapWidth + 2) * (mapHeight + 2)) + 31); } function setTankSmall() { ranPos(); wholemap.attachMovie("tankSmall", "tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 14); wholemap.tankSmall._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankSmall._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankSmall", "shot-tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 32); } function setTankMiddle() { ranPos(); wholemap.attachMovie("tankMiddle", "tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 15); wholemap.tankMiddle._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankMiddle._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankMiddle", "shot-tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 33); } function setTankE1() { ranPos(); wholemap.attachMovie("tankE1", "tankE1", ((mapWidth + 2) * (mapHeight + 2)) + 16); wholemap.tankE1._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE1._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slugE1", "slugE1", ((mapWidth + 2) * (mapHeight + 2)) + 34); } function setTankE2() { ranPos(); wholemap.attachMovie("tankE2", "tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 17); wholemap.tankE2._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE2._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankE2", "shot-tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 35); } function setMan() { ranPos(); wholemap.attachMovie("man", "man", ((mapWidth + 2) * (mapHeight + 2)) + 5); wholemap.man._x = (Pos[0] * tileW) + (tileW / 2); wholemap.man._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slug", "slug", ((mapWidth + 2) * (mapHeight + 2)) + 11); } function setHLP() { ranPos(); wholemap.attachMovie("helicopter", "helicopter", ((mapWidth + 2) * (mapHeight + 2)) + 101); wholemap.helicopter._x = (Pos[0] * tileW) + (tileW / 2); wholemap.helicopter._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot", "HLP-shot", ((mapWidth + 2) * (mapHeight + 2)) + 111); } function setOurHLP() { wholemap.attachMovie("HLPourside", "HLPourside", ((mapWidth + 2) * (mapHeight + 2)) + 151); wholemap.HLPourside._x = (charPos[0] * tileW) + (tileW / 2); wholemap.HLPourside._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot-ourside", "HLP-shot-ourside", ((mapWidth + 2) * (mapHeight + 2)) + 161); } function dropItem(myTank, itemType) { wholemap.attachMovie(itemType, itemType, ((mapWidth + 2) * (mapHeight + 2)) + 1); wholemap[itemType]._x = (tileW * Math.floor(myTank._x / tileW)) + (tileW / 2); wholemap[itemType]._y = (tileH * Math.floor(myTank._y / tileH)) + (tileH / 2); } myMap = [[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, 50, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 52, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 0], [0, 48, 3, 3, 3, 28, 3, 3, 3, 3, 3, 28, 3, 3, 28, 3, 3, 3, 3, 3, 28, 3, 3, 3, 48, 0], [0, 51, 3, 3, 3, 3, 3, 3, 3, 3, 3, 28, 3, 3, 28, 3, 3, 3, 3, 3, 3, 3, 3, 3, 51, 0], [0, 48, 28, 3, 3, 3, 3, 3, 32, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 32, 3, 3, 3, 28, 48, 0], [0, 48, 3, 3, 3, 32, 3, 3, 3, 32, 3, 3, 3, 3, 3, 3, 3, 3, 3, 32, 3, 3, 3, 3, 48, 0], [0, 48, 3, 3, 24, 24, 3, 3, 3, 32, 3, 3, 3, 3, 3, 3, 3, 3, 32, 3, 3, 3, 3, 3, 48, 0], [0, 48, 3, 3, 3, 24, 3, 3, 5, 9, 9, 9, 6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 48, 0], [0, 48, 24, 3, 3, 3, 3, 3, 8, 10, 10, 10, 7, 3, 3, 3, 24, 3, 3, 3, 3, 3, 3, 3, 48, 0], [0, 48, 3, 24, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 24, 3, 3, 3, 24, 24, 3, 3, 48, 0], [0, 48, 3, 3, 24, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 24, 3, 3, 3, 24, 3, 3, 48, 0], [0, 48, 3, 3, 24, 3, 3, 3, 3, 32, 32, 3, 3, 3, 3, 3, 3, 24, 3, 3, 3, 24, 3, 3, 48, 0], [0, 48, 3, 3, 3, 3, 3, 3, 3, 3, 3, 32, 3, 3, 3, 3, 3, 3, 24, 3, 3, 3, 3, 3, 48, 0], [0, 48, 24, 3, 3, 3, 3, 3, 3, 3, 3, 3, 32, 32, 32, 3, 3, 3, 3, 3, 3, 3, 3, 3, 48, 0], [0, 48, 3, 3, 5, 6, 3, 3, 32, 3, 3, 3, 3, 3, 3, 32, 3, 3, 3, 3, 5, 6, 3, 3, 48, 0], [0, 48, 3, 3, 8, 7, 3, 3, 3, 32, 32, 32, 3, 3, 3, 3, 3, 3, 3, 3, 8, 7, 3, 3, 48, 0], [0, 48, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 32, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 48, 0], [0, 48, 28, 28, 3, 3, 3, 3, 3, 3, 3, 3, 3, 32, 32, 32, 3, 3, 3, 3, 3, 3, 28, 28, 48, 0], [0, 48, 3, 3, 3, 3, 3, 3, 32, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 48, 0], [0, 51, 3, 3, 3, 3, 3, 3, 3, 3, 3, 32, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 51, 0], [0, 48, 28, 28, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 32, 3, 3, 32, 32, 3, 3, 3, 28, 28, 48, 0], [0, 48, 3, 3, 3, 3, 5, 6, 3, 3, 3, 3, 3, 3, 32, 3, 3, 3, 3, 32, 3, 3, 3, 3, 48, 0], [0, 48, 3, 3, 3, 3, 8, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 48, 0], [0, 48, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 48, 0], [0, 48, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 28, 28, 28, 3, 3, 3, 3, 3, 3, 3, 32, 32, 48, 0], [0, 48, 32, 32, 3, 3, 3, 24, 3, 3, 3, 28, 3, 3, 3, 28, 3, 3, 3, 3, 3, 32, 3, 3, 48, 0], [0, 48, 3, 3, 3, 3, 3, 24, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 24, 3, 3, 3, 3, 48, 0], [0, 48, 3, 3, 3, 3, 3, 3, 24, 3, 3, 3, 3, 3, 3, 3, 3, 3, 24, 3, 3, 3, 3, 3, 48, 0], [0, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 53, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 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]]; var stage = 3; var tankNum = 4; var tankE1Num = 2; var tankE2Num = 2; var tankSmallNum = 3; var tankMiddleNum = 3; var tankBossBNum = 1; var tankBossNum = 1; var manNum = 2; var HLPNum = 4; var HLPoursideNum = 0; var timer = 0; var enemySpace = 0; var npcAIP = 200; drawMap(myMap); setChar(); getCharData.stageNum = stage; if ((wholemap.shotBossB || (wholemap.shotBossB2)) || (wholemap.shotBossB3)) { removeMovieClip(wholemap.shotBossB); removeMovieClip(wholemap.shotBossB2); removeMovieClip(wholemap.shotBossB3); } setMan(); setTankE1(); setTankE2(); setTankSmall(); if (wholemap.HLPourside) { setOurHLP(); } this.onEnterFrame = function () { function upDateCHA() { if (enemySpace > 0) { var Option = random(7); if (((Option == 0) && (tankNum > 0)) && (!wholemap.tankEnemy)) { setTank(); enemySpace--; } else if (((Option == 1) && (tankSmallNum > 0)) && (!wholemap.tankSmall)) { setTankSmall(); enemySpace--; } else if (((Option == 2) && (tankMiddleNum > 0)) && (!wholemap.tankMiddle)) { setTankMiddle(); enemySpace--; } else if (((Option == 3) && (tankE1Num > 0)) && (!wholemap.tankE1)) { setTankE1(); enemySpace--; } else if (((Option == 4) && (tankE2Num > 0)) && (!wholemap.tankE2)) { setTankE2(); enemySpace--; } else if (((Option == 5) && (manNum > 0)) && (!wholemap.man)) { setMan(); enemySpace--; } else if (((Option == 6) && (HLPNum > 0)) && (!wholemap.helicopter)) { setHLP(); enemySpace--; } } } var ranDrop = random(8); if (wholemap.man.aliveAfter == false) { if (manNum > 0) { manNum--; enemySpace++; removeMovieClip(wholemap.man); } else if (manNum == 0) { removeMovieClip(wholemap.man); } } else if (wholemap.tankEnemy.aliveAfter == false) { if (tankNum > 0) { tankNum--; enemySpace++; if ((ranDrop >= 4) && (ranDrop <= 5)) { dropItem(wholemap.tankEnemy, "addShotNum"); } else if (ranDrop > 6) { dropItem(wholemap.tankEnemy, "powerBox"); } removeMovieClip(wholemap.tankEnemy); } else if (tankNum == 0) { removeMovieClip(wholemap.tankEnemy); } } else if (wholemap.tankSmall.aliveAfter == false) { if (tankSmallNum > 0) { tankSmallNum--; enemySpace++; removeMovieClip(wholemap.tankSmall); } else if (tankSmallNum == 0) { removeMovieClip(wholemap.tankSmall); } } else if (wholemap.tankE1.aliveAfter == false) { if (tankE1Num > 0) { tankE1Num--; enemySpace++; removeMovieClip(wholemap.tankE1); } else if (tankE1 == 0) { removeMovieClip(wholemap.tankE1); } } else if (wholemap.tankE2.aliveAfter == false) { if (tankE2Num > 0) { tankE2Num--; enemySpace++; removeMovieClip(wholemap.tankE2); } else if (tankE2 == 0) { removeMovieClip(wholemap.tankE2); } } else if (wholemap.tankMiddle.aliveAfter == false) { if (tankMiddleNum > 0) { tankMiddleNum--; enemySpace++; if ((ranDrop >= 0) && (ranDrop <= 1)) { dropItem(wholemap.tankMiddle, "medicalBox"); } else if (ranDrop == 2) { dropItem(wholemap.tankMiddle, "addLifeNum"); } removeMovieClip(wholemap.tankMiddle); } else if (tankMiddleNum == 0) { removeMovieClip(wholemap.tankMiddle); } } else if (wholemap.helicopter.aliveAfter == false) { if (HLPNum > 0) { HLPNum--; enemySpace++; if ((ranDrop >= 3) && (ranDrop <= 4)) { dropItem(wholemap.helicopter, "callHLP"); } removeMovieClip(wholemap.helicopter); } else if (HLPNum == 0) { removeMovieClip(wholemap.helicopter); } } else if (wholemap.tankBoss.aliveAfter == false) { if (tankBossNum > 0) { tankBossNum--; enemySpace++; dropItem(wholemap.tankBoss, "powerBox"); removeMovieClip(wholemap.tankBoss); } else if (tankBossNum == 0) { removeMovieClip(wholemap.tankBoss); } } upDateCHA(); if ((((!wholemap.HLPourside) && (HLPoursideNum > 0)) && (wholemap.char.alive == true)) && (Key.isDown(75))) { setOurHLP(); HLPoursideNum--; } if (wholemap.HLPourside.aliveAfter == false) { removeMovieClip(wholemap.HLPourside); } if ((!wholemap.char) && (charNum > 0)) { setChar(); charNum--; } else if ((!wholemap.char) && (charNum == 0)) { stageDoor.play(); stageDoor.stageDoor.stageText.gotoAndStop("gameover"); stageDoor.stageDoor.stageNum.gotoAndStop(7); if (stageDoor._currentFrame == 13) { showScore.gotoAndStop(2); } else if (stageDoor._currentFrame == 60) { gotoAndStop (192); } } if (wholemap.char.aliveAfter == false) { removeMovieClip(wholemap.char); } if ((((((tankMiddleNum == 0) && (tankNum == 0)) && (HLPNum == 0)) && (!wholemap.tankMiddle)) && (!wholemap.tankEnemy)) && (!wholemap.helicopter)) { if ((!wholemap.tankBoss) && (tankBossNum > 0)) { setTankBoss(); } } if (((timer == 0) && (!wholemap.tankBoss)) && (tankBossNum == 0)) { timer = 121; manNum = 0; tankE1Num = 0; tankE2Num = 0; tankSmallNum = 0; removeMovieClip(wholemap.man); removeMovieClip(wholemap.tankE1); removeMovieClip(wholemap.tankE2); removeMovieClip(wholemap.tankSmall); } if (timer > 0) { timer--; } if (timer == 25) { stageDoor.play(); stageDoor.stageDoor.stageNum.gotoAndStop(4); } if (timer == 1) { nextFrame(); } };
Frame 189
function ranPos() { var Option = random(4); if (Option == 0) { Pos[0] = Pos1[0]; Pos[1] = Pos1[1]; } else if (Option == 1) { Pos[0] = Pos2[0]; Pos[1] = Pos2[1]; } else if (Option == 2) { Pos[0] = Pos3[0]; Pos[1] = Pos3[1]; } else if (Option == 3) { Pos[0] = Pos4[0]; Pos[1] = Pos4[1]; } } function setChar() { leftX = charBotPosX; rightX = (viewAreaX + 1) + charBotPosX; topY = charBotPosY; bottomY = (viewAreaY + 1) + charBotPosY; removeMap(myMap); drawMap(myMap); wholemap.attachMovie("char", "char", ((mapWidth + 2) * (mapHeight + 2)) + 12); wholemap.char._x = (charPos[0] * tileW) + (tileW / 2); wholemap.char._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot", "shot", ((mapWidth + 2) * (mapHeight + 2)) + 22); wholemap.attachMovie("shotA2", "shotA2", ((mapWidth + 2) * (mapHeight + 2)) + 23); wholemap.attachMovie("shotA3", "shotA3", ((mapWidth + 2) * (mapHeight + 2)) + 24); } function setTankBossB() { wholemap.attachMovie("tankBossB", "tankBossB", ((mapWidth + 2) * (mapHeight + 2)) + 18); wholemap.tankBossB._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankBossB._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBossB", "shotBossB", ((mapWidth + 2) * (mapHeight + 2)) + 36); wholemap.attachMovie("shotBossB2", "shotBossB2", ((mapWidth + 2) * (mapHeight + 2)) + 37); wholemap.attachMovie("shotBossB3", "shotBossB3", ((mapWidth + 2) * (mapHeight + 2)) + 38); } function setTankBossC() { wholemap.attachMovie("tankBossC", "tankBossC", ((mapWidth + 2) * (mapHeight + 2)) + 19); wholemap.tankBossC._x = (bossPos[0] * tileW) + (tileW / 2); wholemap.tankBossC._y = (bossPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBossC", "shotBossC", ((mapWidth + 2) * (mapHeight + 2)) + 39); wholemap.attachMovie("shotBossC2", "shotBossC2", ((mapWidth + 2) * (mapHeight + 2)) + 40); wholemap.attachMovie("shotBossC3", "shotBossC3", ((mapWidth + 2) * (mapHeight + 2)) + 41); } function setTankBoss() { wholemap.attachMovie("tankBoss", "tankBoss", ((mapWidth + 2) * (mapHeight + 2)) + 20); wholemap.tankBoss._x = (bossPos[0] * tileW) + (tileW / 2); wholemap.tankBoss._y = (bossPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBoss", "shotBoss", ((mapWidth + 2) * (mapHeight + 2)) + 42); wholemap.attachMovie("shotBossA2", "shotBossA2", ((mapWidth + 2) * (mapHeight + 2)) + 43); wholemap.attachMovie("shotBossA3", "shotBossA3", ((mapWidth + 2) * (mapHeight + 2)) + 44); } function setTank() { ranPos(); wholemap.attachMovie("tankEnemy", "tankEnemy", ((mapWidth + 2) * (mapHeight + 2)) + 13); wholemap.tankEnemy._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankEnemy._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot2", "shot2", ((mapWidth + 2) * (mapHeight + 2)) + 31); } function setTankSmall() { ranPos(); wholemap.attachMovie("tankSmall", "tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 14); wholemap.tankSmall._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankSmall._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankSmall", "shot-tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 32); } function setTankMiddle() { ranPos(); wholemap.attachMovie("tankMiddle", "tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 15); wholemap.tankMiddle._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankMiddle._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankMiddle", "shot-tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 33); } function setTankE1() { ranPos(); wholemap.attachMovie("tankE1", "tankE1", ((mapWidth + 2) * (mapHeight + 2)) + 16); wholemap.tankE1._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE1._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slugE1", "slugE1", ((mapWidth + 2) * (mapHeight + 2)) + 34); } function setTankE2() { ranPos(); wholemap.attachMovie("tankE2", "tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 17); wholemap.tankE2._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE2._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankE2", "shot-tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 35); } function setMan() { ranPos(); wholemap.attachMovie("man", "man", ((mapWidth + 2) * (mapHeight + 2)) + 5); wholemap.man._x = (Pos[0] * tileW) + (tileW / 2); wholemap.man._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slug", "slug", ((mapWidth + 2) * (mapHeight + 2)) + 11); } function setHLP() { ranPos(); wholemap.attachMovie("helicopter", "helicopter", ((mapWidth + 2) * (mapHeight + 2)) + 101); wholemap.helicopter._x = (Pos[0] * tileW) + (tileW / 2); wholemap.helicopter._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot", "HLP-shot", ((mapWidth + 2) * (mapHeight + 2)) + 111); } function setOurHLP() { wholemap.attachMovie("HLPourside", "HLPourside", ((mapWidth + 2) * (mapHeight + 2)) + 151); wholemap.HLPourside._x = (charPos[0] * tileW) + (tileW / 2); wholemap.HLPourside._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot-ourside", "HLP-shot-ourside", ((mapWidth + 2) * (mapHeight + 2)) + 161); } function dropItem(myTank, itemType) { wholemap.attachMovie(itemType, itemType, ((mapWidth + 2) * (mapHeight + 2)) + 1); wholemap[itemType]._x = (tileW * Math.floor(myTank._x / tileW)) + (tileW / 2); wholemap[itemType]._y = (tileH * Math.floor(myTank._y / tileH)) + (tileH / 2); } myMap = [[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, 50, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 52, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 0], [0, 48, 4, 4, 4, 27, 4, 4, 4, 4, 4, 27, 4, 4, 27, 4, 4, 4, 4, 4, 27, 4, 4, 4, 48, 0], [0, 51, 4, 4, 4, 4, 4, 4, 4, 4, 4, 27, 4, 4, 27, 4, 4, 4, 4, 4, 4, 4, 4, 4, 51, 0], [0, 48, 27, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 26, 26, 4, 4, 4, 4, 27, 48, 0], [0, 48, 4, 4, 4, 4, 4, 26, 26, 26, 4, 4, 4, 4, 4, 4, 4, 26, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 26, 4, 4, 4, 4, 4, 26, 26, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 33, 4, 4, 4, 48, 0], [0, 48, 4, 4, 33, 33, 4, 4, 4, 4, 4, 4, 4, 33, 33, 4, 4, 4, 4, 33, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 33, 33, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 48, 0], [0, 48, 26, 26, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 33, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 26, 26, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 33, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 26, 26, 4, 4, 26, 4, 4, 4, 4, 33, 33, 4, 4, 4, 4, 33, 4, 4, 4, 48, 0], [0, 48, 4, 4, 26, 4, 4, 4, 4, 4, 4, 4, 4, 33, 4, 4, 33, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 26, 4, 4, 4, 33, 33, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 27, 27, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 27, 27, 48, 0], [0, 48, 4, 4, 4, 33, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 26, 4, 4, 4, 4, 4, 4, 48, 0], [0, 51, 4, 4, 4, 4, 4, 33, 33, 4, 4, 33, 33, 4, 4, 26, 26, 4, 4, 4, 4, 4, 4, 4, 51, 0], [0, 48, 27, 27, 4, 4, 4, 33, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 4, 26, 4, 4, 27, 27, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 4, 26, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 33, 33, 33, 4, 4, 4, 4, 4, 4, 4, 4, 33, 33, 4, 4, 4, 4, 26, 48, 0], [0, 48, 26, 4, 4, 33, 4, 4, 4, 4, 4, 33, 33, 33, 33, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 33, 4, 4, 4, 4, 33, 4, 4, 4, 4, 4, 26, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 26, 4, 4, 4, 48, 0], [0, 48, 26, 4, 4, 4, 4, 26, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 26, 4, 4, 4, 48, 0], [0, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 53, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 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]]; var stage = 4; var tankNum = 3; var tankE1Num = 1; var tankE2Num = 1; var tankSmallNum = 3; var tankMiddleNum = 3; var tankBossBNum = 4; var tankBossNum = 1; var tankBossCNum = 1; var manNum = 1; var HLPNum = 4; var HLPoursideNum = 0; var timer = 0; var enemySpace = 0; var npcAIP = 200; drawMap(myMap); setChar(); getCharData.stageNum = stage; if ((wholemap.shotBoss || (wholemap.shotBossA2)) || (wholemap.shotBossA3)) { removeMovieClip(wholemap.shotBossB); removeMovieClip(wholemap.shotBossB2); removeMovieClip(wholemap.shotBossB3); } setMan(); setTankE1(); setTankE2(); setTankSmall(); if (wholemap.HLPourside) { setOurHLP(); } this.onEnterFrame = function () { function upDateCHA() { if (enemySpace > 0) { var Option = random(8); if (((Option == 0) && (tankNum > 0)) && (!wholemap.tankEnemy)) { setTank(); enemySpace--; } else if (((Option == 1) && (tankSmallNum > 0)) && (!wholemap.tankSmall)) { setTankSmall(); enemySpace--; } else if (((Option == 2) && (tankMiddleNum > 0)) && (!wholemap.tankMiddle)) { setTankMiddle(); enemySpace--; } else if (((Option == 3) && (tankE1Num > 0)) && (!wholemap.tankE1)) { setTankE1(); enemySpace--; } else if (((Option == 4) && (tankE2Num > 0)) && (!wholemap.tankE2)) { setTankE2(); enemySpace--; } else if (((Option == 5) && (manNum > 0)) && (!wholemap.man)) { setMan(); enemySpace--; } else if (((Option == 6) && (HLPNum > 0)) && (!wholemap.helicopter)) { setHLP(); enemySpace--; } else if (((Option == 7) && (tankBossBNum > 0)) && (!wholemap.tankBossB)) { settankBossB(); enemySpace--; } } } var ranDrop = random(8); if (wholemap.man.aliveAfter == false) { if (manNum > 0) { manNum--; enemySpace++; removeMovieClip(wholemap.man); } else if (manNum == 0) { removeMovieClip(wholemap.man); } } else if (wholemap.tankEnemy.aliveAfter == false) { if (tankNum > 0) { tankNum--; enemySpace++; if ((ranDrop >= 4) && (ranDrop <= 5)) { dropItem(wholemap.tankEnemy, "addShotNum"); } removeMovieClip(wholemap.tankEnemy); } else if (tankNum == 0) { removeMovieClip(wholemap.tankEnemy); } } else if (wholemap.tankSmall.aliveAfter == false) { if (tankSmallNum > 0) { tankSmallNum--; enemySpace++; removeMovieClip(wholemap.tankSmall); } else if (tankSmallNum == 0) { removeMovieClip(wholemap.tankSmall); } } else if (wholemap.tankE1.aliveAfter == false) { if (tankE1Num > 0) { tankE1Num--; enemySpace++; removeMovieClip(wholemap.tankE1); } else if (tankE1 == 0) { removeMovieClip(wholemap.tankE1); } } else if (wholemap.tankE2.aliveAfter == false) { if (tankE2Num > 0) { tankE2Num--; enemySpace++; removeMovieClip(wholemap.tankE2); } else if (tankE2 == 0) { removeMovieClip(wholemap.tankE2); } } else if (wholemap.tankMiddle.aliveAfter == false) { if (tankMiddleNum > 0) { tankMiddleNum--; enemySpace++; if ((ranDrop >= 0) && (ranDrop <= 1)) { dropItem(wholemap.tankMiddle, "medicalBox"); } else if (ranDrop == 2) { dropItem(wholemap.tankMiddle, "addLifeNum"); } removeMovieClip(wholemap.tankMiddle); } else if (tankMiddleNum == 0) { removeMovieClip(wholemap.tankMiddle); } } else if (wholemap.helicopter.aliveAfter == false) { if (HLPNum > 0) { HLPNum--; enemySpace++; if ((ranDrop >= 3) && (ranDrop <= 4)) { dropItem(wholemap.helicopter, "callHLP"); } removeMovieClip(wholemap.helicopter); } else if (HLPNum == 0) { removeMovieClip(wholemap.helicopter); } } else if (wholemap.tankBoss.aliveAfter == false) { if (tankBossNum > 0) { tankBossNum--; enemySpace++; dropItem(wholemap.tankBoss, "powerBox"); removeMovieClip(wholemap.tankBoss); } else if (tankBossNum == 0) { removeMovieClip(wholemap.tankBoss); } } else if (wholemap.tankBossB.aliveAfter == false) { if (tankBossBNum > 0) { tankBossBNum--; enemySpace++; if ((ranDrop >= 6) && (ranDrop <= 7)) { dropItem(wholemap.tankBossB, "powerBox"); } removeMovieClip(wholemap.tankBossB); } else if (tankBossBNum == 0) { removeMovieClip(wholemap.tankBossB); } } else if (wholemap.tankBossC.aliveAfter == false) { if (tankBossCNum > 0) { tankBossCNum--; enemySpace++; dropItem(wholemap.tankBossC, "powerBox"); removeMovieClip(wholemap.tankBossC); } else if (tankBossCNum == 0) { removeMovieClip(wholemap.tankBossC); } } upDateCHA(); if ((((!wholemap.HLPourside) && (HLPoursideNum > 0)) && (wholemap.char.alive == true)) && (Key.isDown(75))) { setOurHLP(); HLPoursideNum--; } if (wholemap.HLPourside.aliveAfter == false) { removeMovieClip(wholemap.HLPourside); } if ((!wholemap.char) && (charNum > 0)) { setChar(); charNum--; } else if ((!wholemap.char) && (charNum == 0)) { stageDoor.play(); stageDoor.stageDoor.stageText.gotoAndStop("gameover"); stageDoor.stageDoor.stageNum.gotoAndStop(7); if (stageDoor._currentFrame == 13) { showScore.gotoAndStop(2); } else if (stageDoor._currentFrame == 60) { gotoAndStop (192); } } if (wholemap.char.aliveAfter == false) { removeMovieClip(wholemap.char); } if ((((((tankBossBNum == 0) && (tankNum == 0)) && (HLPNum == 0)) && (!wholemap.tankBossB)) && (!wholemap.tankEnemy)) && (!wholemap.helicopter)) { if ((!wholemap.tankBossC) && (tankBossCNum > 0)) { setTankBossC(); } } if (((timer == 0) && (!wholemap.tankBossC)) && (tankBossCNum == 0)) { timer = 121; manNum = 0; tankE1Num = 0; tankE2Num = 0; tankSmallNum = 0; tankMiddleNum = 0; removeMovieClip(wholemap.man); removeMovieClip(wholemap.tankE1); removeMovieClip(wholemap.tankE2); removeMovieClip(wholemap.tankSmall); removeMovieClip(wholemap.tankMiddle); } if (timer > 0) { timer--; } if (timer == 25) { stageDoor.play(); stageDoor.stageDoor.stageNum.gotoAndStop(5); } if (timer == 1) { nextFrame(); } };
Frame 190
function ranPos() { var Option = random(4); if (Option == 0) { Pos[0] = Pos1[0]; Pos[1] = Pos1[1]; } else if (Option == 1) { Pos[0] = Pos2[0]; Pos[1] = Pos2[1]; } else if (Option == 2) { Pos[0] = Pos3[0]; Pos[1] = Pos3[1]; } else if (Option == 3) { Pos[0] = Pos4[0]; Pos[1] = Pos4[1]; } } function setChar() { leftX = charBotPosX; rightX = (viewAreaX + 1) + charBotPosX; topY = charBotPosY; bottomY = (viewAreaY + 1) + charBotPosY; removeMap(myMap); drawMap(myMap); wholemap.attachMovie("char", "char", ((mapWidth + 2) * (mapHeight + 2)) + 12); wholemap.char._x = (charPos[0] * tileW) + (tileW / 2); wholemap.char._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot", "shot", ((mapWidth + 2) * (mapHeight + 2)) + 22); wholemap.attachMovie("shotA2", "shotA2", ((mapWidth + 2) * (mapHeight + 2)) + 23); wholemap.attachMovie("shotA3", "shotA3", ((mapWidth + 2) * (mapHeight + 2)) + 24); } function setTankBossB() { wholemap.attachMovie("tankBossB", "tankBossB", ((mapWidth + 2) * (mapHeight + 2)) + 18); wholemap.tankBossB._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankBossB._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBossB", "shotBossB", ((mapWidth + 2) * (mapHeight + 2)) + 36); wholemap.attachMovie("shotBossB2", "shotBossB2", ((mapWidth + 2) * (mapHeight + 2)) + 37); wholemap.attachMovie("shotBossB3", "shotBossB3", ((mapWidth + 2) * (mapHeight + 2)) + 38); } function setTankBossC() { wholemap.attachMovie("tankBossC", "tankBossC", ((mapWidth + 2) * (mapHeight + 2)) + 19); wholemap.tankBossC._x = (bossPos[0] * tileW) + (tileW / 2); wholemap.tankBossC._y = (bossPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBossC", "shotBossC", ((mapWidth + 2) * (mapHeight + 2)) + 39); wholemap.attachMovie("shotBossC2", "shotBossC2", ((mapWidth + 2) * (mapHeight + 2)) + 40); wholemap.attachMovie("shotBossC3", "shotBossC3", ((mapWidth + 2) * (mapHeight + 2)) + 41); } function setTankBoss() { wholemap.attachMovie("tankBoss", "tankBoss", ((mapWidth + 2) * (mapHeight + 2)) + 20); wholemap.tankBoss._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankBoss._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBoss", "shotBoss", ((mapWidth + 2) * (mapHeight + 2)) + 42); wholemap.attachMovie("shotBossA2", "shotBossA2", ((mapWidth + 2) * (mapHeight + 2)) + 43); wholemap.attachMovie("shotBossA3", "shotBossA3", ((mapWidth + 2) * (mapHeight + 2)) + 44); } function setTank() { ranPos(); wholemap.attachMovie("tankEnemy", "tankEnemy", ((mapWidth + 2) * (mapHeight + 2)) + 13); wholemap.tankEnemy._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankEnemy._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot2", "shot2", ((mapWidth + 2) * (mapHeight + 2)) + 31); } function setTankSmall() { ranPos(); wholemap.attachMovie("tankSmall", "tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 14); wholemap.tankSmall._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankSmall._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankSmall", "shot-tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 32); } function setTankMiddle() { ranPos(); wholemap.attachMovie("tankMiddle", "tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 15); wholemap.tankMiddle._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankMiddle._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankMiddle", "shot-tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 33); } function setTankE1() { ranPos(); wholemap.attachMovie("tankE1", "tankE1", ((mapWidth + 2) * (mapHeight + 2)) + 16); wholemap.tankE1._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE1._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slugE1", "slugE1", ((mapWidth + 2) * (mapHeight + 2)) + 34); } function setTankE2() { ranPos(); wholemap.attachMovie("tankE2", "tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 17); wholemap.tankE2._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE2._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankE2", "shot-tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 35); } function setMan() { ranPos(); wholemap.attachMovie("man", "man", ((mapWidth + 2) * (mapHeight + 2)) + 5); wholemap.man._x = (Pos[0] * tileW) + (tileW / 2); wholemap.man._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slug", "slug", ((mapWidth + 2) * (mapHeight + 2)) + 11); } function setHLP() { ranPos(); wholemap.attachMovie("helicopter", "helicopter", ((mapWidth + 2) * (mapHeight + 2)) + 101); wholemap.helicopter._x = (Pos[0] * tileW) + (tileW / 2); wholemap.helicopter._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot", "HLP-shot", ((mapWidth + 2) * (mapHeight + 2)) + 111); } function setHLPB() { ranPos(); wholemap.attachMovie("helicopterB", "helicopterB", ((mapWidth + 2) * (mapHeight + 2)) + 102); wholemap.helicopterB._x = (Pos[0] * tileW) + (tileW / 2); wholemap.helicopterB._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shotB", "HLP-shotB", ((mapWidth + 2) * (mapHeight + 2)) + 112); } function setHLPC() { ranPos(); wholemap.attachMovie("helicopterC", "helicopterC", ((mapWidth + 2) * (mapHeight + 2)) + 103); wholemap.helicopterC._x = (Pos[0] * tileW) + (tileW / 2); wholemap.helicopterC._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shotC", "HLP-shotC", ((mapWidth + 2) * (mapHeight + 2)) + 113); } function setOurHLP() { wholemap.attachMovie("HLPourside", "HLPourside", ((mapWidth + 2) * (mapHeight + 2)) + 151); wholemap.HLPourside._x = (charPos[0] * tileW) + (tileW / 2); wholemap.HLPourside._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot-ourside", "HLP-shot-ourside", ((mapWidth + 2) * (mapHeight + 2)) + 161); } function dropItem(myTank, itemType) { wholemap.attachMovie(itemType, itemType, ((mapWidth + 2) * (mapHeight + 2)) + 1); wholemap[itemType]._x = (tileW * Math.floor(myTank._x / tileW)) + (tileW / 2); wholemap[itemType]._y = (tileH * Math.floor(myTank._y / tileH)) + (tileH / 2); } myMap = [[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, 50, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 52, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 0], [0, 48, 1, 1, 1, 27, 1, 1, 1, 1, 1, 27, 1, 1, 27, 1, 1, 1, 1, 1, 27, 1, 1, 1, 48, 0], [0, 51, 1, 1, 1, 1, 1, 1, 1, 1, 1, 27, 1, 1, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 51, 0], [0, 48, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 30, 1, 1, 1, 1, 27, 48, 0], [0, 48, 1, 1, 1, 1, 1, 30, 30, 30, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1, 30, 30, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 48, 0], [0, 48, 1, 1, 23, 23, 1, 1, 1, 1, 1, 1, 1, 23, 23, 1, 1, 1, 1, 23, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 23, 23, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 48, 0], [0, 48, 30, 30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 30, 30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 30, 30, 1, 1, 30, 1, 1, 1, 1, 23, 23, 1, 1, 1, 1, 23, 1, 1, 1, 48, 0], [0, 48, 1, 1, 30, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 30, 1, 1, 1, 23, 23, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 27, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 27, 27, 48, 0], [0, 48, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 48, 0], [0, 51, 1, 1, 1, 1, 1, 23, 23, 1, 1, 23, 23, 1, 1, 30, 30, 1, 1, 1, 1, 1, 1, 1, 51, 0], [0, 48, 27, 27, 1, 1, 1, 23, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 30, 1, 1, 27, 27, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 23, 23, 23, 1, 1, 1, 1, 1, 1, 1, 1, 23, 23, 1, 1, 1, 1, 30, 48, 0], [0, 48, 30, 1, 1, 23, 1, 1, 1, 1, 1, 23, 23, 23, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 30, 1, 1, 48, 0], [0, 48, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 48, 0], [0, 48, 30, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 48, 0], [0, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 53, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 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]]; var stage = 5; var tankNum = 0; var tankE1Num = 0; var tankE2Num = 0; var tankSmallNum = 0; var tankMiddleNum = 3; var tankBossBNum = 0; var tankBossNum = 4; var tankBossCNum = 1; var manNum = 0; var HLPNum = 3; var HLPBNum = 5; var HLPCNum = 5; var HLPoursideNum = 0; var timer = 0; var enemySpace = 0; var npcAIP = 200; drawMap(myMap); setChar(); getCharData.stageNum = stage; if ((wholemap.shotBossC || (wholemap.shotBossC2)) || (wholemap.shotBossC3)) { removeMovieClip(wholemap.shotBossC); removeMovieClip(wholemap.shotBossC2); removeMovieClip(wholemap.shotBossC3); } setHLP(); setHLPB(); setHLPC(); setTankBoss(); if (wholemap.HLPourside) { setOurHLP(); } this.onEnterFrame = function () { function upDateCHA() { if (enemySpace > 0) { var Option = random(10); if (((Option == 0) && (tankNum > 0)) && (!wholemap.tankEnemy)) { setTank(); enemySpace--; } else if (((Option == 1) && (tankSmallNum > 0)) && (!wholemap.tankSmall)) { setTankSmall(); enemySpace--; } else if (((Option == 2) && (tankMiddleNum > 0)) && (!wholemap.tankMiddle)) { setTankMiddle(); enemySpace--; } else if (((Option == 3) && (tankE1Num > 0)) && (!wholemap.tankE1)) { setTankE1(); enemySpace--; } else if (((Option == 4) && (tankE2Num > 0)) && (!wholemap.tankE2)) { setTankE2(); enemySpace--; } else if (((Option == 5) && (manNum > 0)) && (!wholemap.man)) { setMan(); enemySpace--; } else if (((Option == 6) && (HLPNum > 0)) && (!wholemap.helicopter)) { setHLP(); enemySpace--; } else if (((Option == 7) && (tankBossNum > 0)) && (!wholemap.tankBoss)) { settankBoss(); enemySpace--; } else if (((Option == 8) && (HLPBNum > 0)) && (!wholemap.helicopterB)) { setHLPB(); enemySpace--; } else if (((Option == 9) && (HLPCNum > 0)) && (!wholemap.helicopterC)) { setHLPC(); enemySpace--; } } } var ranDrop = random(8); if (wholemap.man.aliveAfter == false) { if (manNum > 0) { manNum--; enemySpace++; removeMovieClip(wholemap.man); } else if (manNum == 0) { removeMovieClip(wholemap.man); } } else if (wholemap.tankEnemy.aliveAfter == false) { if (tankNum > 0) { tankNum--; enemySpace++; if ((ranDrop >= 4) && (ranDrop <= 5)) { dropItem(wholemap.tankEnemy, "addShotNum"); } removeMovieClip(wholemap.tankEnemy); } else if (tankNum == 0) { removeMovieClip(wholemap.tankEnemy); } } else if (wholemap.tankSmall.aliveAfter == false) { if (tankSmallNum > 0) { tankSmallNum--; enemySpace++; removeMovieClip(wholemap.tankSmall); } else if (tankSmallNum == 0) { removeMovieClip(wholemap.tankSmall); } } else if (wholemap.tankE1.aliveAfter == false) { if (tankE1Num > 0) { tankE1Num--; enemySpace++; removeMovieClip(wholemap.tankE1); } else if (tankE1 == 0) { removeMovieClip(wholemap.tankE1); } } else if (wholemap.tankE2.aliveAfter == false) { if (tankE2Num > 0) { tankE2Num--; enemySpace++; removeMovieClip(wholemap.tankE2); } else if (tankE2 == 0) { removeMovieClip(wholemap.tankE2); } } else if (wholemap.tankMiddle.aliveAfter == false) { if (tankMiddleNum > 0) { tankMiddleNum--; enemySpace++; if ((ranDrop >= 0) && (ranDrop <= 1)) { dropItem(wholemap.tankMiddle, "medicalBox"); } else if (ranDrop == 2) { dropItem(wholemap.tankMiddle, "addLifeNum"); } removeMovieClip(wholemap.tankMiddle); } else if (tankMiddleNum == 0) { removeMovieClip(wholemap.tankMiddle); } } else if (wholemap.helicopter.aliveAfter == false) { if (HLPNum > 0) { HLPNum--; enemySpace++; if ((ranDrop >= 3) && (ranDrop <= 4)) { dropItem(wholemap.helicopter, "callHLP"); } removeMovieClip(wholemap.helicopter); } else if (HLPNum == 0) { removeMovieClip(wholemap.helicopter); } } else if (wholemap.helicopterB.aliveAfter == false) { if (HLPBNum > 0) { HLPBNum--; enemySpace++; if ((ranDrop >= 5) && (ranDrop <= 6)) { dropItem(wholemap.helicopterB, "callHLP"); } removeMovieClip(wholemap.helicopterB); } else if (HLPBNum == 0) { removeMovieClip(wholemap.helicopterB); } } else if (wholemap.helicopterC.aliveAfter == false) { if (HLPCNum > 0) { HLPCNum--; enemySpace++; removeMovieClip(wholemap.helicopterC); } else if (HLPCNum == 0) { removeMovieClip(wholemap.helicopterC); } } else if (wholemap.tankBoss.aliveAfter == false) { if (tankBossNum > 0) { tankBossNum--; enemySpace++; if ((ranDrop >= 6) && (ranDrop <= 7)) { dropItem(wholemap.tankBoss, "powerBox"); } removeMovieClip(wholemap.tankBoss); } else if (tankBossNum == 0) { removeMovieClip(wholemap.tankBoss); } } else if (wholemap.tankBossB.aliveAfter == false) { if (tankBossBNum > 0) { tankBossBNum--; enemySpace++; if ((ranDrop >= 6) && (ranDrop <= 7)) { dropItem(wholemap.tankBossB, "powerBox"); } removeMovieClip(wholemap.tankBossB); } else if (tankBossBNum == 0) { removeMovieClip(wholemap.tankBossB); } } else if (wholemap.tankBossC.aliveAfter == false) { if (tankBossCNum > 0) { tankBossCNum--; enemySpace++; dropItem(wholemap.tankBossC, "powerBox"); removeMovieClip(wholemap.tankBossC); } else if (tankBossCNum == 0) { removeMovieClip(wholemap.tankBossC); } } upDateCHA(); if ((((!wholemap.HLPourside) && (HLPoursideNum > 0)) && (wholemap.char.alive == true)) && (Key.isDown(75))) { setOurHLP(); HLPoursideNum--; } if (wholemap.HLPourside.aliveAfter == false) { removeMovieClip(wholemap.HLPourside); } if ((!wholemap.char) && (charNum > 0)) { setChar(); charNum--; } else if ((!wholemap.char) && (charNum == 0)) { stageDoor.play(); stageDoor.stageDoor.stageText.gotoAndStop("gameover"); stageDoor.stageDoor.stageNum.gotoAndStop(7); if (stageDoor._currentFrame == 13) { showScore.gotoAndStop(2); } else if (stageDoor._currentFrame == 60) { gotoAndStop (192); } } if (wholemap.char.aliveAfter == false) { removeMovieClip(wholemap.char); } if ((((((tankBossNum == 0) && (HLPBNum == 0)) && (HLPCNum == 0)) && (!wholemap.tankBoss)) && (!wholemap.helicopterB)) && (!wholemap.helicopterC)) { if ((!wholemap.tankBossC) && (tankBossCNum > 0)) { setTankBossC(); } } if (((timer == 0) && (!wholemap.tankBossC)) && (tankBossCNum == 0)) { timer = 121; HLPNum = 0; tankMiddleNum = 0; removeMovieClip(wholemap.helicopter); removeMovieClip(wholemap.tankMiddle); } if (timer > 0) { timer--; } if (timer == 25) { stageDoor.play(); stageDoor.stageDoor.stageNum.gotoAndStop(6); } if (timer == 1) { nextFrame(); } };
Frame 191
function ranPos() { var Option = random(4); if (Option == 0) { Pos[0] = Pos1[0]; Pos[1] = Pos1[1]; } else if (Option == 1) { Pos[0] = Pos2[0]; Pos[1] = Pos2[1]; } else if (Option == 2) { Pos[0] = Pos3[0]; Pos[1] = Pos3[1]; } else if (Option == 3) { Pos[0] = Pos4[0]; Pos[1] = Pos4[1]; } } function setChar() { leftX = charBotPosX; rightX = (viewAreaX + 1) + charBotPosX; topY = charBotPosY; bottomY = (viewAreaY + 1) + charBotPosY; removeMap(myMap); drawMap(myMap); wholemap.attachMovie("char", "char", ((mapWidth + 2) * (mapHeight + 2)) + 12); wholemap.char._x = (charPos[0] * tileW) + (tileW / 2); wholemap.char._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot", "shot", ((mapWidth + 2) * (mapHeight + 2)) + 22); wholemap.attachMovie("shotA2", "shotA2", ((mapWidth + 2) * (mapHeight + 2)) + 23); wholemap.attachMovie("shotA3", "shotA3", ((mapWidth + 2) * (mapHeight + 2)) + 24); } function setTankBossB() { wholemap.attachMovie("tankBossB", "tankBossB", ((mapWidth + 2) * (mapHeight + 2)) + 18); wholemap.tankBossB._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankBossB._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBossB", "shotBossB", ((mapWidth + 2) * (mapHeight + 2)) + 36); wholemap.attachMovie("shotBossB2", "shotBossB2", ((mapWidth + 2) * (mapHeight + 2)) + 37); wholemap.attachMovie("shotBossB3", "shotBossB3", ((mapWidth + 2) * (mapHeight + 2)) + 38); } function setTankBossC() { wholemap.attachMovie("tankBossC", "tankBossC", ((mapWidth + 2) * (mapHeight + 2)) + 19); wholemap.tankBossC._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankBossC._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBossC", "shotBossC", ((mapWidth + 2) * (mapHeight + 2)) + 39); wholemap.attachMovie("shotBossC2", "shotBossC2", ((mapWidth + 2) * (mapHeight + 2)) + 40); wholemap.attachMovie("shotBossC3", "shotBossC3", ((mapWidth + 2) * (mapHeight + 2)) + 41); } function setTankBossFinal() { wholemap.attachMovie("tankBossFinal", "tankBossFinal", ((mapWidth + 2) * (mapHeight + 2)) + 21); wholemap.tankBossFinal._x = (bossPos[0] * tileW) + (tileW / 2); wholemap.tankBossFinal._y = (bossPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBossFinal", "shotBossFinal", ((mapWidth + 2) * (mapHeight + 2)) + 45); } function setTankBoss() { wholemap.attachMovie("tankBoss", "tankBoss", ((mapWidth + 2) * (mapHeight + 2)) + 20); wholemap.tankBoss._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankBoss._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shotBoss", "shotBoss", ((mapWidth + 2) * (mapHeight + 2)) + 42); wholemap.attachMovie("shotBossA2", "shotBossA2", ((mapWidth + 2) * (mapHeight + 2)) + 43); wholemap.attachMovie("shotBossA3", "shotBossA3", ((mapWidth + 2) * (mapHeight + 2)) + 44); } function setTank() { ranPos(); wholemap.attachMovie("tankEnemy", "tankEnemy", ((mapWidth + 2) * (mapHeight + 2)) + 13); wholemap.tankEnemy._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankEnemy._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot2", "shot2", ((mapWidth + 2) * (mapHeight + 2)) + 31); } function setTankSmall() { ranPos(); wholemap.attachMovie("tankSmall", "tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 14); wholemap.tankSmall._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankSmall._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankSmall", "shot-tankSmall", ((mapWidth + 2) * (mapHeight + 2)) + 32); } function setTankMiddle() { ranPos(); wholemap.attachMovie("tankMiddle", "tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 15); wholemap.tankMiddle._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankMiddle._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankMiddle", "shot-tankMiddle", ((mapWidth + 2) * (mapHeight + 2)) + 33); } function setTankE1() { ranPos(); wholemap.attachMovie("tankE1", "tankE1", ((mapWidth + 2) * (mapHeight + 2)) + 16); wholemap.tankE1._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE1._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slugE1", "slugE1", ((mapWidth + 2) * (mapHeight + 2)) + 34); } function setTankE2() { ranPos(); wholemap.attachMovie("tankE2", "tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 17); wholemap.tankE2._x = (Pos[0] * tileW) + (tileW / 2); wholemap.tankE2._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("shot-tankE2", "shot-tankE2", ((mapWidth + 2) * (mapHeight + 2)) + 35); } function setMan() { ranPos(); wholemap.attachMovie("man", "man", ((mapWidth + 2) * (mapHeight + 2)) + 5); wholemap.man._x = (Pos[0] * tileW) + (tileW / 2); wholemap.man._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("slug", "slug", ((mapWidth + 2) * (mapHeight + 2)) + 11); } function setHLP() { ranPos(); wholemap.attachMovie("helicopter", "helicopter", ((mapWidth + 2) * (mapHeight + 2)) + 101); wholemap.helicopter._x = (Pos[0] * tileW) + (tileW / 2); wholemap.helicopter._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot", "HLP-shot", ((mapWidth + 2) * (mapHeight + 2)) + 111); } function setHLPB() { ranPos(); wholemap.attachMovie("helicopterB", "helicopterB", ((mapWidth + 2) * (mapHeight + 2)) + 102); wholemap.helicopterB._x = (Pos[0] * tileW) + (tileW / 2); wholemap.helicopterB._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shotB", "HLP-shotB", ((mapWidth + 2) * (mapHeight + 2)) + 112); } function setHLPC() { ranPos(); wholemap.attachMovie("helicopterC", "helicopterC", ((mapWidth + 2) * (mapHeight + 2)) + 103); wholemap.helicopterC._x = (Pos[0] * tileW) + (tileW / 2); wholemap.helicopterC._y = (Pos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shotC", "HLP-shotC", ((mapWidth + 2) * (mapHeight + 2)) + 113); } function setOurHLP() { wholemap.attachMovie("HLPourside", "HLPourside", ((mapWidth + 2) * (mapHeight + 2)) + 151); wholemap.HLPourside._x = (charPos[0] * tileW) + (tileW / 2); wholemap.HLPourside._y = (charPos[1] * tileH) + (tileH / 2); wholemap.attachMovie("HLP-shot-ourside", "HLP-shot-ourside", ((mapWidth + 2) * (mapHeight + 2)) + 161); } function dropItem(myTank, itemType) { wholemap.attachMovie(itemType, itemType, ((mapWidth + 2) * (mapHeight + 2)) + 1); wholemap[itemType]._x = (tileW * Math.floor(myTank._x / tileW)) + (tileW / 2); wholemap[itemType]._y = (tileH * Math.floor(myTank._y / tileH)) + (tileH / 2); } myMap = [[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, 50, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 52, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 0], [0, 48, 4, 4, 4, 28, 4, 4, 4, 4, 4, 28, 4, 4, 28, 4, 4, 4, 4, 4, 28, 4, 4, 4, 48, 0], [0, 51, 4, 4, 4, 4, 4, 4, 4, 4, 4, 28, 4, 4, 28, 4, 4, 4, 4, 4, 4, 4, 4, 4, 51, 0], [0, 48, 28, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 28, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 28, 28, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 28, 28, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 51, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 51, 0], [0, 48, 28, 28, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 28, 28, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 28, 28, 28, 28, 28, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 48, 0], [0, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 53, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 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]]; var stage = 6; var tankNum = 0; var tankE1Num = 0; var tankE2Num = 0; var tankSmallNum = 0; var tankMiddleNum = 4; var tankBossBNum = 2; var tankBossNum = 2; var tankBossCNum = 2; var tankBossFinalNum = 1; var manNum = 0; var HLPNum = 0; var HLPBNum = 0; var HLPCNum = 4; var HLPoursideNum = 0; var timer = 0; var enemySpace = 0; var npcAIP = 200; drawMap(myMap); setChar(); getCharData.stageNum = stage; if ((wholemap.shotBossC || (wholemap.shotBossC2)) || (wholemap.shotBossC3)) { removeMovieClip(wholemap.shotBossC); removeMovieClip(wholemap.shotBossC2); removeMovieClip(wholemap.shotBossC3); } setTankBossB(); setTankBossC(); setTankBoss(); setHLPC(); if (wholemap.HLPourside) { setOurHLP(); } this.onEnterFrame = function () { function upDateCHA() { if (enemySpace > 0) { var Option = random(10); if (((Option == 0) && (tankNum > 0)) && (!wholemap.tankEnemy)) { setTank(); enemySpace--; } else if (((Option == 1) && (tankSmallNum > 0)) && (!wholemap.tankSmall)) { setTankSmall(); enemySpace--; } else if (((Option == 2) && (tankMiddleNum > 0)) && (!wholemap.tankMiddle)) { setTankMiddle(); enemySpace--; } else if (((Option == 3) && (tankE1Num > 0)) && (!wholemap.tankE1)) { setTankE1(); enemySpace--; } else if (((Option == 4) && (tankE2Num > 0)) && (!wholemap.tankE2)) { setTankE2(); enemySpace--; } else if (((Option == 5) && (manNum > 0)) && (!wholemap.man)) { setMan(); enemySpace--; } else if (((Option == 6) && (HLPNum > 0)) && (!wholemap.helicopter)) { setHLP(); enemySpace--; } else if (((Option == 7) && (tankBossNum > 0)) && (!wholemap.tankBoss)) { settankBoss(); enemySpace--; } else if (((Option == 8) && (HLPBNum > 0)) && (!wholemap.helicopterB)) { setHLPB(); enemySpace--; } else if (((Option == 9) && (HLPCNum > 0)) && (!wholemap.helicopterC)) { setHLPC(); enemySpace--; } else if (((Option == 7) && (tankBossBNum > 0)) && (!wholemap.tankBossB)) { settankBossB(); enemySpace--; } else if (((Option == 7) && (tankBossCNum > 0)) && (!wholemap.tankBossC)) { settankBossC(); enemySpace--; } } } var ranDrop = random(8); if (wholemap.man.aliveAfter == false) { if (manNum > 0) { manNum--; enemySpace++; removeMovieClip(wholemap.man); } else if (manNum == 0) { removeMovieClip(wholemap.man); } } else if (wholemap.tankEnemy.aliveAfter == false) { if (tankNum > 0) { tankNum--; enemySpace++; if ((ranDrop >= 4) && (ranDrop <= 5)) { dropItem(wholemap.tankEnemy, "addShotNum"); } removeMovieClip(wholemap.tankEnemy); } else if (tankNum == 0) { removeMovieClip(wholemap.tankEnemy); } } else if (wholemap.tankSmall.aliveAfter == false) { if (tankSmallNum > 0) { tankSmallNum--; enemySpace++; removeMovieClip(wholemap.tankSmall); } else if (tankSmallNum == 0) { removeMovieClip(wholemap.tankSmall); } } else if (wholemap.tankE1.aliveAfter == false) { if (tankE1Num > 0) { tankE1Num--; enemySpace++; removeMovieClip(wholemap.tankE1); } else if (tankE1 == 0) { removeMovieClip(wholemap.tankE1); } } else if (wholemap.tankE2.aliveAfter == false) { if (tankE2Num > 0) { tankE2Num--; enemySpace++; removeMovieClip(wholemap.tankE2); } else if (tankE2 == 0) { removeMovieClip(wholemap.tankE2); } } else if (wholemap.tankMiddle.aliveAfter == false) { if (tankMiddleNum > 0) { tankMiddleNum--; enemySpace++; if ((ranDrop >= 0) && (ranDrop <= 1)) { dropItem(wholemap.tankMiddle, "medicalBox"); } else if (ranDrop == 2) { dropItem(wholemap.tankMiddle, "addLifeNum"); } removeMovieClip(wholemap.tankMiddle); } else if (tankMiddleNum == 0) { removeMovieClip(wholemap.tankMiddle); } } else if (wholemap.helicopter.aliveAfter == false) { if (HLPNum > 0) { HLPNum--; enemySpace++; if ((ranDrop >= 3) && (ranDrop <= 4)) { dropItem(wholemap.helicopter, "callHLP"); } removeMovieClip(wholemap.helicopter); } else if (HLPNum == 0) { removeMovieClip(wholemap.helicopter); } } else if (wholemap.helicopterB.aliveAfter == false) { if (HLPBNum > 0) { HLPBNum--; enemySpace++; removeMovieClip(wholemap.helicopterB); } else if (HLPBNum == 0) { removeMovieClip(wholemap.helicopterB); } } else if (wholemap.helicopterC.aliveAfter == false) { if (HLPCNum > 0) { HLPCNum--; enemySpace++; if ((ranDrop >= 5) && (ranDrop <= 6)) { dropItem(wholemap.helicopterB, "callHLP"); } removeMovieClip(wholemap.helicopterC); } else if (HLPCNum == 0) { removeMovieClip(wholemap.helicopterC); } } else if (wholemap.tankBoss.aliveAfter == false) { if (tankBossNum > 0) { tankBossNum--; enemySpace++; if ((ranDrop >= 6) && (ranDrop <= 7)) { dropItem(wholemap.tankBoss, "powerBox"); } removeMovieClip(wholemap.tankBoss); } else if (tankBossNum == 0) { removeMovieClip(wholemap.tankBoss); } } else if (wholemap.tankBossB.aliveAfter == false) { if (tankBossBNum > 0) { tankBossBNum--; enemySpace++; if ((ranDrop >= 6) && (ranDrop <= 7)) { dropItem(wholemap.tankBossB, "powerBox"); } removeMovieClip(wholemap.tankBossB); } else if (tankBossBNum == 0) { removeMovieClip(wholemap.tankBossB); } } else if (wholemap.tankBossC.aliveAfter == false) { if (tankBossCNum > 0) { tankBossCNum--; enemySpace++; dropItem(wholemap.tankBossC, "powerBox"); removeMovieClip(wholemap.tankBossC); } else if (tankBossCNum == 0) { removeMovieClip(wholemap.tankBossC); } } else if (wholemap.tankBossFinal.aliveAfter == false) { if (tankBossFinalNum > 0) { tankBossFinalNum--; enemySpace++; removeMovieClip(wholemap.tankBossFinal); } else if (tankBossFinalNum == 0) { removeMovieClip(wholemap.tankBossFinal); } } upDateCHA(); if ((((!wholemap.HLPourside) && (HLPoursideNum > 0)) && (wholemap.char.alive == true)) && (Key.isDown(75))) { setOurHLP(); HLPoursideNum--; } if (wholemap.HLPourside.aliveAfter == false) { removeMovieClip(wholemap.HLPourside); } if ((!wholemap.char) && (charNum > 0)) { setChar(); charNum--; } else if ((!wholemap.char) && (charNum == 0)) { stageDoor.play(); stageDoor.stageDoor.stageText.gotoAndStop("gameover"); stageDoor.stageDoor.stageNum.gotoAndStop(7); if (stageDoor._currentFrame == 13) { showScore.gotoAndStop(2); } else if (stageDoor._currentFrame == 60) { gotoAndStop (192); } } if (wholemap.char.aliveAfter == false) { removeMovieClip(wholemap.char); } if ((((((tankBossNum == 0) && (tankBossBNum == 0)) && (tankBossCNum == 0)) && (!wholemap.tankBoss)) && (!wholemap.tankBossB)) && (!wholemap.tankBossC)) { if ((!wholemap.tankBossFinal) && (tankBossFinalNum > 0)) { setTankBossFinal(); } } if ((!wholemap.tankBossFinal) && (tankBossFinalNum == 0)) { HLPCNum = 0; tankMiddleNum = 0; removeMovieClip(wholemap.helicopterC); removeMovieClip(wholemap.tankMiddle); stageDoor.play(); stageDoor.stageDoor.stageText.gotoAndStop("congratu"); stageDoor.stageDoor.stageNum.gotoAndStop(7); if (stageDoor._currentFrame == 13) { showScore.gotoAndStop(2); } else if (stageDoor._currentFrame == 60) { gotoAndStop (192); } } };
Frame 192
stop(); this.onEnterFrame = function () { if (_global.versionCode == "Chinese") { showStaff.gotoAndStop(1); } else if (_global.versionCode == "English") { showStaff.gotoAndStop(2); } };
Symbol 7 MovieClip Frame 6
stop();
Symbol 8 MovieClip [shot-form1] Frame 1
stop();
Symbol 8 MovieClip [shot-form1] Frame 2
stop();
Symbol 10 MovieClip [shot-form2] Frame 1
stop();
Symbol 10 MovieClip [shot-form2] Frame 2
stop();
Symbol 20 MovieClip Frame 9
stop();
Symbol 21 MovieClip [shot-form3] Frame 1
stop();
Symbol 21 MovieClip [shot-form3] Frame 2
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
stop();
Symbol 24 MovieClip [shotBossC3] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } if (!myTank) { removeMovieClip(this); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.tankBossC.shotOnceNum >= 3) { if (_root.wholemap.tankBossC.formLevel == 1) { gotoAndStop("form" + _root.wholemap.tankBossC.formLevel); tankShot(_root.wholemap.tankBossC, form1); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossC, form1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossC, form1); } else if (_root.wholemap.tankBossC.formLevel == 2) { gotoAndStop("form" + _root.wholemap.tankBossC.formLevel); tankShot(_root.wholemap.tankBossC, form2); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossC, form2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossC, form2); } else if (_root.wholemap.tankBossC.formLevel == 3) { gotoAndStop("form" + _root.wholemap.tankBossC.formLevel); tankShot(_root.wholemap.tankBossC, form3); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossC, form3); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossC, form3); } } else if (!_root.wholemap.tankBossC) { removeMovieClip(this); } };
Symbol 24 MovieClip [shotBossC3] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 24 MovieClip [shotBossC3] Frame 3
stop(); var shotSpeed = 18; var Power = 150;
Symbol 25 MovieClip [shotBossB3] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } if (!myTank) { removeMovieClip(this); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.tankBossB.shotOnceNum >= 3) { if (_root.wholemap.tankBossB.formLevel == 1) { gotoAndStop("form" + _root.wholemap.tankBossB.formLevel); tankShot(_root.wholemap.tankBossB, form1); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossB, form1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossB, form1); } else if (_root.wholemap.tankBossB.formLevel == 2) { gotoAndStop("form" + _root.wholemap.tankBossB.formLevel); tankShot(_root.wholemap.tankBossB, form2); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossB, form2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossB, form2); } else if (_root.wholemap.tankBossB.formLevel == 3) { gotoAndStop("form" + _root.wholemap.tankBossB.formLevel); tankShot(_root.wholemap.tankBossB, form3); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossB, form3); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossB, form3); } } else if (!_root.wholemap.tankBossB) { removeMovieClip(this); } };
Symbol 25 MovieClip [shotBossB3] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 25 MovieClip [shotBossB3] Frame 3
stop(); var shotSpeed = 18; var Power = 80;
Symbol 26 MovieClip [shotBossA3] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } if (!myTank) { removeMovieClip(this); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.tankBoss.shotOnceNum >= 3) { if (_root.wholemap.tankBoss.formLevel == 1) { gotoAndStop("form" + _root.wholemap.tankBoss.formLevel); tankShot(_root.wholemap.tankBoss, form1); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBoss, form1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBoss, form1); } else if (_root.wholemap.tankBoss.formLevel == 2) { gotoAndStop("form" + _root.wholemap.tankBoss.formLevel); tankShot(_root.wholemap.tankBoss, form2); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBoss, form2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBoss, form2); } else if (_root.wholemap.tankBoss.formLevel == 3) { gotoAndStop("form" + _root.wholemap.tankBoss.formLevel); tankShot(_root.wholemap.tankBoss, form3); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBoss, form3); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBoss, form3); } } else if (!_root.wholemap.tankBoss) { removeMovieClip(this); } };
Symbol 26 MovieClip [shotBossA3] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 26 MovieClip [shotBossA3] Frame 3
stop(); var shotSpeed = 18; var Power = 80;
Symbol 27 MovieClip [shotA3] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); se2_snd = new Sound(); se2_snd.attachSound("se_i008"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (seTimer > 0) { seTimer--; } if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; if (seTimer == 0) { seTimer = 12; se2_snd.start(); } } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if (myTank.formLevel == 1) { _parent._parent.score = _parent._parent.score + 50; } else if (myTank.formLevel == 2) { _parent._parent.score = _parent._parent.score + 150; } else if (myTank.formLevel == 3) { _parent._parent.score = _parent._parent.score + 300; } else if (myTank.formLevel == 4) { _parent._parent.score = _parent._parent.score + 700; } if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.char.shotOnceNum >= 3) { if (_root.wholemap.char.formLevel == 1) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form1); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form1); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form1); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form1); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form1); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form1); HitTank(_root.wholemap.man, _root.wholemap.char, form1); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form1); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form1); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form1); } else if (_root.wholemap.char.formLevel == 2) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form2); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form2); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form2); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form2); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form2); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form2); HitTank(_root.wholemap.man, _root.wholemap.char, form2); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form2); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form2); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form2); } else if (_root.wholemap.char.formLevel == 3) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form3); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form3); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form3); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form3); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form3); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form3); HitTank(_root.wholemap.man, _root.wholemap.char, form3); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form3); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form3); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form3); } else if (_root.wholemap.char.formLevel == 4) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form4); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form4); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form4); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form4); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form4); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form4); HitTank(_root.wholemap.man, _root.wholemap.char, form4); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form4); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form4); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form4); } } };
Symbol 27 MovieClip [shotA3] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 27 MovieClip [shotA3] Frame 3
stop(); var shotSpeed = 18; var Power = 80;
Symbol 27 MovieClip [shotA3] Frame 4
stop(); var shotSpeed = 18; var Power = 150;
Symbol 28 MovieClip [shotBossC2] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } if (!myTank) { removeMovieClip(this); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.tankBossC.shotOnceNum >= 2) { if (_root.wholemap.tankBossC.formLevel == 1) { gotoAndStop("form" + _root.wholemap.tankBossC.formLevel); tankShot(_root.wholemap.tankBossC, form1); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossC, form1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossC, form1); } else if (_root.wholemap.tankBossC.formLevel == 2) { gotoAndStop("form" + _root.wholemap.tankBossC.formLevel); tankShot(_root.wholemap.tankBossC, form2); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossC, form2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossC, form2); } else if (_root.wholemap.tankBossC.formLevel == 3) { gotoAndStop("form" + _root.wholemap.tankBossC.formLevel); tankShot(_root.wholemap.tankBossC, form3); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossC, form3); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossC, form3); } } else if (!_root.wholemap.tankBossC) { removeMovieClip(this); } };
Symbol 28 MovieClip [shotBossC2] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 28 MovieClip [shotBossC2] Frame 3
stop(); var shotSpeed = 18; var Power = 150;
Symbol 29 MovieClip [shotBossB2] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } if (!myTank) { removeMovieClip(this); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.tankBossB.shotOnceNum >= 2) { if (_root.wholemap.tankBossB.formLevel == 1) { gotoAndStop("form" + _root.wholemap.tankBossB.formLevel); tankShot(_root.wholemap.tankBossB, form1); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossB, form1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossB, form1); } else if (_root.wholemap.tankBossB.formLevel == 2) { gotoAndStop("form" + _root.wholemap.tankBossB.formLevel); tankShot(_root.wholemap.tankBossB, form2); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossB, form2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossB, form2); } else if (_root.wholemap.tankBossB.formLevel == 3) { gotoAndStop("form" + _root.wholemap.tankBossB.formLevel); tankShot(_root.wholemap.tankBossB, form3); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossB, form3); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossB, form3); } } else if (!_root.wholemap.tankBossB) { removeMovieClip(this); } };
Symbol 29 MovieClip [shotBossB2] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 29 MovieClip [shotBossB2] Frame 3
stop(); var shotSpeed = 18; var Power = 80;
Symbol 30 MovieClip [shotBossA2] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } if (!myTank) { removeMovieClip(this); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.tankBoss.shotOnceNum >= 2) { if (_root.wholemap.tankBoss.formLevel == 1) { gotoAndStop("form" + _root.wholemap.tankBoss.formLevel); tankShot(_root.wholemap.tankBoss, form1); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBoss, form1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBoss, form1); } else if (_root.wholemap.tankBoss.formLevel == 2) { gotoAndStop("form" + _root.wholemap.tankBoss.formLevel); tankShot(_root.wholemap.tankBoss, form2); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBoss, form2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBoss, form2); } else if (_root.wholemap.tankBoss.formLevel == 3) { gotoAndStop("form" + _root.wholemap.tankBoss.formLevel); tankShot(_root.wholemap.tankBoss, form3); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBoss, form3); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBoss, form3); } } else if (!_root.wholemap.tankBoss) { removeMovieClip(this); } };
Symbol 30 MovieClip [shotBossA2] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 30 MovieClip [shotBossA2] Frame 3
stop(); var shotSpeed = 18; var Power = 80;
Symbol 31 MovieClip [shotA2] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); se2_snd = new Sound(); se2_snd.attachSound("se_i008"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (seTimer > 0) { seTimer--; } if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; if (seTimer == 0) { seTimer = 12; se2_snd.start(); } } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if (myTank.formLevel == 1) { _parent._parent.score = _parent._parent.score + 50; } else if (myTank.formLevel == 2) { _parent._parent.score = _parent._parent.score + 150; } else if (myTank.formLevel == 3) { _parent._parent.score = _parent._parent.score + 300; } else if (myTank.formLevel == 4) { _parent._parent.score = _parent._parent.score + 700; } if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.char.shotOnceNum >= 2) { if (_root.wholemap.char.formLevel == 1) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form1); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form1); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form1); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form1); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form1); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form1); HitTank(_root.wholemap.man, _root.wholemap.char, form1); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form1); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form1); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form1); } else if (_root.wholemap.char.formLevel == 2) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form2); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form2); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form2); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form2); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form2); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form2); HitTank(_root.wholemap.man, _root.wholemap.char, form2); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form2); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form2); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form2); } else if (_root.wholemap.char.formLevel == 3) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form3); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form3); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form3); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form3); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form3); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form3); HitTank(_root.wholemap.man, _root.wholemap.char, form3); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form3); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form3); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form3); } else if (_root.wholemap.char.formLevel == 4) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form4); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form4); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form4); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form4); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form4); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form4); HitTank(_root.wholemap.man, _root.wholemap.char, form4); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form4); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form4); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form4); } } };
Symbol 31 MovieClip [shotA2] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 31 MovieClip [shotA2] Frame 3
stop(); var shotSpeed = 18; var Power = 80;
Symbol 31 MovieClip [shotA2] Frame 4
stop(); var shotSpeed = 18; var Power = 150;
Symbol 32 MovieClip [shotBossFinal] Frame 1
stop(); var shotSpeed = 18; var Power = 200; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } if (!myTank) { removeMovieClip(this); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.tankBossFinal.shotOnceNum >= 1) { if (_root.wholemap.tankBossFinal.formLevel == 1) { gotoAndStop("form" + _root.wholemap.tankBossFinal.formLevel); tankShot(_root.wholemap.tankBossFinal, form1); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossFinal, form1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossFinal, form1); } else if (_root.wholemap.tankBossFinal.formLevel == 2) { gotoAndStop("form" + _root.wholemap.tankBossFinal.formLevel); tankShot(_root.wholemap.tankBossFinal, form2); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossFinal, form2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossFinal, form2); } else if (_root.wholemap.tankBossFinal.formLevel == 3) { gotoAndStop("form" + _root.wholemap.tankBossFinal.formLevel); tankShot(_root.wholemap.tankBossFinal, form3); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossFinal, form3); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossFinal, form3); } } else if (!_root.wholemap.tankBossFinal) { removeMovieClip(this); } };
Symbol 32 MovieClip [shotBossFinal] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 32 MovieClip [shotBossFinal] Frame 3
stop(); var shotSpeed = 18; var Power = 150;
Symbol 33 MovieClip [shotBossC] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } if (!myTank) { removeMovieClip(this); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.tankBossC.shotOnceNum >= 1) { if (_root.wholemap.tankBossC.formLevel == 1) { gotoAndStop("form" + _root.wholemap.tankBossC.formLevel); tankShot(_root.wholemap.tankBossC, form1); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossC, form1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossC, form1); } else if (_root.wholemap.tankBossC.formLevel == 2) { gotoAndStop("form" + _root.wholemap.tankBossC.formLevel); tankShot(_root.wholemap.tankBossC, form2); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossC, form2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossC, form2); } else if (_root.wholemap.tankBossC.formLevel == 3) { gotoAndStop("form" + _root.wholemap.tankBossC.formLevel); tankShot(_root.wholemap.tankBossC, form3); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossC, form3); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossC, form3); } } else if (!_root.wholemap.tankBossC) { removeMovieClip(this); } };
Symbol 33 MovieClip [shotBossC] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 33 MovieClip [shotBossC] Frame 3
stop(); var shotSpeed = 18; var Power = 150;
Symbol 34 MovieClip [shotBossB] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } if (!myTank) { removeMovieClip(this); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.tankBossB.shotOnceNum >= 1) { if (_root.wholemap.tankBossB.formLevel == 1) { gotoAndStop("form" + _root.wholemap.tankBossB.formLevel); tankShot(_root.wholemap.tankBossB, form1); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossB, form1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossB, form1); } else if (_root.wholemap.tankBossB.formLevel == 2) { gotoAndStop("form" + _root.wholemap.tankBossB.formLevel); tankShot(_root.wholemap.tankBossB, form2); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossB, form2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossB, form2); } else if (_root.wholemap.tankBossB.formLevel == 3) { gotoAndStop("form" + _root.wholemap.tankBossB.formLevel); tankShot(_root.wholemap.tankBossB, form3); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBossB, form3); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBossB, form3); } } else if (!_root.wholemap.tankBossB) { removeMovieClip(this); } };
Symbol 34 MovieClip [shotBossB] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 34 MovieClip [shotBossB] Frame 3
stop(); var shotSpeed = 18; var Power = 80;
Symbol 35 MovieClip [shotBoss] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.tankBoss.shotOnceNum >= 1) { if (_root.wholemap.tankBoss.formLevel == 1) { gotoAndStop("form" + _root.wholemap.tankBoss.formLevel); tankShot(_root.wholemap.tankBoss, form1); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBoss, form1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBoss, form1); } else if (_root.wholemap.tankBoss.formLevel == 2) { gotoAndStop("form" + _root.wholemap.tankBoss.formLevel); tankShot(_root.wholemap.tankBoss, form2); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBoss, form2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBoss, form2); } else if (_root.wholemap.tankBoss.formLevel == 3) { gotoAndStop("form" + _root.wholemap.tankBoss.formLevel); tankShot(_root.wholemap.tankBoss, form3); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankBoss, form3); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankBoss, form3); } } else if (!_root.wholemap.tankBoss) { removeMovieClip(this); } };
Symbol 35 MovieClip [shotBoss] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 35 MovieClip [shotBoss] Frame 3
stop(); var shotSpeed = 18; var Power = 80;
Symbol 36 MovieClip [shot] Frame 1
stop(); var shotSpeed = 12; var Power = 25; var shotOut = false; var noHit = true; var shotTimer = 24; var seTimer = 0; var shotX = _x; var shotY = _y; var shotSwitch = false; se1_snd = new Sound(); se1_snd.attachSound("daodi"); se2_snd = new Sound(); se2_snd.attachSound("se_i008"); this.onEnterFrame = function () { function tankShot(myTank, formN) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (seTimer > 0) { seTimer--; } if ((shotSwitch == true) && (shotOut == false)) { shotOut = true; noHit = true; if (seTimer == 0) { seTimer = 12; se2_snd.start(); } } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if ((((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if ((((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if ((((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if ((((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (formN.xiaoshi._currentframe < 3)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else if (noHit == false) { formN.gotoAndStop(2); if (formN.xiaoshi._currentframe > 3) { shotOut = false; shotSwitch = false; shotTimer = 24; } } else { formN.gotoAndStop(1); } } function HitTank(otherTank, myTank, formN) { if ((formN._currentframe == 1) && (_visible == true)) { if (hitTest(otherTank)) { noHit = false; if (myTank.formLevel == 1) { _parent._parent.score = _parent._parent.score + 50; } else if (myTank.formLevel == 2) { _parent._parent.score = _parent._parent.score + 150; } else if (myTank.formLevel == 3) { _parent._parent.score = _parent._parent.score + 300; } else if (myTank.formLevel == 4) { _parent._parent.score = _parent._parent.score + 700; } if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } if (_root.wholemap.char.shotOnceNum >= 1) { if (_root.wholemap.char.formLevel == 1) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form1); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form1); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form1); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form1); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form1); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form1); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form1); HitTank(_root.wholemap.man, _root.wholemap.char, form1); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form1); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form1); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form1); } else if (_root.wholemap.char.formLevel == 2) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form2); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form2); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form2); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form2); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form2); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form2); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form2); HitTank(_root.wholemap.man, _root.wholemap.char, form2); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form2); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form2); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form2); } else if (_root.wholemap.char.formLevel == 3) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form3); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form3); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form3); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form3); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form3); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form3); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form3); HitTank(_root.wholemap.man, _root.wholemap.char, form3); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form3); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form3); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form3); } else if (_root.wholemap.char.formLevel == 4) { gotoAndStop("form" + _root.wholemap.char.formLevel); tankShot(_root.wholemap.char, form4); HitTank(_root.wholemap.tankEnemy, _root.wholemap.char, form4); HitTank(_root.wholemap.tankE1, _root.wholemap.char, form4); HitTank(_root.wholemap.tankE2, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBoss, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBossB, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBossC, _root.wholemap.char, form4); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.char, form4); HitTank(_root.wholemap.tankSmall, _root.wholemap.char, form4); HitTank(_root.wholemap.tankMiddle, _root.wholemap.char, form4); HitTank(_root.wholemap.man, _root.wholemap.char, form4); HitTank(_root.wholemap.helicopter, _root.wholemap.char, form4); HitTank(_root.wholemap.helicopterB, _root.wholemap.char, form4); HitTank(_root.wholemap.helicopterC, _root.wholemap.char, form4); } } };
Symbol 36 MovieClip [shot] Frame 2
stop(); var shotSpeed = 18; var Power = 50;
Symbol 36 MovieClip [shot] Frame 3
stop(); var shotSpeed = 18; var Power = 80;
Symbol 36 MovieClip [shot] Frame 4
stop(); var shotSpeed = 18; var Power = 150;
Symbol 78 MovieClip Frame 9
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 3
stop();
Symbol 79 MovieClip Frame 4
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 82 MovieClip Frame 3
stop();
Symbol 82 MovieClip Frame 4
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 4
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 3
stop();
Symbol 88 MovieClip Frame 4
stop();
Symbol 89 MovieClip [char] Frame 1
var timer = 0; var bloodTimer = 0; var AppearTimer = 72; var cannotHurt = true; var totalBlood = 100; var alive = true; var aliveAfter = true; var formLevel = 1; var shotOnceNum = 1; var lifeBarLength = 30; var speed = 6; formLevel = _parent._parent.getCharData.formLevelSave; shotOnceNum = _parent._parent.getCharData.shotOnceNumSave; if (formLevel == 1) { totalBlood = 100; _root.lifeBar.gotoAndStop(1); } else if (formLevel == 2) { totalBlood = 200; _root.lifeBar.gotoAndStop(2); } else if (formLevel == 3) { totalBlood = 300; _root.lifeBar.gotoAndStop(3); } else if (formLevel == 4) { totalBlood = 400; _root.lifeBar.gotoAndStop(4); } var nowBlood = totalBlood;
Symbol 89 MovieClip [char] Frame 2
stop(); this.onEnterFrame = function () { function hitOtherTank(tank1, tank2, tank3, tank4, tank5, tank6, tank7, tank8) { if (((((((((tank1.hitOthers == true) || (tank2.hitOthers == true)) || (tank3.hitOthers == true)) || (tank4.hitOthers == true)) || (tank5.hitOthers == true)) || (tank6.hitOthers == true)) || (tank7.hitOthers == true)) || (tank8.hitOthers == true)) || (tank9.hitOthers == true)) { noscroll = 1; } } function cannotHurtChar() { if (AppearTimer > 0) { AppearTimer--; } else if (AppearTimer <= 0) { cannotHurt = false; } } function hurtAction(formN) { if (nowBlood <= 0) { nowBlood = 0; formN.gotoAndStop("Dead"); alive = false; if (formN.Dead._currentframe == 9) { aliveAfter = false; } } else if (nowBlood >= totalBlood) { nowBlood = totalBlood; if (cannotHurt == true) { formN.gotoAndStop("wuDi"); } else { formN.gotoAndStop("normal"); } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { formN.gotoAndStop("hurt"); bloodTimer--; } else { formN.gotoAndStop("normal"); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } } x = _x; y = _y; var dir; var noscroll = 0; if (alive == true) { if (Key.isDown(87)) { y = y - speed; dir = "up"; _rotation = 0; } else if (Key.isDown(83)) { y = y + speed; dir = "down"; _rotation = 180; } else if (Key.isDown(65)) { x = x - speed; dir = "left"; _rotation = -90; } else if (Key.isDown(68)) { x = x + speed; dir = "right"; _rotation = 90; } } if (Key.isDown(74)) { if (_root.wholemap.shot.shotSwitch == false) { _root.wholemap.shot.shotSwitch = true; } else if (_root.wholemap.shotA2.shotSwitch == false) { _root.wholemap.shotA2.shotSwitch = true; } else if (_root.wholemap.shotA3.shotSwitch == false) { _root.wholemap.shotA3.shotSwitch = true; } } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; noscroll = 1; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; noscroll = 1; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; noscroll = 1; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; noscroll = 1; } hitOtherTank(_root.wholemap.tankEnemy, _root.wholemap.tankMiddle, _root.wholemap.tankSmall, _root.wholemap.tankBoss, _root.wholemap.tankE1, _root.wholemap.tankE2, _root.wholemap.tankBossB, _root.wholemap.tankBossC, _root.wholemap.tankBossFinal); if (noscroll == 0) { _parent._parent.scrollMap(dir); } _x = x; _y = y; cannotHurtChar(); if (formLevel == 1) { totalBlood = 100; _root.lifeBar.gotoAndStop(1); lifeBarLength = 30; gotoAndStop (2); hurtAction(form1); } else if (formLevel == 2) { totalBlood = 200; _root.lifeBar.gotoAndStop(2); lifeBarLength = 60; gotoAndStop (3); hurtAction(form2); } else if (formLevel == 3) { totalBlood = 300; _root.lifeBar.gotoAndStop(3); lifeBarLength = 90; gotoAndStop (4); hurtAction(form3); } else if (formLevel == 4) { totalBlood = 400; _root.lifeBar.gotoAndStop(4); lifeBarLength = 120; gotoAndStop (5); hurtAction(form4); } _root.lifeBar.lifeBar._xscale = lifeBarLength * (nowBlood / totalBlood); };
Symbol 89 MovieClip [char] Frame 3
stop();
Symbol 89 MovieClip [char] Frame 4
stop();
Symbol 89 MovieClip [char] Frame 5
stop();
Symbol 96 MovieClip [HLPourside] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 100; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var noCorner = true; var Ftimer = 0; var speed = 8;
Symbol 96 MovieClip [HLPourside] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 30; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } if ((turnLeft == true) && (turnUp == true)) { _rotation = -45; } else if ((turnLeft == true) && (turnDown == true)) { _rotation = -135; } else if ((turnRight == true) && (turnUp == true)) { _rotation = 45; } else if ((turnRight == true) && (turnDown == true)) { _rotation = 135; } } _x = x; _y = y; } function areaLimit(Limit) { if (x <= (_parent._parent.tileW * Limit)) { x = _parent._parent.tileW * Limit; } else if (x >= (_parent._parent.tileW * (_parent._parent.myMap[0].length - Limit))) { x = _parent._parent.tileW * (_parent._parent.myMap[0].length - Limit); } if (y <= (_parent._parent.tileH * Limit)) { y = _parent._parent.tileH * Limit; } else if (y >= (_parent._parent.tileH * (_parent._parent.myMap.length - Limit))) { y = _parent._parent.tileH * (_parent._parent.myMap.length - Limit); } } stop(); this.onEnterFrame = function () { x = _x; y = _y; var dir; var noscroll = 0; if (timer == 0) { AI = random(500); timer = 30; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 50) && (AI < 75)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 100) && (AI < 125)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 150) && (AI < 175)) { x = x + speed; dir = "right"; _rotation = 90; } else if (((AI >= 25) && (AI < 50)) && (noCorner == true)) { x = x + speed; y = y - speed; _rotation = 45; } else if (((AI >= 75) && (AI < 100)) && (noCorner == true)) { x = x + speed; y = y + speed; _rotation = 135; } else if (((AI >= 125) && (AI < 150)) && (noCorner == true)) { x = x - speed; y = y + speed; _rotation = 225; } else if (((AI >= 175) && (AI < 200)) && (noCorner == true)) { x = x - speed; y = y - speed; _rotation = -45; } else if ((AI >= 200) && (AI < 500)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } areaLimit(3); } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > 47) || (_parent._parent.myMap[upY][rightX] > 47)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > 47) || (_parent._parent.myMap[downY][rightX] > 47)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > 47) || (_parent._parent.myMap[upY][leftX] > 47)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > 47) || (_parent._parent.myMap[upY][rightX] > 47)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } };
Symbol 96 MovieClip [HLPourside] Frame 3
stop();
Symbol 96 MovieClip [HLPourside] Frame 4
stop();
Symbol 97 MovieClip [helicopterC] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 150; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var noCorner = true; var Ftimer = 0; var speed = 8;
Symbol 97 MovieClip [helicopterC] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 30; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } if ((turnLeft == true) && (turnUp == true)) { _rotation = -45; } else if ((turnLeft == true) && (turnDown == true)) { _rotation = -135; } else if ((turnRight == true) && (turnUp == true)) { _rotation = 45; } else if ((turnRight == true) && (turnDown == true)) { _rotation = 135; } } _x = x; _y = y; } function areaLimit(Limit) { if (x <= (_parent._parent.tileW * Limit)) { x = _parent._parent.tileW * Limit; } else if (x >= (_parent._parent.tileW * (_parent._parent.myMap[0].length - Limit))) { x = _parent._parent.tileW * (_parent._parent.myMap[0].length - Limit); } if (y <= (_parent._parent.tileH * Limit)) { y = _parent._parent.tileH * Limit; } else if (y >= (_parent._parent.tileH * (_parent._parent.myMap.length - Limit))) { y = _parent._parent.tileH * (_parent._parent.myMap.length - Limit); } } stop(); this.onEnterFrame = function () { x = _x; y = _y; var dir; var noscroll = 0; if (timer == 0) { AI = random(_parent._parent.npcAIP * 2); timer = 30; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 50) && (AI < 75)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 100) && (AI < 125)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 150) && (AI < 175)) { x = x + speed; dir = "right"; _rotation = 90; } else if (((AI >= 25) && (AI < 50)) && (noCorner == true)) { x = x + speed; y = y - speed; _rotation = 45; } else if (((AI >= 75) && (AI < 100)) && (noCorner == true)) { x = x + speed; y = y + speed; _rotation = 135; } else if (((AI >= 125) && (AI < 150)) && (noCorner == true)) { x = x - speed; y = y + speed; _rotation = 225; } else if (((AI >= 175) && (AI < 200)) && (noCorner == true)) { x = x - speed; y = y - speed; _rotation = -45; } else if ((AI >= 200) && (AI < (_parent._parent.npcAIP * 2))) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } areaLimit(3); } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > 47) || (_parent._parent.myMap[upY][rightX] > 47)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > 47) || (_parent._parent.myMap[downY][rightX] > 47)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > 47) || (_parent._parent.myMap[upY][leftX] > 47)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > 47) || (_parent._parent.myMap[upY][rightX] > 47)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } };
Symbol 97 MovieClip [helicopterC] Frame 3
stop();
Symbol 97 MovieClip [helicopterC] Frame 4
stop();
Symbol 98 MovieClip [helicopterB] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 100; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var noCorner = true; var Ftimer = 0; var speed = 8;
Symbol 98 MovieClip [helicopterB] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 30; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } if ((turnLeft == true) && (turnUp == true)) { _rotation = -45; } else if ((turnLeft == true) && (turnDown == true)) { _rotation = -135; } else if ((turnRight == true) && (turnUp == true)) { _rotation = 45; } else if ((turnRight == true) && (turnDown == true)) { _rotation = 135; } } _x = x; _y = y; } function areaLimit(Limit) { if (x <= (_parent._parent.tileW * Limit)) { x = _parent._parent.tileW * Limit; } else if (x >= (_parent._parent.tileW * (_parent._parent.myMap[0].length - Limit))) { x = _parent._parent.tileW * (_parent._parent.myMap[0].length - Limit); } if (y <= (_parent._parent.tileH * Limit)) { y = _parent._parent.tileH * Limit; } else if (y >= (_parent._parent.tileH * (_parent._parent.myMap.length - Limit))) { y = _parent._parent.tileH * (_parent._parent.myMap.length - Limit); } } stop(); this.onEnterFrame = function () { x = _x; y = _y; var dir; var noscroll = 0; if (timer == 0) { AI = random(_parent._parent.npcAIP * 2); timer = 30; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 50) && (AI < 75)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 100) && (AI < 125)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 150) && (AI < 175)) { x = x + speed; dir = "right"; _rotation = 90; } else if (((AI >= 25) && (AI < 50)) && (noCorner == true)) { x = x + speed; y = y - speed; _rotation = 45; } else if (((AI >= 75) && (AI < 100)) && (noCorner == true)) { x = x + speed; y = y + speed; _rotation = 135; } else if (((AI >= 125) && (AI < 150)) && (noCorner == true)) { x = x - speed; y = y + speed; _rotation = 225; } else if (((AI >= 175) && (AI < 200)) && (noCorner == true)) { x = x - speed; y = y - speed; _rotation = -45; } else if ((AI >= 200) && (AI < (_parent._parent.npcAIP * 2))) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } areaLimit(3); } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > 47) || (_parent._parent.myMap[upY][rightX] > 47)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > 47) || (_parent._parent.myMap[downY][rightX] > 47)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > 47) || (_parent._parent.myMap[upY][leftX] > 47)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > 47) || (_parent._parent.myMap[upY][rightX] > 47)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } };
Symbol 98 MovieClip [helicopterB] Frame 3
stop();
Symbol 98 MovieClip [helicopterB] Frame 4
stop();
Symbol 99 MovieClip [helicopter] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 50; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var noCorner = true; var Ftimer = 0; var speed = 8;
Symbol 99 MovieClip [helicopter] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 30; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } if ((turnLeft == true) && (turnUp == true)) { _rotation = -45; } else if ((turnLeft == true) && (turnDown == true)) { _rotation = -135; } else if ((turnRight == true) && (turnUp == true)) { _rotation = 45; } else if ((turnRight == true) && (turnDown == true)) { _rotation = 135; } } _x = x; _y = y; } function areaLimit(Limit) { if (x <= (_parent._parent.tileW * Limit)) { x = _parent._parent.tileW * Limit; } else if (x >= (_parent._parent.tileW * (_parent._parent.myMap[0].length - Limit))) { x = _parent._parent.tileW * (_parent._parent.myMap[0].length - Limit); } if (y <= (_parent._parent.tileH * Limit)) { y = _parent._parent.tileH * Limit; } else if (y >= (_parent._parent.tileH * (_parent._parent.myMap.length - Limit))) { y = _parent._parent.tileH * (_parent._parent.myMap.length - Limit); } } stop(); this.onEnterFrame = function () { x = _x; y = _y; var dir; var noscroll = 0; if (timer == 0) { AI = random(_parent._parent.npcAIP * 2); timer = 30; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 50) && (AI < 75)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 100) && (AI < 125)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 150) && (AI < 175)) { x = x + speed; dir = "right"; _rotation = 90; } else if (((AI >= 25) && (AI < 50)) && (noCorner == true)) { x = x + speed; y = y - speed; _rotation = 45; } else if (((AI >= 75) && (AI < 100)) && (noCorner == true)) { x = x + speed; y = y + speed; _rotation = 135; } else if (((AI >= 125) && (AI < 150)) && (noCorner == true)) { x = x - speed; y = y + speed; _rotation = 225; } else if (((AI >= 175) && (AI < 200)) && (noCorner == true)) { x = x - speed; y = y - speed; _rotation = -45; } else if ((AI >= 200) && (AI < (_parent._parent.npcAIP * 2))) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } areaLimit(3); } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > 47) || (_parent._parent.myMap[upY][rightX] > 47)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > 47) || (_parent._parent.myMap[downY][rightX] > 47)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > 47) || (_parent._parent.myMap[upY][leftX] > 47)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > 47) || (_parent._parent.myMap[upY][rightX] > 47)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } };
Symbol 99 MovieClip [helicopter] Frame 3
stop();
Symbol 99 MovieClip [helicopter] Frame 4
stop();
Symbol 102 MovieClip [tankSmall] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 25; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var shotSpeed = 12; var Ftimer = 0; var speed = 6; var hitOthers = false;
Symbol 102 MovieClip [tankSmall] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 30; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if (Math.abs(x - destx) >= Math.abs(y - desty)) { if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } } else if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } else if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } } _x = x; _y = y; } stop(); this.onEnterFrame = function () { function HitTank(otherTank) { if (!hitTest(otherTank)) { tempX = getProperty(otherTank, _x); tempY = getProperty(otherTank, _y); temp2X = _x; temp2Y = _y; hitOthers = false; } else { hitOthers = true; } otherTank._x = tempX; otherTank._y = tempY; _x = temp2X; _y = temp2Y; } x = _x; y = _y; var dir; var noscroll = 0; if (timer == 0) { AI = random(_parent._parent.npcAIP); timer = 30; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 25) && (AI < 50)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 50) && (AI < 75)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 75) && (AI < 100)) { x = x + speed; dir = "right"; _rotation = 90; } else if ((AI >= 100) && (AI < _parent._parent.npcAIP)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } HitTank(_root.wholemap.char); };
Symbol 102 MovieClip [tankSmall] Frame 3
stop();
Symbol 102 MovieClip [tankSmall] Frame 4
stop();
Symbol 105 MovieClip [tankE2] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 25; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var shotSpeed = 18; var Ftimer = 0; var speed = 3; var hitOthers = false;
Symbol 105 MovieClip [tankE2] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 30; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if (Math.abs(x - destx) >= Math.abs(y - desty)) { if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } } else if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } else if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } } _x = x; _y = y; } function areaLimit(Limit) { if (x <= (_parent._parent.tileW * Limit)) { x = _parent._parent.tileW * Limit; } else if (x >= (_parent._parent.tileW * (_parent._parent.myMap[0].length - Limit))) { x = _parent._parent.tileW * (_parent._parent.myMap[0].length - Limit); } if (y <= (_parent._parent.tileH * Limit)) { y = _parent._parent.tileH * Limit; } else if (y >= (_parent._parent.tileH * (_parent._parent.myMap.length - Limit))) { y = _parent._parent.tileH * (_parent._parent.myMap.length - Limit); } } stop(); this.onEnterFrame = function () { function HitTank(otherTank) { if (!hitTest(otherTank)) { tempX = getProperty(otherTank, _x); tempY = getProperty(otherTank, _y); temp2X = _x; temp2Y = _y; hitOthers = false; } else { hitOthers = true; } otherTank._x = tempX; otherTank._y = tempY; _x = temp2X; _y = temp2Y; } x = _x; y = _y; var dir; var noscroll = 0; areaLimit(2); if (timer == 0) { AI = random(_parent._parent.npcAIP); timer = 30; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 25) && (AI < 50)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 50) && (AI < 75)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 75) && (AI < 100)) { x = x + speed; dir = "right"; _rotation = 90; } else if ((AI >= 100) && (AI < _parent._parent.npcAIP)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } HitTank(_root.wholemap.char); };
Symbol 105 MovieClip [tankE2] Frame 3
stop();
Symbol 105 MovieClip [tankE2] Frame 4
stop();
Symbol 108 MovieClip [tankE1] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 25; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var shotSpeed = 18; var Ftimer = 0; var speed = 3; var hitOthers = false;
Symbol 108 MovieClip [tankE1] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 30; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if (Math.abs(x - destx) >= Math.abs(y - desty)) { if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } } else if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } else if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } } _x = x; _y = y; } function areaLimit(Limit) { if (x <= (_parent._parent.tileW * Limit)) { x = _parent._parent.tileW * Limit; } else if (x >= (_parent._parent.tileW * (_parent._parent.myMap[0].length - Limit))) { x = _parent._parent.tileW * (_parent._parent.myMap[0].length - Limit); } if (y <= (_parent._parent.tileH * Limit)) { y = _parent._parent.tileH * Limit; } else if (y >= (_parent._parent.tileH * (_parent._parent.myMap.length - Limit))) { y = _parent._parent.tileH * (_parent._parent.myMap.length - Limit); } } stop(); this.onEnterFrame = function () { function HitTank(otherTank) { if (!hitTest(otherTank)) { tempX = getProperty(otherTank, _x); tempY = getProperty(otherTank, _y); temp2X = _x; temp2Y = _y; hitOthers = false; } else { hitOthers = true; } otherTank._x = tempX; otherTank._y = tempY; _x = temp2X; _y = temp2Y; } x = _x; y = _y; var dir; var noscroll = 0; areaLimit(2); if (timer == 0) { AI = random(_parent._parent.npcAIP); timer = 30; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 25) && (AI < 50)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 50) && (AI < 75)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 75) && (AI < 100)) { x = x + speed; dir = "right"; _rotation = 90; } else if ((AI >= 100) && (AI < _parent._parent.npcAIP)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } HitTank(_root.wholemap.char); };
Symbol 108 MovieClip [tankE1] Frame 3
stop();
Symbol 108 MovieClip [tankE1] Frame 4
stop();
Symbol 112 MovieClip [tankMiddle] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 50; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var shotSpeed = 18; var Ftimer = 0; var speed = 3; var hitOthers = false;
Symbol 112 MovieClip [tankMiddle] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 30; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if (Math.abs(x - destx) >= Math.abs(y - desty)) { if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } } else if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } else if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } } _x = x; _y = y; } function areaLimit(Limit) { if (x <= (_parent._parent.tileW * Limit)) { x = _parent._parent.tileW * Limit; } else if (x >= (_parent._parent.tileW * (_parent._parent.myMap[0].length - Limit))) { x = _parent._parent.tileW * (_parent._parent.myMap[0].length - Limit); } if (y <= (_parent._parent.tileH * Limit)) { y = _parent._parent.tileH * Limit; } else if (y >= (_parent._parent.tileH * (_parent._parent.myMap.length - Limit))) { y = _parent._parent.tileH * (_parent._parent.myMap.length - Limit); } } stop(); this.onEnterFrame = function () { function HitTank(otherTank) { if (!hitTest(otherTank)) { tempX = getProperty(otherTank, _x); tempY = getProperty(otherTank, _y); temp2X = _x; temp2Y = _y; hitOthers = false; } else { hitOthers = true; } otherTank._x = tempX; otherTank._y = tempY; _x = temp2X; _y = temp2Y; } x = _x; y = _y; var dir; var noscroll = 0; areaLimit(2); if (timer == 0) { AI = random(_parent._parent.npcAIP); timer = 30; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 25) && (AI < 50)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 50) && (AI < 75)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 75) && (AI < 100)) { x = x + speed; dir = "right"; _rotation = 90; } else if ((AI >= 100) && (AI < _parent._parent.npcAIP)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } HitTank(_root.wholemap.char); };
Symbol 112 MovieClip [tankMiddle] Frame 3
stop();
Symbol 112 MovieClip [tankMiddle] Frame 4
stop();
Symbol 115 MovieClip [tankBossB] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 300; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var shotSpeed = 18; var Ftimer = 0; var speed = 4; var hitOthers = false; var formLevel = 2; var shotOnceNum = 3;
Symbol 115 MovieClip [tankBossB] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 20; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if (Math.abs(x - destx) >= Math.abs(y - desty)) { if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } } else if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } else if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } } _x = x; _y = y; } stop(); this.onEnterFrame = function () { function HitTank(otherTank) { if (!hitTest(otherTank)) { tempX = getProperty(otherTank, _x); tempY = getProperty(otherTank, _y); temp2X = _x; temp2Y = _y; hitOthers = false; } else { hitOthers = true; } otherTank._x = tempX; otherTank._y = tempY; _x = temp2X; _y = temp2Y; } x = _x; y = _y; var dir; var noscroll = 0; if (timer == 0) { AI = random(_parent._parent.npcAIP); timer = 20; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 25) && (AI < 50)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 50) && (AI < 75)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 75) && (AI < 100)) { x = x + speed; dir = "right"; _rotation = 90; } else if ((AI >= 100) && (AI < _parent._parent.npcAIP)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } } if (_root.wholemap.shotBossB.shotSwitch == false) { _root.wholemap.shotBossB.shotSwitch = true; } else if (_root.wholemap.shotBossB2.shotSwitch == false) { _root.wholemap.shotBossB2.shotSwitch = true; } else if (_root.wholemap.shotBossB3.shotSwitch == false) { _root.wholemap.shotBossB3.shotSwitch = true; } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } if (formLevel == 1) { totalBlood = 500; } else if (formLevel == 2) { totalBlood = 1000; } else if (formLevel == 3) { totalBlood = 1500; } HitTank(_root.wholemap.char); };
Symbol 115 MovieClip [tankBossB] Frame 3
stop();
Symbol 115 MovieClip [tankBossB] Frame 4
stop();
Symbol 116 MovieClip [tankBossFinal] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 1200; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var shotSpeed = 18; var Ftimer = 0; var speed = 6; var hitOthers = false; var formLevel = 1; var shotOnceNum = 1;
Symbol 116 MovieClip [tankBossFinal] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 20; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if (Math.abs(x - destx) >= Math.abs(y - desty)) { if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } } else if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } else if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } } _x = x; _y = y; } stop(); this.onEnterFrame = function () { function HitTank(otherTank) { if (!hitTest(otherTank)) { tempX = getProperty(otherTank, _x); tempY = getProperty(otherTank, _y); temp2X = _x; temp2Y = _y; hitOthers = false; } else { hitOthers = true; } otherTank._x = tempX; otherTank._y = tempY; _x = temp2X; _y = temp2Y; } x = _x; y = _y; var dir; var noscroll = 0; if (timer == 0) { AI = random(500); timer = 10; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 25) && (AI < 50)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 50) && (AI < 75)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 75) && (AI < 100)) { x = x + speed; dir = "right"; _rotation = 90; } else if ((AI >= 100) && (AI < 500)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } } if (_root.wholemap.shotBossFinal.shotSwitch == false) { _root.wholemap.shotBossFinal.shotSwitch = true; } else if (_root.wholemap.shotBossFinal2.shotSwitch == false) { _root.wholemap.shotBossFinal2.shotSwitch = true; } else if (_root.wholemap.shotBossFinal3.shotSwitch == false) { _root.wholemap.shotBossFinal3.shotSwitch = true; } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } if (formLevel == 1) { totalBlood = 2000; } else if (formLevel == 2) { totalBlood = 1000; } else if (formLevel == 3) { totalBlood = 1500; } HitTank(_root.wholemap.char); };
Symbol 116 MovieClip [tankBossFinal] Frame 3
stop();
Symbol 116 MovieClip [tankBossFinal] Frame 4
stop();
Symbol 119 MovieClip [tankBossC] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 1200; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var shotSpeed = 18; var Ftimer = 0; var speed = 4; var hitOthers = false; var formLevel = 3; var shotOnceNum = 3;
Symbol 119 MovieClip [tankBossC] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 20; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if (Math.abs(x - destx) >= Math.abs(y - desty)) { if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } } else if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } else if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } } _x = x; _y = y; } stop(); this.onEnterFrame = function () { function HitTank(otherTank) { if (!hitTest(otherTank)) { tempX = getProperty(otherTank, _x); tempY = getProperty(otherTank, _y); temp2X = _x; temp2Y = _y; hitOthers = false; } else { hitOthers = true; } otherTank._x = tempX; otherTank._y = tempY; _x = temp2X; _y = temp2Y; } x = _x; y = _y; var dir; var noscroll = 0; if (timer == 0) { AI = random(_parent._parent.npcAIP); timer = 20; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 25) && (AI < 50)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 50) && (AI < 75)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 75) && (AI < 100)) { x = x + speed; dir = "right"; _rotation = 90; } else if ((AI >= 100) && (AI < _parent._parent.npcAIP)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } } if (_root.wholemap.shotBossC.shotSwitch == false) { _root.wholemap.shotBossC.shotSwitch = true; } else if (_root.wholemap.shotBossC2.shotSwitch == false) { _root.wholemap.shotBossC2.shotSwitch = true; } else if (_root.wholemap.shotBossC3.shotSwitch == false) { _root.wholemap.shotBossC3.shotSwitch = true; } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } if (formLevel == 1) { totalBlood = 500; } else if (formLevel == 2) { totalBlood = 1000; } else if (formLevel == 3) { totalBlood = 1500; } HitTank(_root.wholemap.char); };
Symbol 119 MovieClip [tankBossC] Frame 3
stop();
Symbol 119 MovieClip [tankBossC] Frame 4
stop();
Symbol 122 MovieClip [tankBoss] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 600; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var shotSpeed = 18; var Ftimer = 0; var speed = 4; var hitOthers = false; var formLevel = 3; var shotOnceNum = 3;
Symbol 122 MovieClip [tankBoss] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 20; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if (Math.abs(x - destx) >= Math.abs(y - desty)) { if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } } else if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } else if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } } _x = x; _y = y; } stop(); this.onEnterFrame = function () { function HitTank(otherTank) { if (!hitTest(otherTank)) { tempX = getProperty(otherTank, _x); tempY = getProperty(otherTank, _y); temp2X = _x; temp2Y = _y; hitOthers = false; } else { hitOthers = true; } otherTank._x = tempX; otherTank._y = tempY; _x = temp2X; _y = temp2Y; } x = _x; y = _y; var dir; var noscroll = 0; if (timer == 0) { AI = random(_parent._parent.npcAIP); timer = 20; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 25) && (AI < 50)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 50) && (AI < 75)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 75) && (AI < 100)) { x = x + speed; dir = "right"; _rotation = 90; } else if ((AI >= 100) && (AI < _parent._parent.npcAIP)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } } if (_root.wholemap.shotBoss.shotSwitch == false) { _root.wholemap.shotBoss.shotSwitch = true; } else if (_root.wholemap.shotBossA2.shotSwitch == false) { _root.wholemap.shotBossA2.shotSwitch = true; } else if (_root.wholemap.shotBossA3.shotSwitch == false) { _root.wholemap.shotBossA3.shotSwitch = true; } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } if (formLevel == 1) { totalBlood = 500; } else if (formLevel == 2) { totalBlood = 1000; } else if (formLevel == 3) { totalBlood = 1500; } HitTank(_root.wholemap.char); };
Symbol 122 MovieClip [tankBoss] Frame 3
stop();
Symbol 122 MovieClip [tankBoss] Frame 4
stop();
Symbol 123 MovieClip [tankEnemy] Frame 1
var timer = 0; var bloodTimer = 0; var totalBlood = 150; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var shotSpeed = 18; var Ftimer = 0; var speed = 3; var hitOthers = false;
Symbol 123 MovieClip [tankEnemy] Frame 2
function findAim(destx, desty) { if (Ftimer == 0) { Ftimer = 30; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if (Math.abs(x - destx) >= Math.abs(y - desty)) { if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } } else if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - speed; _rotation = -90; } else if (turnRight == true) { x = x + speed; _rotation = 90; } else if (turnUp == true) { y = y - speed; _rotation = 0; } else if (turnDown == true) { y = y + speed; _rotation = 180; } } _x = x; _y = y; } stop(); this.onEnterFrame = function () { function HitTank(otherTank) { if (!hitTest(otherTank)) { tempX = getProperty(otherTank, _x); tempY = getProperty(otherTank, _y); temp2X = _x; temp2Y = _y; hitOthers = false; } else { hitOthers = true; } otherTank._x = tempX; otherTank._y = tempY; _x = temp2X; _y = temp2Y; } x = _x; y = _y; var dir; var noscroll = 0; if (timer == 0) { AI = random(_parent._parent.npcAIP); timer = 30; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 25) && (AI < 50)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 50) && (AI < 75)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 75) && (AI < 100)) { x = x + speed; dir = "right"; _rotation = 90; } else if ((AI >= 100) && (AI < _parent._parent.npcAIP)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (4); alive = false; if (Dead._currentframe == 9) { aliveAfter = false; } } else { if ((bloodTimer > 0) && ((nowBlood - tempBlood) < 0)) { gotoAndStop (3); bloodTimer--; } else { gotoAndStop (2); } if (bloodTimer == 0) { tempBlood = nowBlood; bloodTimer = 8; } } HitTank(_root.wholemap.char); };
Symbol 123 MovieClip [tankEnemy] Frame 3
stop();
Symbol 123 MovieClip [tankEnemy] Frame 4
stop();
Symbol 125 MovieClip [slugE1] Frame 1
stop(); var shotOut = false; var noHit = true; var shotTimer = 24; var shotX = _x; var shotY = _y; var shotSpeed = 12; var Power = 10; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, shotSwitch) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (shotSwitch && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if (((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if (((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if (((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if (((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if (noHit == false) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else { gotoAndStop (1); } } function HitTank(otherTank, myTank) { if (_currentframe == 1) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } tankShot(_root.wholemap.tankE1, true); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankE1); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankE1); };
Symbol 125 MovieClip [slugE1] Frame 2
stop();
Symbol 126 MovieClip [slug] Frame 1
stop(); var shotOut = false; var noHit = true; var shotTimer = 24; var shotX = _x; var shotY = _y; var shotSpeed = 12; var Power = 10; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, shotSwitch) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (shotSwitch && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if (((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if (((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if (((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if (((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if (noHit == false) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else { gotoAndStop (1); } } function HitTank(otherTank, myTank) { if (_currentframe == 1) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } tankShot(_root.wholemap.man, true); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.man); } HitTank(_root.wholemap.HLPourside, _root.wholemap.man); };
Symbol 126 MovieClip [slug] Frame 2
stop();
Symbol 129 MovieClip [HLP-shot-ourside] Frame 1
function findAim(destx, desty) { var Fspeed = 18; if ((x - destx) > 0) { x = x - Fspeed; } else if ((x - destx) < 0) { x = x + Fspeed; } if ((y - desty) > 0) { y = y - Fspeed; } else if ((y - desty) < 0) { y = y + Fspeed; } _x = x; _y = y; } stop(); var shotOut = false; var noHit = true; var shotTimer = 8; var shotX = _x; var shotY = _y; var shotSpeed = 18; var Power = 80; se_snd = new Sound(); se_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, shotSwitch) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if ((myTank._rotation >= -45) && (myTank._rotation < 45)) { shotDir = "up"; _rotation = 0; } else if ((myTank._rotation >= 135) && (myTank._rotation < 225)) { shotDir = "down"; _rotation = 180; } else if ((myTank._rotation >= -135) && (myTank._rotation < -45)) { shotDir = "left"; _rotation = -90; } else if ((myTank._rotation >= 45) && (myTank._rotation < 135)) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (shotSwitch && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if (((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < 48)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if (((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < 48)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if (((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < 48)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if (((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < 48)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if (noHit == false) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else { gotoAndStop (1); } } function HitTank(otherTank, myTank) { if (_currentframe == 1) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se_snd.start(); } } } } tankShot(_root.wholemap.HLPourside, true); HitTank(_root.wholemap.tankEnemy, _root.wholemap.HLPourside); HitTank(_root.wholemap.tankE1, _root.wholemap.HLPourside); HitTank(_root.wholemap.tankE2, _root.wholemap.HLPourside); HitTank(_root.wholemap.tankBoss, _root.wholemap.HLPourside); HitTank(_root.wholemap.tankBossB, _root.wholemap.HLPourside); HitTank(_root.wholemap.tankBossC, _root.wholemap.HLPourside); HitTank(_root.wholemap.tankBossFinal, _root.wholemap.HLPourside); HitTank(_root.wholemap.tankSmall, _root.wholemap.HLPourside); HitTank(_root.wholemap.tankMiddle, _root.wholemap.HLPourside); HitTank(_root.wholemap.man, _root.wholemap.HLPourside); HitTank(_root.wholemap.helicopter, _root.wholemap.HLPourside); HitTank(_root.wholemap.helicopterB, _root.wholemap.HLPourside); HitTank(_root.wholemap.helicopterC, _root.wholemap.HLPourside); };
Symbol 129 MovieClip [HLP-shot-ourside] Frame 2
stop();
Symbol 130 MovieClip [HLP-shotC] Frame 1
function findAim(destx, desty) { var Fspeed = 6; if ((x - destx) > 0) { x = x - Fspeed; } else if ((x - destx) < 0) { x = x + Fspeed; } if ((y - desty) > 0) { y = y - Fspeed; } else if ((y - desty) < 0) { y = y + Fspeed; } _x = x; _y = y; } stop(); var shotOut = false; var noHit = true; var shotTimer = 8; var shotX = _x; var shotY = _y; var shotSpeed = 18; var Power = 80; se_snd = new Sound(); se_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, shotSwitch) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if ((myTank._rotation >= -45) && (myTank._rotation < 45)) { shotDir = "up"; _rotation = 0; } else if ((myTank._rotation >= 135) && (myTank._rotation < 225)) { shotDir = "down"; _rotation = 180; } else if ((myTank._rotation >= -135) && (myTank._rotation < -45)) { shotDir = "left"; _rotation = -90; } else if ((myTank._rotation >= 45) && (myTank._rotation < 135)) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (shotSwitch && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if (((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < 48)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if (((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < 48)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if (((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < 48)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if (((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < 48)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if (noHit == false) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else { gotoAndStop (1); } } function HitTank(otherTank, myTank) { if (_currentframe == 1) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se_snd.start(); } } } } tankShot(_root.wholemap.helicopterC, true); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.helicopterC); } HitTank(_root.wholemap.HLPourside, _root.wholemap.helicopterC); };
Symbol 130 MovieClip [HLP-shotC] Frame 2
stop();
Symbol 131 MovieClip [HLP-shotB] Frame 1
function findAim(destx, desty) { var Fspeed = 6; if ((x - destx) > 0) { x = x - Fspeed; } else if ((x - destx) < 0) { x = x + Fspeed; } if ((y - desty) > 0) { y = y - Fspeed; } else if ((y - desty) < 0) { y = y + Fspeed; } _x = x; _y = y; } stop(); var shotOut = false; var noHit = true; var shotTimer = 8; var shotX = _x; var shotY = _y; var shotSpeed = 18; var Power = 80; se_snd = new Sound(); se_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, shotSwitch) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if ((myTank._rotation >= -45) && (myTank._rotation < 45)) { shotDir = "up"; _rotation = 0; } else if ((myTank._rotation >= 135) && (myTank._rotation < 225)) { shotDir = "down"; _rotation = 180; } else if ((myTank._rotation >= -135) && (myTank._rotation < -45)) { shotDir = "left"; _rotation = -90; } else if ((myTank._rotation >= 45) && (myTank._rotation < 135)) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (shotSwitch && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if (((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < 48)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if (((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < 48)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if (((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < 48)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if (((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < 48)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if (noHit == false) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else { gotoAndStop (1); } } function HitTank(otherTank, myTank) { if (_currentframe == 1) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se_snd.start(); } } } } tankShot(_root.wholemap.helicopterB, true); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.helicopterB); } HitTank(_root.wholemap.HLPourside, _root.wholemap.helicopterB); };
Symbol 131 MovieClip [HLP-shotB] Frame 2
stop();
Symbol 132 MovieClip [HLP-shot] Frame 1
function findAim(destx, desty) { var Fspeed = 6; if ((x - destx) > 0) { x = x - Fspeed; } else if ((x - destx) < 0) { x = x + Fspeed; } if ((y - desty) > 0) { y = y - Fspeed; } else if ((y - desty) < 0) { y = y + Fspeed; } _x = x; _y = y; } stop(); var shotOut = false; var noHit = true; var shotTimer = 8; var shotX = _x; var shotY = _y; var shotSpeed = 18; var Power = 80; se_snd = new Sound(); se_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, shotSwitch) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if ((myTank._rotation >= -45) && (myTank._rotation < 45)) { shotDir = "up"; _rotation = 0; } else if ((myTank._rotation >= 135) && (myTank._rotation < 225)) { shotDir = "down"; _rotation = 180; } else if ((myTank._rotation >= -135) && (myTank._rotation < -45)) { shotDir = "left"; _rotation = -90; } else if ((myTank._rotation >= 45) && (myTank._rotation < 135)) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (shotSwitch && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if (((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < 48)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if (((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < 48)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if (((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < 48)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if (((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < 48)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] > 47)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else if (noHit == false) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 8; } } else { gotoAndStop (1); } } function HitTank(otherTank, myTank) { if (_currentframe == 1) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se_snd.start(); } } } } tankShot(_root.wholemap.helicopter, true); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.helicopter); } HitTank(_root.wholemap.HLPourside, _root.wholemap.helicopter); };
Symbol 132 MovieClip [HLP-shot] Frame 2
stop();
Symbol 134 MovieClip [shot-tankE2] Frame 1
stop(); var shotOut = false; var noHit = true; var shotTimer = 24; var shotSpeed = 12; var shotX = _x; var shotY = _y; var Power = 20; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, shotSwitch) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (shotSwitch && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if (((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if (((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if (((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if (((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if (noHit == false) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else { gotoAndStop (1); } } function HitTank(otherTank, myTank) { if (_currentframe == 1) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } tankShot(_root.wholemap.tankE2, true); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankE2); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankE2); };
Symbol 134 MovieClip [shot-tankE2] Frame 2
stop();
Symbol 136 MovieClip [shot-tankSmall] Frame 1
stop(); var shotOut = false; var noHit = true; var shotTimer = 24; var shotSpeed = 12; var shotX = _x; var shotY = _y; var Power = 20; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, shotSwitch) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (shotSwitch && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if (((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if (((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if (((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if (((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if (noHit == false) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else { gotoAndStop (1); } } function HitTank(otherTank, myTank) { if (_currentframe == 1) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } tankShot(_root.wholemap.tankSmall, true); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankSmall); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankSmall); };
Symbol 136 MovieClip [shot-tankSmall] Frame 2
stop();
Symbol 138 MovieClip [shot-tankMiddle] Frame 1
stop(); var shotOut = false; var noHit = true; var shotTimer = 24; var shotSpeed = 12; var shotX = _x; var shotY = _y; var Power = 25; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, shotSwitch) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (shotSwitch && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if (((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if (((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if (((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if (((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if (noHit == false) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else { gotoAndStop (1); } } function HitTank(otherTank, myTank) { if (_currentframe == 1) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } tankShot(_root.wholemap.tankMiddle, true); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankMiddle); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankMiddle); };
Symbol 138 MovieClip [shot-tankMiddle] Frame 2
stop();
Symbol 139 MovieClip [shot2] Frame 1
stop(); var shotOut = false; var noHit = true; var seTimer = 0; var shotTimer = 24; var shotSpeed = 18; var shotX = _x; var shotY = _y; var Power = 50; se1_snd = new Sound(); se1_snd.attachSound("daodi"); this.onEnterFrame = function () { function tankShot(myTank, shotSwitch) { var shotcenterX = Math.floor(shotX / _parent._parent.tileW); var shotcenterY = Math.floor(shotY / _parent._parent.tileH); var shotupY = Math.floor((shotY - (_height / 2)) / _parent._parent.tileH); var shotdownY = Math.floor(((shotY + (_height / 2)) - 1) / _parent._parent.tileH); var shotleftX = Math.floor((shotX - (_width / 2)) / _parent._parent.tileW); var shotrightX = Math.floor(((shotX + (_width / 2)) - 1) / _parent._parent.tileW); if (shotOut == true) { _visible = true; } else if (shotOut == false) { _visible = false; if (myTank._rotation == 0) { shotDir = "up"; _rotation = 0; } else if (myTank._rotation == 180) { shotDir = "down"; _rotation = 180; } else if (myTank._rotation == -90) { shotDir = "left"; _rotation = -90; } else if (myTank._rotation == 90) { shotDir = "right"; _rotation = 90; } shotX = myTank._x; shotY = myTank._y; } if (myTank.alive == true) { if (shotSwitch && (shotOut == false)) { shotOut = true; noHit = true; } if (shotTimer > 0) { shotTimer--; } if (shotTimer == 0) { noHit = false; } } _x = shotX; _y = shotY; if (((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY - shotSpeed; } else if (((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] < _parent._parent.notPassTile)) && (noHit == true)) { shotY = shotY + shotSpeed; } else if (((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX - shotSpeed; } else if (((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] < _parent._parent.notPassTile)) && (noHit == true)) { shotX = shotX + shotSpeed; } if ((shotDir == "up") && (_parent._parent.myMap[shotupY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "down") && (_parent._parent.myMap[shotdownY][shotcenterX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "left") && (_parent._parent.myMap[shotcenterY][shotleftX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if ((shotDir == "right") && (_parent._parent.myMap[shotcenterY][shotrightX] >= _parent._parent.notPassTile)) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else if (noHit == false) { gotoAndStop (2); if (xiaoshi._currentframe == 6) { shotOut = false; shotTimer = 24; } } else { gotoAndStop (1); } } function HitTank(otherTank, myTank) { if (_currentframe == 1) { if (hitTest(otherTank)) { noHit = false; if ((myTank.alive == true) && (otherTank.alive == true)) { otherTank.nowBlood = otherTank.nowBlood - Power; se1_snd.start(); } } } } tankShot(_root.wholemap.tankEnemy, true); if (_root.wholemap.char.cannotHurt == false) { HitTank(_root.wholemap.char, _root.wholemap.tankEnemy); } HitTank(_root.wholemap.HLPourside, _root.wholemap.tankEnemy); };
Symbol 139 MovieClip [shot2] Frame 2
stop();
Symbol 164 MovieClip Frame 35
stop();
Symbol 165 MovieClip [man] Frame 1
function findAim(destx, desty) { var Fspeed = 2; if (Ftimer == 0) { Ftimer = 30; turnLeft = false; turnRight = false; turnUp = false; turnDown = false; if (Math.abs(x - destx) >= Math.abs(y - desty)) { if ((x - destx) > 0) { turnLeft = true; } else if ((x - destx) < 0) { turnRight = true; } } else if ((y - desty) > 0) { turnUp = true; } else if ((y - desty) < 0) { turnDown = true; } } if (Ftimer > 0) { Ftimer--; if (turnLeft == true) { x = x - Fspeed; _rotation = -90; } else if (turnRight == true) { x = x + Fspeed; _rotation = 90; } else if (turnUp == true) { y = y - Fspeed; _rotation = 0; } else if (turnDown == true) { y = y + Fspeed; _rotation = 180; } } _x = x; _y = y; } function areaLimit(Limit) { if (x <= (_parent._parent.tileW * Limit)) { x = _parent._parent.tileW * Limit; } else if (x >= (_parent._parent.tileW * (_parent._parent.myMap[0].length - Limit))) { x = _parent._parent.tileW * (_parent._parent.myMap[0].length - Limit); } if (y <= (_parent._parent.tileH * Limit)) { y = _parent._parent.tileH * Limit; } else if (y >= (_parent._parent.tileH * (_parent._parent.myMap.length - Limit))) { y = _parent._parent.tileH * (_parent._parent.myMap.length - Limit); } } stop(); var timer = 0; var totalBlood = 10; var nowBlood = totalBlood; var alive = true; var aliveAfter = true; var Ftimer = 0; var speed = 2; this.onEnterFrame = function () { function HitPassable(otherTank) { if (hitTest(otherTank)) { if (otherTank.alive == true) { nowBlood = 0; if (alive == true) { _parent._parent.score = _parent._parent.score + 50; } } } } shotSpeed = 10; x = _x; y = _y; var dir; var noscroll = 0; areaLimit(2); if (timer == 0) { AI = random(_parent._parent.npcAIP); timer = 30; } if (timer > 0) { timer--; } if (alive == true) { if ((AI >= 0) && (AI < 25)) { y = y - speed; dir = "up"; _rotation = 0; } else if ((AI >= 25) && (AI < 50)) { y = y + speed; dir = "down"; _rotation = 180; } else if ((AI >= 50) && (AI < 75)) { x = x - speed; dir = "left"; _rotation = -90; } else if ((AI >= 75) && (AI < 100)) { x = x + speed; dir = "right"; _rotation = 90; } else if ((AI >= 100) && (AI < _parent._parent.npcAIP)) { findAim(_root.wholemap.char._x, _root.wholemap.char._y); } } var centerX = Math.floor(x / _parent._parent.tileW); var centerY = Math.floor(y / _parent._parent.tileH); var upY = Math.floor((y - (_height / 2)) / _parent._parent.tileH); var downY = Math.floor(((y + (_height / 2)) - 1) / _parent._parent.tileH); var leftX = Math.floor((x - (_width / 2)) / _parent._parent.tileW); var rightX = Math.floor(((x + (_width / 2)) - 1) / _parent._parent.tileW); if ((_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { y = y + speed; _rotation = 180; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile)) { y = y - speed; _rotation = 0; } if ((_parent._parent.myMap[downY][leftX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][leftX] > _parent._parent.canPassTile)) { x = x + speed; _rotation = 90; } if ((_parent._parent.myMap[downY][rightX] > _parent._parent.canPassTile) || (_parent._parent.myMap[upY][rightX] > _parent._parent.canPassTile)) { x = x - speed; _rotation = -90; } _x = x; _y = y; if (nowBlood <= 0) { nowBlood = 0; gotoAndStop (2); alive = false; if (Dead._currentframe == 35) { aliveAfter = false; } } HitPassable(_root.wholemap.char); };
Symbol 165 MovieClip [man] Frame 2
stop();
Symbol 168 MovieClip [medicalBox] Frame 1
var hasLoaded = false; var Effect = 200; se_snd = new Sound(); se_snd.attachSound("se_g008"); this.onEnterFrame = function () { function itemLoaded(myTank) { if (hitTest(myTank) && (hasLoaded == false)) { if ((myTank.nowBlood + Effect) >= myTank.totalBlood) { myTank.nowBlood = myTank.nowBlood + (myTank.totalBlood - myTank.nowBlood); } else { myTank.nowBlood = myTank.nowBlood + Effect; } _parent._parent.score = _parent._parent.score + 300; se_snd.start(); hasLoaded = true; } } itemLoaded(_root.wholemap.char); if (hasLoaded == true) { removeMovieClip(this); } };
Symbol 171 MovieClip [addShotNum] Frame 1
var hasLoaded = false; se_snd = new Sound(); se_snd.attachSound("se_g008"); this.onEnterFrame = function () { function itemLoaded(myTank) { if (hitTest(myTank) && (hasLoaded == false)) { if (myTank.shotOnceNum < 3) { myTank.shotOnceNum++; _parent._parent.score = _parent._parent.score + 300; } _parent._parent.score = _parent._parent.score + 300; se_snd.start(); hasLoaded = true; } } itemLoaded(_root.wholemap.char); if (hasLoaded == true) { removeMovieClip(this); } };
Symbol 173 MovieClip [addLifeNum] Frame 1
var hasLoaded = false; se_snd = new Sound(); se_snd.attachSound("se_g008"); this.onEnterFrame = function () { function itemLoaded(myTank) { if (hitTest(myTank) && (hasLoaded == false)) { _parent._parent.charNum++; _parent._parent.score = _parent._parent.score + 300; se_snd.start(); hasLoaded = true; } } itemLoaded(_root.wholemap.char); if (hasLoaded == true) { removeMovieClip(this); } };
Symbol 176 MovieClip [powerBox] Frame 1
var hasLoaded = false; se_snd = new Sound(); se_snd.attachSound("se_g008"); this.onEnterFrame = function () { function itemLoaded(myTank) { if (hitTest(myTank) && (hasLoaded == false)) { if (myTank.formLevel < 4) { myTank.formLevel++; } _parent._parent.score = _parent._parent.score + 300; se_snd.start(); hasLoaded = true; } } itemLoaded(_root.wholemap.char); if (hasLoaded == true) { removeMovieClip(this); } };
Symbol 181 MovieClip [callHLP] Frame 1
var hasLoaded = false; se_snd = new Sound(); se_snd.attachSound("se_g008"); this.onEnterFrame = function () { function itemLoaded(myTank) { if (hitTest(myTank) && (hasLoaded == false)) { _root.HLPoursideNum++; _parent._parent.score = _parent._parent.score + 300; se_snd.start(); hasLoaded = true; } } itemLoaded(_root.wholemap.char); if (hasLoaded == true) { removeMovieClip(this); } };
Symbol 207 Button
on (release) { gotoAndStop (184); }
Symbol 215 Button
on (release) { nextFrame(); }
Symbol 220 Button
on (release) { _global.versionCode = "Chinese"; gotoAndStop (184); }
Symbol 225 Button
on (release) { _global.versionCode = "English"; gotoAndStop (184); }
Symbol 253 Button
on (release) { nextFrame(); }
Symbol 258 Button
on (release) { gotoAndStop (1); }
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 278 Button
on (release) { gotoAndStop (1); }
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 2
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 283 Button
on (release) { gotoAndStop (185); }
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 3
stop();
Symbol 303 MovieClip Frame 72
stop();
Symbol 305 MovieClip Frame 1
var formLevelSave = 1; var shotOnceNumSave = 1; var stageNum = 1; this.onEnterFrame = function () { function getCharData(myTank) { if (stageNum == _parent.stage) { if (myTank.alive == true) { formLevelSave = myTank.formLevel; shotOnceNumSave = myTank.shotOnceNum; } else { formLevelSave = 1; shotOnceNumSave = 1; } } } getCharData(_parent.wholemap.char); };
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 2
stop(); score = _parent.score;
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 316 MovieClip Frame 3
stop();
Symbol 316 MovieClip Frame 4
stop();
Symbol 334 Button
on (release) { getURL ("http://victboy.yeah.net"); }
Symbol 335 MovieClip Frame 20
stop();
Symbol 342 MovieClip Frame 20
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
stop();
Symbol 348 Button
on (release) { gotoAndPlay (185); }

Library Items

Symbol 1 Sound [se_i008]
Symbol 2 Sound [se_g008]
Symbol 3 Sound [daodi]
Symbol 4 GraphicUsed by:8
Symbol 5 ShapeTweeningUsed by:7
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:5 6Used by:8 10 125 126 134 136 138 139
Symbol 8 MovieClip [shot-form1]Uses:4 7Used by:24 25 26 27 28 29 30 31 32 33 34 35 36
Symbol 9 GraphicUsed by:10 22 139
Symbol 10 MovieClip [shot-form2]Uses:9 7Used by:24 25 26 27 28 29 30 31 32 33 34 35 36
Symbol 11 ShapeTweeningUsed by:14
Symbol 12 ShapeTweeningUsed by:14
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:11 12 13Used by:16 128
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:14 15Used by:21
Symbol 17 ShapeTweeningUsed by:20
Symbol 18 ShapeTweeningUsed by:20
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:17 18 19Used by:21 23 129 130 131 132
Symbol 21 MovieClip [shot-form3]Uses:16 20Used by:23 25 26 27 29 30 31 34 35 36
Symbol 22 MovieClipUses:9Used by:23
Symbol 23 MovieClipUses:21 22 20Used by:24 27 28 31 32 33 36
Symbol 24 MovieClip [shotBossC3]Uses:8 10 23
Symbol 25 MovieClip [shotBossB3]Uses:8 10 21
Symbol 26 MovieClip [shotBossA3]Uses:8 10 21
Symbol 27 MovieClip [shotA3]Uses:8 10 21 23
Symbol 28 MovieClip [shotBossC2]Uses:8 10 23
Symbol 29 MovieClip [shotBossB2]Uses:8 10 21
Symbol 30 MovieClip [shotBossA2]Uses:8 10 21
Symbol 31 MovieClip [shotA2]Uses:8 10 21 23
Symbol 32 MovieClip [shotBossFinal]Uses:8 10 23
Symbol 33 MovieClip [shotBossC]Uses:8 10 23
Symbol 34 MovieClip [shotBossB]Uses:8 10 21
Symbol 35 MovieClip [shotBoss]Uses:8 10 21
Symbol 36 MovieClip [shot]Uses:8 10 21 23
Symbol 37 GraphicUsed by:66
Symbol 38 GraphicUsed by:66
Symbol 39 GraphicUsed by:66
Symbol 40 GraphicUsed by:66
Symbol 41 GraphicUsed by:66
Symbol 42 GraphicUsed by:66
Symbol 43 GraphicUsed by:66
Symbol 44 GraphicUsed by:66
Symbol 45 GraphicUsed by:66
Symbol 46 GraphicUsed by:66
Symbol 47 GraphicUsed by:66
Symbol 48 GraphicUsed by:66
Symbol 49 GraphicUsed by:66
Symbol 50 GraphicUsed by:66
Symbol 51 GraphicUsed by:66
Symbol 52 GraphicUsed by:66
Symbol 53 GraphicUsed by:66
Symbol 54 GraphicUsed by:66
Symbol 55 GraphicUsed by:66
Symbol 56 GraphicUsed by:66
Symbol 57 GraphicUsed by:66
Symbol 58 GraphicUsed by:66
Symbol 59 GraphicUsed by:66
Symbol 60 GraphicUsed by:66
Symbol 61 GraphicUsed by:66
Symbol 62 GraphicUsed by:66
Symbol 63 GraphicUsed by:66
Symbol 64 GraphicUsed by:66
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClip [tile]Uses:37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
Symbol 67 GraphicUsed by:71
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:71
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:67 69 70Used by:73 81 84 87 111 114 118 121
Symbol 72 GraphicUsed by:73
Symbol 73 MovieClipUses:71 72Used by:79 116 172
Symbol 74 ShapeTweeningUsed by:78
Symbol 75 SoundUsed by:78
Symbol 76 ShapeTweeningUsed by:78
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClipUses:74 75 76 77Used by:79 82 85 88 96 97 98 99 102 105 108 112 115 116 119 122 123
Symbol 79 MovieClipUses:73 78Used by:89
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClipUses:71 80Used by:82
Symbol 82 MovieClipUses:81 78Used by:89
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClipUses:71 83Used by:85
Symbol 85 MovieClipUses:84 78Used by:89
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:71 86Used by:88
Symbol 88 MovieClipUses:87 78Used by:89
Symbol 89 MovieClip [char]Uses:79 82 85 88
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClipUses:90Used by:95
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClipUses:92Used by:94
Symbol 94 MovieClipUses:93Used by:95
Symbol 95 MovieClipUses:91 94Used by:96 97 98 99
Symbol 96 MovieClip [HLPourside]Uses:95 78
Symbol 97 MovieClip [helicopterC]Uses:95 78
Symbol 98 MovieClip [helicopterB]Uses:95 78
Symbol 99 MovieClip [helicopter]Uses:95 78
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClipUses:100Used by:102
Symbol 102 MovieClip [tankSmall]Uses:101 78
Symbol 103 GraphicUsed by:104
Symbol 104 MovieClipUses:103Used by:105
Symbol 105 MovieClip [tankE2]Uses:104 78
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses:106Used by:108
Symbol 108 MovieClip [tankE1]Uses:107 78
Symbol 109 GraphicUsed by:111
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClipUses:109 71 110Used by:112
Symbol 112 MovieClip [tankMiddle]Uses:111 78
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:71 113Used by:115 123
Symbol 115 MovieClip [tankBossB]Uses:114 78
Symbol 116 MovieClip [tankBossFinal]Uses:73 78
Symbol 117 GraphicUsed by:118
Symbol 118 MovieClipUses:71 117Used by:119
Symbol 119 MovieClip [tankBossC]Uses:118 78
Symbol 120 GraphicUsed by:121
Symbol 121 MovieClipUses:71 120Used by:122
Symbol 122 MovieClip [tankBoss]Uses:121 78
Symbol 123 MovieClip [tankEnemy]Uses:114 78
Symbol 124 GraphicUsed by:125 126 312
Symbol 125 MovieClip [slugE1]Uses:124 7
Symbol 126 MovieClip [slug]Uses:124 7
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClipUses:14 127Used by:129 130 131 132
Symbol 129 MovieClip [HLP-shot-ourside]Uses:128 20
Symbol 130 MovieClip [HLP-shotC]Uses:128 20
Symbol 131 MovieClip [HLP-shotB]Uses:128 20
Symbol 132 MovieClip [HLP-shot]Uses:128 20
Symbol 133 GraphicUsed by:134
Symbol 134 MovieClip [shot-tankE2]Uses:133 7
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClip [shot-tankSmall]Uses:135 7
Symbol 137 GraphicUsed by:138
Symbol 138 MovieClip [shot-tankMiddle]Uses:137 7
Symbol 139 MovieClip [shot2]Uses:9 7
Symbol 140 ShapeTweeningUsed by:155
Symbol 141 ShapeTweeningUsed by:155
Symbol 142 ShapeTweeningUsed by:155
Symbol 143 ShapeTweeningUsed by:155
Symbol 144 ShapeTweeningUsed by:155
Symbol 145 ShapeTweeningUsed by:155
Symbol 146 ShapeTweeningUsed by:155
Symbol 147 ShapeTweeningUsed by:155
Symbol 148 ShapeTweeningUsed by:155
Symbol 149 ShapeTweeningUsed by:155
Symbol 150 ShapeTweeningUsed by:155
Symbol 151 ShapeTweeningUsed by:155
Symbol 152 ShapeTweeningUsed by:155
Symbol 153 ShapeTweeningUsed by:155
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClipUses:140 141 142 143 144 145 146 147 148 149 150 151 152 153 154Used by:165
Symbol 156 ShapeTweeningUsed by:164
Symbol 157 ShapeTweeningUsed by:164
Symbol 158 ShapeTweeningUsed by:164
Symbol 159 ShapeTweeningUsed by:164
Symbol 160 ShapeTweeningUsed by:164
Symbol 161 ShapeTweeningUsed by:164
Symbol 162 ShapeTweeningUsed by:164
Symbol 163 GraphicUsed by:164
Symbol 164 MovieClipUses:156 157 158 159 160 161 162 163Used by:165
Symbol 165 MovieClip [man]Uses:155 164
Symbol 166 GraphicUsed by:167
Symbol 167 MovieClipUses:166Used by:168 259 279
Symbol 168 MovieClip [medicalBox]Uses:167
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:169Used by:171 259 279
Symbol 171 MovieClip [addShotNum]Uses:170
Symbol 172 MovieClipUses:73Used by:173 259 279
Symbol 173 MovieClip [addLifeNum]Uses:172
Symbol 174 GraphicUsed by:175
Symbol 175 MovieClipUses:174Used by:176 259 279
Symbol 176 MovieClip [powerBox]Uses:175
Symbol 177 GraphicUsed by:180  Timeline
Symbol 178 ShapeTweeningUsed by:180
Symbol 179 GraphicUsed by:180
Symbol 180 MovieClipUses:177 178 179Used by:181 259 279
Symbol 181 MovieClip [callHLP]Uses:180
Symbol 182 GraphicUsed by:186
Symbol 183 GraphicUsed by:186
Symbol 184 GraphicUsed by:186
Symbol 185 GraphicUsed by:186
Symbol 186 MovieClipUses:182 183 184 185Used by:189
Symbol 187 FontUsed by:188 194 217 222 224 250 252 256 257 261 268 274 276 281 282 306 317 318 329 330 331 332 333 337 338 339 340 341 345 347
Symbol 188 TextUses:187Used by:189
Symbol 189 MovieClip [a]Uses:186 188Used by:Timeline
Symbol 190 GraphicUsed by:191
Symbol 191 MovieClipUses:190Used by:Timeline
Symbol 192 GraphicUsed by:193
Symbol 193 MovieClipUses:192Used by:335 342  Timeline
Symbol 194 TextUses:187Used by:195
Symbol 195 MovieClipUses:194Used by:Timeline
Symbol 196 GraphicUsed by:Timeline
Symbol 197 GraphicUsed by:201  Timeline
Symbol 198 GraphicUsed by:201
Symbol 199 GraphicUsed by:201
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClipUses:197 198 199 200Used by:Timeline
Symbol 202 GraphicUsed by:Timeline
Symbol 203 FontUsed by:204
Symbol 204 TextUses:203Used by:205 207 215
Symbol 205 MovieClipUses:204Used by:207 215
Symbol 206 GraphicUsed by:207 215 334
Symbol 207 ButtonUses:205 206 204Used by:Timeline
Symbol 208 GraphicUsed by:214
Symbol 209 GraphicUsed by:214
Symbol 210 GraphicUsed by:214
Symbol 211 ShapeTweeningUsed by:214
Symbol 212 GraphicUsed by:214
Symbol 213 ShapeTweeningUsed by:214
Symbol 214 MovieClipUses:208 209 210 211 212 213Used by:Timeline
Symbol 215 ButtonUses:205 206 204Used by:Timeline
Symbol 216 GraphicUsed by:Timeline
Symbol 217 TextUses:187Used by:Timeline
Symbol 218 GraphicUsed by:220
Symbol 219 GraphicUsed by:220
Symbol 220 ButtonUses:218 219Used by:Timeline
Symbol 221 GraphicUsed by:225 253 258 278 283
Symbol 222 TextUses:187Used by:225
Symbol 223 GraphicUsed by:225
Symbol 224 TextUses:187Used by:225
Symbol 225 ButtonUses:221 222 223 224Used by:Timeline
Symbol 226 GraphicUsed by:Timeline
Symbol 227 GraphicUsed by:259
Symbol 228 FontUsed by:229 230 231 232 233 234 243 244 245 246 247 255 262 263 264 265 266 267 269 270 271 272 273 277
Symbol 229 TextUses:228Used by:259
Symbol 230 TextUses:228Used by:259
Symbol 231 TextUses:228Used by:259
Symbol 232 TextUses:228Used by:259
Symbol 233 TextUses:228Used by:259
Symbol 234 TextUses:228Used by:259
Symbol 235 GraphicUsed by:259 279
Symbol 236 FontUsed by:237 238 239 240 241 242
Symbol 237 TextUses:236Used by:259 279
Symbol 238 TextUses:236Used by:259 279
Symbol 239 TextUses:236Used by:259 279
Symbol 240 TextUses:236Used by:259 279
Symbol 241 TextUses:236Used by:259 279
Symbol 242 TextUses:236Used by:259 279
Symbol 243 TextUses:228Used by:259
Symbol 244 TextUses:228Used by:259
Symbol 245 TextUses:228Used by:259
Symbol 246 TextUses:228Used by:259
Symbol 247 TextUses:228Used by:259
Symbol 248 GraphicUsed by:259 279
Symbol 249 GraphicUsed by:259
Symbol 250 TextUses:187Used by:253
Symbol 251 GraphicUsed by:253 258 278 283
Symbol 252 TextUses:187Used by:253
Symbol 253 ButtonUses:221 250 251 252Used by:259 279
Symbol 254 GraphicUsed by:259
Symbol 255 TextUses:228Used by:259
Symbol 256 TextUses:187Used by:258 278
Symbol 257 TextUses:187Used by:258 278
Symbol 258 ButtonUses:221 256 251 257Used by:259
Symbol 259 MovieClipUses:227 229 230 231 232 233 234 235 237 238 239 240 241 242 172 170 180 167 175 243 244 245 246 247 248 249 253 254 255 258Used by:280
Symbol 260 GraphicUsed by:279
Symbol 261 TextUses:187Used by:279
Symbol 262 TextUses:228Used by:279
Symbol 263 TextUses:228Used by:279
Symbol 264 TextUses:228Used by:279
Symbol 265 TextUses:228Used by:279
Symbol 266 TextUses:228Used by:279
Symbol 267 TextUses:228Used by:279
Symbol 268 TextUses:187Used by:279
Symbol 269 TextUses:228Used by:279
Symbol 270 TextUses:228Used by:279
Symbol 271 TextUses:228Used by:279
Symbol 272 TextUses:228Used by:279
Symbol 273 TextUses:228Used by:279
Symbol 274 TextUses:187Used by:279
Symbol 275 GraphicUsed by:279
Symbol 276 TextUses:187Used by:279
Symbol 277 TextUses:228Used by:279
Symbol 278 ButtonUses:221 256 251 257Used by:279
Symbol 279 MovieClipUses:260 261 262 263 264 265 266 267 268 235 237 238 239 240 241 242 172 170 180 167 175 269 270 271 272 273 248 274 253 275 276 277 278Used by:280
Symbol 280 MovieClipUses:259 279Used by:Timeline
Symbol 281 TextUses:187Used by:283
Symbol 282 TextUses:187Used by:283
Symbol 283 ButtonUses:221 281 251 282Used by:Timeline
Symbol 284 GraphicUsed by:287 301
Symbol 285 GraphicUsed by:287
Symbol 286 GraphicUsed by:287
Symbol 287 MovieClipUses:284 285 286Used by:303
Symbol 288 GraphicUsed by:301
Symbol 289 GraphicUsed by:301
Symbol 290 GraphicUsed by:296
Symbol 291 GraphicUsed by:296
Symbol 292 GraphicUsed by:296
Symbol 293 GraphicUsed by:296
Symbol 294 GraphicUsed by:296
Symbol 295 GraphicUsed by:296
Symbol 296 MovieClipUses:290 291 292 293 294 295Used by:301
Symbol 297 GraphicUsed by:300
Symbol 298 GraphicUsed by:300
Symbol 299 GraphicUsed by:300
Symbol 300 MovieClipUses:297 298 299Used by:301
Symbol 301 MovieClipUses:284 288 289 296 300Used by:303
Symbol 302 SoundUsed by:303
Symbol 303 MovieClipUses:287 301 302Used by:Timeline
Symbol 304 GraphicUsed by:307
Symbol 305 MovieClipUsed by:307  Timeline
Symbol 306 EditableTextUses:187Used by:307
Symbol 307 MovieClipUses:304 305 306Used by:Timeline
Symbol 308 MovieClipUsed by:Timeline
Symbol 309 GraphicUsed by:Timeline
Symbol 310 GraphicUsed by:Timeline
Symbol 311 GraphicUsed by:316
Symbol 312 MovieClipUses:124Used by:316
Symbol 313 GraphicUsed by:316
Symbol 314 GraphicUsed by:316
Symbol 315 GraphicUsed by:316
Symbol 316 MovieClipUses:311 312 313 314 315Used by:Timeline
Symbol 317 EditableTextUses:187Used by:Timeline
Symbol 318 EditableTextUses:187Used by:Timeline
Symbol 319 FontUsed by:320
Symbol 320 EditableTextUses:319Used by:Timeline
Symbol 321 GraphicUsed by:335
Symbol 322 FontUsed by:323 328
Symbol 323 TextUses:322Used by:335
Symbol 324 FontUsed by:325 326 327
Symbol 325 TextUses:324Used by:335
Symbol 326 TextUses:324Used by:335
Symbol 327 TextUses:324Used by:335
Symbol 328 TextUses:322Used by:335
Symbol 329 TextUses:187Used by:335 342
Symbol 330 TextUses:187Used by:335 342
Symbol 331 TextUses:187Used by:335 342
Symbol 332 TextUses:187Used by:334
Symbol 333 TextUses:187Used by:334
Symbol 334 ButtonUses:332 206 333Used by:335 342
Symbol 335 MovieClipUses:321 323 325 326 327 328 329 330 331 193 334Used by:343
Symbol 336 GraphicUsed by:342
Symbol 337 TextUses:187Used by:342
Symbol 338 TextUses:187Used by:342
Symbol 339 TextUses:187Used by:342
Symbol 340 TextUses:187Used by:342
Symbol 341 TextUses:187Used by:342
Symbol 342 MovieClipUses:336 337 338 339 340 341 329 330 331 193 334Used by:343
Symbol 343 MovieClipUses:335 342Used by:Timeline
Symbol 344 GraphicUsed by:348
Symbol 345 TextUses:187Used by:348
Symbol 346 GraphicUsed by:348
Symbol 347 TextUses:187Used by:348
Symbol 348 ButtonUses:344 345 346 347Used by:Timeline

Instance Names

"mask"Frame 1Symbol 191 MovieClip
"loading"Frame 1Symbol 189 MovieClip [a]
"mask"Frame 184Symbol 191 MovieClip
"introduction"Frame 184Symbol 280 MovieClip
"mask"Frame 185Symbol 191 MovieClip
"stageDoor"Frame 185Symbol 303 MovieClip
"showScore"Frame 185Symbol 307 MovieClip
"mask"Frame 186Symbol 191 MovieClip
"wholeMap"Frame 186Symbol 308 MovieClip
"lifeBar"Frame 186Symbol 316 MovieClip
"getCharData"Frame 186Symbol 305 MovieClip
"mask"Frame 192Symbol 191 MovieClip
"showStaff"Frame 192Symbol 343 MovieClip
"xiaoshi"Symbol 8 MovieClip [shot-form1] Frame 2Symbol 7 MovieClip
"xiaoshi"Symbol 10 MovieClip [shot-form2] Frame 2Symbol 7 MovieClip
"xiaoshi"Symbol 21 MovieClip [shot-form3] Frame 2Symbol 20 MovieClip
"xiaoshi"Symbol 23 MovieClip Frame 2Symbol 20 MovieClip
"form1"Symbol 24 MovieClip [shotBossC3] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 24 MovieClip [shotBossC3] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 24 MovieClip [shotBossC3] Frame 3Symbol 23 MovieClip
"form1"Symbol 25 MovieClip [shotBossB3] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 25 MovieClip [shotBossB3] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 25 MovieClip [shotBossB3] Frame 3Symbol 21 MovieClip [shot-form3]
"form1"Symbol 26 MovieClip [shotBossA3] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 26 MovieClip [shotBossA3] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 26 MovieClip [shotBossA3] Frame 3Symbol 21 MovieClip [shot-form3]
"form1"Symbol 27 MovieClip [shotA3] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 27 MovieClip [shotA3] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 27 MovieClip [shotA3] Frame 3Symbol 21 MovieClip [shot-form3]
"form4"Symbol 27 MovieClip [shotA3] Frame 4Symbol 23 MovieClip
"form1"Symbol 28 MovieClip [shotBossC2] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 28 MovieClip [shotBossC2] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 28 MovieClip [shotBossC2] Frame 3Symbol 23 MovieClip
"form1"Symbol 29 MovieClip [shotBossB2] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 29 MovieClip [shotBossB2] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 29 MovieClip [shotBossB2] Frame 3Symbol 21 MovieClip [shot-form3]
"form1"Symbol 30 MovieClip [shotBossA2] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 30 MovieClip [shotBossA2] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 30 MovieClip [shotBossA2] Frame 3Symbol 21 MovieClip [shot-form3]
"form1"Symbol 31 MovieClip [shotA2] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 31 MovieClip [shotA2] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 31 MovieClip [shotA2] Frame 3Symbol 21 MovieClip [shot-form3]
"form4"Symbol 31 MovieClip [shotA2] Frame 4Symbol 23 MovieClip
"form1"Symbol 32 MovieClip [shotBossFinal] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 32 MovieClip [shotBossFinal] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 32 MovieClip [shotBossFinal] Frame 3Symbol 23 MovieClip
"form1"Symbol 33 MovieClip [shotBossC] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 33 MovieClip [shotBossC] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 33 MovieClip [shotBossC] Frame 3Symbol 23 MovieClip
"form1"Symbol 34 MovieClip [shotBossB] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 34 MovieClip [shotBossB] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 34 MovieClip [shotBossB] Frame 3Symbol 21 MovieClip [shot-form3]
"form1"Symbol 35 MovieClip [shotBoss] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 35 MovieClip [shotBoss] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 35 MovieClip [shotBoss] Frame 3Symbol 21 MovieClip [shot-form3]
"form1"Symbol 36 MovieClip [shot] Frame 1Symbol 8 MovieClip [shot-form1]
"form2"Symbol 36 MovieClip [shot] Frame 2Symbol 10 MovieClip [shot-form2]
"form3"Symbol 36 MovieClip [shot] Frame 3Symbol 21 MovieClip [shot-form3]
"form4"Symbol 36 MovieClip [shot] Frame 4Symbol 23 MovieClip
"Dead"Symbol 79 MovieClip Frame 4Symbol 78 MovieClip
"Dead"Symbol 82 MovieClip Frame 4Symbol 78 MovieClip
"Dead"Symbol 85 MovieClip Frame 4Symbol 78 MovieClip
"Dead"Symbol 88 MovieClip Frame 4Symbol 78 MovieClip
"form1"Symbol 89 MovieClip [char] Frame 2Symbol 79 MovieClip
"form2"Symbol 89 MovieClip [char] Frame 3Symbol 82 MovieClip
"form3"Symbol 89 MovieClip [char] Frame 4Symbol 85 MovieClip
"form4"Symbol 89 MovieClip [char] Frame 5Symbol 88 MovieClip
"Dead"Symbol 96 MovieClip [HLPourside] Frame 4Symbol 78 MovieClip
"Dead"Symbol 97 MovieClip [helicopterC] Frame 4Symbol 78 MovieClip
"Dead"Symbol 98 MovieClip [helicopterB] Frame 4Symbol 78 MovieClip
"Dead"Symbol 99 MovieClip [helicopter] Frame 4Symbol 78 MovieClip
"Dead"Symbol 102 MovieClip [tankSmall] Frame 4Symbol 78 MovieClip
"Dead"Symbol 105 MovieClip [tankE2] Frame 4Symbol 78 MovieClip
"Dead"Symbol 108 MovieClip [tankE1] Frame 4Symbol 78 MovieClip
"Dead"Symbol 112 MovieClip [tankMiddle] Frame 4Symbol 78 MovieClip
"Dead"Symbol 115 MovieClip [tankBossB] Frame 4Symbol 78 MovieClip
"Dead"Symbol 116 MovieClip [tankBossFinal] Frame 4Symbol 78 MovieClip
"Dead"Symbol 119 MovieClip [tankBossC] Frame 4Symbol 78 MovieClip
"Dead"Symbol 122 MovieClip [tankBoss] Frame 4Symbol 78 MovieClip
"Dead"Symbol 123 MovieClip [tankEnemy] Frame 4Symbol 78 MovieClip
"xiaoshi"Symbol 125 MovieClip [slugE1] Frame 2Symbol 7 MovieClip
"xiaoshi"Symbol 126 MovieClip [slug] Frame 2Symbol 7 MovieClip
"xiaoshi"Symbol 129 MovieClip [HLP-shot-ourside] Frame 2Symbol 20 MovieClip
"xiaoshi"Symbol 130 MovieClip [HLP-shotC] Frame 2Symbol 20 MovieClip
"xiaoshi"Symbol 131 MovieClip [HLP-shotB] Frame 2Symbol 20 MovieClip
"xiaoshi"Symbol 132 MovieClip [HLP-shot] Frame 2Symbol 20 MovieClip
"xiaoshi"Symbol 134 MovieClip [shot-tankE2] Frame 2Symbol 7 MovieClip
"xiaoshi"Symbol 136 MovieClip [shot-tankSmall] Frame 2Symbol 7 MovieClip
"xiaoshi"Symbol 138 MovieClip [shot-tankMiddle] Frame 2Symbol 7 MovieClip
"xiaoshi"Symbol 139 MovieClip [shot2] Frame 2Symbol 7 MovieClip
"Dead"Symbol 165 MovieClip [man] Frame 2Symbol 164 MovieClip
"chiIntro"Symbol 280 MovieClip Frame 1Symbol 259 MovieClip
"engIntro"Symbol 280 MovieClip Frame 2Symbol 279 MovieClip
"stageNum"Symbol 301 MovieClip Frame 1Symbol 296 MovieClip
"stageText"Symbol 301 MovieClip Frame 1Symbol 300 MovieClip
"stageDoorDown"Symbol 303 MovieClip Frame 1Symbol 287 MovieClip
"stageDoor"Symbol 303 MovieClip Frame 1Symbol 301 MovieClip
"getCharData"Symbol 307 MovieClip Frame 2Symbol 305 MovieClip
"lifeBar"Symbol 316 MovieClip Frame 1Symbol 312 MovieClip

Special Tags

Protect (24)Timeline Frame 131 bytes "..$1$yu$8nOXRNgHn5q0pkkBHBlyN.."
ExportAssets (56)Timeline Frame 1Symbol 1 as "se_i008"
ExportAssets (56)Timeline Frame 1Symbol 2 as "se_g008"
ExportAssets (56)Timeline Frame 1Symbol 3 as "daodi"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 24 as "shotBossC3"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 25 as "shotBossB3"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 26 as "shotBossA3"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 27 as "shotA3"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 28 as "shotBossC2"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 29 as "shotBossB2"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 30 as "shotBossA2"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 31 as "shotA2"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 32 as "shotBossFinal"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 33 as "shotBossC"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 34 as "shotBossB"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 35 as "shotBoss"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 36 as "shot"
ExportAssets (56)Timeline Frame 1Symbol 66 as "tile"
ExportAssets (56)Timeline Frame 1Symbol 89 as "char"
ExportAssets (56)Timeline Frame 1Symbol 96 as "HLPourside"
ExportAssets (56)Timeline Frame 1Symbol 97 as "helicopterC"
ExportAssets (56)Timeline Frame 1Symbol 98 as "helicopterB"
ExportAssets (56)Timeline Frame 1Symbol 99 as "helicopter"
ExportAssets (56)Timeline Frame 1Symbol 102 as "tankSmall"
ExportAssets (56)Timeline Frame 1Symbol 105 as "tankE2"
ExportAssets (56)Timeline Frame 1Symbol 108 as "tankE1"
ExportAssets (56)Timeline Frame 1Symbol 112 as "tankMiddle"
ExportAssets (56)Timeline Frame 1Symbol 115 as "tankBossB"
ExportAssets (56)Timeline Frame 1Symbol 116 as "tankBossFinal"
ExportAssets (56)Timeline Frame 1Symbol 119 as "tankBossC"
ExportAssets (56)Timeline Frame 1Symbol 122 as "tankBoss"
ExportAssets (56)Timeline Frame 1Symbol 123 as "tankEnemy"
ExportAssets (56)Timeline Frame 1Symbol 125 as "slugE1"
ExportAssets (56)Timeline Frame 1Symbol 126 as "slug"
ExportAssets (56)Timeline Frame 1Symbol 129 as "HLP-shot-ourside"
ExportAssets (56)Timeline Frame 1Symbol 130 as "HLP-shotC"
ExportAssets (56)Timeline Frame 1Symbol 131 as "HLP-shotB"
ExportAssets (56)Timeline Frame 1Symbol 132 as "HLP-shot"
ExportAssets (56)Timeline Frame 1Symbol 134 as "shot-tankE2"
ExportAssets (56)Timeline Frame 1Symbol 136 as "shot-tankSmall"
ExportAssets (56)Timeline Frame 1Symbol 138 as "shot-tankMiddle"
ExportAssets (56)Timeline Frame 1Symbol 139 as "shot2"
ExportAssets (56)Timeline Frame 1Symbol 165 as "man"
ExportAssets (56)Timeline Frame 1Symbol 168 as "medicalBox"
ExportAssets (56)Timeline Frame 1Symbol 171 as "addShotNum"
ExportAssets (56)Timeline Frame 1Symbol 173 as "addLifeNum"
ExportAssets (56)Timeline Frame 1Symbol 176 as "powerBox"
ExportAssets (56)Timeline Frame 1Symbol 21 as "shot-form3"
ExportAssets (56)Timeline Frame 1Symbol 8 as "shot-form1"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shot-form2"
ExportAssets (56)Timeline Frame 1Symbol 181 as "callHLP"
ExportAssets (56)Timeline Frame 1Symbol 189 as "a"
ExportAssets (56)Timeline Frame 1Symbol 189 as "a"

Labels

"xiaoshi"Symbol 8 MovieClip [shot-form1] Frame 2
"xiaoshi"Symbol 10 MovieClip [shot-form2] Frame 2
"xiaoshi"Symbol 21 MovieClip [shot-form3] Frame 2
"xiaoshi"Symbol 23 MovieClip Frame 2
"form1"Symbol 24 MovieClip [shotBossC3] Frame 1
"form2"Symbol 24 MovieClip [shotBossC3] Frame 2
"form3"Symbol 24 MovieClip [shotBossC3] Frame 3
"form1"Symbol 25 MovieClip [shotBossB3] Frame 1
"form2"Symbol 25 MovieClip [shotBossB3] Frame 2
"form3"Symbol 25 MovieClip [shotBossB3] Frame 3
"form1"Symbol 26 MovieClip [shotBossA3] Frame 1
"form2"Symbol 26 MovieClip [shotBossA3] Frame 2
"form3"Symbol 26 MovieClip [shotBossA3] Frame 3
"form1"Symbol 27 MovieClip [shotA3] Frame 1
"form2"Symbol 27 MovieClip [shotA3] Frame 2
"form3"Symbol 27 MovieClip [shotA3] Frame 3
"form4"Symbol 27 MovieClip [shotA3] Frame 4
"form1"Symbol 28 MovieClip [shotBossC2] Frame 1
"form2"Symbol 28 MovieClip [shotBossC2] Frame 2
"form3"Symbol 28 MovieClip [shotBossC2] Frame 3
"form1"Symbol 29 MovieClip [shotBossB2] Frame 1
"form2"Symbol 29 MovieClip [shotBossB2] Frame 2
"form3"Symbol 29 MovieClip [shotBossB2] Frame 3
"form1"Symbol 30 MovieClip [shotBossA2] Frame 1
"form2"Symbol 30 MovieClip [shotBossA2] Frame 2
"form3"Symbol 30 MovieClip [shotBossA2] Frame 3
"form1"Symbol 31 MovieClip [shotA2] Frame 1
"form2"Symbol 31 MovieClip [shotA2] Frame 2
"form3"Symbol 31 MovieClip [shotA2] Frame 3
"form4"Symbol 31 MovieClip [shotA2] Frame 4
"form1"Symbol 32 MovieClip [shotBossFinal] Frame 1
"form2"Symbol 32 MovieClip [shotBossFinal] Frame 2
"form3"Symbol 32 MovieClip [shotBossFinal] Frame 3
"form1"Symbol 33 MovieClip [shotBossC] Frame 1
"form2"Symbol 33 MovieClip [shotBossC] Frame 2
"form3"Symbol 33 MovieClip [shotBossC] Frame 3
"form1"Symbol 34 MovieClip [shotBossB] Frame 1
"form2"Symbol 34 MovieClip [shotBossB] Frame 2
"form3"Symbol 34 MovieClip [shotBossB] Frame 3
"form1"Symbol 35 MovieClip [shotBoss] Frame 1
"form2"Symbol 35 MovieClip [shotBoss] Frame 2
"form3"Symbol 35 MovieClip [shotBoss] Frame 3
"form1"Symbol 36 MovieClip [shot] Frame 1
"form2"Symbol 36 MovieClip [shot] Frame 2
"form3"Symbol 36 MovieClip [shot] Frame 3
"form4"Symbol 36 MovieClip [shot] Frame 4
"normal"Symbol 79 MovieClip Frame 1
"hurt"Symbol 79 MovieClip Frame 2
"wuDi"Symbol 79 MovieClip Frame 3
"Dead"Symbol 79 MovieClip Frame 4
"normal"Symbol 82 MovieClip Frame 1
"hurt"Symbol 82 MovieClip Frame 2
"wuDi"Symbol 82 MovieClip Frame 3
"Dead"Symbol 82 MovieClip Frame 4
"normal"Symbol 85 MovieClip Frame 1
"hurt"Symbol 85 MovieClip Frame 2
"wuDi"Symbol 85 MovieClip Frame 3
"Dead"Symbol 85 MovieClip Frame 4
"normal"Symbol 88 MovieClip Frame 1
"hurt"Symbol 88 MovieClip Frame 2
"wuDi"Symbol 88 MovieClip Frame 3
"Dead"Symbol 88 MovieClip Frame 4
"form1"Symbol 89 MovieClip [char] Frame 2
"form2"Symbol 89 MovieClip [char] Frame 3
"form3"Symbol 89 MovieClip [char] Frame 4
"form4"Symbol 89 MovieClip [char] Frame 5
"normal"Symbol 96 MovieClip [HLPourside] Frame 2
"hurt"Symbol 96 MovieClip [HLPourside] Frame 3
"Dead"Symbol 96 MovieClip [HLPourside] Frame 4
"normal"Symbol 97 MovieClip [helicopterC] Frame 2
"hurt"Symbol 97 MovieClip [helicopterC] Frame 3
"Dead"Symbol 97 MovieClip [helicopterC] Frame 4
"normal"Symbol 98 MovieClip [helicopterB] Frame 2
"hurt"Symbol 98 MovieClip [helicopterB] Frame 3
"Dead"Symbol 98 MovieClip [helicopterB] Frame 4
"normal"Symbol 99 MovieClip [helicopter] Frame 2
"hurt"Symbol 99 MovieClip [helicopter] Frame 3
"Dead"Symbol 99 MovieClip [helicopter] Frame 4
"normal"Symbol 102 MovieClip [tankSmall] Frame 2
"hurt"Symbol 102 MovieClip [tankSmall] Frame 3
"Dead"Symbol 102 MovieClip [tankSmall] Frame 4
"normal"Symbol 105 MovieClip [tankE2] Frame 2
"hurt"Symbol 105 MovieClip [tankE2] Frame 3
"Dead"Symbol 105 MovieClip [tankE2] Frame 4
"normal"Symbol 108 MovieClip [tankE1] Frame 2
"hurt"Symbol 108 MovieClip [tankE1] Frame 3
"Dead"Symbol 108 MovieClip [tankE1] Frame 4
"normal"Symbol 112 MovieClip [tankMiddle] Frame 2
"hurt"Symbol 112 MovieClip [tankMiddle] Frame 3
"Dead"Symbol 112 MovieClip [tankMiddle] Frame 4
"normal"Symbol 115 MovieClip [tankBossB] Frame 2
"hurt"Symbol 115 MovieClip [tankBossB] Frame 3
"Dead"Symbol 115 MovieClip [tankBossB] Frame 4
"normal"Symbol 116 MovieClip [tankBossFinal] Frame 2
"hurt"Symbol 116 MovieClip [tankBossFinal] Frame 3
"Dead"Symbol 116 MovieClip [tankBossFinal] Frame 4
"normal"Symbol 119 MovieClip [tankBossC] Frame 2
"hurt"Symbol 119 MovieClip [tankBossC] Frame 3
"Dead"Symbol 119 MovieClip [tankBossC] Frame 4
"normal"Symbol 122 MovieClip [tankBoss] Frame 2
"hurt"Symbol 122 MovieClip [tankBoss] Frame 3
"Dead"Symbol 122 MovieClip [tankBoss] Frame 4
"normal"Symbol 123 MovieClip [tankEnemy] Frame 2
"hurt"Symbol 123 MovieClip [tankEnemy] Frame 3
"Dead"Symbol 123 MovieClip [tankEnemy] Frame 4
"chi"Symbol 280 MovieClip Frame 1
"eng"Symbol 280 MovieClip Frame 2
"stage"Symbol 300 MovieClip Frame 1
"congratu"Symbol 300 MovieClip Frame 2
"gameover"Symbol 300 MovieClip Frame 3

Dynamic Text Variables

scoreSymbol 306 EditableText""
HLPoursideNumSymbol 317 EditableText""
CharNumSymbol 318 EditableText""
scoreSymbol 320 EditableText""




http://swfchan.com/3/13787/info.shtml
Created: 4/6 -2019 08:40:20 Last modified: 4/6 -2019 08:40:20 Server time: 13/05 -2024 16:08:49