Frame 1
function backMusic1() {
xmusic.stop();
xmusic = new Sound(musik);
xmusic.attachSound("backMusic1");
xmusic.start(0, 999);
xmusic.setVolume(volum1);
}
function backMusic2() {
xmusic.stop();
xmusic = new Sound(musik);
xmusic.attachSound("backMusic2");
xmusic.start(0, 999);
xmusic.setVolume(volum1);
}
function backMusic3() {
xmusic.stop();
xmusic = new Sound(musik);
xmusic.attachSound("backMusic3");
xmusic.start(0, 999);
xmusic.setVolume(volum1);
}
function backGun() {
xsound = new Sound(suara);
xsound.attachSound("backGun");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backBall() {
xsound = new Sound(suara);
xsound.attachSound("backBall");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backCannon() {
xsound = new Sound(suara);
xsound.attachSound("backCannon");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backMine() {
xsound = new Sound(suara);
xsound.attachSound("backMine");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backMissile() {
xsound = new Sound(suara);
xsound.attachSound("backMissile");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backLaser() {
xsound = new Sound(suara);
xsound.attachSound("backLaser");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backAtomic() {
xsound = new Sound(suara);
xsound.attachSound("backMine");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function dapetGun() {
xsound = new Sound(suara);
xsound.attachSound("dapetGun");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function dapetBall() {
xsound = new Sound(suara);
xsound.attachSound("dapetBall");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function dapetCannon() {
xsound = new Sound(suara);
xsound.attachSound("dapetCannon");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function dapetMine() {
xsound = new Sound(suara);
xsound.attachSound("dapetMine");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function dapetMissile() {
xsound = new Sound(suara);
xsound.attachSound("dapetMissile");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function dapetLaser() {
xsound = new Sound(suara);
xsound.attachSound("dapetLaser");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function dapetAtomic() {
xsound = new Sound(suara);
xsound.attachSound("dapetAtomic");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backBoom() {
xsound = new Sound(suara);
xsound.attachSound("backBoom");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backLedak() {
xsound = new Sound(suara);
xsound.attachSound("backLedak");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backAwal() {
xsound = new Sound(suara);
xsound.attachSound("backAwal");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backMulai() {
xsound = new Sound(suara);
xsound.attachSound("backMulai");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backMulai2() {
xsound = new Sound(suara);
xsound.attachSound("backMulai2");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backBonus() {
xsound = new Sound(suara);
xsound.attachSound("backBonus");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backUang() {
xsound = new Sound(suara);
xsound.attachSound("backUang");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backLoading() {
xsound = new Sound(suara);
xsound.attachSound("backLoading");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function backTepuk() {
xsound = new Sound(suara);
xsound.attachSound("backTepuk");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function klik() {
xsound = new Sound(suara);
xsound.attachSound("klik");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function getReady2() {
xsound = new Sound(suara);
xsound.attachSound("getReady2");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function fight2() {
xsound = new Sound(suara);
xsound.attachSound("fight2");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function perfect() {
xsound = new Sound(suara);
xsound.attachSound("perfect");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function bblite() {
xsound = new Sound(suara);
xsound.attachSound("bblite");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function bbcol() {
xsound = new Sound(suara);
xsound.attachSound("bbcol");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
function bbfire() {
xsound = new Sound(suara);
xsound.attachSound("bbfire");
xsound.start(0, 1);
xsound.setVolume(volum2);
}
stop();
petama = true;
level = "NORMAL";
laguKe = 1;
keKiri = 65;
keAtas = 87;
keKanan = 68;
keBawah = 83;
kePause = 80;
volum1 = 75;
volum2 = 50;
this.onEnterFrame = function () {
sedang = _root.getBytesLoaded();
total = _root.getBytesTotal();
xpersen = Math.floor((sedang / total) * 100);
persen = xpersen + " %";
wpersen = Math.floor(xpersen);
bar_mc._xscale = wpersen;
if (sedang == total) {
delete this.onEnterFrame;
gotoAndStop ("menu");
}
};
Frame 5
play();
logo_mc.onRelease = function () {
getURL ("http://www.blitzgamer.com", "_blank");
};
Frame 70
stop();
fplay_btn.onRelease = function () {
Mouse.show();
_root.gotoAndStop("menu");
};
Frame 73
stop();
keluarin();
get_mc._visible = false;
xmasihMain = false;
ggsedangMain = false;
score = 0;
high = "HIGH SCORES : " + scoreHigh;
if (petama == true) {
backLoading();
petama = false;
if (laguKe == 1) {
backMusic1();
} else if (laguKe == 2) {
backMusic2();
} else if (laguKe == 3) {
backMusic3();
}
}
duel_btn.onRelease = function () {
klik();
jenisGame = "death";
gotoAndStop ("death");
};
tournament_btn.onRelease = function () {
klik();
jenisGame = "tour";
gotoAndStop ("tournament");
};
option_btn.onRelease = function () {
klik();
gotoAndStop ("option");
};
credits_btn.onRelease = function () {
credits_mc.gotoAndPlay(2);
};
more_btn.onRelease = function () {
};
high_btn.onRelease = function () {
};
Frame 77
function setKey() {
xup = listKey[keAtas];
xdown = listKey[keBawah];
xleft = listKey[keKiri];
xright = listKey[keKanan];
spause = listKey[kePause];
}
function setLagu() {
if (laguKe == 1) {
musik1_mc.gotoAndStop(2);
musik2_mc.gotoAndStop(1);
musik3_mc.gotoAndStop(1);
} else if (laguKe == 2) {
musik1_mc.gotoAndStop(1);
musik2_mc.gotoAndStop(2);
musik3_mc.gotoAndStop(1);
} else if (laguKe == 3) {
musik1_mc.gotoAndStop(1);
musik2_mc.gotoAndStop(1);
musik3_mc.gotoAndStop(2);
}
}
function setLevel() {
if (level == "EASY") {
easy_mc.gotoAndStop(2);
normal_mc.gotoAndStop(1);
hard_mc.gotoAndStop(1);
} else if (level == "NORMAL") {
easy_mc.gotoAndStop(1);
normal_mc.gotoAndStop(2);
hard_mc.gotoAndStop(1);
} else if (level == "HARD") {
easy_mc.gotoAndStop(1);
normal_mc.gotoAndStop(1);
hard_mc.gotoAndStop(2);
}
}
stop();
get_mc._visible = false;
xmasihMain = false;
ggsedangMain = false;
backMulai();
pesan_mc._visible = false;
back_btn.onRelease = function () {
klik();
delete _root.onEnterFrame;
gotoAndStop ("menu");
};
listKey = new Array();
i = 0;
while (i <= 200) {
listKey[i] = "";
i++;
}
listKey[8] = "BACKSPACE";
listKey[9] = "TAB";
listKey[12] = "CLEAR";
listKey[13] = "ENTER";
listKey[16] = "SHIFT";
listKey[17] = "CTRL";
listKey[18] = "ALT";
listKey[20] = "CAPS";
listKey[27] = "ESC";
listKey[32] = "SPACE";
listKey[33] = "PAGE UP";
listKey[34] = "PAGE DOWN";
listKey[35] = "END";
listKey[36] = "HOME";
listKey[37] = "LEFT";
listKey[38] = "UP";
listKey[39] = "RIGHT";
listKey[40] = "DOWN";
listKey[45] = "INSERT";
listKey[46] = "DEL";
listKey[47] = "HELP";
listKey[48] = "0";
listKey[49] = "1";
listKey[50] = "2";
listKey[51] = "3";
listKey[52] = "4";
listKey[53] = "5";
listKey[54] = "6";
listKey[55] = "7";
listKey[56] = "8";
listKey[57] = "9";
listKey[65] = "A";
listKey[66] = "B";
listKey[67] = "C";
listKey[68] = "D";
listKey[69] = "E";
listKey[70] = "F";
listKey[71] = "G";
listKey[72] = "H";
listKey[73] = "I";
listKey[74] = "J";
listKey[75] = "K";
listKey[76] = "L";
listKey[77] = "M";
listKey[78] = "N";
listKey[79] = "O";
listKey[80] = "P";
listKey[81] = "Q";
listKey[82] = "R";
listKey[83] = "S";
listKey[84] = "T";
listKey[85] = "U";
listKey[86] = "V";
listKey[87] = "W";
listKey[88] = "X";
listKey[89] = "Y";
listKey[90] = "Z";
setKey();
setLevel();
setLagu();
musik1_mc.onRelease = function () {
klik();
if (laguKe != 1) {
laguKe = 1;
backMusic1();
setLagu();
}
};
musik2_mc.onRelease = function () {
klik();
if (laguKe != 2) {
laguKe = 2;
backMusic2();
setLagu();
}
};
musik3_mc.onRelease = function () {
klik();
if (laguKe != 3) {
laguKe = 3;
backMusic3();
setLagu();
}
};
easy_mc.onRelease = function () {
klik();
level = "EASY";
setLevel();
};
normal_mc.onRelease = function () {
klik();
level = "NORMAL";
setLevel();
};
hard_mc.onRelease = function () {
klik();
level = "HARD";
setLevel();
};
cUp_btn.onRelease = function () {
klik();
pesan_mc._visible = true;
pesan_mc.info = "PRESS KEY TO CHANGE MOVE UP CONTROL";
tandaKey = "UP";
};
cDown_btn.onRelease = function () {
klik();
pesan_mc._visible = true;
pesan_mc.info = "PRESS KEY TO CHANGE MOVE DOWN CONTROL";
tandaKey = "DOWN";
};
cLeft_btn.onRelease = function () {
klik();
pesan_mc._visible = true;
pesan_mc.info = "PRESS KEY TO CHANGE MOVE LEFT CONTROL";
tandaKey = "LEFT";
};
cRight_btn.onRelease = function () {
klik();
pesan_mc._visible = true;
pesan_mc.info = "PRESS KEY TO CHANGE MOVE RIGHT CONTROL";
tandaKey = "RIGHT";
};
_root.onEnterFrame = function () {
if (pesan_mc._visible == true) {
if (Key.isDown(Key.getCode())) {
if ((listKey[Key.getCode()] != undefined) && (listKey[Key.getCode()] != "")) {
if ((((Key.getCode() != keAtas) && (Key.getCode() != keBawah)) && (Key.getCode() != keKiri)) && ((Key.getCode() != keKanan) && (Key.getCode() != kePause))) {
if (tandaKey == "UP") {
keAtas = Key.getCode();
} else if (tandaKey == "DOWN") {
keBawah = Key.getCode();
} else if (tandaKey == "LEFT") {
keKiri = Key.getCode();
} else if (tandaKey == "RIGHT") {
keKanan = Key.getCode();
}
setKey();
pesan_mc._visible = false;
}
}
}
}
};
bar1_mc.bar_mc._x = Math.ceil((_root.volum1 / 0.434782608695652) - 115);
bar1_mc.bar_mc.onEnterFrame = function () {
_root.volum1 = int(0.434782608695652 * (this._x + 115));
i = 1;
while (i <= 12) {
_root.xmusic.setVolume(_root.volum1);
i++;
}
bar1_mc.persen1 = _root.volum1 + " %";
};
bar1_mc.bar_mc.onPress = function () {
_root.klik();
startDrag (this, false, -115, 0, 115, 0);
};
bar1_mc.bar_mc.onRollOver = function () {
_root.over();
};
bar1_mc.bar_mc.onRelease = function () {
_root.klik();
stopDrag();
};
bar2_mc.bar_mc._x = Math.ceil((_root.volum2 / 0.434782608695652) - 115);
bar2_mc.bar_mc.onEnterFrame = function () {
_root.volum2 = int(0.434782608695652 * (this._x + 115));
i = 1;
while (i <= 12) {
_root.xsound.setVolume(_root.volum2);
i++;
}
bar2_mc.persen2 = _root.volum2 + " %";
};
bar2_mc.bar_mc.onPress = function () {
_root.klik();
startDrag (this, false, -115, 0, 115, 0);
};
bar2_mc.bar_mc.onRollOver = function () {
_root.over();
};
bar2_mc.bar_mc.onRelease = function () {
_root.klik();
stopDrag();
};
default_btn.onRelease = function () {
klik();
volum1 = 75;
volum2 = 50;
_root.bar1_mc.bar_mc._x = Math.ceil((_root.volum1 / 0.434782608695652) - 115);
_root.bar2_mc.bar_mc._x = Math.ceil((_root.volum2 / 0.434782608695652) - 115);
level = "NORMAL";
setLevel();
keKiri = 65;
keAtas = 87;
keKanan = 68;
keBawah = 83;
kePause = 80;
setKey();
laguKe = 1;
backMusic1();
setLagu();
};
Frame 82
function overKotak1() {
if (this._currentframe == 1) {
this.gotoAndStop(2);
}
}
function overKotak2() {
if (this._currentframe == 1) {
this.gotoAndStop(2);
}
}
function outKotak1() {
if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
function outKotak2() {
if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
function releaseKotak1() {
klik();
i = 0;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
i++;
}
this.gotoAndStop(3);
this.enabled = false;
myStr = new String(this);
if (myStr.length == 15) {
indi = int(myStr.substr(myStr.length - 1, 1));
} else if (myStr.length == 16) {
indi = int(myStr.substr(myStr.length - 2, 2));
}
you_mc.gotoAndStop(indi + 1);
jenis1 = namaSenjata[indi];
if (indi == 0) {
i = 0;
while (i <= 16) {
_root["ykotak" + i].gotoAndStop(1);
_root["ykotak" + i].enabled = true;
i++;
}
ykotak0.gotoAndStop(3);
ykotak0.enabled = false;
komp_mc.gotoAndStop(1);
jenis2 = namaSenjata[0];
} else if (indi == 16) {
i = 0;
while (i <= 16) {
_root["ykotak" + i].gotoAndStop(1);
_root["ykotak" + i].enabled = true;
i++;
}
ykotak16.gotoAndStop(3);
ykotak16.enabled = false;
komp_mc.gotoAndStop(17);
jenis2 = namaSenjata[16];
} else if ((ykotak0._currentframe == 3) || (ykotak16._currentframe == 3)) {
i = 0;
while (i <= 16) {
_root["ykotak" + i].gotoAndStop(1);
_root["ykotak" + i].enabled = true;
i++;
}
ykotak1.gotoAndStop(3);
ykotak1.enabled = false;
komp_mc.gotoAndStop(2);
jenis2 = namaSenjata[1];
}
}
function releaseKotak2() {
klik();
i = 0;
while (i <= 16) {
_root["ykotak" + i].gotoAndStop(1);
_root["ykotak" + i].enabled = true;
i++;
}
this.gotoAndStop(3);
this.enabled = false;
myStr = new String(this);
if (myStr.length == 15) {
indi = int(myStr.substr(myStr.length - 1, 1));
} else if (myStr.length == 16) {
indi = int(myStr.substr(myStr.length - 2, 2));
}
komp_mc.gotoAndStop(indi + 1);
jenis2 = namaSenjata[indi];
if (indi == 0) {
i = 0;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
i++;
}
xkotak0.gotoAndStop(3);
xkotak0.enabled = false;
you_mc.gotoAndStop(1);
jenis1 = namaSenjata[0];
} else if (indi == 16) {
i = 0;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
i++;
}
xkotak16.gotoAndStop(3);
xkotak16.enabled = false;
you_mc.gotoAndStop(17);
jenis1 = namaSenjata[16];
} else if ((xkotak0._currentframe == 3) || (xkotak16._currentframe == 3)) {
i = 0;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
i++;
}
xkotak1.gotoAndStop(3);
xkotak1.enabled = false;
you_mc.gotoAndStop(2);
jenis1 = namaSenjata[1];
}
}
stop();
get_mc._visible = false;
xmasihMain = false;
ggsedangMain = false;
backMulai2();
back_btn.onRelease = function () {
klik();
gotoAndStop ("menu");
};
start_btn.onRelease = function () {
klik();
jenSen1 = you_mc._currentframe - 1;
jenSen2 = komp_mc._currentframe - 1;
gotoAndStop ("game");
};
next_btn.onRelease = function () {
klik();
rounde = rounde + 2;
if (rounde >= 9) {
rounde = 9;
}
rounds = rounde + " ROUNDS";
};
prev_btn.onRelease = function () {
klik();
rounde = rounde - 2;
if (rounde <= 1) {
rounde = 1;
rounds = rounde + " ROUND";
} else {
rounds = rounde + " ROUNDS";
}
};
i = 0;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["ykotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
_root["ykotak" + i].enabled = true;
_root["xkotak" + i].onRollOver = overKotak1;
_root["ykotak" + i].onRollOver = overKotak2;
_root["xkotak" + i].onRollOut = outKotak1;
_root["ykotak" + i].onRollOut = outKotak2;
_root["xkotak" + i].onRelease = releaseKotak1;
_root["ykotak" + i].onRelease = releaseKotak2;
i++;
}
xkotak0.gotoAndStop(3);
ykotak0.gotoAndStop(3);
xkotak0.enabled = false;
ykotak0.enabled = false;
you_mc.gotoAndStop(1);
komp_mc.gotoAndStop(1);
rounde = 3;
rounds = rounde + " ROUNDS";
namaSenjata = new Array("GUN (NO BONUS)", "RAPID GUN", "GUN BLAST", "TRIPLE GUNS", "FIRE ATTACK", "BIG FIRE ATTACK", "BOUNCE FIRE", "DOUBLE CANNONS", "PIERCE CANNON", "EXPLOSIVE CANNON", "MINE BOM", "WIDE MINE BOM", "MULTIPLE MINE BOMS", "MISSILE LAUNCH", "LASER BEAM", "ATOMIC KILLER", "RANDOM WEAPONS");
jenis1 = namaSenjata[0];
jenis2 = namaSenjata[0];
random1_btn.onRelease = function () {
klik();
randGil = new Array();
keGil = 0;
i = 0;
while (i <= 16) {
if (i != (you_mc._currentframe - 1)) {
randGil[keGil] = i;
keGil++;
}
i++;
}
rand1 = randGil[random(randGil.length)];
jenis1 = namaSenjata[rand1];
you_mc.gotoAndStop(rand1 + 1);
i = 0;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
i++;
}
_root["xkotak" + rand1].gotoAndStop(3);
_root["xkotak" + rand1].enabled = false;
if (rand1 == 0) {
i = 0;
while (i <= 16) {
_root["ykotak" + i].gotoAndStop(1);
_root["ykotak" + i].enabled = true;
i++;
}
ykotak0.gotoAndStop(3);
ykotak0.enabled = false;
komp_mc.gotoAndStop(1);
jenis2 = namaSenjata[0];
} else if (rand1 == 16) {
i = 0;
while (i <= 16) {
_root["ykotak" + i].gotoAndStop(1);
_root["ykotak" + i].enabled = true;
i++;
}
ykotak16.gotoAndStop(3);
ykotak16.enabled = false;
komp_mc.gotoAndStop(17);
jenis2 = namaSenjata[16];
} else if ((ykotak0._currentframe == 3) || (ykotak16._currentframe == 3)) {
i = 0;
while (i <= 16) {
_root["ykotak" + i].gotoAndStop(1);
_root["ykotak" + i].enabled = true;
i++;
}
ykotak1.gotoAndStop(3);
ykotak1.enabled = false;
komp_mc.gotoAndStop(2);
jenis2 = namaSenjata[1];
}
};
random2_btn.onRelease = function () {
klik();
rand2 = random(17);
randGil = new Array();
keGil = 0;
i = 0;
while (i <= 16) {
if (i != (komp_mc._currentframe - 1)) {
randGil[keGil] = i;
keGil++;
}
i++;
}
rand2 = randGil[random(randGil.length)];
jenis2 = namaSenjata[rand2];
komp_mc.gotoAndStop(rand2 + 1);
i = 0;
while (i <= 16) {
_root["ykotak" + i].gotoAndStop(1);
_root["ykotak" + i].enabled = true;
i++;
}
_root["ykotak" + rand2].gotoAndStop(3);
_root["ykotak" + rand2].enabled = false;
if (rand2 == 0) {
i = 0;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
i++;
}
xkotak0.gotoAndStop(3);
xkotak0.enabled = false;
you_mc.gotoAndStop(1);
jenis1 = namaSenjata[0];
} else if (rand2 == 16) {
i = 0;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
i++;
}
xkotak16.gotoAndStop(3);
xkotak16.enabled = false;
you_mc.gotoAndStop(17);
jenis1 = namaSenjata[16];
} else if ((xkotak0._currentframe == 3) || (xkotak16._currentframe == 3)) {
i = 0;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
i++;
}
xkotak1.gotoAndStop(3);
xkotak1.enabled = false;
you_mc.gotoAndStop(2);
jenis1 = namaSenjata[1];
}
};
Frame 87
function overKotak() {
if (this._currentframe == 1) {
this.gotoAndStop(2);
}
}
function outKotak() {
if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
function releaseKotak() {
klik();
i = 1;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
i++;
}
this.gotoAndStop(3);
this.enabled = false;
myStr = new String(this);
if (myStr.length == 15) {
indi = int(myStr.substr(myStr.length - 1, 1));
} else if (myStr.length == 16) {
indi = int(myStr.substr(myStr.length - 2, 2));
}
jenis1 = namaSenjata[indi - 1];
jenisSen = indi - 1;
}
stop();
jenisUser = new Array();
rounde = 3;
ggsedangMain = false;
xmasihMain = false;
if (rounde <= 1) {
rounde = 1;
rounds = rounde + " ROUND";
} else {
rounds = rounde + " ROUNDS";
}
start_btn.onRelease = function () {
klik();
jenisMain = 1;
jenSen1 = jenisSen;
jenisUser[1] = jenSen1 + 1;
vrounde = rounde;
gotoAndStop ("bart");
};
xback_btn.onRelease = function () {
klik();
_root.gotoAndStop("menu");
};
next_btn.onRelease = function () {
klik();
rounde = rounde + 2;
if (rounde >= 9) {
rounde = 9;
}
rounds = rounde + " ROUNDS";
};
prev_btn.onRelease = function () {
klik();
rounde = rounde - 2;
if (rounde <= 1) {
rounde = 1;
rounds = rounde + " ROUND";
} else {
rounds = rounde + " ROUNDS";
}
};
i = 1;
while (i <= 16) {
_root["xkotak" + i].onRollOver = overKotak;
_root["xkotak" + i].onRollOut = outKotak;
_root["xkotak" + i].onRelease = releaseKotak;
i++;
}
xkotak2.gotoAndStop(3);
xkotak2.enabled = false;
jenisSen = 1;
namaSenjata = new Array("GUN (NO BONUS)", "RAPID GUN", "GUN BLAST", "TRIPLE GUNS", "FIRE ATTACK", "BIG FIRE ATTACK", "BOUNCE FIRE", "DOUBLE CANNONS", "PIERCE CANNON", "EXPLOSIVE CANNON", "MINE BOM", "WIDE MINE BOM", "MULTIPLE MINE BOMS", "MISSILE LAUNCH", "LASER BEAM", "ATOMIC KILLER", "RANDOM WEAPONS");
jenis1 = namaSenjata[1];
random_btn.onRelease = function () {
klik();
randGil = new Array();
keGil = 0;
i = 2;
while (i <= 16) {
if (i != (you_mc._currentframe - 1)) {
randGil[keGil] = i;
keGil++;
}
i++;
}
rand1 = randGil[random(randGil.length)];
jenis1 = namaSenjata[rand1];
you_mc.gotoAndStop(rand1 + 1);
i = 2;
while (i <= 16) {
_root["xkotak" + i].gotoAndStop(1);
_root["xkotak" + i].enabled = true;
i++;
}
_root["xkotak" + rand1].gotoAndStop(3);
_root["xkotak" + rand1].enabled = false;
jenis1 = namaSenjata[rand1 - 1];
jenisSen = rand1 - 1;
};
Frame 93
stop();
ggsedangMain = false;
xmasihMain = false;
if (vrounde <= 1) {
vrounde = 1;
wrounds = vrounde + " ROUND";
} else {
wrounds = vrounde + " ROUNDS";
}
back_btn.onRelease = function () {
if (jenisMain == 2) {
gotoAndStop ("tournament");
} else {
gotoAndStop ("menu");
}
};
fight_btn.onRelease = function () {
gotoAndStop ("game");
};
xok_btn.onRelease = function () {
_root.gotoAndStop("menu");
};
jenisTom = "QUIT";
youWin = "";
xok_btn._visible = false;
back_btn._visible = true;
fight_btn._visible = true;
if (jenisMain == 1) {
jenisTom = "BACK";
banyakAng = 0;
angka = new Array();
i = 2;
while (i <= 16) {
if (i != (jenSen1 + 1)) {
angka[banyakAng] = i;
banyakAng++;
}
i++;
}
i = 2;
while (i <= 15) {
acak = random(angka.length);
jenisUser[i] = angka[acak];
angka[acak] = null;
angka.sort();
angka.pop();
i++;
}
i = 1;
while (i <= 8) {
_root["xuser" + i].gotoAndStop(jenisUser[i]);
if (i > 1) {
_root["xuser" + i].gotoAndStop(jenisUser[i] + 19);
}
i++;
}
i = 1;
while (i <= 4) {
_root["yuser" + i].gotoAndStop(17);
if (i > 1) {
_root["yuser" + i].gotoAndStop(36);
}
i++;
}
i = 1;
while (i <= 2) {
_root["zuser" + i].gotoAndStop(17);
if (i > 1) {
_root["zuser" + i].gotoAndStop(36);
}
i++;
}
jenSen2 = (_root.xuser2._currentframe - 1) - 19;
jenisMain = 2;
} else if (jenisMain == 2) {
i = 1;
while (i <= 8) {
_root["xuser" + i].gotoAndStop(jenisUser[i]);
if (i > 1) {
_root["xuser" + i].gotoAndStop(jenisUser[i] + 19);
}
i++;
}
i = 1;
while (i <= 4) {
_root["yuser" + i].gotoAndStop(17);
if (i > 1) {
_root["yuser" + i].gotoAndStop(36);
}
i++;
}
i = 1;
while (i <= 2) {
_root["zuser" + i].gotoAndStop(17);
if (i > 1) {
_root["zuser" + i].gotoAndStop(36);
}
i++;
}
_root.yuser1.gotoAndStop(jenisUser[1]);
if (_root.xuser3._currentframe > _root.xuser4._currentframe) {
_root.yuser2.gotoAndStop(jenisUser[3] + 19);
} else {
_root.yuser2.gotoAndStop(jenisUser[4] + 19);
}
if (_root.xuser5._currentframe > _root.xuser6._currentframe) {
_root.yuser3.gotoAndStop(jenisUser[5] + 19);
} else {
_root.yuser3.gotoAndStop(jenisUser[6] + 19);
}
if (_root.xuser7._currentframe > _root.xuser8._currentframe) {
_root.yuser4.gotoAndStop(jenisUser[7] + 19);
} else {
_root.yuser4.gotoAndStop(jenisUser[8] + 19);
}
jenSen2 = (_root.yuser2._currentframe - 1) - 19;
jenisMain = 3;
} else if (jenisMain == 3) {
i = 1;
while (i <= 8) {
_root["xuser" + i].gotoAndStop(jenisUser[i]);
if (i > 1) {
_root["xuser" + i].gotoAndStop(jenisUser[i] + 19);
}
i++;
}
i = 1;
while (i <= 4) {
_root["yuser" + i].gotoAndStop(17);
if (i > 1) {
_root["yuser" + i].gotoAndStop(36);
}
i++;
}
i = 1;
while (i <= 2) {
_root["zuser" + i].gotoAndStop(17);
if (i > 1) {
_root["zuser" + i].gotoAndStop(36);
}
i++;
}
_root.yuser1.gotoAndStop(jenisUser[1]);
if (_root.xuser3._currentframe > _root.xuser4._currentframe) {
_root.yuser2.gotoAndStop(jenisUser[3] + 19);
} else {
_root.yuser2.gotoAndStop(jenisUser[4] + 19);
}
if (_root.xuser5._currentframe > _root.xuser6._currentframe) {
_root.yuser3.gotoAndStop(jenisUser[5] + 19);
} else {
_root.yuser3.gotoAndStop(jenisUser[6] + 19);
}
if (_root.xuser7._currentframe > _root.xuser8._currentframe) {
_root.yuser4.gotoAndStop(jenisUser[7] + 19);
} else {
_root.yuser4.gotoAndStop(jenisUser[8] + 19);
}
_root.zuser1.gotoAndStop(jenisUser[1]);
if (_root.yuser3._currentframe > _root.yuser4._currentframe) {
_root.zuser2.gotoAndStop(_root.yuser3._currentframe);
} else {
_root.zuser2.gotoAndStop(_root.yuser4._currentframe);
}
jenSen2 = (_root.zuser2._currentframe - 1) - 19;
jenisMain = 4;
} else if (jenisMain == 4) {
i = 1;
while (i <= 8) {
_root["xuser" + i].gotoAndStop(jenisUser[i]);
if (i > 1) {
_root["xuser" + i].gotoAndStop(jenisUser[i] + 19);
}
i++;
}
i = 1;
while (i <= 4) {
_root["yuser" + i].gotoAndStop(17);
if (i > 1) {
_root["yuser" + i].gotoAndStop(36);
}
i++;
}
i = 1;
while (i <= 2) {
_root["zuser" + i].gotoAndStop(17);
if (i > 1) {
_root["zuser" + i].gotoAndStop(36);
}
i++;
}
_root.yuser1.gotoAndStop(jenisUser[1]);
if (_root.xuser3._currentframe > _root.xuser4._currentframe) {
_root.yuser2.gotoAndStop(jenisUser[3] + 19);
} else {
_root.yuser2.gotoAndStop(jenisUser[4] + 19);
}
if (_root.xuser5._currentframe > _root.xuser6._currentframe) {
_root.yuser3.gotoAndStop(jenisUser[5] + 19);
} else {
_root.yuser3.gotoAndStop(jenisUser[6] + 19);
}
if (_root.xuser7._currentframe > _root.xuser8._currentframe) {
_root.yuser4.gotoAndStop(jenisUser[7] + 19);
} else {
_root.yuser4.gotoAndStop(jenisUser[8] + 19);
}
_root.zuser1.gotoAndStop(jenisUser[1]);
if (_root.yuser3._currentframe > _root.yuser4._currentframe) {
_root.zuser2.gotoAndStop(_root.yuser3._currentframe);
} else {
_root.zuser2.gotoAndStop(_root.yuser4._currentframe);
}
backTepuk();
jenisGame = "death";
youWin = "CONGRATULATION\nYOU WIN THE TOURNAMENT";
xok_btn._visible = true;
back_btn._visible = false;
fight_btn._visible = false;
}
Frame 98
function initAwal() {
attachMovie("info_mc", "info_mc", 10013, {_x:8, _y:352});
zmatch = 1;
zmatch1 = 1;
zmatch2 = 1;
i = 1;
while (i <= 5) {
_root.info_mc["xstar" + i].gotoAndStop(1);
_root.info_mc["ystar" + i].gotoAndStop(1);
i++;
}
_root.info_mc.you_mc.gotoAndStop(jenSen1 + 1);
_root.info_mc.komp_mc.gotoAndStop(jenSen2 + 1);
if (level == "EASY") {
indiX = 4000;
} else if (level == "NORMAL") {
indiX = 2000;
} else if (level == "HARD") {
indiX = 1000;
}
idX = setInterval(setX, indiX);
idAksi = setInterval(aksiMusuh, 6000);
idPelan = setInterval(pelan, 12000);
info_mc.onEnterFrame = function () {
this.bar1_mc._xscale = darah1;
this.bar2_mc._xscale = darah2;
if (this.bar1_mc._xscale < 0) {
this.bar1_mc._xscale = 0;
}
if (this.bar2_mc._xscale < 0) {
this.bar2_mc._xscale = 0;
}
i = 1;
while (i <= 5) {
this["xstar" + i]._visible = false;
this["ystar" + i]._visible = false;
i++;
}
info_mc.xbar1_mc._xscale = power1;
info_mc.xbar2_mc._xscale = power2;
info_mc.rounde = "ROUND " + zmatch;
if (rounde == 1) {
this.xstar1._visible = true;
this.ystar1._visible = true;
} else if (rounde == 3) {
i = 1;
while (i <= 2) {
this["xstar" + i]._visible = true;
this["ystar" + i]._visible = true;
i++;
}
} else if (rounde == 5) {
i = 1;
while (i <= 3) {
this["xstar" + i]._visible = true;
this["ystar" + i]._visible = true;
i++;
}
} else if (rounde == 7) {
i = 1;
while (i <= 4) {
this["xstar" + i]._visible = true;
this["ystar" + i]._visible = true;
i++;
}
} else if (rounde == 9) {
i = 1;
while (i <= 5) {
this["xstar" + i]._visible = true;
this["ystar" + i]._visible = true;
i++;
}
}
};
}
function init() {
speedCar = 12;
indiSpeed = 4;
indiSpeedX = 2;
gesekan = 12;
speedX = 12;
jenisBonus = 0;
speedCarMusuh = 12;
indiSpeedMusuh = 4;
speedXMusuh = 12;
indiSpeedXMusuh = 2;
gesekanMusuh = 12;
gesekanBonus = 12;
gesekanPoint = 12;
xmasihMain = true;
jalanKiriMusuh = true;
jalanKananBonus = false;
jalanKiriBonus = false;
jalanKananPoint = false;
jalanKiriPoint = false;
jalanKiri = false;
jalanKanan = false;
xdapetBonus = false;
sekaliSaja = true;
bisaTembak = false;
bisaTembak2 = false;
tembakTerus = false;
tembakKacau1 = false;
tembakKacau2 = false;
sekaliPoint = true;
xpaused = true;
dapetBonus = 0;
keDrag1 = -101;
keDrag2 = -201;
keDrag3 = -301;
kePeluru1 = 1;
kePeluru2 = 101;
keLedak1 = 201;
keLedak2 = 301;
keDahsyat = 401;
speedPeluru1 = 35;
speedPeluru2 = 35;
darah1 = 100;
darah2 = 100;
xkurang1 = 1;
xkurang2 = 1;
xpower1 = 0;
xpower2 = 0;
power1 = 0;
power2 = 0;
car_mc.mobil_mc._xscale = 80;
car_mc.mobil_mc._yscale = 80;
musuh_mc.mobil_mc._xscale = 80;
musuh_mc.mobil_mc._yscale = 80;
attachMovie("car_mc", "car_mc", 10000, {_x:70, _y:100});
attachMovie("musuh_mc", "musuh_mc", 10001, {_x:630, _y:100});
musuh_mc._rotation = 180;
attachMovie("frame_mc", "frame_mc", 10012, {_x:0, _y:0});
attachMovie("get_mc", "get_mc", 900000002, {_x:350, _y:200});
get_mc._visible = true;
if (level == "EASY") {
indiDefault = 1000;
} else if (level == "NORMAL") {
indiDefault = 500;
} else if (level == "HARD") {
indiDefault = 250;
}
indiTembak = indiDefault;
idNembak = setInterval(nembak, indiTembak);
}
function buatDot() {
dot = attachMovie("dot_mc", "dot_mc" + dotKe, dotKe, {_x:random(700), _y:random(400)});
dot._xscale = (dot._yscale = random(101) + 50);
dot._alpha = random(51) + 50;
dotKe--;
if (dotKe < -401) {
dotKe = -301;
}
}
function pelan() {
if (!xpaused) {
speedXMusuh = 12;
}
}
function aksiMusuh() {
if (!xpaused) {
if (bonus_mc._visible != true) {
if (musuh_mc._y >= 200) {
speedCarMusuh = -12;
indiSpeedMusuh = -4;
} else {
speedCarMusuh = 12;
indiSpeedMusuh = 4;
}
}
}
}
function setX() {
if (bonus_mc._visible == true) {
if (level != "EASY") {
if (musuh_mc._x < bonus_mc._x) {
jalanKiriMusuh = false;
jalanKananMusuh = true;
} else {
jalanKiriMusuh = true;
jalanKananMusuh = false;
}
if (musuh_mc._y < bonus_mc._y) {
speedCarMusuh = 12;
indiSpeedMusuh = 4;
} else {
speedCarMusuh = -12;
indiSpeedMusuh = -4;
}
}
} else {
xrand = random(2);
if (xrand == 0) {
if (musuh_mc._x < car_mc._x) {
jalanKiriMusuh = false;
jalanKananMusuh = true;
} else {
jalanKiriMusuh = true;
jalanKananMusuh = false;
}
}
}
}
function nembak() {
if (!xpaused) {
speedPeluru2 = 35;
if ((jenisBonus == 2) && (tembakKacau2)) {
xkurang2 = 1;
sudutKe2 = new Array(musuh_mc._rotation, musuh_mc._rotation - 180, musuh_mc._rotation + 90, musuh_mc._rotation - 90);
i = 0;
while (i <= 3) {
attachMovie("peluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["peluru2_mc" + kePeluru2]._rotation = sudutKe2[i];
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 100;
_root["peluru2_mc" + kePeluru2]._yscale = 100;
kePeluru2++;
i++;
}
} else if ((jenisBonus == 3) && (tembakKacau2)) {
backGun();
xkurang2 = 1;
jarakKe2 = new Array(0, 40, -40);
i = 0;
while (i <= 2) {
attachMovie("peluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x, _y:musuh_mc._y + jarakKe2[i]});
_root["peluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 100;
_root["peluru2_mc" + kePeluru2]._yscale = 100;
kePeluru2++;
i++;
}
} else if ((((jenisBonus == 4) || (jenisBonus == 5)) || (jenisBonus == 6)) && (tembakKacau2)) {
backBall();
xkurang2 = 2;
attachMovie("xpeluru2_mc", "xpeluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["xpeluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
if ((jenisBonus == 4) || (jenisBonus == 6)) {
_root["xpeluru2_mc" + kePeluru2]._xscale = 100;
_root["xpeluru2_mc" + kePeluru2]._yscale = 100;
} else if (jenisBonus == 5) {
_root["xpeluru2_mc" + kePeluru2]._xscale = 200;
_root["xpeluru2_mc" + kePeluru2]._yscale = 200;
}
_root["xpeluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
kePeluru2++;
} else if ((jenisBonus == 7) && (tembakKacau2)) {
backCannon();
xkurang2 = 3;
xMove = new Array(0, -50);
i = 0;
while (i <= 1) {
attachMovie("ypeluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x + xMove[i], _y:musuh_mc._y});
_root["peluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 100;
_root["peluru2_mc" + kePeluru2]._yscale = 100;
kePeluru2++;
i++;
}
} else if ((jenisBonus == 8) && (tembakKacau2)) {
backCannon();
xkurang2 = 3;
attachMovie("ypeluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["peluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 100;
_root["peluru2_mc" + kePeluru2]._yscale = 100;
kePeluru2++;
} else if ((jenisBonus == 9) && (tembakKacau2)) {
backCannon();
speedPeluru2 = 70;
xkurang2 = 3;
attachMovie("ypeluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["peluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 120;
_root["peluru2_mc" + kePeluru2]._yscale = 80;
kePeluru2++;
} else if ((jenisBonus == 10) && (tembakKacau2)) {
backMine();
speedPeluru2 = 0;
xkurang2 = 4;
attachMovie("zpeluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["peluru2_mc" + kePeluru2].gotoAndStop(2);
_root["peluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 100;
_root["peluru2_mc" + kePeluru2]._yscale = 100;
kePeluru2++;
} else if ((jenisBonus == 11) && tembakKacau2) {
backMine();
speedPeluru2 = 0;
xkurang2 = 4;
attachMovie("apeluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["peluru2_mc" + kePeluru2].gotoAndStop(2);
_root["peluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 100;
_root["peluru2_mc" + kePeluru2]._yscale = 100;
kePeluru2++;
} else if ((jenisBonus == 12) && tembakKacau2) {
backMine();
speedPeluru2 = 0;
xkurang2 = 4;
jarakKeX = new Array(30, -30, 0);
jarakKeY = new Array(30, -30);
i = 0;
while (i <= 2) {
attachMovie("zpeluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x + jarakKeX[i], _y:musuh_mc._y});
_root["peluru2_mc" + kePeluru2].gotoAndStop(2);
_root["peluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 100;
_root["peluru2_mc" + kePeluru2]._yscale = 100;
kePeluru2++;
i++;
}
i = 0;
while (i <= 1) {
attachMovie("zpeluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x, _y:musuh_mc._y + jarakKeY[i]});
_root["peluru2_mc" + kePeluru2].gotoAndStop(2);
_root["peluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 100;
_root["peluru2_mc" + kePeluru2]._yscale = 100;
kePeluru2++;
i++;
}
} else if ((jenisBonus == 13) && tembakKacau2) {
backMissile();
xkurang2 = 5;
attachMovie("bpeluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x + 50, _y:musuh_mc._y});
_root["peluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 100;
_root["peluru2_mc" + kePeluru2]._yscale = 100;
kePeluru2++;
} else if ((jenisBonus == 15) && tembakKacau2) {
backAtomic();
xkurang2 = 6;
attachMovie("dpeluru2_mc", "vpeluru2_mc", 0, {_x:musuh_mc._x + 50, _y:musuh_mc._y});
_root.vpeluru2_mc._rotation = musuh_mc._rotation;
_root.vpeluru2_mc.onEnterFrame = enterPeluru2;
_root.vpeluru2_mc._xscale = 100;
_root.vpeluru2_mc._yscale = 100;
kePeluru2++;
} else {
backGun();
xkurang2 = 1;
attachMovie("peluru2_mc", "peluru2_mc" + kePeluru2, kePeluru2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["peluru2_mc" + kePeluru2]._rotation = musuh_mc._rotation;
_root["peluru2_mc" + kePeluru2].onEnterFrame = enterPeluru2;
_root["peluru2_mc" + kePeluru2]._xscale = 100;
_root["peluru2_mc" + kePeluru2]._yscale = 100;
kePeluru2++;
}
if (kePeluru2 >= 200) {
kePeluru2 = 101;
}
}
}
function enterPeluru1() {
if (!xpaused) {
if ((jenisBonus == 13) && (tembakKacau1)) {
xtengahX2 = this._x;
xtengahY2 = this._y;
xx1 = musuh_mc._x - xtengahX2;
xy1 = musuh_mc._y - xtengahY2;
xsudut2 = 57.29578 * Math.atan(xy1 / xx1);
if (((xsudut >= -90) && (xsudut <= 90)) && (xx1 >= 0)) {
this._rotation = xsudut2;
this._rotation = xsudut2;
} else {
this._rotation = xsudut2 - 180;
this._rotation = xsudut2 - 180;
}
}
this._x = this._x + (speedPeluru1 * Math.cos((-this._rotation) * 0.017453));
this._y = this._y - (speedPeluru1 * Math.sin((-this._rotation) * 0.017453));
if ((jenisBonus == 6) && (tembakKacau1)) {
if (this._x >= 700) {
this._x = 700;
randx = random(2);
if (randx == 0) {
this._rotation = this._rotation + 135;
} else {
this._rotation = this._rotation + 45;
}
} else if (this._x <= 0) {
this._x = 0;
randx = random(2);
if (randx == 0) {
this._rotation = this._rotation + 135;
} else {
this._rotation = this._rotation + 45;
}
} else if (this._y >= 400) {
this._y = 400;
randx = random(2);
if (randx == 0) {
this._rotation = this._rotation + 135;
} else {
this._rotation = this._rotation + 45;
}
} else if (this._y <= 0) {
this._y = 0;
randx = random(2);
if (randx == 0) {
this._rotation = this._rotation + 135;
} else {
this._rotation = this._rotation + 45;
}
}
} else if ((jenisBonus == 8) && (tembakKacau1)) {
if (this._x >= 700) {
this._x = 0;
} else if (this._x <= 0) {
this._x = 700;
} else if (this._y >= 400) {
this._y = 0;
} else if (this._y <= 0) {
this._y = 400;
}
} else if ((((this._x > 700) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
removeMovieClip(this);
}
if ((xkurang1 == 4) && (tembakKacau1)) {
if (this._currentframe == 1) {
this._visible = false;
removeMovieClip(this);
}
}
if (this.hitTest(musuh_mc.mobil_mc)) {
score = score + 10;
if (xkurang1 == 1) {
darah2 = darah2 - xkurang1;
attachMovie("ledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["ledak2_mc" + keLedak2]._xscale = 100;
_root["ledak2_mc" + keLedak2]._yscale = 100;
removeMovieClip(this);
} else if (xkurang1 == 2) {
darah2 = darah2 - xkurang1;
attachMovie("xledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
if ((jenisBonus == 4) || (jenisBonus == 6)) {
_root["ledak2_mc" + keLedak2]._xscale = 100;
_root["ledak2_mc" + keLedak2]._yscale = 100;
} else if (jenisBonus == 5) {
_root["ledak2_mc" + keLedak2]._xscale = 300;
_root["ledak2_mc" + keLedak2]._yscale = 300;
}
removeMovieClip(this);
} else if (xkurang1 == 3) {
darah2 = darah2 - xkurang1;
attachMovie("yledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:this._x, _y:this._y});
_root["ledak2_mc" + keLedak2]._xscale = 100;
_root["ledak2_mc" + keLedak2]._yscale = 100;
removeMovieClip(this);
} else if (xkurang1 == 4) {
if (this._currentframe == 2) {
backLedak();
this.gotoAndPlay(3);
darah2 = darah2 - xkurang1;
if ((jenisBonus == 10) || (jenisBonus == 12)) {
attachMovie("zledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:this._x, _y:this._y});
}
_root["ledak2_mc" + keLedak2]._xscale = 100;
_root["ledak2_mc" + keLedak2]._yscale = 100;
} else if (this._currentframe == 10) {
removeMovieClip(this);
}
} else if (xkurang1 == 5) {
darah2 = darah2 - xkurang1;
attachMovie("aledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:this._x, _y:this._y});
_root["ledak2_mc" + keLedak2]._xscale = 100;
_root["ledak2_mc" + keLedak2]._yscale = 100;
keLedak2++;
attachMovie("bledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:this._x, _y:this._y});
_root["ledak2_mc" + keLedak2]._xscale = 400;
_root["ledak2_mc" + keLedak2]._yscale = 400;
removeMovieClip(this);
} else if (xkurang1 == 6) {
darah2 = darah2 - xkurang1;
attachMovie("ledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["ledak2_mc" + keLedak2]._xscale = 50;
_root["ledak2_mc" + keLedak2]._yscale = 50;
keLedak2++;
attachMovie("xledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["ledak2_mc" + keLedak2]._xscale = 300;
_root["ledak2_mc" + keLedak2]._yscale = 300;
keLedak2++;
attachMovie("yledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["ledak2_mc" + keLedak2]._xscale = 50;
_root["ledak2_mc" + keLedak2]._yscale = 50;
keLedak2++;
attachMovie("zledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["ledak2_mc" + keLedak2]._xscale = 50;
_root["ledak2_mc" + keLedak2]._yscale = 50;
keLedak2++;
attachMovie("aledak2_mc", "ledak2_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
_root["ledak2_mc" + keLedak2]._xscale = 100;
_root["ledak2_mc" + keLedak2]._yscale = 100;
}
keLedak2++;
if (keLedak2 >= 400) {
keLedak2 = 301;
}
}
}
}
function enterPeluru2() {
if (!xpaused) {
if ((jenisBonus == 13) && (tembakKacau2)) {
ytengahX2 = this._x;
ytengahY2 = this._y;
yx1 = car_mc._x - ytengahX2;
yy1 = car_mc._y - ytengahY2;
ysudut2 = 57.29578 * Math.atan(yy1 / yx1);
if (((ysudut >= -90) && (ysudut <= 90)) && (yx1 >= 0)) {
this._rotation = ysudut2;
this._rotation = ysudut2;
} else {
this._rotation = ysudut2 - 180;
this._rotation = ysudut2 - 180;
}
}
this._x = this._x + (speedPeluru2 * Math.cos((-this._rotation) * 0.017453));
this._y = this._y - (speedPeluru2 * Math.sin((-this._rotation) * 0.017453));
if ((jenisBonus == 6) && (tembakKacau2)) {
if (this._x >= 700) {
this._x = 700;
randx = random(2);
if (randx == 0) {
this._rotation = this._rotation + 135;
} else {
this._rotation = this._rotation + 45;
}
} else if (this._x <= 0) {
this._x = 0;
randx = random(2);
if (randx == 0) {
this._rotation = this._rotation + 135;
} else {
this._rotation = this._rotation + 45;
}
} else if (this._y >= 400) {
this._y = 400;
randx = random(2);
if (randx == 0) {
this._rotation = this._rotation + 135;
} else {
this._rotation = this._rotation + 45;
}
} else if (this._y <= 0) {
this._y = 0;
randx = random(2);
if (randx == 0) {
this._rotation = this._rotation + 135;
} else {
this._rotation = this._rotation + 45;
}
}
} else if ((jenisBonus == 8) && (tembakKacau2)) {
if (this._x >= 700) {
this._x = 0;
} else if (this._x <= 0) {
this._x = 700;
} else if (this._y >= 400) {
this._y = 0;
} else if (this._y <= 0) {
this._y = 400;
}
} else if ((((this._x > 700) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
removeMovieClip(this);
}
if ((xkurang2 == 4) && (tembakKacau2)) {
if (this._currentframe == 1) {
this._visible = false;
removeMovieClip(this);
}
}
if (this.hitTest(car_mc.mobil_mc)) {
score--;
if (score <= 0) {
score = 0;
}
if (xkurang2 == 1) {
darah1 = darah1 - xkurang2;
attachMovie("ledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:car_mc._x, _y:car_mc._y});
_root["ledak1_mc" + keLedak1]._xscale = 100;
_root["ledak1_mc" + keLedak1]._yscale = 100;
removeMovieClip(this);
} else if (xkurang2 == 2) {
darah1 = darah1 - xkurang2;
attachMovie("xledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:car_mc._x, _y:car_mc._y});
if ((jenisBonus == 4) || (jenisBonus == 6)) {
_root["ledak1_mc" + keLedak1]._xscale = 100;
_root["ledak1_mc" + keLedak1]._yscale = 100;
} else if (jenisBonus == 5) {
_root["ledak1_mc" + keLedak1]._xscale = 300;
_root["ledak1_mc" + keLedak1]._yscale = 300;
}
removeMovieClip(this);
} else if (xkurang2 == 3) {
darah1 = darah1 - xkurang2;
attachMovie("yledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:this._x, _y:this._y});
_root["ledak1_mc" + keLedak1]._xscale = 100;
_root["ledak1_mc" + keLedak1]._yscale = 100;
removeMovieClip(this);
} else if (xkurang2 == 4) {
if (this._currentframe == 2) {
backLedak();
this.gotoAndPlay(3);
darah1 = darah1 - xkurang2;
if ((jenisBonus == 10) || (jenisBonus == 12)) {
attachMovie("zledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:this._x, _y:this._y});
}
_root["ledak1_mc" + keLedak1]._xscale = 100;
_root["ledak1_mc" + keLedak1]._yscale = 100;
} else if (this._currentframe == 10) {
removeMovieClip(this);
}
} else if (xkurang2 == 5) {
darah1 = darah1 - xkurang2;
attachMovie("aledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:this._x, _y:this._y});
_root["ledak1_mc" + keLedak1]._xscale = 100;
_root["ledak1_mc" + keLedak1]._yscale = 100;
keLedak1++;
attachMovie("bledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:this._x, _y:this._y});
_root["ledak1_mc" + keLedak1]._xscale = 400;
_root["ledak1_mc" + keLedak1]._yscale = 400;
removeMovieClip(this);
} else if (xkurang2 == 6) {
darah1 = darah1 - xkurang2;
attachMovie("ledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:car_mc._x, _y:car_mc._y});
_root["ledak1_mc" + keLedak1]._xscale = 50;
_root["ledak1_mc" + keLedak1]._yscale = 50;
keLedak1++;
attachMovie("xledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:car_mc._x, _y:car_mc._y});
_root["ledak1_mc" + keLedak1]._xscale = 300;
_root["ledak1_mc" + keLedak1]._yscale = 300;
keLedak1++;
attachMovie("yledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:car_mc._x, _y:car_mc._y});
_root["ledak1_mc" + keLedak1]._xscale = 50;
_root["ledak1_mc" + keLedak1]._yscale = 50;
keLedak1++;
attachMovie("zledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:car_mc._x, _y:car_mc._y});
_root["ledak1_mc" + keLedak1]._xscale = 50;
_root["ledak1_mc" + keLedak1]._yscale = 50;
keLedak1++;
attachMovie("aledak1_mc", "ledak1_mc" + keLedak1, keLedak1, {_x:car_mc._x, _y:car_mc._y});
_root["ledak1_mc" + keLedak1]._xscale = 100;
_root["ledak1_mc" + keLedak1]._yscale = 100;
}
keLedak1++;
if (keLedak1 >= 300) {
keLedak1 = 201;
}
}
}
}
function nextMatch() {
if (xmasihMain == true) {
if (ygMenang == 1) {
_root.info_mc["xstar" + zmatch1].gotoAndStop(2);
zmatch1++;
} else if (ygMenang == 2) {
_root.info_mc["ystar" + zmatch2].gotoAndStop(2);
zmatch2++;
}
zmatch++;
sudahMenang1 = false;
sudahMenang2 = false;
if (rounde == 1) {
if (_root.info_mc.xstar1._currentframe == 2) {
sudahMenang1 = true;
} else if (_root.info_mc.ystar1._currentframe == 2) {
sudahMenang2 = true;
}
} else if (rounde == 3) {
if (_root.info_mc.xstar2._currentframe == 2) {
sudahMenang1 = true;
} else if (_root.info_mc.ystar2._currentframe == 2) {
sudahMenang2 = true;
}
} else if (rounde == 5) {
if (_root.info_mc.xstar3._currentframe == 2) {
sudahMenang1 = true;
} else if (_root.info_mc.ystar3._currentframe == 2) {
sudahMenang2 = true;
}
} else if (rounde == 7) {
if (_root.info_mc.xstar4._currentframe == 2) {
sudahMenang1 = true;
} else if (_root.info_mc.ystar4._currentframe == 2) {
sudahMenang2 = true;
}
} else if (rounde == 9) {
if (_root.info_mc.xstar5._currentframe == 2) {
sudahMenang1 = true;
} else if (_root.info_mc.ystar5._currentframe == 2) {
sudahMenang2 = true;
}
}
if ((sudahMenang1 == true) || (sudahMenang2 == true)) {
if (sudahMenang1 == true) {
backAwal();
zmatch--;
get_mc.gotoAndPlay("win");
} else if (sudahMenang2 == true) {
backAwal();
zmatch--;
get_mc.gotoAndPlay("lose");
}
} else {
get_mc.gotoAndPlay("xnext");
}
}
}
function nextMatch2() {
keluarin("lanjut");
init();
}
function kurang() {
if (!xpaused) {
if (dapetBonus == 1) {
if (power1 > 0) {
power1--;
} else {
xscaled1 = 100;
jenisBonus = 0;
power1 = 0;
clearInterval(idKurang);
clearInterval(idPower);
bisaTembak = false;
tembakTerus = false;
xdapetBonus = false;
tembakKacau1 = false;
tembakKacau2 = false;
cpeluru_mc.gotoAndStop(2);
removeMovieClip(cpeluru_mc);
car_mc.gotoAndStop(1);
}
} else if (power2 > 0) {
power2--;
} else {
xscaled2 = 100;
jenisBonus = 0;
xpower2 = 0;
clearInterval(idKurang);
clearInterval(idNembak);
clearInterval(idPower);
indiTembak = indiDefault;
bisaTembak2 = false;
idNembak = setInterval(nembak, indiTembak);
xdapetBonus = false;
tembakKacau1 = false;
tembakKacau2 = false;
cpeluru2_mc.gotoAndStop(2);
removeMovieClip(cpeluru2_mc);
musuh_mc.gotoAndStop(1);
}
}
}
function power() {
if (!xpaused) {
if (dapetBonus == 1) {
if (power1 < xpower1) {
power1++;
} else {
power1 = xpower1;
clearInterval(idPower);
idKurang = setInterval(kurang, 50);
}
} else if (power2 < xpower2) {
power2++;
} else {
power2 = xpower2;
clearInterval(idPower);
idKurang = setInterval(kurang, 50);
}
}
}
function delay() {
if (!xpaused) {
sekaliSaja = true;
clearInterval(idDelay);
}
}
function lanjutin() {
if (get_mc._currentframe == 55) {
xpaused = false;
} else {
get_mc.play();
}
}
function ulangSaja() {
keluarin("lanjut");
clearInterval(idX);
clearInterval(idAksi);
clearInterval(idPelan);
clearInterval(idDot);
removeMovieClip(get_mc);
removeMovieClip(info_mc);
initAwal();
init();
}
function keluarin(indi) {
removeMovieClip(car_mc);
removeMovieClip(musuh_mc);
removeMovieClip(frame_mc);
removeMovieClip(msgBox_mc);
removeMovieClip(spot_mc);
removeMovieClip(bonus_mc);
removeMovieClip(point_mc);
removeMovieClip(ledakan_mc);
ledakan_mc._visible = false;
i = -401;
while (i <= -301) {
removeMovieClip(_root["dot_mc" + u]);
i++;
}
i = 1;
while (i <= 101) {
removeMovieClip(_root["peluru1_mc" + i]);
removeMovieClip(_root["xpeluru1_mc" + i]);
removeMovieClip(_root["ypeluru1_mc" + i]);
removeMovieClip(_root["zpeluru1_mc" + i]);
removeMovieClip(_root["apeluru1_mc" + i]);
removeMovieClip(_root["bpeluru1_mc" + i]);
removeMovieClip(_root.cpeluru1_mc);
removeMovieClip(_root["dpeluru1_mc" + i]);
removeMovieClip(_root["vpeluru1_mc" + i]);
removeMovieClip(_root["peluru_mc" + i]);
removeMovieClip(_root["xpeluru_mc" + i]);
removeMovieClip(_root["ypeluru_mc" + i]);
removeMovieClip(_root["zpeluru_mc" + i]);
removeMovieClip(_root["apeluru_mc" + i]);
removeMovieClip(_root["bpeluru_mc" + i]);
removeMovieClip(_root.cpeluru_mc);
removeMovieClip(_root["dpeluru_mc" + i]);
removeMovieClip(_root["vpeluru_mc" + i]);
i++;
}
i = 101;
while (i < 201) {
removeMovieClip(_root["peluru2_mc" + i]);
removeMovieClip(_root["xpeluru2_mc" + i]);
removeMovieClip(_root["ypeluru2_mc" + i]);
removeMovieClip(_root["zpeluru2_mc" + i]);
removeMovieClip(_root["apeluru2_mc" + i]);
removeMovieClip(_root["bpeluru2_mc" + i]);
removeMovieClip(_root.cpeluru2_mc);
removeMovieClip(_root["dpeluru2_mc" + i]);
removeMovieClip(_root["vpeluru2_mc" + i]);
i++;
}
i = 201;
while (i <= 301) {
removeMovieClip(_root["ledak1_mc" + i]);
i++;
}
i = 301;
while (i <= 401) {
removeMovieClip(_root["ledak2_mc" + i]);
removeMovieClip(_root["ledak3_mc" + i]);
i++;
}
i = -101;
while (i <= 1) {
removeMovieClip(_root["drag1_mc" + i]);
i++;
}
i = -201;
while (i <= 101) {
removeMovieClip(_root["drag2_mc" + i]);
i++;
}
i = -301;
while (i <= 201) {
removeMovieClip(_root["drag2_mc" + i]);
i++;
}
i = 401;
while (i <= 501) {
removeMovieClip(_root["dahsyat_mc" + i]);
i++;
}
clearInterval(idNembak);
clearInterval(idDelay);
clearInterval(idPower);
clearInterval(idKurang);
if (indi != "lanjut") {
clearInterval(idX);
clearInterval(idAksi);
clearInterval(idPelan);
clearInterval(idDot);
removeMovieClip(get_mc);
get_mc._visible = false;
removeMovieClip(info_mc);
if (ggsedangMain == true) {
if (jenisGame == "tour") {
gotoAndStop ("high");
} else {
gotoAndStop ("menu");
}
} else {
gotoAndStop ("menu");
}
}
}
stop();
ggsedangMain = true;
initAwal();
init();
idDot = setInterval(buatDot, 10);
dotKe = -301;
this.onMouseDown = function () {
if (!xpaused) {
speedPeluru1 = 35;
if (tembakTerus == false) {
if ((jenisBonus == 2) && (tembakKacau1)) {
backGun();
xkurang1 = 1;
sudutKe1 = new Array(car_mc._rotation, car_mc._rotation - 180, car_mc._rotation + 90, car_mc._rotation - 90);
i = 0;
while (i <= 3) {
attachMovie("peluru_mc", "peluru_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root["peluru_mc" + kePeluru1]._rotation = sudutKe1[i];
_root["peluru_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru_mc" + kePeluru1]._xscale = 100;
_root["peluru_mc" + kePeluru1]._yscale = 100;
kePeluru1++;
i++;
}
} else if ((jenisBonus == 3) && (tembakKacau1)) {
backGun();
xkurang1 = 1;
jarakKe1 = new Array(0, 40, -40);
i = 0;
while (i <= 2) {
attachMovie("peluru_mc", "peluru_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y + jarakKe1[i]});
_root["peluru_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru_mc" + kePeluru1]._xscale = 100;
_root["peluru_mc" + kePeluru1]._yscale = 100;
kePeluru1++;
i++;
}
} else if ((((jenisBonus == 4) || (jenisBonus == 5)) || (jenisBonus == 6)) && (tembakKacau1)) {
backBall();
xkurang1 = 2;
attachMovie("xpeluru1_mc", "xpeluru1_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root["xpeluru1_mc" + kePeluru1]._rotation = car_mc._rotation;
if ((jenisBonus == 4) || (jenisBonus == 6)) {
_root["xpeluru1_mc" + kePeluru1]._xscale = 100;
_root["xpeluru1_mc" + kePeluru1]._yscale = 100;
} else if (jenisBonus == 5) {
_root["xpeluru1_mc" + kePeluru1]._xscale = 200;
_root["xpeluru1_mc" + kePeluru1]._yscale = 200;
}
_root["xpeluru1_mc" + kePeluru1].onEnterFrame = enterPeluru1;
kePeluru1++;
} else if ((jenisBonus == 7) && (tembakKacau1)) {
backCannon();
xkurang1 = 3;
xMove = new Array(0, -50);
i = 0;
while (i <= 1) {
attachMovie("ypeluru1_mc", "peluru_mc" + kePeluru1, kePeluru1, {_x:car_mc._x + xMove[i], _y:car_mc._y});
_root["peluru_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru_mc" + kePeluru1]._xscale = 100;
_root["peluru_mc" + kePeluru1]._yscale = 100;
kePeluru1++;
i++;
}
} else if ((jenisBonus == 8) && (tembakKacau1)) {
backCannon();
xkurang1 = 3;
attachMovie("ypeluru1_mc", "peluru_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root["peluru_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru_mc" + kePeluru1]._xscale = 100;
_root["peluru_mc" + kePeluru1]._yscale = 100;
kePeluru1++;
} else if ((jenisBonus == 9) && (tembakKacau1)) {
backCannon();
speedPeluru1 = 70;
xkurang1 = 3;
attachMovie("ypeluru1_mc", "peluru_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root["peluru_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru_mc" + kePeluru1]._xscale = 120;
_root["peluru_mc" + kePeluru1]._yscale = 80;
kePeluru1++;
} else if ((jenisBonus == 10) && tembakKacau1) {
backMine();
speedPeluru1 = 0;
xkurang1 = 4;
attachMovie("zpeluru1_mc", "peluru_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root["peluru_mc" + kePeluru1].gotoAndStop(2);
_root["peluru_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru_mc" + kePeluru1]._xscale = 100;
_root["peluru_mc" + kePeluru1]._yscale = 100;
kePeluru1++;
} else if ((jenisBonus == 11) && tembakKacau1) {
backMine();
speedPeluru1 = 0;
xkurang1 = 4;
attachMovie("apeluru1_mc", "peluru_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root["peluru_mc" + kePeluru1].gotoAndStop(2);
_root["peluru_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru_mc" + kePeluru1]._xscale = 100;
_root["peluru_mc" + kePeluru1]._yscale = 100;
kePeluru1++;
} else if ((jenisBonus == 12) && tembakKacau1) {
backMine();
speedPeluru1 = 0;
xkurang1 = 4;
jarakKeX = new Array(30, -30, 0);
jarakKeY = new Array(30, -30);
i = 0;
while (i <= 2) {
attachMovie("zpeluru1_mc", "peluru1_mc" + kePeluru1, kePeluru1, {_x:car_mc._x + jarakKeX[i], _y:car_mc._y});
_root["peluru1_mc" + kePeluru1].gotoAndStop(2);
_root["peluru1_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru1_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru1_mc" + kePeluru1]._xscale = 100;
_root["peluru1_mc" + kePeluru1]._yscale = 100;
kePeluru1++;
i++;
}
i = 0;
while (i <= 1) {
attachMovie("zpeluru1_mc", "peluru1_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y + jarakKeY[i]});
_root["peluru1_mc" + kePeluru1].gotoAndStop(2);
_root["peluru1_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru1_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru1_mc" + kePeluru1]._xscale = 100;
_root["peluru1_mc" + kePeluru1]._yscale = 100;
kePeluru1++;
i++;
}
} else if ((jenisBonus == 13) && tembakKacau1) {
backMissile();
xkurang1 = 5;
attachMovie("bpeluru1_mc", "peluru_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root["peluru_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru_mc" + kePeluru1]._xscale = 100;
_root["peluru_mc" + kePeluru1]._yscale = 100;
kePeluru1++;
} else if ((jenisBonus == 15) && tembakKacau1) {
backAtomic();
xkurang1 = 6;
attachMovie("dpeluru1_mc", "vpeluru_mc", 0, {_x:car_mc._x, _y:car_mc._y});
_root.vpeluru_mc.onEnterFrame = enterPeluru1;
_root.vpeluru_mc._rotation = car_mc._rotation;
_root.vpeluru_mc._xscale = 100;
_root.vpeluru_mc._yscale = 100;
kePeluru1++;
} else {
backGun();
xkurang1 = 1;
attachMovie("peluru_mc", "peluru_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root["peluru_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru_mc" + kePeluru1].onEnterFrame = enterPeluru1;
_root["peluru_mc" + kePeluru1]._xscale = 100;
_root["peluru_mc" + kePeluru1]._yscale = 100;
kePeluru1++;
}
if (kePeluru1 >= 100) {
kePeluru1 = 0;
}
} else {
bisaTembak = true;
}
}
};
this.onMouseUp = function () {
if (!xpaused) {
bisaTembak = false;
}
};
_root.onEnterFrame = function () {
_root.info_mc.score = "YOUR SCORES : " + score;
_root.info_mc.high = "HIGH SCORES : " + scoreHigh;
if (!xpaused) {
attachMovie("drag1_mc", "drag1_mc" + keDrag1, keDrag1, {_x:car_mc._x, _y:car_mc._y});
keDrag1++;
if (keDrag1 >= 0) {
keDrag1 = -101;
}
attachMovie("drag2_mc", "drag2_mc" + keDrag2, keDrag2, {_x:musuh_mc._x, _y:musuh_mc._y});
keDrag2++;
if (keDrag2 >= -100) {
keDrag2 = -201;
}
attachMovie("drag3_mc", "drag3_mc" + keDrag3, keDrag3, {_x:bonus_mc._x, _y:bonus_mc._y});
keDrag3++;
if (keDrag3 >= -200) {
keDrag3 = -301;
}
tengahX = car_mc._x;
tengahY = car_mc._y;
x1 = _root._xmouse - tengahX;
y1 = _root._ymouse - tengahY;
sudut = 57.29578 * Math.atan(y1 / x1);
if (((sudut >= -90) && (sudut <= 90)) && (x1 >= 0)) {
car_mc._rotation = sudut;
car_mc._rotation = sudut;
} else {
car_mc._rotation = sudut - 180;
car_mc._rotation = sudut - 180;
}
tengahX2 = musuh_mc._x;
tengahY2 = musuh_mc._y;
x1 = car_mc._x - tengahX2;
y1 = car_mc._y - tengahY2;
sudut2 = 57.29578 * Math.atan(y1 / x1);
if (((sudut >= -90) && (sudut <= 90)) && (x1 >= 0)) {
musuh_mc._rotation = sudut2;
musuh_mc._rotation = sudut2;
} else {
musuh_mc._rotation = sudut2 - 180;
musuh_mc._rotation = sudut2 - 180;
}
bonus_mc._y = bonus_mc._y + speedBonus;
speedBonus = speedBonus + indiSpeedBonus;
point_mc._y = point_mc._y + speedPoint;
if (jalanKananBonus) {
bonus_mc._rotation = bonus_mc._rotation + speedXBonus;
} else if (jalanKiriBonus) {
bonus_mc._rotation = bonus_mc._rotation - speedXBonus;
}
if (jalanKananPoint) {
point_mc._rotation = point_mc._rotation + speedXBonus;
} else if (jalanKiriBonus) {
point_mc._rotation = point_mc._rotation - speedXBonus;
}
car_mc._y = car_mc._y + speedCar;
speedCar = speedCar + indiSpeed;
car_mc.mobil_mc._xscale = car_mc.mobil_mc._xscale + 5;
if (car_mc.mobil_mc._xscale >= 80) {
car_mc.mobil_mc._xscale = 80;
}
car_mc.mobil_mc._yscale = car_mc.mobil_mc._yscale + 5;
if (car_mc.mobil_mc._yscale >= 80) {
car_mc.mobil_mc._yscale = 80;
}
if (car_mc._y > 330) {
if (speedCar != 8) {
backBoom();
attachMovie("ledak3_mc", "ledak3_mc" + keLedak2, keLedak2, {_x:car_mc._x, _y:car_mc._y});
keLedak2++;
if (keLedak2 >= 400) {
keLedak2 = 301;
}
}
car_mc._y = 330;
speedCar = -speedCar;
speedCar = speedCar + gesekan;
car_mc.mobil_mc._xscale = 60;
} else if (car_mc._y < 30) {
if (speedCar != -8) {
backBoom();
attachMovie("ledak3_mc", "ledak3_mc" + keLedak2, keLedak2, {_x:car_mc._x, _y:car_mc._y});
keLedak2++;
if (keLedak2 >= 400) {
keLedak2 = 301;
}
}
car_mc._y = 30;
speedCar = -speedCar;
speedCar = speedCar - gesekan;
car_mc.mobil_mc._xscale = 60;
}
musuh_mc._y = musuh_mc._y + speedCarMusuh;
speedCarMusuh = speedCarMusuh + indiSpeedMusuh;
musuh_mc.mobil_mc._xscale = musuh_mc.mobil_mc._xscale + 5;
if (musuh_mc.mobil_mc._xscale >= 80) {
musuh_mc.mobil_mc._xscale = 80;
}
musuh_mc.mobil_mc._yscale = musuh_mc.mobil_mc._yscale + 5;
if (musuh_mc.mobil_mc._yscale >= 80) {
musuh_mc.mobil_mc._yscale = 80;
}
if (bonus_mc._y > 330) {
bonus_mc._y = 330;
speedBonus = -speedBonus;
speedBonus = speedBonus + gesekanBonus;
} else if (bonus_mc._y < 30) {
bonus_mc._y = 30;
speedBonus = -speedBonus;
speedBonus = speedBonus + gesekanBonus;
}
if (point_mc._y > 330) {
point_mc._y = 330;
speedPoint = -speedPoint;
} else if (point_mc._y < 30) {
point_mc._y = 30;
speedPoint = -speedPoint;
}
if (musuh_mc._y > 330) {
if (speedCarMusuh != 8) {
attachMovie("ledak3_mc", "ledak3_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
keLedak2++;
if (keLedak2 >= 400) {
keLedak2 = 301;
}
}
musuh_mc._y = 330;
speedCarMusuh = -speedCarMusuh;
speedCarMusuh = speedCarMusuh + gesekanMusuh;
musuh_mc.mobil_mc._xscale = 60;
} else if (musuh_mc._y < 30) {
if (speedCarMusuh != -8) {
attachMovie("ledak3_mc", "ledak3_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
keLedak2++;
if (keLedak2 >= 400) {
keLedak2 = 301;
}
}
musuh_mc._y = 30;
speedCarMusuh = -speedCarMusuh;
speedCarMusuh = speedCarMusuh - gesekanMusuh;
musuh_mc.mobil_mc._xscale = 60;
}
if (jalanKiriBonus) {
if (bonus_mc._x > 30) {
bonus_mc._x = bonus_mc._x - speedXBonus;
} else {
bonus_mc._x = 30;
jalanKiriBonus = false;
jalanKananBonus = true;
}
} else if (jalanKananBonus) {
if (bonus_mc._x < 670) {
bonus_mc._x = bonus_mc._x + speedXBonus;
} else {
bonus_mc._x = 670;
jalanKiriBonus = true;
jalanKananBonus = false;
}
}
if (jalanKiriPoint) {
if (point_mc._x > 30) {
point_mc._x = point_mc._x - 10;
} else {
sekaliPoint = true;
removeMovieClip(point_mc);
}
} else if (jalanKananPoint) {
if (point_mc._x < 670) {
point_mc._x = point_mc._x + 10;
} else {
sekaliPoint = true;
removeMovieClip(point_mc);
}
}
if (jalanKiriMusuh) {
if (musuh_mc._x > 30) {
musuh_mc._x = musuh_mc._x - speedXMusuh;
} else {
musuh_mc._x = 30;
speedXMusuh = speedXMusuh + indiSpeedXMusuh;
if (speedXMusuh >= 32) {
indiSpeedXMusuh = -indiSpeedXMusuh;
} else if (speedXMusuh <= 12) {
indiSpeedXMusuh = -indiSpeedXMusuh;
}
musuh_mc.mobil_mc._yscale = 60;
jalanKiriMusuh = false;
jalanKananMusuh = true;
attachMovie("ledak3_mc", "ledak3_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
keLedak2++;
if (keLedak2 >= 400) {
keLedak2 = 301;
}
}
} else if (jalanKananMusuh) {
if (musuh_mc._x < 670) {
musuh_mc._x = musuh_mc._x + speedXMusuh;
} else {
musuh_mc._x = 670;
speedXMusuh = speedXMusuh + indiSpeedXMusuh;
if (speedXMusuh >= 32) {
indiSpeedXMusuh = -indiSpeedXMusuh;
} else if (speedXMusuh <= 12) {
indiSpeedXMusuh = -indiSpeedXMusuh;
}
musuh_mc.mobil_mc._yscale = 60;
jalanKiriMusuh = true;
jalanKananMusuh = false;
attachMovie("ledak3_mc", "ledak3_mc" + keLedak2, keLedak2, {_x:musuh_mc._x, _y:musuh_mc._y});
keLedak2++;
if (keLedak2 >= 400) {
keLedak2 = 301;
}
}
}
if (jalanKiri) {
if (car_mc._x > 30) {
car_mc._x = car_mc._x - speedX;
} else {
backBoom();
car_mc._x = 30;
speedX = speedX + indiSpeedX;
if (speedX >= 32) {
indiSpeedX = -indiSpeedX;
} else if (speedX <= 12) {
indiSpeedX = -indiSpeedX;
}
car_mc.mobil_mc._yscale = 60;
jalanKiri = false;
jalanKanan = true;
attachMovie("ledak3_mc", "ledak3_mc" + keLedak2, keLedak2, {_x:car_mc._x, _y:car_mc._y});
keLedak2++;
if (keLedak2 >= 400) {
keLedak2 = 301;
}
}
}
if (jalanKanan) {
if (car_mc._x < 670) {
car_mc._x = car_mc._x + speedX;
} else {
backBoom();
car_mc._x = 670;
speedX = speedX + indiSpeedX;
if (speedX >= 32) {
indiSpeedX = -indiSpeedX;
} else if (speedX <= 12) {
indiSpeedX = -indiSpeedX;
}
car_mc.mobil_mc._yscale = 60;
jalanKiri = true;
jalanKanan = false;
attachMovie("ledak3_mc", "ledak3_mc" + keLedak2, keLedak2, {_x:car_mc._x, _y:car_mc._y});
keLedak2++;
if (keLedak2 >= 400) {
keLedak2 = 301;
}
}
}
if (car_mc.mobil_mc.hitTest(musuh_mc.mobil_mc)) {
if (sekaliPoint) {
sekaliPoint = false;
speedPoint = 6;
if (car_mc._x < 350) {
point = attachMovie("point_mc", "point_mc", 502, {_x:car_mc._x + 100, _y:car_mc._y});
jalanKananPoint = true;
jalanKiriPoint = false;
} else {
point = attachMovie("point_mc", "point_mc", 502, {_x:car_mc._x - 100, _y:car_mc._y});
jalanKananPoint = false;
jalanKiriPoint = true;
}
}
if (sekaliSaja) {
score = score + 50;
backBoom();
backUang();
idDelay = setInterval(delay, 100);
speedCar = -speedCar;
if (jalanKanan) {
jalanKanan = false;
jalanKiri = true;
} else {
jalanKanan = true;
jalanKiri = false;
}
speedCarMusuh = -speedCarMusuh;
sekaliSaja = false;
dahsyat = attachMovie("dahsyat_mc", "dahsyat_mc" + keDahsyat, keDahsyat, {_x:car_mc._x, _y:car_mc._y});
jumlah = Math.abs(speedCar) + Math.abs(speedCarMusuh);
dahsyat._xscale = jumlah * 3;
dahsyat._yscale = jumlah * 3;
keDahsyat++;
if (keDahsyat >= 500) {
keDahsyat = 401;
}
musuh_mc.mobil_mc._xscale = 60;
musuh_mc.mobil_mc._yscale = 60;
car_mc.mobil_mc._xscale = 70;
car_mc.mobil_mc._yscale = 70;
if (!xdapetBonus) {
if (jenSen1 != 0) {
backBonus();
attachMovie("spot_mc", "spot_mc", 10002, {_x:car_mc._x, _y:car_mc._y});
spot_mc._xscale = 300;
spot_mc._yscale = 300;
clearInterval(idKurang);
clearInterval(idPower);
speedBonus = 12;
speedXBonus = 24;
indiSpeedBonus = 4;
xdapetBonus = true;
if (jenSen1 == 16) {
jenisBonus = random(15) + 1;
} else {
jenisBonus = 0;
}
if (car_mc._x < 350) {
if (car_mc._x > musuh_mc._x) {
if (jenisBonus == 0) {
bonus = attachMovie("bonus0_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 1) {
bonus = attachMovie("bonus1_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 2) {
bonus = attachMovie("bonus2_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 3) {
bonus = attachMovie("bonus3_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 4) {
bonus = attachMovie("bonus4_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 5) {
bonus = attachMovie("bonus5_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 6) {
bonus = attachMovie("bonus6_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 7) {
bonus = attachMovie("bonus7_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 8) {
bonus = attachMovie("bonus8_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 9) {
bonus = attachMovie("bonus9_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 10) {
bonus = attachMovie("bonus10_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 11) {
bonus = attachMovie("bonus11_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 12) {
bonus = attachMovie("bonus12_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 13) {
bonus = attachMovie("bonus13_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 14) {
bonus = attachMovie("bonus14_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
} else if (jenisBonus == 15) {
bonus = attachMovie("bonus15_mc", "bonus_mc", 501, {_x:car_mc._x + 200, _y:car_mc._y});
}
} else if (jenisBonus == 0) {
bonus = attachMovie("bonus0_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 1) {
bonus = attachMovie("bonus1_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 2) {
bonus = attachMovie("bonus2_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 3) {
bonus = attachMovie("bonus3_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 4) {
bonus = attachMovie("bonus4_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 5) {
bonus = attachMovie("bonus5_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 6) {
bonus = attachMovie("bonus6_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 7) {
bonus = attachMovie("bonus7_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 8) {
bonus = attachMovie("bonus8_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 9) {
bonus = attachMovie("bonus9_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 10) {
bonus = attachMovie("bonus10_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 11) {
bonus = attachMovie("bonus11_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 12) {
bonus = attachMovie("bonus12_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 13) {
bonus = attachMovie("bonus13_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 14) {
bonus = attachMovie("bonus14_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
} else if (jenisBonus == 15) {
bonus = attachMovie("bonus15_mc", "bonus_mc", 501, {_x:musuh_mc._x + 200, _y:musuh_mc._y});
}
jalanKananBonus = true;
jalanKiriBonus = false;
} else {
if (car_mc._x < musuh_mc._x) {
if (jenisBonus == 0) {
bonus = attachMovie("bonus0_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 1) {
bonus = attachMovie("bonus1_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 2) {
bonus = attachMovie("bonus2_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 3) {
bonus = attachMovie("bonus3_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 4) {
bonus = attachMovie("bonus4_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 5) {
bonus = attachMovie("bonus5_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 6) {
bonus = attachMovie("bonus6_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 7) {
bonus = attachMovie("bonus7_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 8) {
bonus = attachMovie("bonus8_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 9) {
bonus = attachMovie("bonus9_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 10) {
bonus = attachMovie("bonus10_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 11) {
bonus = attachMovie("bonus11_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 12) {
bonus = attachMovie("bonus12_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 13) {
bonus = attachMovie("bonus13_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 14) {
bonus = attachMovie("bonus14_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
} else if (jenisBonus == 15) {
bonus = attachMovie("bonus15_mc", "bonus_mc", 501, {_x:car_mc._x - 200, _y:car_mc._y});
}
} else if (jenisBonus == 0) {
bonus = attachMovie("bonus0_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 1) {
bonus = attachMovie("bonus1_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 2) {
bonus = attachMovie("bonus2_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 3) {
bonus = attachMovie("bonus3_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 4) {
bonus = attachMovie("bonus4_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 5) {
bonus = attachMovie("bonus5_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 6) {
bonus = attachMovie("bonus6_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 7) {
bonus = attachMovie("bonus7_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 8) {
bonus = attachMovie("bonus8_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 9) {
bonus = attachMovie("bonus9_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 10) {
bonus = attachMovie("bonus10_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 11) {
bonus = attachMovie("bonus11_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 12) {
bonus = attachMovie("bonus12_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 13) {
bonus = attachMovie("bonus13_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 14) {
bonus = attachMovie("bonus14_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
} else if (jenisBonus == 15) {
bonus = attachMovie("bonus15_mc", "bonus_mc", 501, {_x:musuh_mc._x - 200, _y:musuh_mc._y});
}
jalanKananBonus = false;
jalanKiriBonus = true;
}
}
}
}
}
if (car_mc.mobil_mc.hitTest(point_mc)) {
backUang();
if (level == "EASY") {
score = score + (random(500) + 500);
} else if (level == "NORMAL") {
score = score + (random(1000) + 1000);
} else if (level == "HARD") {
score = score + (random(2000) + 2000);
}
sekaliPoint = true;
removeMovieClip(point_mc);
}
if (car_mc.mobil_mc.hitTest(bonus_mc)) {
score = score + 25;
attachMovie("spot_mc", "spot_mc", 10002, {_x:car_mc._x, _y:car_mc._y});
spot_mc._xscale = 300;
spot_mc._yscale = 300;
if (jenisBonus == 0) {
jenisBonus = jenSen1;
}
if (jenisBonus == 1) {
dapetGun();
info_mc.info1_mc.info = "RAPID GUN";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(2);
car_mc.efek1_mc.gotoAndPlay(2);
tembakTerus = true;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 2) {
dapetGun();
info_mc.info1_mc.info = "GUN BLAST";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(3);
car_mc.efek2_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 3) {
dapetGun();
info_mc.info1_mc.info = "TRIPLE GUNS";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(4);
car_mc.efek3_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if ((jenisBonus == 4) || (jenisBonus == 5)) {
dapetBall();
info_mc.info1_mc.gotoAndPlay(2);
car_mc.efek4_mc.gotoAndPlay(2);
if (jenisBonus == 4) {
car_mc.gotoAndStop(5);
info_mc.info1_mc.info = "FIRE ATTACK";
car_mc.efek4_mc._xscale = 100;
car_mc.efek4_mc._yscale = 100;
} else if (jenisBonus == 5) {
car_mc.gotoAndStop(6);
info_mc.info1_mc.info = "BIG FIRE ATTACK";
car_mc.efek4_mc._xscale = 200;
car_mc.efek4_mc._yscale = 200;
}
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 6) {
dapetBall();
info_mc.info1_mc.info = "BOUNCE FIRE";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(7);
car_mc.efek5_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 7) {
dapetCannon();
info_mc.info1_mc.info = "DOUBLE CANNONS";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(8);
car_mc.efek6_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 8) {
dapetCannon();
info_mc.info1_mc.info = "PIERCE CANNON";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(9);
car_mc.efek7_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 9) {
dapetCannon();
info_mc.info1_mc.info = "EXPLOSIVE CANNON";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(10);
car_mc.efek8_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 10) {
dapetMine();
info_mc.info1_mc.info = "MINE BOM";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(11);
car_mc.efek9_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 11) {
dapetMine();
info_mc.info1_mc.info = "WIDE MINE BOM";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(12);
car_mc.efek10_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 12) {
dapetMine();
info_mc.info1_mc.info = "MULTIPLE MINE BOMS";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(13);
car_mc.efek11_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 13) {
dapetMissile();
info_mc.info1_mc.info = "MISSILE LAUNCH";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(14);
car_mc.efek12_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 14) {
dapetLaser();
info_mc.info1_mc.info = "LASER BEAM";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(15);
car_mc.efek13_mc.gotoAndPlay(2);
tembakTerus = true;
dapetBonus = 1;
xscaled1 = 500;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 15) {
dapetAtomic();
info_mc.info1_mc.info = "ATOMIC KILLER";
info_mc.info1_mc.gotoAndPlay(2);
car_mc.gotoAndStop(16);
car_mc.efek14_mc.gotoAndPlay(2);
tembakKacau1 = true;
tembakKacau2 = false;
dapetBonus = 1;
xpower1 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
}
} else if (musuh_mc.mobil_mc.hitTest(bonus_mc)) {
attachMovie("spot_mc", "spot_mc", 10002, {_x:musuh_mc._x, _y:musuh_mc._y});
spot_mc._xscale = 300;
spot_mc._yscale = 300;
if (jenisBonus == 0) {
jenisBonus = jenSen2;
}
if (jenisBonus == 1) {
dapetGun();
info_mc.info2_mc.info = "RAPID GUN";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(2);
musuh_mc.efek1_mc.gotoAndPlay(2);
clearInterval(idNembak);
indiTembak = 50;
idNembak = setInterval(nembak, indiTembak);
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 2) {
dapetGun();
info_mc.info2_mc.info = "GUN BLAST";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(3);
musuh_mc.efek2_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 3) {
dapetGun();
info_mc.info2_mc.info = "TRIPLE GUNS";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(4);
musuh_mc.efek3_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if ((jenisBonus == 4) || (jenisBonus == 5)) {
dapetBall();
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.efek4_mc.gotoAndPlay(2);
if (jenisBonus == 4) {
musuh_mc.gotoAndStop(5);
info_mc.info2_mc.info = "FIRE ATTACK";
musuh_mc.efek4_mc._xscale = 100;
musuh_mc.efek4_mc._yscale = 100;
} else if (jenisBonus == 5) {
musuh_mc.gotoAndStop(6);
info_mc.info2_mc.info = "BIG FIRE ATTACK";
musuh_mc.efek4_mc._xscale = 200;
musuh_mc.efek4_mc._yscale = 200;
}
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 6) {
dapetBall();
info_mc.info2_mc.info = "BOUNCE FIRE";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(7);
musuh_mc.efek5_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 7) {
dapetCannon();
info_mc.info2_mc.info = "DOUBLE CANNONS";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(8);
musuh_mc.efek6_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 8) {
dapetCannon();
info_mc.info2_mc.info = "PIERCE CANNON";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(9);
musuh_mc.efek7_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 9) {
dapetCannon();
info_mc.info2_mc.info = "EXPLOSIVE CANNON";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(10);
musuh_mc.efek8_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 10) {
dapetMine();
info_mc.info2_mc.info = "MINE BOM";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(11);
musuh_mc.efek9_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 11) {
dapetMine();
info_mc.info2_mc.info = "WIDE MINE BOM";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(12);
musuh_mc.efek10_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 12) {
dapetMine();
info_mc.info2_mc.info = "MULTIPLE MINE BOMS";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(13);
musuh_mc.efek11_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 13) {
dapetMissile();
info_mc.info2_mc.info = "MISSILE LAUNCH";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(14);
musuh_mc.efek12_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 14) {
dapetLaser();
info_mc.info2_mc.info = "LASER BEAM";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(15);
musuh_mc.efek13_mc.gotoAndPlay(2);
clearInterval(idNembak);
bisaTembak2 = true;
dapetBonus = 2;
xscaled2 = 100;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
} else if (jenisBonus == 15) {
dapetAtomic();
info_mc.info2_mc.info = "ATOMIC KILLER";
info_mc.info2_mc.gotoAndPlay(2);
musuh_mc.gotoAndStop(16);
musuh_mc.efek14_mc.gotoAndPlay(2);
tembakKacau1 = false;
tembakKacau2 = true;
dapetBonus = 2;
xpower2 = 100;
removeMovieClip(bonus_mc);
idPower = setInterval(power, 5);
}
}
if (bisaTembak == true) {
if (jenisBonus == 1) {
backGun();
attachMovie("peluru_mc", "peluru_mc" + kePeluru1, kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root["peluru_mc" + kePeluru1]._rotation = car_mc._rotation;
_root["peluru_mc" + kePeluru1].onEnterFrame = enterPeluru1;
kePeluru1++;
if (kePeluru1 >= 100) {
kePeluru1 = 0;
}
} else if (jenisBonus == 14) {
backLaser();
xscaled1 = xscaled1 + 50;
if (xscaled1 > 3000) {
xscaled1 = 3000;
}
attachMovie("cpeluru1_mc", "cpeluru_mc", kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root.cpeluru_mc._xscale = xscaled1;
_root.cpeluru_mc._rotation = car_mc._rotation;
_root.cpeluru_mc.onEnterFrame = enterPeluru1;
if (kePeluru1 >= 100) {
kePeluru1 = 0;
}
}
} else if (jenisBonus == 14) {
if (xscaled1 > 100) {
xscaled1 = xscaled1 - 150;
xkurang1 = 1;
attachMovie("cpeluru1_mc", "cpeluru_mc", kePeluru1, {_x:car_mc._x, _y:car_mc._y});
_root.cpeluru_mc._xscale = xscaled1;
_root.cpeluru_mc._rotation = car_mc._rotation;
_root.cpeluru_mc.onEnterFrame = enterPeluru1;
if (kePeluru1 >= 100) {
kePeluru1 = 0;
}
}
}
if (bisaTembak2) {
backLaser();
xscaled2 = xscaled2 + 50;
if (xscaled2 > 3000) {
xscaled2 = 3000;
}
xkurang2 = 1;
attachMovie("cpeluru2_mc", "cpeluru2_mc", kePeluru1, {_x:musuh_mc._x, _y:musuh_mc._y});
_root.cpeluru2_mc._xscale = xscaled2;
_root.cpeluru2_mc._rotation = musuh_mc._rotation;
_root.cpeluru2_mc.onEnterFrame = enterPeluru2;
if (kePeluru1 >= 100) {
kePeluru1 = 0;
}
}
if ((darah1 <= 0) && (xpaused == false)) {
backLedak();
attachMovie("ledakan1_mc", "ledakan_mc", 900000001, {_x:car_mc._x, _y:car_mc._y});
ledakan_mc._visible = true;
removeMovieClip(car_mc);
xpaused = true;
ygMenang = 2;
if (darah2 == 100) {
get_mc.gotoAndPlay("perfect");
}
} else if ((darah2 <= 0) && (xpaused == false)) {
score = score + 500;
backUang();
backLedak();
attachMovie("ledakan2_mc", "ledakan_mc", 900000001, {_x:musuh_mc._x, _y:musuh_mc._y});
ledakan_mc._visible = true;
removeMovieClip(musuh_mc);
xpaused = true;
ygMenang = 1;
if (darah1 == 100) {
get_mc.gotoAndPlay("perfect");
}
}
}
};
myListener = new Object();
myListener.onKeyDown = function () {
if (Key.getCode() == kePause) {
if ((msgBox_mc._currentframe == undefined) || (msgBox_mc._currentframe == 25)) {
if (get_mc._currentframe != undefined) {
get_mc.stop();
xpaused = true;
attachMovie("msgBox_mc", "msgBox_mc", 900000003, {_x:350, _y:200});
}
}
}
if (Key.getCode() == keKiri) {
if (!xpaused) {
speedX = 12;
jalanKiri = true;
jalanKanan = false;
}
}
if (Key.getCode() == keKanan) {
if (!xpaused) {
speedX = 12;
jalanKanan = true;
jalanKiri = false;
}
}
if (Key.getCode() == keAtas) {
if (!xpaused) {
speedCar = -12;
indiSpeed = -4;
}
}
if (Key.getCode() == keBawah) {
if (!xpaused) {
speedCar = 12;
indiSpeed = 4;
}
}
};
myListener.onKeyUp = function () {
if (Key.getCode() == keKiri) {
if (!xpaused) {
jalanKiri = false;
}
}
if (Key.getCode() == keKanan) {
if (!xpaused) {
jalanKanan = false;
}
}
};
Key.addListener(myListener);
Frame 105
function getHighScore(wnames, wscores) {
}
stop();
xmasihMain = false;
ggsedangMain = false;
Selection.setFocus("name_mc");
xname = "";
xscore = score;
submit_btn.enabled = true;
submit_btn.onRelease = function () {
this.enabled = false;
getHighScore(xname, xscore);
};
restart_btn.onRelease = function () {
gotoAndStop ("menu");
};
Symbol 30 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 90 MovieClip [musuh_mc] Frame 1
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 146 MovieClip [car_mc] Frame 1
stop();
Symbol 152 MovieClip [ledak3_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 154 MovieClip [ledak2_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 155 MovieClip [xledak2_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 157 MovieClip [yledak2_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 159 MovieClip [zledak2_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 161 MovieClip [aledak1_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 163 MovieClip [aledak2_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 165 MovieClip [zledak1_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 167 MovieClip [yledak1_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 168 MovieClip [xledak1_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 170 MovieClip [ledak1_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 172 MovieClip [drag3_mc] Frame 9
stop();
removeMovieClip(this);
Symbol 174 MovieClip [drag2_mc] Frame 9
stop();
removeMovieClip(this);
Symbol 176 MovieClip [drag1_mc] Frame 9
stop();
removeMovieClip(this);
Symbol 179 MovieClip [dahsyat_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 35
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 30
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 266 MovieClip [zpeluru2_mc] Frame 1
play();
Symbol 266 MovieClip [zpeluru2_mc] Frame 2
stop();
Symbol 266 MovieClip [zpeluru2_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 267 MovieClip [zpeluru1_mc] Frame 2
stop();
Symbol 267 MovieClip [zpeluru1_mc] Frame 3
play();
Symbol 267 MovieClip [zpeluru1_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 268 MovieClip [apeluru2_mc] Frame 2
stop();
Symbol 268 MovieClip [apeluru2_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 269 MovieClip [apeluru1_mc] Frame 2
stop();
Symbol 269 MovieClip [apeluru1_mc] Frame 10
stop();
removeMovieClip(this);
Symbol 284 MovieClip [bledak2_mc] Frame 15
stop();
removeMovieClip(this);
Symbol 299 MovieClip [bledak1_mc] Frame 15
stop();
removeMovieClip(this);
Symbol 301 MovieClip [cpeluru2_mc] Frame 1
stop();
Symbol 301 MovieClip [cpeluru2_mc] Frame 2
stop();
removeMovieClip(this);
Symbol 302 MovieClip [dpeluru2_mc] Frame 30
stop();
Symbol 303 MovieClip [dpeluru1_mc] Frame 30
stop();
Symbol 305 MovieClip [cpeluru1_mc] Frame 1
stop();
Symbol 305 MovieClip [cpeluru1_mc] Frame 2
stop();
removeMovieClip(this);
Symbol 307 MovieClip [spot_mc] Frame 5
stop();
removeMovieClip(this);
Symbol 315 MovieClip [get_mc] Frame 3
_root.getReady2();
Symbol 315 MovieClip [get_mc] Frame 45
_root.fight2();
Symbol 315 MovieClip [get_mc] Frame 55
stop();
_root.xpaused = false;
Symbol 315 MovieClip [get_mc] Frame 95
stop();
_root.keluarin("out");
Symbol 315 MovieClip [get_mc] Frame 135
stop();
_root.keluarin("out");
Symbol 315 MovieClip [get_mc] Frame 143
_root.perfect();
Symbol 315 MovieClip [get_mc] Frame 160
stop();
Symbol 315 MovieClip [get_mc] Frame 165
_root.backAwal();
Symbol 315 MovieClip [get_mc] Frame 195
stop();
_root.nextMatch2();
Symbol 332 MovieClip [msgBox_mc] Frame 1
bar1_mc.bar_mc._x = int((_root.volum1 / 0.434782608695652) - 115);
bar1_mc.bar_mc.onEnterFrame = function () {
_root.volum1 = int(0.434782608695652 * (this._x + 115));
i = 1;
while (i <= 12) {
_root.xmusic.setVolume(_root.volum1);
i++;
}
bar1_mc.persen1 = _root.volum1 + " %";
};
bar1_mc.bar_mc.onPress = function () {
_root.klik();
startDrag (this, false, -115, 0, 115, 0);
};
bar1_mc.bar_mc.onRollOver = function () {
_root.over();
};
bar1_mc.bar_mc.onRelease = function () {
_root.klik();
stopDrag();
};
bar2_mc.bar_mc._x = int((_root.volum2 / 0.434782608695652) - 115);
bar2_mc.bar_mc.onEnterFrame = function () {
_root.volum2 = int(0.434782608695652 * (this._x + 115));
i = 1;
while (i <= 12) {
_root.xsound.setVolume(_root.volum2);
i++;
}
bar2_mc.persen2 = _root.volum2 + " %";
};
bar2_mc.bar_mc.onPress = function () {
_root.klik();
startDrag (this, false, -115, 0, 115, 0);
};
bar2_mc.bar_mc.onRollOver = function () {
_root.over();
};
bar2_mc.bar_mc.onRelease = function () {
_root.klik();
stopDrag();
};
Symbol 332 MovieClip [msgBox_mc] Frame 5
stop();
if (_root.jenisGame == "tour") {
restart_btn.enabled = false;
} else {
restart_btn.enabled = true;
}
back_btn.onRelease = function () {
klik();
gotoAndPlay ("keluar");
_root.ftanda = "back";
};
quit_btn.onRelease = function () {
klik();
gotoAndPlay ("keluar");
_root.ftanda = "quit";
};
restart_btn.onRelease = function () {
klik();
gotoAndPlay ("keluar");
_root.ftanda = "ulang";
};
Symbol 332 MovieClip [msgBox_mc] Frame 25
stop();
if (_root.ftanda == "quit") {
_root.ygMenang = 2;
_root.keluarin();
} else if (_root.ftanda == "back") {
_root.lanjutin();
} else if (_root.ftanda == "ulang") {
_root.ulangSaja();
}
removeMovieClip(this);
Symbol 334 MovieClip [ledakan2_mc] Frame 30
stop();
_root.nextMatch();
removeMovieClip(this);
Symbol 336 MovieClip [ledakan1_mc] Frame 30
stop();
_root.nextMatch();
removeMovieClip(this);
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 85
stop();
Symbol 380 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 1
stop();