Frame 1
Stage.showMenu = false;
loading = int((getBytesLoaded() / getBytesTotal()) * 100) + " %";
if (getBytesTotal() == getBytesLoaded()) {
gotoAndStop ("intro");
}
Frame 2
gotoAndPlay (1);
Frame 3
attachMovie("masksemuanya", "masksemuanya", 150);
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
stop();
_root.howtoplay_mc._visible = false;
stop();
stopAllSounds();
bgsound = new Sound();
bgsound.attachSound("music");
bgsound.setVolume(50);
bgsound.start(0, 999999);
Frame 4
stop();
penyiram_mc.startDrag(1, 50, 33, 407, 209);
speed = 6;
tumbuh = "iya";
airhabis = "tidak";
hadap = "kiri";
score = 0;
bonus = 0;
awanspeed = 1;
kelelawarspeed = random(5) + 1;
_root.pause_btn._alpha = 0;
balonspeed1 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc1", 1);
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(20) + 30;
balonspeed2 = random(3) + 1;
_root.attachMovie("balonbalon_mc2", "balonbalon_mc2", 2);
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(60) + 30;
balonspeed3 = random(3) + 1;
_root.attachMovie("balonbalon_mc3", "balonbalon_mc3", 3);
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(100) + 30;
balonspeed4 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc4", 4);
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(120) + 30;
_root.onEnterFrame = function () {
if (_root.score <= 0) {
_root.score = 0;
}
if (_root.score >= 1500) {
delete _root.onEnterFrame;
delete _root.onMouseDown;
stopDrag();
_root.kelelawar_mc.gotoAndStop("pause");
_root.kelelawar_mc.sayapgerak_mc.stop();
_root.attachMovie("gantilevel2", "gantilevel2", 100);
_root.gantilevel2._x = 225;
_root.gantilevel2._y = 170;
i = 9;
while (i <= 20) {
_root["telek" + i].speedtelek = 0;
i++;
}
}
if (Key.isDown(39)) {
_root.gerobak_mc.kakijalan_mc.play();
_root.gerobak_mc._x = _root.gerobak_mc._x + speed;
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
} else if (Key.isDown(37)) {
_root.gerobak_mc.kakijalan_mc.play();
_root.gerobak_mc._x = _root.gerobak_mc._x - speed;
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
}
if (_root.gerobak_mc._x <= 88) {
_root.gerobak_mc._x = 87;
_root.gerobak_mc.kakijalan_mc.gotoAndStop("kakidiam");
} else if (_root.gerobak_mc._x >= 482) {
_root.gerobak_mc._x = 481;
_root.gerobak_mc.kakijalan_mc.gotoAndStop("kakidiam");
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("diam");
}
_root.balonbalon_mc1._x = _root.balonbalon_mc1._x + balonspeed1;
if (_root.balonbalon_mc1._x >= 500) {
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(20) + 30;
balonspeed1 = random(3) + 1;
} else if (_root.balonbalon_mc1.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 20;
_root.attachMovie("ledakan", "ledakan_mc1", 5);
_root.ledakan_mc1._x = _root.balonbalon_mc1._x;
_root.ledakan_mc1._y = _root.balonbalon_mc1._y - 12;
removeMovieClip(_root.balonbalon_mc1);
balonspeed1 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc1", 1);
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(140) + 30;
_root.bonus = _root.bonus + 1;
}
_root.balonbalon_mc2._x = _root.balonbalon_mc2._x + balonspeed2;
if (_root.balonbalon_mc2._x >= 500) {
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(60) + 30;
balonspeed2 = random(3) + 1;
} else if (_root.balonbalon_mc2.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 30;
_root.attachMovie("ledakan", "ledakan_mc2", 6);
_root.ledakan_mc2._x = _root.balonbalon_mc2._x;
_root.ledakan_mc2._y = _root.balonbalon_mc2._y - 12;
removeMovieClip(_root.balonbalon_mc2);
balonspeed2 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc2", 2);
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(100) + 30;
}
_root.balonbalon_mc3._x = _root.balonbalon_mc3._x + balonspeed3;
if (_root.balonbalon_mc3._x >= 500) {
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(100) + 30;
balonspeed3 = random(3) + 1;
} else if (_root.balonbalon_mc3.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 40;
_root.attachMovie("ledakan", "ledakan_mc3", 7);
_root.ledakan_mc3._x = _root.balonbalon_mc3._x;
_root.ledakan_mc3._y = _root.balonbalon_mc3._y - 12;
removeMovieClip(_root.balonbalon_mc3);
balonspeed3 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc3", 3);
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(60) + 30;
}
_root.balonbalon_mc4._x = _root.balonbalon_mc4._x + balonspeed4;
if (_root.balonbalon_mc4._x >= 500) {
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(140) + 30;
balonspeed4 = random(3) + 1;
} else if (_root.balonbalon_mc4.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 50;
_root.attachMovie("ledakan", "ledakan_mc4", 8);
_root.ledakan_mc4._x = _root.balonbalon_mc4._x;
_root.ledakan_mc4._y = _root.balonbalon_mc4._y - 12;
removeMovieClip(_root.balonbalon_mc4);
balonspeed4 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc4", 4);
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(20) + 30;
}
if (_root.telek9.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek9);
} else if (_root.telek10.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek10);
} else if (_root.telek11.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek11);
} else if (_root.telek12.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek12);
} else if (_root.telek13.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek13);
} else if (_root.telek14.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek14);
} else if (_root.telek15.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek15);
} else if (_root.telek16.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek16);
} else if (_root.telek17.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek17);
} else if (_root.telek18.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek18);
} else if (_root.telek19.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek19);
} else if (_root.telek20.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek20);
}
_root.kelelawar_mc._x = _root.kelelawar_mc._x - kelelawarspeed;
if (_root.kelelawar_mc._x <= -50) {
_root.kelelawar_mc._x = 500;
kelelawarspeed = random(3) + 1;
}
_root.awan_mc._x = _root.awan_mc._x - awanspeed;
if (_root.awan_mc._x <= -80) {
_root.awan_mc._x = 580;
_root.awan_mc._y = random(100) + 20;
}
_root.awan_mc2._x = _root.awan_mc2._x - awanspeed;
if (_root.awan_mc2._x <= -80) {
_root.awan_mc2._x = 600;
_root.awan_mc2._y = random(200) + 20;
}
if (_root.gerobak_mc.dapetair_mc.hitTest(_root.timba)) {
_root.timba.play();
}
if (_root.kelelawar_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin10", 25);
_root.poin10._x = _root.kelelawar_mc._x;
_root.poin10._y = _root.kelelawar_mc._y;
_root.kelelawar_mc._x = 500;
kelelawarspeed = random(3) + 1;
}
if (bonus >= 5) {
attachMovie("bonusenergi", "bonusenergi", 26);
_root.bonusenergi._x = 380;
_root.bonusenergi._y = 265;
bonus = 0;
}
if (_root.bonusenergi.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.bonusenergi.play();
}
if (_root.bar == "jalan") {
_root.barair_mc.nextFrame();
}
if (_root.tumbuh == "tidak") {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kaktus_mc._y + 2;
if (_root.gerobak_mc.kaktus_mc.hitTest(_root.gerobak_mc.kotakbawah_mc)) {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kotakbawah_mc._y - 16;
}
} else if (_root.tumbuh == "iya") {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kaktus_mc._y - 6;
if (_root.gerobak_mc.kaktus_mc.hitTest(_root.gerobak_mc.kotakatas_mc)) {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kotakatas_mc._y + 253;
}
}
if (_root.penyiram_mc.air_mc.tersiram_mc.hitTest(_root.gerobak_mc.kenasiram_mc)) {
_root.tumbuh = "iya";
} else {
_root.tumbuh = "tidak";
}
};
_root.onMouseDown = function () {
if (_root.airhabis == "tidak") {
_root.bar = "jalan";
_root.penyiram_mc.gotoAndStop("nyiram");
} else {
_root.penyiram_mc.gotoAndStop("airhabis");
}
};
_root.onMouseUp = function () {
_root.bar = "tidakjalan";
_root.penyiram_mc.gotoAndStop("ndaknyiram");
};
Frame 5
stop();
_root.attachMovie("maskgantilevel", "maskgantilevel", 100);
_root.maskgantilevel._x = 225;
_root.maskgantilevel._y = 170;
_root.kelelawar_mc.sayapgerak_mc.play();
_root.kelelawar_mc.gotoAndStop("jalan");
_root.kelelawar2_mc.sayapgerak_mc.play();
_root.kelelawar2_mc.gotoAndStop("jalan");
i = 9;
while (i <= 20) {
removeMovieClip(_root["telek" + i]);
i++;
}
removeMovieClip("balonbalon_mc1");
removeMovieClip("balonbalon_mc2");
removeMovieClip("balonbalon_mc3");
removeMovieClip("balonbalon_mc4");
removeMovieClip("bonusenergi");
_root.kelelawar_mc._x = 500;
speed = 6;
tumbuh = "iya";
airhabis = "tidak";
hadap = "kiri";
bonus = 0;
balonmusuh = 0;
awanspeed = 1;
kelelawarspeed = random(5) + 1;
kelelawarspeed2 = random(4) + 1;
balonmusuhspeed = 1;
_root.pause_btn._alpha = 0;
balonspeed1 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc1", 1);
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(20) + 30;
balonspeed2 = random(3) + 1;
_root.attachMovie("balonbalon_mc2", "balonbalon_mc2", 2);
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(60) + 30;
balonspeed3 = random(3) + 1;
_root.attachMovie("balonbalon_mc3", "balonbalon_mc3", 3);
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(100) + 30;
balonspeed4 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc4", 4);
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(120) + 30;
penyiram_mc.startDrag(1, 50, 33, 407, 209);
_root.onEnterFrame = function () {
if (_root.score <= 0) {
_root.score = 0;
}
if (_root.score >= 3000) {
delete _root.onEnterFrame;
delete _root.onMouseDown;
stopDrag();
_root.kelelawar_mc.gotoAndStop("pause");
_root.kelelawar_mc.sayapgerak_mc.stop();
_root.kelelawar2_mc.gotoAndStop("pause");
_root.kelelawar2_mc.sayapgerak_mc.stop();
_root.attachMovie("gantilevel3", "gantilevel3", 100);
_root.gantilevel3._x = 225;
_root.gantilevel3._y = 170;
i = 9;
while (i <= 20) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 29;
while (i <= 40) {
_root["telek" + i].speedtelek = 0;
i++;
}
}
if (Key.isDown(39)) {
_root.gerobak_mc.kakijalan_mc.play();
_root.gerobak_mc._x = _root.gerobak_mc._x + speed;
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
} else if (Key.isDown(37)) {
_root.gerobak_mc.kakijalan_mc.play();
_root.gerobak_mc._x = _root.gerobak_mc._x - speed;
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
}
if (_root.gerobak_mc._x <= 88) {
_root.gerobak_mc._x = 87;
_root.gerobak_mc.kakijalan_mc.gotoAndStop("kakidiam");
} else if (_root.gerobak_mc._x >= 482) {
_root.gerobak_mc._x = 481;
_root.gerobak_mc.kakijalan_mc.gotoAndStop("kakidiam");
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("diam");
}
_root.balonbalon_mc1._x = _root.balonbalon_mc1._x + balonspeed1;
if (_root.balonbalon_mc1._x >= 500) {
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(20) + 30;
balonspeed1 = random(3) + 1;
} else if (_root.balonbalon_mc1.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 20;
_root.attachMovie("ledakan", "ledakan_mc1", 5);
_root.ledakan_mc1._x = _root.balonbalon_mc1._x;
_root.ledakan_mc1._y = _root.balonbalon_mc1._y - 12;
removeMovieClip(_root.balonbalon_mc1);
balonspeed1 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc1", 1);
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(140) + 30;
_root.bonus = _root.bonus + 1;
_root.balonmusuh = _root.balonmusuh + 1;
}
_root.balonbalon_mc2._x = _root.balonbalon_mc2._x + balonspeed2;
if (_root.balonbalon_mc2._x >= 500) {
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(60) + 30;
balonspeed2 = random(3) + 1;
} else if (_root.balonbalon_mc2.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 30;
_root.attachMovie("ledakan", "ledakan_mc2", 6);
_root.ledakan_mc2._x = _root.balonbalon_mc2._x;
_root.ledakan_mc2._y = _root.balonbalon_mc2._y - 12;
removeMovieClip(_root.balonbalon_mc2);
balonspeed2 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc2", 2);
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(100) + 30;
_root.balonmusuh = _root.balonmusuh + 1;
}
_root.balonbalon_mc3._x = _root.balonbalon_mc3._x + balonspeed3;
if (_root.balonbalon_mc3._x >= 500) {
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(100) + 30;
balonspeed3 = random(3) + 1;
} else if (_root.balonbalon_mc3.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 40;
_root.attachMovie("ledakan", "ledakan_mc3", 7);
_root.ledakan_mc3._x = _root.balonbalon_mc3._x;
_root.ledakan_mc3._y = _root.balonbalon_mc3._y - 12;
removeMovieClip(_root.balonbalon_mc3);
balonspeed3 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc3", 3);
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(60) + 30;
}
_root.balonbalon_mc4._x = _root.balonbalon_mc4._x + balonspeed4;
if (_root.balonbalon_mc4._x >= 500) {
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(140) + 30;
balonspeed4 = random(3) + 1;
} else if (_root.balonbalon_mc4.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 50;
_root.attachMovie("ledakan", "ledakan_mc4", 8);
_root.ledakan_mc4._x = _root.balonbalon_mc4._x;
_root.ledakan_mc4._y = _root.balonbalon_mc4._y - 12;
removeMovieClip(_root.balonbalon_mc4);
balonspeed4 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc4", 4);
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(20) + 30;
}
if (_root.balonmusuh == 6) {
attachMovie("balonbalonmusuh_mc", "balonbalonmusuh_mc", 22);
_root.balonbalonmusuh_mc._x = -30;
_root.balonbalonmusuh_mc._y = random(60) + 30;
_root.balonmusuh = 0;
}
_root.balonbalonmusuh_mc._x = _root.balonbalonmusuh_mc._x + balonmusuhspeed;
if (_root.balonbalonmusuh_mc._x >= 500) {
removeMovieClip(_root.balonbalonmusuh_mc);
} else if (_root.balonbalonmusuh_mc.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
_root.energi_mc.nextFrame();
_root.attachMovie("ledakan", "ledakan_mc5", 23);
_root.ledakan_mc5._x = _root.balonbalonmusuh_mc._x;
_root.ledakan_mc5._y = _root.balonbalonmusuh_mc._y - 12;
removeMovieClip(_root.balonbalonmusuh_mc);
}
if (_root.telek9.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek9);
} else if (_root.telek10.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek10);
} else if (_root.telek11.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek11);
} else if (_root.telek12.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek12);
} else if (_root.telek13.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek13);
} else if (_root.telek14.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek14);
} else if (_root.telek15.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek15);
} else if (_root.telek16.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek16);
} else if (_root.telek17.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek17);
} else if (_root.telek18.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek18);
} else if (_root.telek19.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek19);
} else if (_root.telek20.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek20);
}
if (_root.telek29.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek29);
} else if (_root.telek30.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek30);
} else if (_root.telek31.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek31);
} else if (_root.telek32.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek32);
} else if (_root.telek33.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek33);
} else if (_root.telek34.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek34);
} else if (_root.telek35.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek35);
} else if (_root.telek36.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek36);
} else if (_root.telek37.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek37);
} else if (_root.telek38.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek38);
} else if (_root.telek39.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek39);
} else if (_root.telek40.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek40);
}
_root.kelelawar_mc._x = _root.kelelawar_mc._x - kelelawarspeed;
if (_root.kelelawar_mc._x <= -50) {
_root.kelelawar_mc._x = 500;
_root.kelelawar_mc._y = random(90) + 30;
kelelawarspeed = random(5) + 1;
}
_root.kelelawar2_mc._x = _root.kelelawar2_mc._x + kelelawarspeed2;
if (_root.kelelawar2_mc._x >= 500) {
_root.kelelawar2_mc._x = -50;
_root.kelelawar2_mc._y = random(100) + 30;
kelelawarspeed2 = random(3) + 1;
}
_root.awan_mc._x = _root.awan_mc._x - awanspeed;
if (_root.awan_mc._x <= -80) {
_root.awan_mc._x = 580;
_root.awan_mc._y = random(100) + 20;
}
_root.awan_mc2._x = _root.awan_mc2._x - awanspeed;
if (_root.awan_mc2._x <= -80) {
_root.awan_mc2._x = 600;
_root.awan_mc2._y = random(200) + 20;
}
if (_root.gerobak_mc.dapetair_mc.hitTest(_root.timba)) {
_root.timba.play();
}
if (_root.kelelawar_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin10", 25);
_root.poin10._x = _root.kelelawar_mc._x;
_root.poin10._y = _root.kelelawar_mc._y;
_root.kelelawar_mc._x = 500;
_root.kelelawar_mc._y = random(90) + 30;
kelelawarspeed = random(5) + 1;
}
if (_root.kelelawar2_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin102", 27);
_root.poin102._x = _root.kelelawar2_mc._x;
_root.poin102._y = _root.kelelawar2_mc._y;
_root.kelelawar2_mc._x = 500;
_root.kelelawar2_mc._y = random(90) + 30;
kelelawarspeed2 = random(3) + 1;
}
if (bonus >= 5) {
attachMovie("bonusenergi", "bonusenergi", 26);
_root.bonusenergi._x = 380;
_root.bonusenergi._y = 265;
bonus = 0;
}
if (_root.bonusenergi.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.bonusenergi.play();
}
if (_root.bar == "jalan") {
_root.barair_mc.nextFrame();
}
if (_root.tumbuh == "tidak") {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kaktus_mc._y + 2;
if (_root.gerobak_mc.kaktus_mc.hitTest(_root.gerobak_mc.kotakbawah_mc)) {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kotakbawah_mc._y - 16;
}
} else if (_root.tumbuh == "iya") {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kaktus_mc._y - 6;
if (_root.gerobak_mc.kaktus_mc.hitTest(_root.gerobak_mc.kotakatas_mc)) {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kotakatas_mc._y + 253;
}
}
if (_root.penyiram_mc.air_mc.tersiram_mc.hitTest(_root.gerobak_mc.kenasiram_mc)) {
_root.tumbuh = "iya";
} else {
_root.tumbuh = "tidak";
}
};
_root.onMouseDown = function () {
if (_root.airhabis == "tidak") {
_root.bar = "jalan";
_root.penyiram_mc.gotoAndStop("nyiram");
} else {
_root.penyiram_mc.gotoAndStop("airhabis");
}
};
_root.onMouseUp = function () {
_root.bar = "tidakjalan";
_root.penyiram_mc.gotoAndStop("ndaknyiram");
};
Frame 6
stop();
_root.attachMovie("maskgantilevel", "maskgantilevel", 100);
_root.maskgantilevel._x = 225;
_root.maskgantilevel._y = 170;
_root.kelelawar_mc.sayapgerak_mc.play();
_root.kelelawar_mc.gotoAndStop("jalan");
_root.kelelawar2_mc.sayapgerak_mc.play();
_root.kelelawar2_mc.gotoAndStop("jalan");
_root.kelelawar3_mc.sayapgerak_mc.play();
_root.kelelawar3_mc.gotoAndStop("jalan");
i = 9;
while (i <= 20) {
removeMovieClip(_root["telek" + i]);
i++;
}
i = 29;
while (i <= 40) {
removeMovieClip(_root["telek" + i]);
i++;
}
removeMovieClip("balonbalon_mc1");
removeMovieClip("balonbalon_mc2");
removeMovieClip("balonbalon_mc3");
removeMovieClip("balonbalon_mc4");
removeMovieClip("balonbalonmusuh_mc");
removeMovieClip("bonusenergi");
_root.kelelawar_mc._x = 500;
speed = 6;
tumbuh = "iya";
airhabis = "tidak";
hadap = "kiri";
bonus = 0;
balonmusuh = 2;
awanspeed = 1;
kelelawarspeed = random(5) + 1;
kelelawarspeed2 = random(4) + 1;
kelelawarspeed3 = random(3) + 1;
balonmusuhspeed = 1;
_root.pause_btn._alpha = 0;
balonspeed1 = random(5) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc1", 1);
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(20) + 30;
balonspeed2 = random(5) + 2;
_root.attachMovie("balonbalon_mc2", "balonbalon_mc2", 2);
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(60) + 30;
balonspeed3 = random(4) + 1;
_root.attachMovie("balonbalon_mc3", "balonbalon_mc3", 3);
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(100) + 30;
balonspeed4 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc4", 4);
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(120) + 30;
penyiram_mc.startDrag(1, 50, 33, 407, 209);
_root.onEnterFrame = function () {
if (_root.score <= 0) {
_root.score = 0;
}
if (_root.score >= 5000) {
delete _root.onEnterFrame;
delete _root.onMouseDown;
stopDrag();
_root.kelelawar_mc.gotoAndStop("pause");
_root.kelelawar_mc.sayapgerak_mc.stop();
_root.kelelawar2_mc.gotoAndStop("pause");
_root.kelelawar2_mc.sayapgerak_mc.stop();
_root.kelelawar3_mc.gotoAndStop("pause");
_root.kelelawar3_mc.sayapgerak_mc.stop();
_root.attachMovie("gantilevel4", "gantilevel4", 100);
_root.gantilevel4._x = 225;
_root.gantilevel4._y = 170;
i = 9;
while (i <= 20) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 29;
while (i <= 40) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 59;
while (i <= 70) {
_root["telek" + i].speedtelek = 0;
i++;
}
}
if (Key.isDown(39)) {
_root.gerobak_mc.kakijalan_mc.play();
_root.gerobak_mc._x = _root.gerobak_mc._x + speed;
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
} else if (Key.isDown(37)) {
_root.gerobak_mc.kakijalan_mc.play();
_root.gerobak_mc._x = _root.gerobak_mc._x - speed;
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
}
if (_root.gerobak_mc._x <= 88) {
_root.gerobak_mc._x = 87;
_root.gerobak_mc.kakijalan_mc.gotoAndStop("kakidiam");
} else if (_root.gerobak_mc._x >= 482) {
_root.gerobak_mc._x = 481;
_root.gerobak_mc.kakijalan_mc.gotoAndStop("kakidiam");
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("diam");
}
_root.balonbalon_mc1._x = _root.balonbalon_mc1._x + balonspeed1;
if (_root.balonbalon_mc1._x >= 500) {
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(20) + 30;
balonspeed1 = random(5) + 2;
} else if (_root.balonbalon_mc1.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 20;
_root.attachMovie("ledakan", "ledakan_mc1", 5);
_root.ledakan_mc1._x = _root.balonbalon_mc1._x;
_root.ledakan_mc1._y = _root.balonbalon_mc1._y - 12;
removeMovieClip(_root.balonbalon_mc1);
balonspeed1 = random(5) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc1", 1);
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(140) + 30;
_root.bonus = _root.bonus + 1;
_root.balonmusuh = _root.balonmusuh + 1;
}
_root.balonbalon_mc2._x = _root.balonbalon_mc2._x + balonspeed2;
if (_root.balonbalon_mc2._x >= 500) {
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(60) + 30;
balonspeed2 = random(5) + 2;
} else if (_root.balonbalon_mc2.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 30;
_root.attachMovie("ledakan", "ledakan_mc2", 6);
_root.ledakan_mc2._x = _root.balonbalon_mc2._x;
_root.ledakan_mc2._y = _root.balonbalon_mc2._y - 12;
removeMovieClip(_root.balonbalon_mc2);
balonspeed2 = random(5) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc2", 2);
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(100) + 30;
_root.balonmusuh = _root.balonmusuh + 1;
}
_root.balonbalon_mc3._x = _root.balonbalon_mc3._x + balonspeed3;
if (_root.balonbalon_mc3._x >= 500) {
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(100) + 30;
balonspeed3 = random(4) + 1;
} else if (_root.balonbalon_mc3.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 40;
_root.attachMovie("ledakan", "ledakan_mc3", 7);
_root.ledakan_mc3._x = _root.balonbalon_mc3._x;
_root.ledakan_mc3._y = _root.balonbalon_mc3._y - 12;
removeMovieClip(_root.balonbalon_mc3);
balonspeed3 = random(4) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc3", 3);
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(60) + 30;
}
_root.balonbalon_mc4._x = _root.balonbalon_mc4._x + balonspeed4;
if (_root.balonbalon_mc4._x >= 500) {
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(140) + 30;
balonspeed4 = random(3) + 1;
} else if (_root.balonbalon_mc4.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 50;
_root.attachMovie("ledakan", "ledakan_mc4", 8);
_root.ledakan_mc4._x = _root.balonbalon_mc4._x;
_root.ledakan_mc4._y = _root.balonbalon_mc4._y - 12;
removeMovieClip(_root.balonbalon_mc4);
balonspeed4 = random(3) + 1;
_root.attachMovie("balonbalon_mc", "balonbalon_mc4", 4);
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(20) + 30;
}
if (_root.balonmusuh == 6) {
attachMovie("balonbalonmusuh_mc", "balonbalonmusuh_mc", 22);
_root.balonbalonmusuh_mc._x = -30;
_root.balonbalonmusuh_mc._y = random(60) + 30;
_root.balonmusuh = 0;
}
_root.balonbalonmusuh_mc._x = _root.balonbalonmusuh_mc._x + balonmusuhspeed;
if (_root.balonbalonmusuh_mc._x >= 500) {
removeMovieClip(_root.balonbalonmusuh_mc);
} else if (_root.balonbalonmusuh_mc.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
_root.energi_mc.nextFrame();
_root.attachMovie("ledakan", "ledakan_mc5", 23);
_root.ledakan_mc5._x = _root.balonbalonmusuh_mc._x;
_root.ledakan_mc5._y = _root.balonbalonmusuh_mc._y - 12;
removeMovieClip(_root.balonbalonmusuh_mc);
}
if (_root.telek9.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek9);
} else if (_root.telek10.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek10);
} else if (_root.telek11.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek11);
} else if (_root.telek12.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek12);
} else if (_root.telek13.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek13);
} else if (_root.telek14.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek14);
} else if (_root.telek15.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek15);
} else if (_root.telek16.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek16);
} else if (_root.telek17.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek17);
} else if (_root.telek18.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek18);
} else if (_root.telek19.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek19);
} else if (_root.telek20.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek20);
}
if (_root.telek29.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek29);
} else if (_root.telek30.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek30);
} else if (_root.telek31.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek31);
} else if (_root.telek32.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek32);
} else if (_root.telek33.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek33);
} else if (_root.telek34.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek34);
} else if (_root.telek35.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek35);
} else if (_root.telek36.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek36);
} else if (_root.telek37.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek37);
} else if (_root.telek38.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek38);
} else if (_root.telek39.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek39);
} else if (_root.telek40.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek40);
}
if (_root.telek59.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek59);
} else if (_root.telek60.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek60);
} else if (_root.telek61.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek61);
} else if (_root.telek62.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek62);
} else if (_root.telek63.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek63);
} else if (_root.telek64.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek64);
} else if (_root.telek65.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek65);
} else if (_root.telek66.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek66);
} else if (_root.telek67.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek67);
} else if (_root.telek68.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek68);
} else if (_root.telek69.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek69);
} else if (_root.telek70.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek70);
}
_root.kelelawar_mc._x = _root.kelelawar_mc._x - kelelawarspeed;
if (_root.kelelawar_mc._x <= -50) {
_root.kelelawar_mc._x = 500;
_root.kelelawar_mc._y = random(90) + 30;
kelelawarspeed = random(5) + 1;
}
_root.kelelawar2_mc._x = _root.kelelawar2_mc._x + kelelawarspeed2;
if (_root.kelelawar2_mc._x >= 500) {
_root.kelelawar2_mc._x = -50;
_root.kelelawar2_mc._y = random(100) + 30;
kelelawarspeed2 = random(3) + 1;
}
_root.kelelawar3_mc._x = _root.kelelawar3_mc._x + kelelawarspeed3;
if (_root.kelelawar3_mc._x >= 500) {
_root.kelelawar3_mc._x = -50;
_root.kelelawar3_mc._y = random(70) + 30;
kelelawarspeed3 = random(2) + 1;
}
_root.awan_mc._x = _root.awan_mc._x - awanspeed;
if (_root.awan_mc._x <= -80) {
_root.awan_mc._x = 580;
_root.awan_mc._y = random(100) + 20;
}
_root.awan_mc2._x = _root.awan_mc2._x - awanspeed;
if (_root.awan_mc2._x <= -80) {
_root.awan_mc2._x = 600;
_root.awan_mc2._y = random(200) + 20;
}
if (_root.gerobak_mc.dapetair_mc.hitTest(_root.timba)) {
_root.timba.play();
}
if (_root.kelelawar_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin10", 25);
_root.poin10._x = _root.kelelawar_mc._x;
_root.poin10._y = _root.kelelawar_mc._y;
_root.kelelawar_mc._x = 500;
_root.kelelawar_mc._y = random(90) + 30;
kelelawarspeed = random(5) + 1;
}
if (_root.kelelawar2_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin102", 27);
_root.poin102._x = _root.kelelawar2_mc._x;
_root.poin102._y = _root.kelelawar2_mc._y;
_root.kelelawar2_mc._x = 500;
_root.kelelawar2_mc._y = random(90) + 30;
kelelawarspeed2 = random(3) + 1;
}
if (_root.kelelawar3_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin103", 41);
_root.poin103._x = _root.kelelawar3_mc._x;
_root.poin103._y = _root.kelelawar3_mc._y;
_root.kelelawar3_mc._x = 500;
_root.kelelawar3_mc._y = random(70) + 30;
kelelawarspeed3 = random(2) + 1;
}
if (bonus >= 5) {
attachMovie("bonusenergi", "bonusenergi", 26);
_root.bonusenergi._x = 380;
_root.bonusenergi._y = 265;
bonus = 0;
}
if (_root.bonusenergi.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.bonusenergi.play();
}
if (_root.bar == "jalan") {
_root.barair_mc.nextFrame();
}
if (_root.tumbuh == "tidak") {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kaktus_mc._y + 2;
if (_root.gerobak_mc.kaktus_mc.hitTest(_root.gerobak_mc.kotakbawah_mc)) {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kotakbawah_mc._y - 16;
}
} else if (_root.tumbuh == "iya") {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kaktus_mc._y - 6;
if (_root.gerobak_mc.kaktus_mc.hitTest(_root.gerobak_mc.kotakatas_mc)) {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kotakatas_mc._y + 253;
}
}
if (_root.penyiram_mc.air_mc.tersiram_mc.hitTest(_root.gerobak_mc.kenasiram_mc)) {
_root.tumbuh = "iya";
} else {
_root.tumbuh = "tidak";
}
};
_root.onMouseDown = function () {
if (_root.airhabis == "tidak") {
_root.bar = "jalan";
_root.penyiram_mc.gotoAndStop("nyiram");
} else {
_root.penyiram_mc.gotoAndStop("airhabis");
}
};
_root.onMouseUp = function () {
_root.bar = "tidakjalan";
_root.penyiram_mc.gotoAndStop("ndaknyiram");
};
Frame 7
stop();
_root.attachMovie("maskgantilevel", "maskgantilevel", 100);
_root.maskgantilevel._x = 225;
_root.maskgantilevel._y = 170;
_root.kelelawar_mc.sayapgerak_mc.play();
_root.kelelawar_mc.gotoAndStop("jalan");
_root.kelelawar2_mc.sayapgerak_mc.play();
_root.kelelawar2_mc.gotoAndStop("jalan");
_root.kelelawar3_mc.sayapgerak_mc.play();
_root.kelelawar3_mc.gotoAndStop("jalan");
i = 9;
while (i <= 20) {
removeMovieClip(_root["telek" + i]);
i++;
}
i = 29;
while (i <= 40) {
removeMovieClip(_root["telek" + i]);
i++;
}
i = 59;
while (i <= 70) {
removeMovieClip(_root["telek" + i]);
i++;
}
removeMovieClip("balonbalon_mc1");
removeMovieClip("balonbalon_mc2");
removeMovieClip("balonbalon_mc3");
removeMovieClip("balonbalon_mc4");
removeMovieClip("balonbalonmusuh_mc");
removeMovieClip("bonusenergi");
_root.kelelawar_mc._x = 500;
speed = 6;
tumbuh = "iya";
airhabis = "tidak";
hadap = "kiri";
bonus = 0;
balonmusuh = 3;
awanspeed = 1;
kelelawarspeed = random(5) + 1;
kelelawarspeed2 = random(4) + 2;
kelelawarspeed3 = random(5) + 1;
balonmusuhspeed = 1;
_root.pause_btn._alpha = 0;
balonspeed1 = random(6) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc1", 1);
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(80) + 30;
balonspeed2 = random(5) + 2;
_root.attachMovie("balonbalon_mc2", "balonbalon_mc2", 2);
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(90) + 30;
balonspeed3 = random(5) + 2;
_root.attachMovie("balonbalon_mc3", "balonbalon_mc3", 3);
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(100) + 30;
balonspeed4 = random(4) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc4", 4);
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(120) + 30;
penyiram_mc.startDrag(1, 50, 33, 407, 209);
_root.onEnterFrame = function () {
if (_root.score <= 0) {
_root.score = 0;
}
if (_root.score >= 7500) {
delete _root.onEnterFrame;
delete _root.onMouseDown;
stopDrag();
_root.kelelawar_mc.gotoAndStop("pause");
_root.kelelawar_mc.sayapgerak_mc.stop();
_root.kelelawar2_mc.gotoAndStop("pause");
_root.kelelawar2_mc.sayapgerak_mc.stop();
_root.kelelawar3_mc.gotoAndStop("pause");
_root.kelelawar3_mc.sayapgerak_mc.stop();
_root.attachMovie("gantilevel5", "gantilevel5", 100);
_root.gantilevel5._x = 225;
_root.gantilevel5._y = 170;
i = 9;
while (i <= 20) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 29;
while (i <= 40) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 59;
while (i <= 70) {
_root["telek" + i].speedtelek = 0;
i++;
}
}
if (Key.isDown(39)) {
_root.gerobak_mc.kakijalan_mc.play();
_root.gerobak_mc._x = _root.gerobak_mc._x + speed;
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
} else if (Key.isDown(37)) {
_root.gerobak_mc.kakijalan_mc.play();
_root.gerobak_mc._x = _root.gerobak_mc._x - speed;
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
}
if (_root.gerobak_mc._x <= 88) {
_root.gerobak_mc._x = 87;
_root.gerobak_mc.kakijalan_mc.gotoAndStop("kakidiam");
} else if (_root.gerobak_mc._x >= 482) {
_root.gerobak_mc._x = 481;
_root.gerobak_mc.kakijalan_mc.gotoAndStop("kakidiam");
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("diam");
}
_root.balonbalon_mc1._x = _root.balonbalon_mc1._x + balonspeed1;
if (_root.balonbalon_mc1._x >= 500) {
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(80) + 30;
balonspeed1 = random(6) + 2;
} else if (_root.balonbalon_mc1.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 20;
_root.attachMovie("ledakan", "ledakan_mc1", 5);
_root.ledakan_mc1._x = _root.balonbalon_mc1._x;
_root.ledakan_mc1._y = _root.balonbalon_mc1._y - 12;
removeMovieClip(_root.balonbalon_mc1);
balonspeed1 = random(6) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc1", 1);
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(140) + 30;
_root.bonus = _root.bonus + 1;
_root.balonmusuh = _root.balonmusuh + 1;
}
_root.balonbalon_mc2._x = _root.balonbalon_mc2._x + balonspeed2;
if (_root.balonbalon_mc2._x >= 500) {
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(90) + 30;
balonspeed2 = random(5) + 2;
} else if (_root.balonbalon_mc2.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 30;
_root.attachMovie("ledakan", "ledakan_mc2", 6);
_root.ledakan_mc2._x = _root.balonbalon_mc2._x;
_root.ledakan_mc2._y = _root.balonbalon_mc2._y - 12;
removeMovieClip(_root.balonbalon_mc2);
balonspeed2 = random(5) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc2", 2);
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(100) + 30;
_root.balonmusuh = _root.balonmusuh + 1;
}
_root.balonbalon_mc3._x = _root.balonbalon_mc3._x + balonspeed3;
if (_root.balonbalon_mc3._x >= 500) {
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(100) + 30;
balonspeed3 = random(5) + 2;
} else if (_root.balonbalon_mc3.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 40;
_root.attachMovie("ledakan", "ledakan_mc3", 7);
_root.ledakan_mc3._x = _root.balonbalon_mc3._x;
_root.ledakan_mc3._y = _root.balonbalon_mc3._y - 12;
removeMovieClip(_root.balonbalon_mc3);
balonspeed3 = random(5) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc3", 3);
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(60) + 30;
}
_root.balonbalon_mc4._x = _root.balonbalon_mc4._x + balonspeed4;
if (_root.balonbalon_mc4._x >= 500) {
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(140) + 30;
balonspeed4 = random(4) + 2;
} else if (_root.balonbalon_mc4.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 50;
_root.attachMovie("ledakan", "ledakan_mc4", 8);
_root.ledakan_mc4._x = _root.balonbalon_mc4._x;
_root.ledakan_mc4._y = _root.balonbalon_mc4._y - 12;
removeMovieClip(_root.balonbalon_mc4);
balonspeed4 = random(4) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc4", 4);
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(20) + 30;
}
if (_root.balonmusuh == 6) {
attachMovie("balonbalonmusuh_mc", "balonbalonmusuh_mc", 22);
_root.balonbalonmusuh_mc._x = -30;
_root.balonbalonmusuh_mc._y = random(60) + 30;
_root.balonmusuh = 0;
}
_root.balonbalonmusuh_mc._x = _root.balonbalonmusuh_mc._x + balonmusuhspeed;
if (_root.balonbalonmusuh_mc._x >= 500) {
removeMovieClip(_root.balonbalonmusuh_mc);
} else if (_root.balonbalonmusuh_mc.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
_root.energi_mc.nextFrame();
_root.attachMovie("ledakan", "ledakan_mc5", 23);
_root.ledakan_mc5._x = _root.balonbalonmusuh_mc._x;
_root.ledakan_mc5._y = _root.balonbalonmusuh_mc._y - 12;
removeMovieClip(_root.balonbalonmusuh_mc);
}
if (_root.telek9.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek9);
} else if (_root.telek10.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek10);
} else if (_root.telek11.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek11);
} else if (_root.telek12.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek12);
} else if (_root.telek13.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek13);
} else if (_root.telek14.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek14);
} else if (_root.telek15.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek15);
} else if (_root.telek16.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek16);
} else if (_root.telek17.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek17);
} else if (_root.telek18.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek18);
} else if (_root.telek19.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek19);
} else if (_root.telek20.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek20);
}
if (_root.telek29.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek29);
} else if (_root.telek30.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek30);
} else if (_root.telek31.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek31);
} else if (_root.telek32.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek32);
} else if (_root.telek33.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek33);
} else if (_root.telek34.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek34);
} else if (_root.telek35.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek35);
} else if (_root.telek36.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek36);
} else if (_root.telek37.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek37);
} else if (_root.telek38.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek38);
} else if (_root.telek39.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek39);
} else if (_root.telek40.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek40);
}
if (_root.telek59.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek59);
} else if (_root.telek60.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek60);
} else if (_root.telek61.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek61);
} else if (_root.telek62.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek62);
} else if (_root.telek63.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek63);
} else if (_root.telek64.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek64);
} else if (_root.telek65.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek65);
} else if (_root.telek66.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek66);
} else if (_root.telek67.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek67);
} else if (_root.telek68.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek68);
} else if (_root.telek69.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek69);
} else if (_root.telek70.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek70);
}
_root.kelelawar_mc._x = _root.kelelawar_mc._x - kelelawarspeed;
if (_root.kelelawar_mc._x <= -50) {
_root.kelelawar_mc._x = 500;
_root.kelelawar_mc._y = random(90) + 30;
kelelawarspeed = random(5) + 1;
}
_root.kelelawar2_mc._x = _root.kelelawar2_mc._x + kelelawarspeed2;
if (_root.kelelawar2_mc._x >= 500) {
_root.kelelawar2_mc._x = -50;
_root.kelelawar2_mc._y = random(100) + 30;
kelelawarspeed2 = random(3) + 1;
}
_root.kelelawar3_mc._x = _root.kelelawar3_mc._x + kelelawarspeed3;
if (_root.kelelawar3_mc._x >= 500) {
_root.kelelawar3_mc._x = -50;
_root.kelelawar3_mc._y = random(70) + 30;
kelelawarspeed3 = random(2) + 1;
}
_root.awan_mc._x = _root.awan_mc._x - awanspeed;
if (_root.awan_mc._x <= -80) {
_root.awan_mc._x = 580;
_root.awan_mc._y = random(100) + 20;
}
_root.awan_mc2._x = _root.awan_mc2._x - awanspeed;
if (_root.awan_mc2._x <= -80) {
_root.awan_mc2._x = 600;
_root.awan_mc2._y = random(200) + 20;
}
if (_root.gerobak_mc.dapetair_mc.hitTest(_root.timba)) {
_root.timba.play();
}
if (_root.kelelawar_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin10", 25);
_root.poin10._x = _root.kelelawar_mc._x;
_root.poin10._y = _root.kelelawar_mc._y;
_root.kelelawar_mc._x = 500;
_root.kelelawar_mc._y = random(90) + 30;
kelelawarspeed = random(5) + 1;
}
if (_root.kelelawar2_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin102", 27);
_root.poin102._x = _root.kelelawar2_mc._x;
_root.poin102._y = _root.kelelawar2_mc._y;
_root.kelelawar2_mc._x = 500;
_root.kelelawar2_mc._y = random(90) + 30;
kelelawarspeed2 = random(3) + 1;
}
if (_root.kelelawar3_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin103", 41);
_root.poin103._x = _root.kelelawar3_mc._x;
_root.poin103._y = _root.kelelawar3_mc._y;
_root.kelelawar3_mc._x = 500;
_root.kelelawar3_mc._y = random(70) + 30;
kelelawarspeed3 = random(2) + 1;
}
if (bonus >= 5) {
attachMovie("bonusenergi", "bonusenergi", 26);
_root.bonusenergi._x = 380;
_root.bonusenergi._y = 265;
bonus = 0;
}
if (_root.bonusenergi.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.bonusenergi.play();
}
if (_root.bar == "jalan") {
_root.barair_mc.nextFrame();
}
if (_root.tumbuh == "tidak") {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kaktus_mc._y + 2;
if (_root.gerobak_mc.kaktus_mc.hitTest(_root.gerobak_mc.kotakbawah_mc)) {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kotakbawah_mc._y - 16;
}
} else if (_root.tumbuh == "iya") {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kaktus_mc._y - 6;
if (_root.gerobak_mc.kaktus_mc.hitTest(_root.gerobak_mc.kotakatas_mc)) {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kotakatas_mc._y + 253;
}
}
if (_root.penyiram_mc.air_mc.tersiram_mc.hitTest(_root.gerobak_mc.kenasiram_mc)) {
_root.tumbuh = "iya";
} else {
_root.tumbuh = "tidak";
}
};
_root.onMouseDown = function () {
if (_root.airhabis == "tidak") {
_root.bar = "jalan";
_root.penyiram_mc.gotoAndStop("nyiram");
} else {
_root.penyiram_mc.gotoAndStop("airhabis");
}
};
_root.onMouseUp = function () {
_root.bar = "tidakjalan";
_root.penyiram_mc.gotoAndStop("ndaknyiram");
};
Frame 8
stop();
_root.attachMovie("maskgantilevel", "maskgantilevel", 100);
_root.maskgantilevel._x = 225;
_root.maskgantilevel._y = 170;
_root.kelelawar_mc.sayapgerak_mc.play();
_root.kelelawar_mc.gotoAndStop("jalan");
_root.kelelawar2_mc.sayapgerak_mc.play();
_root.kelelawar2_mc.gotoAndStop("jalan");
_root.kelelawar3_mc.sayapgerak_mc.play();
_root.kelelawar3_mc.gotoAndStop("jalan");
i = 9;
while (i <= 20) {
removeMovieClip(_root["telek" + i]);
i++;
}
i = 29;
while (i <= 40) {
removeMovieClip(_root["telek" + i]);
i++;
}
i = 59;
while (i <= 70) {
removeMovieClip(_root["telek" + i]);
i++;
}
removeMovieClip("balonbalon_mc1");
removeMovieClip("balonbalon_mc2");
removeMovieClip("balonbalon_mc3");
removeMovieClip("balonbalon_mc4");
removeMovieClip("balonbalonmusuh_mc");
removeMovieClip("bonusenergi");
_root.kelelawar_mc._x = 500;
speed = 6;
tumbuh = "iya";
airhabis = "tidak";
hadap = "kiri";
bonus = 0;
balonmusuh = 0;
balonmusuh2 = 1;
balonmusuh3 = 3;
awanspeed = 1;
kelelawarspeed = random(5) + 1;
kelelawarspeed2 = random(3) + 1;
kelelawarspeed3 = random(2) + 1;
balonmusuhspeed = 2;
_root.pause_btn._alpha = 0;
balonspeed1 = random(6) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc1", 1);
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(120) + 30;
balonspeed2 = random(5) + 2;
_root.attachMovie("balonbalon_mc2", "balonbalon_mc2", 2);
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(120) + 30;
balonspeed3 = random(6) + 2;
_root.attachMovie("balonbalon_mc3", "balonbalon_mc3", 3);
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(120) + 30;
balonspeed4 = random(5) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc4", 4);
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(120) + 30;
penyiram_mc.startDrag(1, 50, 33, 407, 209);
_root.onEnterFrame = function () {
if (_root.score <= 0) {
_root.score = 0;
}
if (_root.score >= 9500) {
delete _root.onEnterFrame;
delete _root.onMouseDown;
stopDrag();
_root.kelelawar_mc.gotoAndStop("pause");
_root.kelelawar_mc.sayapgerak_mc.stop();
_root.kelelawar2_mc.gotoAndStop("pause");
_root.kelelawar2_mc.sayapgerak_mc.stop();
_root.kelelawar3_mc.gotoAndStop("pause");
_root.kelelawar3_mc.sayapgerak_mc.stop();
_root.attachMovie("gantilevelmenang", "gantilevelmenang", 100);
_root.gantilevelmenang._x = 225;
_root.gantilevelmenang._y = 170;
i = 9;
while (i <= 20) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 29;
while (i <= 40) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 59;
while (i <= 70) {
_root["telek" + i].speedtelek = 0;
i++;
}
}
if (Key.isDown(39)) {
_root.gerobak_mc.kakijalan_mc.play();
_root.gerobak_mc._x = _root.gerobak_mc._x + speed;
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
} else if (Key.isDown(37)) {
_root.gerobak_mc.kakijalan_mc.play();
_root.gerobak_mc._x = _root.gerobak_mc._x - speed;
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
}
if (_root.gerobak_mc._x <= 88) {
_root.gerobak_mc._x = 87;
_root.gerobak_mc.kakijalan_mc.gotoAndStop("kakidiam");
} else if (_root.gerobak_mc._x >= 482) {
_root.gerobak_mc._x = 481;
_root.gerobak_mc.kakijalan_mc.gotoAndStop("kakidiam");
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("diam");
}
_root.balonbalon_mc1._x = _root.balonbalon_mc1._x + balonspeed1;
if (_root.balonbalon_mc1._x >= 500) {
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(120) + 30;
balonspeed1 = random(6) + 2;
} else if (_root.balonbalon_mc1.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 20;
_root.attachMovie("ledakan", "ledakan_mc1", 5);
_root.ledakan_mc1._x = _root.balonbalon_mc1._x;
_root.ledakan_mc1._y = _root.balonbalon_mc1._y - 12;
removeMovieClip(_root.balonbalon_mc1);
balonspeed1 = random(6) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc1", 1);
_root.balonbalon_mc1._x = -30;
_root.balonbalon_mc1._y = random(140) + 30;
_root.bonus = _root.bonus + 1;
_root.balonmusuh = _root.balonmusuh + 1;
_root.balonmusuh2 = _root.balonmusuh2 + 1;
_root.balonmusuh3 = _root.balonmusuh3 + 1;
}
_root.balonbalon_mc2._x = _root.balonbalon_mc2._x + balonspeed2;
if (_root.balonbalon_mc2._x >= 500) {
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(120) + 30;
balonspeed2 = random(5) + 2;
} else if (_root.balonbalon_mc2.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 30;
_root.attachMovie("ledakan", "ledakan_mc2", 6);
_root.ledakan_mc2._x = _root.balonbalon_mc2._x;
_root.ledakan_mc2._y = _root.balonbalon_mc2._y - 12;
removeMovieClip(_root.balonbalon_mc2);
balonspeed2 = random(5) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc2", 2);
_root.balonbalon_mc2._x = -30;
_root.balonbalon_mc2._y = random(140) + 30;
_root.balonmusuh = _root.balonmusuh + 1;
_root.balonmusuh2 = _root.balonmusuh2 + 1;
_root.balonmusuh3 = _root.balonmusuh3 + 1;
}
_root.balonbalon_mc3._x = _root.balonbalon_mc3._x + balonspeed3;
if (_root.balonbalon_mc3._x >= 500) {
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(120) + 30;
balonspeed3 = random(6) + 2;
} else if (_root.balonbalon_mc3.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 40;
_root.attachMovie("ledakan", "ledakan_mc3", 7);
_root.ledakan_mc3._x = _root.balonbalon_mc3._x;
_root.ledakan_mc3._y = _root.balonbalon_mc3._y - 12;
removeMovieClip(_root.balonbalon_mc3);
balonspeed3 = random(6) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc3", 3);
_root.balonbalon_mc3._x = -30;
_root.balonbalon_mc3._y = random(140) + 30;
_root.balonmusuh = _root.balonmusuh + 1;
_root.balonmusuh2 = _root.balonmusuh2 + 1;
_root.balonmusuh3 = _root.balonmusuh3 + 1;
}
_root.balonbalon_mc4._x = _root.balonbalon_mc4._x + balonspeed4;
if (_root.balonbalon_mc4._x >= 500) {
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(140) + 30;
balonspeed4 = random(5) + 2;
} else if (_root.balonbalon_mc4.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("poin");
_root.score = _root.score + 50;
_root.attachMovie("ledakan", "ledakan_mc4", 8);
_root.ledakan_mc4._x = _root.balonbalon_mc4._x;
_root.ledakan_mc4._y = _root.balonbalon_mc4._y - 12;
removeMovieClip(_root.balonbalon_mc4);
balonspeed4 = random(5) + 2;
_root.attachMovie("balonbalon_mc", "balonbalon_mc4", 4);
_root.balonbalon_mc4._x = -30;
_root.balonbalon_mc4._y = random(140) + 30;
_root.balonmusuh = _root.balonmusuh + 1;
_root.balonmusuh2 = _root.balonmusuh2 + 1;
_root.balonmusuh3 = _root.balonmusuh3 + 1;
}
if (_root.balonmusuh == 6) {
attachMovie("balonbalonmusuh_mc", "balonbalonmusuh_mc", 22);
_root.balonbalonmusuh_mc._x = -30;
_root.balonbalonmusuh_mc._y = random(110) + 30;
_root.balonmusuh = 0;
}
_root.balonbalonmusuh_mc._x = _root.balonbalonmusuh_mc._x + balonmusuhspeed;
if (_root.balonbalonmusuh_mc._x >= 500) {
removeMovieClip(_root.balonbalonmusuh_mc);
} else if (_root.balonbalonmusuh_mc.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
_root.energi_mc.nextFrame();
_root.attachMovie("ledakan", "ledakan_mc5", 23);
_root.ledakan_mc5._x = _root.balonbalonmusuh_mc._x;
_root.ledakan_mc5._y = _root.balonbalonmusuh_mc._y - 12;
removeMovieClip(_root.balonbalonmusuh_mc);
}
if (_root.balonmusuh2 == 6) {
attachMovie("balonbalonmusuh_mc", "balonbalonmusuh2_mc", 71);
_root.balonbalonmusuh2_mc._x = -30;
_root.balonbalonmusuh2_mc._y = random(110) + 30;
_root.balonmusuh2 = 0;
}
_root.balonbalonmusuh2_mc._x = _root.balonbalonmusuh2_mc._x + balonmusuhspeed;
if (_root.balonbalonmusuh2_mc._x >= 500) {
removeMovieClip(_root.balonbalonmusuh2_mc);
} else if (_root.balonbalonmusuh2_mc.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
_root.energi_mc.nextFrame();
_root.attachMovie("ledakan", "ledakan_mc5", 72);
_root.ledakan_mc5._x = _root.balonbalonmusuh2_mc._x;
_root.ledakan_mc5._y = _root.balonbalonmusuh2_mc._y - 12;
removeMovieClip(_root.balonbalonmusuh2_mc);
}
if (_root.balonmusuh3 == 6) {
attachMovie("balonbalonmusuh_mc", "balonbalonmusuh3_mc", 73);
_root.balonbalonmusuh3_mc._x = -30;
_root.balonbalonmusuh3_mc._y = random(110) + 30;
_root.balonmusuh3 = 0;
}
_root.balonbalonmusuh3_mc._x = _root.balonbalonmusuh3_mc._x + balonmusuhspeed;
if (_root.balonbalonmusuh3_mc._x >= 500) {
removeMovieClip(_root.balonbalonmusuh3_mc);
} else if (_root.balonbalonmusuh3_mc.balon_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
_root.energi_mc.nextFrame();
_root.attachMovie("ledakan", "ledakan_mc5", 74);
_root.ledakan_mc5._x = _root.balonbalonmusuh3_mc._x;
_root.ledakan_mc5._y = _root.balonbalonmusuh3_mc._y - 12;
removeMovieClip(_root.balonbalonmusuh3_mc);
}
if (_root.telek9.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek9);
} else if (_root.telek10.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek10);
} else if (_root.telek11.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek11);
} else if (_root.telek12.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek12);
} else if (_root.telek13.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek13);
} else if (_root.telek14.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek14);
} else if (_root.telek15.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek15);
} else if (_root.telek16.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek16);
} else if (_root.telek17.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek17);
} else if (_root.telek18.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek18);
} else if (_root.telek19.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek19);
} else if (_root.telek20.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek20);
}
if (_root.telek29.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek29);
} else if (_root.telek30.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek30);
} else if (_root.telek31.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek31);
} else if (_root.telek32.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek32);
} else if (_root.telek33.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek33);
} else if (_root.telek34.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek34);
} else if (_root.telek35.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek35);
} else if (_root.telek36.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek36);
} else if (_root.telek37.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek37);
} else if (_root.telek38.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek38);
} else if (_root.telek39.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek39);
} else if (_root.telek40.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek40);
}
if (_root.telek59.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek59);
} else if (_root.telek60.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek60);
} else if (_root.telek61.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek61);
} else if (_root.telek62.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek62);
} else if (_root.telek63.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek63);
} else if (_root.telek64.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek64);
} else if (_root.telek65.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek65);
} else if (_root.telek66.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek66);
} else if (_root.telek67.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek67);
} else if (_root.telek68.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek68);
} else if (_root.telek69.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek69);
} else if (_root.telek70.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.score = _root.score - 50;
_root.energi_mc.nextFrame();
_root.gerobak_mc.kepalasiti_mc.gotoAndPlay("nangis");
removeMovieClip(_root.telek70);
}
_root.kelelawar_mc._x = _root.kelelawar_mc._x - kelelawarspeed;
if (_root.kelelawar_mc._x <= -50) {
_root.kelelawar_mc._x = 500;
_root.kelelawar_mc._y = random(90) + 30;
kelelawarspeed = random(5) + 1;
}
_root.kelelawar2_mc._x = _root.kelelawar2_mc._x + kelelawarspeed2;
if (_root.kelelawar2_mc._x >= 500) {
_root.kelelawar2_mc._x = -50;
_root.kelelawar2_mc._y = random(100) + 30;
kelelawarspeed2 = random(3) + 1;
}
_root.kelelawar3_mc._x = _root.kelelawar3_mc._x + kelelawarspeed3;
if (_root.kelelawar3_mc._x >= 500) {
_root.kelelawar3_mc._x = -50;
_root.kelelawar3_mc._y = random(70) + 30;
kelelawarspeed3 = random(2) + 1;
}
_root.awan_mc._x = _root.awan_mc._x - awanspeed;
if (_root.awan_mc._x <= -80) {
_root.awan_mc._x = 580;
_root.awan_mc._y = random(100) + 20;
}
_root.awan_mc2._x = _root.awan_mc2._x - awanspeed;
if (_root.awan_mc2._x <= -80) {
_root.awan_mc2._x = 600;
_root.awan_mc2._y = random(200) + 20;
}
if (_root.gerobak_mc.dapetair_mc.hitTest(_root.timba)) {
_root.timba.play();
}
if (_root.kelelawar_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin10", 25);
_root.poin10._x = _root.kelelawar_mc._x;
_root.poin10._y = _root.kelelawar_mc._y;
_root.kelelawar_mc._x = 500;
_root.kelelawar_mc._y = random(90) + 30;
kelelawarspeed = random(5) + 1;
}
if (_root.kelelawar2_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin102", 27);
_root.poin102._x = _root.kelelawar2_mc._x;
_root.poin102._y = _root.kelelawar2_mc._y;
_root.kelelawar2_mc._x = 500;
_root.kelelawar2_mc._y = random(90) + 30;
kelelawarspeed2 = random(3) + 1;
}
if (_root.kelelawar3_mc.hitTest(_root.gerobak_mc.kaktus_mc.duri_mc)) {
_root.attachMovie("poin10", "poin103", 41);
_root.poin103._x = _root.kelelawar3_mc._x;
_root.poin103._y = _root.kelelawar3_mc._y;
_root.kelelawar3_mc._x = 500;
_root.kelelawar3_mc._y = random(70) + 30;
kelelawarspeed3 = random(2) + 1;
}
if (bonus >= 5) {
attachMovie("bonusenergi", "bonusenergi", 26);
_root.bonusenergi._x = 380;
_root.bonusenergi._y = 265;
bonus = 0;
}
if (_root.bonusenergi.hitTest(_root.gerobak_mc.dapetair_mc)) {
_root.bonusenergi.play();
}
if (_root.bar == "jalan") {
_root.barair_mc.nextFrame();
}
if (_root.tumbuh == "tidak") {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kaktus_mc._y + 2;
if (_root.gerobak_mc.kaktus_mc.hitTest(_root.gerobak_mc.kotakbawah_mc)) {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kotakbawah_mc._y - 16;
}
} else if (_root.tumbuh == "iya") {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kaktus_mc._y - 6;
if (_root.gerobak_mc.kaktus_mc.hitTest(_root.gerobak_mc.kotakatas_mc)) {
_root.gerobak_mc.kaktus_mc._y = _root.gerobak_mc.kotakatas_mc._y + 253;
}
}
if (_root.penyiram_mc.air_mc.tersiram_mc.hitTest(_root.gerobak_mc.kenasiram_mc)) {
_root.tumbuh = "iya";
} else {
_root.tumbuh = "tidak";
}
};
_root.onMouseDown = function () {
if (_root.airhabis == "tidak") {
_root.bar = "jalan";
_root.penyiram_mc.gotoAndStop("nyiram");
} else {
_root.penyiram_mc.gotoAndStop("airhabis");
}
};
_root.onMouseUp = function () {
_root.bar = "tidakjalan";
_root.penyiram_mc.gotoAndStop("ndaknyiram");
};
Frame 9
_root.attachMovie("maskgantilevel", "maskgantilevel", 100);
_root.maskgantilevel._x = 225;
_root.maskgantilevel._y = 170;
i = 9;
while (i <= 20) {
removeMovieClip(_root["telek" + i]);
i++;
}
i = 29;
while (i <= 40) {
removeMovieClip(_root["telek" + i]);
i++;
}
i = 59;
while (i <= 70) {
removeMovieClip(_root["telek" + i]);
i++;
}
removeMovieClip("balonbalon_mc1");
removeMovieClip("balonbalon_mc2");
removeMovieClip("balonbalon_mc3");
removeMovieClip("balonbalon_mc4");
removeMovieClip("balonbalonmusuh_mc");
removeMovieClip("balonbalonmusuh2_mc");
removeMovieClip("balonbalonmusuh3_mc");
removeMovieClip("bonusenergi");
removeMovieClip("timba");
removeMovieClip("poin10");
removeMovieClip("poin102");
removeMovieClip("poin103");
_root.playagain_btn.onRelease = function () {
gotoAndPlay (4);
};
_root.quit_btn.onRelease = function () {
_root.gotoAndStop("intro");
};
Frame 10
_root.attachMovie("maskgantilevel", "maskgantilevel", 100);
_root.maskgantilevel._x = 225;
_root.maskgantilevel._y = 170;
i = 9;
while (i <= 20) {
removeMovieClip(_root["telek" + i]);
i++;
}
i = 29;
while (i <= 40) {
removeMovieClip(_root["telek" + i]);
i++;
}
i = 59;
while (i <= 70) {
removeMovieClip(_root["telek" + i]);
i++;
}
removeMovieClip("balonbalon_mc1");
removeMovieClip("balonbalon_mc2");
removeMovieClip("balonbalon_mc3");
removeMovieClip("balonbalon_mc4");
removeMovieClip("balonbalonmusuh_mc");
removeMovieClip("balonbalonmusuh2_mc");
removeMovieClip("balonbalonmusuh3_mc");
removeMovieClip("bonusenergi");
removeMovieClip("timba");
removeMovieClip("poin10");
removeMovieClip("poin102");
removeMovieClip("poin103");
_root.playagain_btn.onRelease = function () {
gotoAndPlay (4);
};
_root.quit_btn.onRelease = function () {
_root.gotoAndStop("intro");
};
Symbol 18 Button
on (release) {
_root.balonspeed1 = random(3) + 1;
_root.balonspeed2 = random(3) + 1;
_root.balonspeed3 = random(3) + 1;
_root.balonspeed4 = random(3) + 1;
_root.balonmusuhspeed = 1;
_root.kelelawarspeed = random(5) + 1;
_root.kelelawarspeed2 = random(3) + 1;
_root.kelelawarspeed3 = random(2) + 1;
_root.kelelawarspeed4 = random(2) + 1;
_root.speed = 6;
_root.awanspeed = 1;
_root.airhabis = "tidak";
_root.kelelawar_mc.gotoAndStop("jalan");
_root.kelelawar_mc.sayapgerak_mc.play();
_root.kelelawar2_mc.gotoAndStop("jalan");
_root.kelelawar2_mc.sayapgerak_mc.play();
_root.kelelawar3_mc.gotoAndStop("jalan");
_root.kelelawar3_mc.sayapgerak_mc.play();
_root.kelelawar4_mc.gotoAndStop("jalan");
_root.kelelawar4_mc.sayapgerak_mc.play();
i = 9;
while (i <= 20) {
_root["telek" + i].speedtelek = 3;
i++;
}
i = 29;
while (i <= 40) {
_root["telek" + i].speedtelek = 3;
i++;
}
i = 59;
while (i <= 70) {
_root["telek" + i].speedtelek = 3;
i++;
}
_root.penyiram_mc.startDrag(1, 50, 33, 407, 209);
_root.timer = 1;
removeMovieClip(this);
}
Symbol 24 MovieClip [gantilevel2] Frame 49
suara = new Sound();
suara.attachSound("suaragantilevel");
suara.start(0, 1);
Symbol 24 MovieClip [gantilevel2] Frame 75
stop();
_root.nextFrame();
removeMovieClip(this);
Symbol 27 MovieClip [gameover] Frame 82
stop();
_root.gotoAndStop("gameover");
removeMovieClip(this);
Symbol 30 MovieClip [gantilevel3] Frame 49
suara = new Sound();
suara.attachSound("suaragantilevel");
suara.start(0, 1);
Symbol 30 MovieClip [gantilevel3] Frame 75
stop();
_root.nextFrame();
removeMovieClip(this);
Symbol 33 MovieClip [gantilevel4] Frame 49
suara = new Sound();
suara.attachSound("suaragantilevel");
suara.start(0, 1);
Symbol 33 MovieClip [gantilevel4] Frame 75
stop();
_root.nextFrame();
removeMovieClip(this);
Symbol 36 MovieClip [gantilevel5] Frame 49
suara = new Sound();
suara.attachSound("suaragantilevel");
suara.start(0, 1);
Symbol 36 MovieClip [gantilevel5] Frame 75
stop();
_root.nextFrame();
removeMovieClip(this);
Symbol 37 MovieClip [gantilevelmenang] Frame 1
suara = new Sound();
suara.attachSound("suaramenang");
suara.start(0, 1);
Symbol 37 MovieClip [gantilevelmenang] Frame 27
stop();
_root.gotoAndStop("menang");
removeMovieClip(this);
Symbol 38 MovieClip [maskgantilevel] Frame 25
stop();
removeMovieClip(this);
Symbol 51 MovieClip [bonusenergi] Frame 1
suara = new Sound();
suara.attachSound("zet");
suara.start(0, 1);
Symbol 51 MovieClip [bonusenergi] Frame 10
stop();
Symbol 51 MovieClip [bonusenergi] Frame 11
suara = new Sound();
suara.attachSound("airtimba");
suara.start(0, 1);
Symbol 51 MovieClip [bonusenergi] Frame 25
_root.energi_mc.prevFrame();
_root.score = _root.score + 100;
removeMovieClip(this);
Symbol 51 MovieClip [bonusenergi] Frame 35
removeMovieClip(this);
Symbol 58 MovieClip Frame 41
stop();
unloadMovie (this);
Symbol 61 MovieClip [timba] Frame 1
suara = new Sound();
suara.attachSound("zet");
suara.start(0, 1);
Symbol 61 MovieClip [timba] Frame 9
stop();
Symbol 61 MovieClip [timba] Frame 10
suara = new Sound();
suara.attachSound("airtimba");
suara.start(0, 1);
Symbol 61 MovieClip [timba] Frame 30
_root.barair_mc.gotoAndPlay("isiulang");
_root.airhabis = "tidak";
_root.score = _root.score - 200;
removeMovieClip(this);
Symbol 64 MovieClip [telek] Frame 1
stop();
speedtelek = 3;
this.onEnterFrame = function () {
_y = (_y + speedtelek);
if ((_y >= 300) || (_x <= -10)) {
play();
}
};
Symbol 64 MovieClip [telek] Frame 6
stop();
removeMovieClip(this);
Symbol 69 MovieClip [balonbalon_mc3] Frame 1
warna = new Color(balon_mc);
warna.setRGB((("0x" + random(99)) + "FF") + random(99));
Symbol 71 MovieClip [balonbalon_mc2] Frame 1
warna = new Color(balon_mc);
warna.setRGB(("0x" + random(9999)) + "FF");
Symbol 76 MovieClip [poin10] Frame 1
_root.score = _root.score + 100;
suara = new Sound();
suara.attachSound("kelelawartuing");
suara.start(0, 1);
Symbol 76 MovieClip [poin10] Frame 22
removeMovieClip(this);
Symbol 81 MovieClip [balonbalonmusuh_mc] Frame 1
warna = new Color(balon_mc);
warna.setRGB(("0xFF" + random(999)) + "F");
Symbol 85 MovieClip [ledakan] Frame 1
suara = new Sound();
suara.attachSound("mbledos");
suara.start(0, 1);
Symbol 85 MovieClip [ledakan] Frame 12
removeMovieClip(this);
Symbol 86 MovieClip [balonbalon_mc] Frame 1
warna = new Color(balon_mc);
warna.setRGB("0xFF" + random(9999));
Symbol 96 MovieClip Frame 35
stop();
Symbol 122 Button
on (release) {
_root.gotoAndStop("level1");
}
Symbol 123 MovieClip Frame 189
stop();
Symbol 128 Button
on (release) {
_root.howtoplay_mc._visible = true;
_root.intro.howtoplay.enabled = false;
}
Symbol 134 MovieClip Frame 12
stop();
Symbol 135 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 137 Button
on (release) {
getURL ("http://www.dailyfreegames.com/free-games.html", "_blank");
}
Symbol 147 Button
on (release) {
_root.howtoplay_mc._visible = false;
_root.intro.howtoplay.enabled = true;
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
stop();
if (_root.gerobak_mc._x == 87) {
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("jalan");
} else {
_root.gerobak_mc.kepalasiti_mc.gotoAndStop("diam");
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 10
gotoAndStop (1);
Symbol 182 MovieClip Frame 11
suara = new Sound();
suara.attachSound("kenatelek");
suara.start(0, 1);
Symbol 182 MovieClip Frame 22
gotoAndStop (1);
Symbol 188 MovieClip Frame 1
gotoAndStop (14);
Symbol 188 MovieClip Frame 13
stop();
gotoAndStop (14);
Symbol 188 MovieClip Frame 214
stop();
_root.penyiram_mc.gotoAndStop("airhabis");
_root.airhabis = "iya";
_root.attachMovie("timba", "timba", 21);
_root.timba._x = 420;
_root.timba._y = 293;
Symbol 189 MovieClip Frame 1
function telekjatuh() {
i++;
_root.attachMovie("telek", "telek" + i, i);
_root["telek" + i]._x = _root.kelelawar_mc._x;
_root["telek" + i]._y = _root.kelelawar_mc._y + 10;
if (i >= 20) {
i = 8;
}
}
stop();
i = 8;
var intervalID;
intervalID = setInterval(telekjatuh, 2000);
Symbol 189 MovieClip Frame 2
clearInterval(_root.kelelawar_mc.intervalID);
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 6
stop();
delete _root.onEnterFrame;
delete _root.onMouseDown;
stopDrag();
_root.kelelawar_mc.gotoAndStop("pause");
_root.kelelawar_mc.sayapgerak_mc.stop();
_root.kelelawar2_mc.gotoAndStop("pause");
_root.kelelawar2_mc.sayapgerak_mc.stop();
_root.kelelawar3_mc.gotoAndStop("pause");
_root.kelelawar3_mc.sayapgerak_mc.stop();
i = 9;
while (i <= 20) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 29;
while (i <= 40) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 59;
while (i <= 70) {
_root["telek" + i].speedtelek = 0;
i++;
}
if (_root.score <= 0) {
_root.score = 0;
}
suara = new Sound();
suara.attachSound("kalah");
suara.start(0, 1);
clearInterval(_root.kelelawar_mc.intervalID);
clearInterval(_root.kelelawar2_mc.intervalID2);
clearInterval(_root.kelelawar3_mc.intervalID3);
_root.attachMovie("gameover", "gameover", 100);
_root.gameover._x = 225;
_root.gameover._y = 170;
Symbol 192 Button
on (keyPress "p") {
attachMovie("maskpause", "maskpause", 101);
balonspeed1 = 0;
balonspeed2 = 0;
balonspeed3 = 0;
balonspeed4 = 0;
speed = 0;
kelelawarspeed = 0;
awanspeed = 0;
_root.timer = 0;
_root.airhabis = "iya";
stopDrag();
_root.kelelawar_mc.gotoAndStop("pause");
_root.kelelawar_mc.sayapgerak_mc.stop();
i = 9;
while (i <= 20) {
_root["telek" + i].speedtelek = 0;
i++;
}
}
Symbol 200 Button
on (keyPress "p") {
attachMovie("maskpause", "maskpause", 101);
balonspeed1 = 0;
balonspeed2 = 0;
balonspeed3 = 0;
balonspeed4 = 0;
balonmusuhspeed = 0;
speed = 0;
kelelawarspeed = 0;
kelelawarspeed2 = 0;
awanspeed = 0;
_root.timer = 0;
_root.airhabis = "iya";
stopDrag();
_root.kelelawar_mc.gotoAndStop("pause");
_root.kelelawar_mc.sayapgerak_mc.stop();
_root.kelelawar2_mc.gotoAndStop("pause");
_root.kelelawar2_mc.sayapgerak_mc.stop();
i = 9;
while (i <= 20) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 29;
while (i <= 40) {
_root["telek" + i].speedtelek = 0;
i++;
}
}
Symbol 201 MovieClip Frame 1
function telekjatuh2() {
i++;
_root.attachMovie("telek", "telek" + i, i);
_root["telek" + i]._x = _root.kelelawar2_mc._x;
_root["telek" + i]._y = _root.kelelawar2_mc._y + 10;
if (i >= 40) {
i = 28;
}
}
stop();
i = 28;
var intervalID2;
intervalID2 = setInterval(telekjatuh2, 2000);
Symbol 201 MovieClip Frame 2
clearInterval(_root.kelelawar2_mc.intervalID2);
Symbol 206 MovieClip Frame 1
function telekjatuh3() {
i++;
_root.attachMovie("telek", "telek" + i, i);
_root["telek" + i]._x = _root.kelelawar3_mc._x;
_root["telek" + i]._y = _root.kelelawar3_mc._y + 10;
if (i >= 70) {
i = 58;
}
}
stop();
i = 58;
var intervalID3;
intervalID3 = setInterval(telekjatuh3, 3000);
Symbol 206 MovieClip Frame 2
clearInterval(_root.kelelawar3_mc.intervalID3);
Symbol 207 Button
on (keyPress "p") {
attachMovie("maskpause", "maskpause", 101);
balonspeed1 = 0;
balonspeed2 = 0;
balonspeed3 = 0;
balonspeed4 = 0;
balonmusuhspeed = 0;
speed = 0;
kelelawarspeed = 0;
kelelawarspeed2 = 0;
kelelawarspeed3 = 0;
awanspeed = 0;
_root.timer = 0;
_root.airhabis = "iya";
stopDrag();
_root.kelelawar_mc.gotoAndStop("pause");
_root.kelelawar_mc.sayapgerak_mc.stop();
_root.kelelawar2_mc.gotoAndStop("pause");
_root.kelelawar2_mc.sayapgerak_mc.stop();
_root.kelelawar3_mc.gotoAndStop("pause");
_root.kelelawar3_mc.sayapgerak_mc.stop();
i = 9;
while (i <= 20) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 29;
while (i <= 40) {
_root["telek" + i].speedtelek = 0;
i++;
}
i = 59;
while (i <= 70) {
_root["telek" + i].speedtelek = 0;
i++;
}
}