Frame 1
belugerin_mc._visible = false;
_urlStart = _url.indexOf("://") + 3;
_urlEnd = _url.indexOf("/", _urlStart);
domain = _url.substring(_urlStart, _urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
mainDimana2 = "global";
if ((((domain == "kongregate.com") || (domain == "bgames.com")) || (domain == "yepi.com")) || (domain == "gamezhero.com")) {
mainDimana2 = "alien";
} else {
mainDimana2 = "global";
}
if (mainDimana2 == "global") {
adBox.gotoAndStop(1);
var CPMStarContentSpotID = "9332QAC5FF7DA";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
} else if (mainDimana2 == "alien") {
adBox.gotoAndStop(2);
}
function backMenu() {
myMusic.stop();
myMusic = new Sound(zmusic);
myMusic.attachSound("backMenu");
myMusic.start(0, 1);
myMusic.setVolume(volume1);
myMusic.onSoundComplete = backMenu;
}
function backMain() {
myMusic.stop();
myMusic = new Sound(zmusic);
myMusic.attachSound("backMain");
myMusic.start(0, 1);
myMusic.setVolume(volume1);
myMusic.onSoundComplete = backMain;
}
function backLangkah() {
mySound2 = new Sound(zsound2);
mySound2.attachSound("backLangkah");
mySound2.start(0.5, 1);
mySound2.setVolume(volume1);
mySound2.onSoundComplete = backLangkah;
}
function backJump() {
mySound = new Sound(zsound);
mySound.attachSound("backJump");
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backKena() {
mySound = new Sound(zsound);
mySound.attachSound("backKena");
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backMati() {
mySound = new Sound(zsound);
mySound.attachSound("backMati");
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backBurung() {
mySound = new Sound(zsound);
mySound.attachSound("backBurung");
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backTRex() {
mySound = new Sound(zsound);
mySound.attachSound("backTRex");
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backPukul() {
mySound = new Sound(zsound);
mySound.attachSound("backPukul");
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backUang() {
mySound = new Sound(zsound);
mySound.attachSound("backUang");
mySound.start(0, 1);
mySound.setVolume(volume2);
}
function backGun() {
zrand = random(2) + 1;
mySound = new Sound(zsound);
mySound.attachSound("backGun" + zrand);
mySound.start(0, 1);
mySound.setVolume(volume2);
}
stop();
fscommand ("fullscreen", false);
fscommand ("allowscale", true);
fscommand ("showmenu", false);
Stage.showMenu = false;
this.onEnterFrame = function () {
persen = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
xpersen = persen + "%";
bar_mc.gotoAndStop(persen);
if (persen >= 100) {
gotoAndStop ("completed");
delete this.onEnterFrame;
}
};
qualityGame = 1;
_quality = "HIGH";
adaSuara = true;
zmusic = attachMovie("indi3", "zmusic", 7);
zmusic._x = -500;
zmusic._y = -500;
zsound = attachMovie("indi3", "zsound", 8);
zsound._x = -750;
zsound._y = -750;
zsound2 = attachMovie("indi3", "zsound2", 9);
zsound2._x = -750;
zsound2._y = -750;
volume1 = 100;
volume2 = 150;
Frame 20
stop();
start_btn.onRelease = function () {
_urlStart = _url.indexOf("://") + 3;
_urlEnd = _url.indexOf("/", _urlStart);
domain = _url.substring(_urlStart, _urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
unloadMovie (adBox);
backMenu();
gotoAndStop (31);
};
Frame 31
function initData() {
levelSpeed = 1;
levelJump = 1;
levelDash = 1;
levelGun = 1;
levelFly = 0;
levelLife = 1;
checkPointKe = 1;
money = 0;
xtry = 1;
sudahTutor1 = false;
sudahTutor2 = false;
sudahTutor3 = false;
sudahTutor4 = false;
sudahTutor5 = false;
}
stop();
play_btn.onRelease = function () {
initData();
backMain();
gotoAndStop (32);
};
credit_btn.onRelease = function () {
gotoAndStop (31);
};
Frame 32
function init() {
dalamRaptor = 100;
dalamTanah = 90;
dalamBarDino = 95;
dalamHalang = 200;
dalamGoa1 = 75;
dalamGoa2 = 125;
dalamUI = 1000;
speedTanah = 10;
speedPohon = 10;
speedGunung = 5;
speedLangit = 2.5;
speedKini = 0.75 + (0.25 * levelSpeed);
speedAwal = speedKini;
speedTengah = speedKini * (0.25 + levelDash);
raptorSpeedY = 16 + (levelJump * 1.5);
if (checkPointKe == 1) {
jarak = 0;
} else if (checkPointKe == 2) {
jarak = 2500;
} else if (checkPointKe == 3) {
jarak = 5000;
} else if (checkPointKe == 4) {
jarak = 7500;
}
dalamObyek = 1;
nyawaRaptor = levelLife;
sudahSelesai = false;
raptorLoncat = false;
geserKiri = false;
geserAtas = false;
geserKanan = false;
geserBawah = false;
sudahGo = false;
i = 1;
while (i <= 120) {
_root["halang" + i] = false;
i++;
}
if (checkPointKe == 2) {
i = 1;
while (i <= 17) {
_root["halang" + i] = true;
i++;
}
} else if (checkPointKe == 3) {
i = 1;
while (i <= 35) {
_root["halang" + i] = true;
i++;
}
} else if (checkPointKe == 4) {
i = 1;
while (i <= 51) {
_root["halang" + i] = true;
i++;
}
}
tutorial_mc._visible = false;
sedangTutorial = false;
}
function buatUI() {
ui_mc = attachMovie("ui_mc", "ui_mc", dalamUI);
ui_mc._x = 375;
ui_mc._y = 15;
ui_mc.onEnterFrame = enterUI;
}
function cekTutorial(indi) {
if (_root["sudahTutor" + indi] == false) {
if (indi == 2) {
goa1._x = goa1._x - 10;
}
_root["sudahTutor" + indi] = true;
sudahGo = false;
sedangTutorial = true;
raptor.anim.stop();
tutorial_mc._visible = true;
tutorial_mc.gotoAndStop(indi);
geserKiri = false;
geserAtas = false;
geserKanan = false;
geserBawah = false;
}
}
function enterUI() {
if (nyawaRaptor == 5) {
this.nyawa1._visible = true;
this.nyawa2._visible = true;
this.nyawa3._visible = true;
this.nyawa4._visible = true;
this.nyawa5._visible = true;
} else if (nyawaRaptor == 4) {
this.nyawa1._visible = true;
this.nyawa2._visible = true;
this.nyawa3._visible = true;
this.nyawa4._visible = true;
this.nyawa5._visible = false;
} else if (nyawaRaptor == 3) {
this.nyawa1._visible = true;
this.nyawa2._visible = true;
this.nyawa3._visible = true;
this.nyawa4._visible = false;
this.nyawa5._visible = false;
} else if (nyawaRaptor == 2) {
this.nyawa1._visible = true;
this.nyawa2._visible = true;
this.nyawa3._visible = false;
this.nyawa4._visible = false;
this.nyawa5._visible = false;
} else if (nyawaRaptor == 1) {
this.nyawa1._visible = true;
this.nyawa2._visible = false;
this.nyawa3._visible = false;
this.nyawa4._visible = false;
this.nyawa5._visible = false;
} else if (nyawaRaptor == 0) {
this.nyawa1._visible = false;
this.nyawa2._visible = false;
this.nyawa3._visible = false;
this.nyawa4._visible = false;
this.nyawa5._visible = false;
}
xxjarak = Math.floor(jarak);
if (xxjarak >= 18000) {
xxjarak = 18000;
}
ui_mc.jarak = ("Distance: " + xxjarak) + "/18000";
ui_mc.tryKe = "Try: " + xtry;
}
function buatTanah() {
tanah = attachMovie("tanah_mc", "tanah_mc", dalamTanah);
tanah.cacheAsBitmap = true;
tanah._x = 0;
tanah._y = 380;
}
function buatBarDino() {
barDino = attachMovie("barDino", "barDino", dalamBarDino);
barDino.cacheAsBitmap = true;
barDino._x = 15;
barDino._y = 30;
barDino._visible = false;
}
function buatRaptor() {
raptor = attachMovie("raptor_mc", "raptor_mc", dalamRaptor);
raptor.cacheAsBitmap = true;
raptor._x = 130;
raptor._y = 265;
raptor.anim.gotoAndStop(4);
raptor._xscale = (raptor._yscale = 80);
raptor.sedangKena = false;
raptor.delayKena = 0;
raptor.delayMax = 60;
raptor.delayKedip = 0;
raptor.maxKedip = 3;
raptor.onEnterFrame = enterRaptor;
}
function enterRaptor() {
if ((sudahSelesai == false) && (sudahGo == true)) {
if (this.sedangKena == true) {
if (this.delayKedip >= this.maxKedip) {
this.delayKedip = 0;
this._alpha = 0;
} else {
this._alpha = 100;
this.delayKedip++;
}
if (this.delayKena >= this.delayMax) {
backKena();
nyawaRaptor--;
this.delayKena = 0;
speedKini = speedAwal;
this.sedangKena = false;
if (nyawaRaptor <= 0) {
sudahSelesai = true;
cekSelesai();
}
} else {
this.delayKena++;
}
} else {
this._alpha = 100;
}
}
}
function buatBatu() {
batu = attachMovie("batu_mc", "obyek_mc" + dalamObyek, dalamHalang);
batu.cacheAsBitmap = true;
batu._x = 961;
batu._y = 365;
batu.sudahKena = false;
batu.obyekKe = 3;
batu.obyekKe2 = 100;
batu.onEnterFrame = enterObyekKena;
dalamObyek++;
dalamHalang++;
if (dalamHalang >= 250) {
dalamHalang = 200;
}
}
function buatGoa() {
goa1 = attachMovie("belakang_mc", "obyek_mc" + dalamObyek, dalamGoa1);
goa1.cacheAsBitmap = true;
goa1._x = 961;
goa1._y = 215;
goa1.onEnterFrame = enterGoa;
dalamObyek++;
goa2 = attachMovie("depan_mc", "obyek_mc" + dalamObyek, dalamGoa2);
goa2.cacheAsBitmap = true;
goa2._x = 1000;
goa2._y = 190;
goa2.sudahKena = false;
goa2.obyekKe = 2;
goa2.obyekKe2 = 100;
goa2.onEnterFrame = enterObyekKena;
dalamObyek++;
dalamGoa1++;
if (dalamGoa1 >= 85) {
dalamGoa1 = 75;
}
dalamGoa2++;
if (dalamGoa2 >= 135) {
dalamGoa2 = 125;
}
}
function enterGoa() {
if ((sudahSelesai == false) && (sudahGo == true)) {
this._x = this._x - (speedPohon * speedKini);
if (this._x <= -700) {
removeMovieClip(this);
}
if (this.hitTest(dinoGede)) {
this.gotoAndStop(3);
}
}
}
function buatPohon() {
pohon = attachMovie("pohon_mc2", "obyek_mc" + dalamObyek, dalamHalang);
pohon.cacheAsBitmap = true;
pohon._x = 961;
pohon._y = 365;
pohon.sudahKena = false;
pohon.obyekKe = 6;
pohon.obyekKe2 = 10;
pohon.bisaHancur = true;
pohon.onEnterFrame = enterObyekKena;
dalamObyek++;
dalamHalang++;
if (dalamHalang >= 250) {
dalamHalang = 200;
}
}
function buatDino(indi) {
backTRex();
dino = attachMovie("dino_mc", "obyek_mc" + dalamObyek, dalamHalang);
dino.cacheAsBitmap = true;
dino._x = -300;
dino._y = 280;
if (indi <= 500) {
dino._xscale = 95;
dino._yscale = 95;
} else if (indi <= 1000) {
dino._xscale = 100;
dino._yscale = 100;
} else {
dino._xscale = 105;
dino._yscale = 105;
}
dino.sudahSampai = false;
dino.sudahSerang = false;
dino.sudahSerang2 = false;
dino.obyekKe = 5;
dino.obyekKe2 = 9;
dino.delaySerang = 0;
dino.maxSerang = 50;
dino.damageKurang = 0;
dino.nyawa = indi;
dinoGede = dino;
dino.maxNyawa = dino.nyawa;
dino.onEnterFrame = enterDino;
dalamObyek++;
dalamHalang++;
if (dalamHalang >= 250) {
dalamHalang = 200;
}
}
function enterDino() {
if ((sudahSelesai == false) && (sudahGo == true)) {
if ((this.nyawa <= 0) || (this.nyawa == undefined)) {
this.nyawa = 0;
barDino._visible = false;
this.gotoAndStop(4);
this._x = this._x - (speedPohon * speedKini);
} else {
if (this.sudahSampai == true) {
if (this.delaySerang >= this.maxSerang) {
this._x = this._x - ((speedPohon * speedKini) * 0.7);
this.gotoAndStop(2);
} else {
if (raptor_mc._currentframe == 6) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
this.delaySerang++;
}
} else if (raptor_mc._currentframe == 6) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
if (this.sudahSerang2 == true) {
if (this.hitTest(raptor_mc)) {
raptor_mc.sedangKena = true;
speedKini = speedAwal * 0.75;
}
this.sudahSerang2 = false;
}
if (this.sudahSerang == true) {
this.sudahSerang = false;
this.sudahSampai = false;
this.delaySerang = 0;
}
if (this.sudahSampai == false) {
if (this._x <= 25) {
if (jarak >= 7500) {
this._x = this._x + 2;
} else if (jarak >= 5000) {
this._x = this._x + 2.5;
} else {
this._x = this._x + 2;
}
} else {
this.damageKurang = 0;
this.sudahSampai = true;
}
}
if (this._x >= -25) {
cekTutorial(4);
}
if (this._x >= -150) {
barDino._visible = true;
if ((raptor_mc._currentframe == this.obyekKe) || (raptor_mc._currentframe == this.obyekKe2)) {
if (jarak >= 7500) {
this._x = this._x - (0.5 + this.damageKurang);
this.damageKurang = this.damageKurang + 0.001;
} else if (jarak >= 5000) {
this._x = this._x - (1 + this.damageKurang);
this.damageKurang = this.damageKurang + 0.001;
} else {
this._x = this._x - (1.5 + this.damageKurang);
this.damageKurang = this.damageKurang + 0.001;
}
i = 1;
while (i <= 5) {
this.dino["efek" + i]._visible = true;
i++;
}
this.nyawa = this.nyawa - levelGun;
if (this.nyawa <= 0) {
this.nyawa = 0;
}
} else {
i = 1;
while (i <= 5) {
this.dino["efek" + i]._visible = false;
i++;
}
}
} else {
i = 1;
while (i <= 5) {
this.dino["efek" + i]._visible = false;
i++;
}
}
if (this.nyawa <= 0) {
barDino._visible = false;
} else {
barDino.bar_mc.bar._xscale = (this.nyawa / this.maxNyawa) * 100;
}
}
} else {
i = 1;
while (i <= 5) {
this.dino["efek" + i]._visible = false;
i++;
}
}
}
function buatBurung() {
backBurung();
burung = attachMovie("burung_mc", "obyek_mc" + dalamObyek, dalamHalang);
burung.cacheAsBitmap = true;
randBurung = random(2);
if (randBurung == 0) {
burung._x = 961;
burung._y = 235;
} else {
burung._x = 961;
burung._y = 345;
}
burung.sudahKena = false;
burung.obyekKe = 0;
burung.obyekKe2 = 100;
burung.onEnterFrame = enterObyekKena2;
dalamObyek++;
dalamHalang++;
if (dalamHalang >= 250) {
dalamHalang = 200;
}
}
function buatBurung2() {
backBurung();
burung = attachMovie("burung_mc2", "obyek_mc" + dalamObyek, dalamHalang);
burung.cacheAsBitmap = true;
randBurung = random(2);
if (randBurung == 0) {
burung._x = 961;
burung._y = 150;
} else {
burung._x = 961;
burung._y = 200;
}
burung.sudahKena = false;
burung.obyekKe = 0;
burung.obyekKe2 = 100;
burung.onEnterFrame = enterObyekKena2;
dalamObyek++;
dalamHalang++;
if (dalamHalang >= 250) {
dalamHalang = 200;
}
}
function buatUFO() {
backBurung();
burung = attachMovie("buatUFO", "obyek_mc" + dalamObyek, dalamHalang);
burung.cacheAsBitmap = true;
randBurung = random(2);
if (randBurung == 0) {
burung._x = 961;
burung._y = 100;
} else {
burung._x = 961;
burung._y = 250;
}
burung.sudahKena = false;
burung.obyekKe = 0;
burung.obyekKe2 = 100;
burung.onEnterFrame = enterObyekKena2;
dalamObyek++;
dalamHalang++;
if (dalamHalang >= 250) {
dalamHalang = 200;
}
}
function buatCheckPoint(indi) {
point = attachMovie("point_mc", "obyek_mc" + dalamObyek, dalamHalang);
point.cacheAsBitmap = true;
point._x = 961;
point._y = 305;
point.sudahKena = false;
point.checkPoint = indi;
point.onEnterFrame = enterCheckPoint;
dalamObyek++;
dalamHalang++;
if (dalamHalang >= 250) {
dalamHalang = 200;
}
}
function buatFinish() {
finish = attachMovie("finish_mc", "obyek_mc" + dalamObyek, dalamHalang);
finish.cacheAsBitmap = true;
finish._x = 961;
finish._y = 305;
finish.sudahKena = false;
finish.onEnterFrame = enterFinish;
dalamObyek++;
dalamHalang++;
if (dalamHalang >= 250) {
dalamHalang = 200;
}
}
function enterCheckPoint() {
if ((sudahSelesai == false) && (sudahGo == true)) {
if (this.hitTest(raptor_mc)) {
if (this.sudahKena == false) {
this.gotoAndStop(2);
this.sudahKena = true;
checkPointKe = this.checkPoint;
}
}
this._x = this._x - (speedPohon * speedKini);
if (this._x <= -700) {
removeMovieClip(this);
}
if (this._x <= 650) {
cekTutorial(5);
}
}
}
function enterFinish() {
if ((sudahSelesai == false) && (sudahGo == true)) {
if (this.hitTest(raptor_mc)) {
if (this.sudahKena == false) {
this.gotoAndStop(2);
this.sudahKena = true;
sudahSelesai = true;
cekSelesai2();
}
}
this._x = this._x - (speedPohon * speedKini);
if (this._x <= -700) {
removeMovieClip(this);
}
}
}
function enterObyekKena() {
if ((sudahSelesai == false) && (sudahGo == true)) {
if (this._currentframe != 3) {
if (this.indi.hitTest(raptor_mc)) {
if (this.sudahKena == false) {
if (raptor_mc.sedangKena == false) {
if ((raptor_mc._currentframe == this.obyekKe) || (raptor_mc._currentframe == this.obyekKe2)) {
if (this.bisaHancur == true) {
this.gotoAndStop(3);
}
} else {
this.gotoAndStop(2);
this.sudahKena = true;
raptor_mc.sedangKena = true;
speedKini = speedAwal * 0.25;
}
}
}
}
}
if (this.indi.hitTest(dinoGede)) {
this.gotoAndStop(3);
}
this._x = this._x - (speedPohon * speedKini);
if (this._x <= -1000) {
removeMovieClip(this);
}
if (this.obyekKe == 6) {
if (this._x <= 700) {
cekTutorial(3);
}
} else if (this._x <= 650) {
if (this.obyekKe == 3) {
cekTutorial(1);
} else if (this.obyekKe == 2) {
cekTutorial(2);
}
}
}
}
function enterObyekKena2() {
if ((sudahSelesai == false) && (sudahGo == true)) {
if (this.indi.hitTest(raptor_mc)) {
if (this.sudahKena == false) {
if (raptor_mc.sedangKena == false) {
if (raptor_mc._currentframe != this.obyekKe) {
this.gotoAndStop(2);
this.sudahKena = true;
raptor_mc.sedangKena = true;
speedKini = speedAwal * 0.25;
} else if (this.bisaHancur == true) {
this.gotoAndStop(3);
}
}
}
}
this._x = this._x - ((speedPohon * speedKini) * 1.5);
if (this._x <= -700) {
removeMovieClip(this);
}
}
}
function buatLubang() {
adaLubang = true;
}
function tutupLubang() {
adaLubang = false;
}
function clearSemua() {
removeMovieClip(ui_mc);
removeMovieClip(tanah_mc);
removeMovieClip(barDino);
removeMovieClip(raptor_mc);
i = 1;
while (i <= dalamObyek) {
removeMovieClip(_root["obyek_mc" + i]);
i++;
}
}
function cekSelesai() {
backMati();
raptor_mc.gotoAndStop(7);
raptor_mc._y = 265;
idSelesai = setInterval(cekLanjut, 3000);
}
function cekLanjut() {
xtry++;
clearInterval(idSelesai);
clearSemua();
money = money + Math.ceil(jarak / 5);
gotoAndStop (33);
}
function cekSelesai2() {
raptor_mc.gotoAndStop(1);
raptor.anim.stop();
raptor_mc._y = 265;
idSelesai2 = setInterval(cekLanjut2, 3000);
}
function cekLanjut2() {
clearInterval(idSelesai2);
clearSemua();
money = money + Math.ceil(jarak / 5);
gotoAndStop (34);
}
function cekSuara() {
if (adaSuara == true) {
ui_mc.sound_mc.gotoAndStop(1);
volume1 = 100;
volume2 = 75;
volume3 = 250;
} else if (adaSuara == false) {
ui_mc.sound_mc.gotoAndStop(2);
volume1 = 0;
volume2 = 0;
volume3 = 0;
}
}
stop();
init();
buatUI();
buatTanah();
buatRaptor();
buatBarDino();
_root.onEnterFrame = function () {
if ((sudahSelesai == false) && (sudahGo == true)) {
if (raptorLoncat == false) {
if (speedKini >= speedAwal) {
if (adaSuara == true) {
mySound2.setVolume(100);
} else {
mySound2.setVolume(0);
}
} else {
mySound2.setVolume(0);
}
} else {
mySound2.setVolume(0);
}
jarak = jarak + speedKini;
if (jarak >= 20) {
if (halang1 == false) {
halang1 = true;
buatGoa();
}
}
if (jarak >= 140) {
if (halang2 == false) {
halang2 = true;
buatPohon();
}
}
if (jarak >= 360) {
if (halang3 == false) {
halang3 = true;
buatBatu();
}
}
if (jarak >= 500) {
if (halang4 == false) {
halang4 = true;
buatGoa();
}
}
if (jarak >= 720) {
if (halang5 == false) {
halang5 = true;
buatDino(100);
}
}
if (jarak >= 750) {
if (halang6 == false) {
halang6 = true;
buatBatu();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 850) {
if (halang7 == false) {
halang7 = true;
buatBatu();
}
}
if (jarak >= 930) {
if (halang8 == false) {
halang8 = true;
buatGoa();
}
}
if (jarak >= 1000) {
if (halang9 == false) {
halang9 = true;
buatBurung();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 1100) {
if (halang10 == false) {
halang10 = true;
buatBatu();
}
}
if (jarak >= 1300) {
if (halang11 == false) {
halang11 = true;
buatDino(200);
}
}
if (jarak >= 1500) {
if (halang12 == false) {
halang12 = true;
buatBurung();
}
}
if (jarak >= 1700) {
if (halang13 == false) {
halang13 = true;
buatPohon();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 1900) {
if (halang14 == false) {
halang14 = true;
buatBurung();
}
}
if (jarak >= 2100) {
if (halang15 == false) {
halang15 = true;
buatPohon();
}
}
if (jarak >= 2300) {
if (halang16 == false) {
halang16 = true;
buatGoa();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 2500) {
if (halang17 == false) {
halang17 = true;
buatCheckPoint(2);
}
}
if (jarak >= 2550) {
if (halang18 == false) {
halang18 = true;
buatDino(400);
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 2850) {
if (halang19 == false) {
halang19 = true;
buatLubang();
}
}
if (jarak >= 2900) {
if (halang20 == false) {
halang20 = true;
tutupLubang();
}
}
if (jarak >= 3000) {
if (halang21 == false) {
halang21 = true;
buatGoa();
}
}
if (jarak >= 3400) {
if (halang22 == false) {
halang22 = true;
buatLubang();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 3500) {
if (halang23 == false) {
halang23 = true;
tutupLubang();
}
}
if (jarak >= 3700) {
if (halang24 == false) {
halang24 = true;
buatGoa();
}
}
if (jarak >= 3900) {
if (halang25 == false) {
halang25 = true;
buatPohon();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 4100) {
if (halang26 == false) {
halang26 = true;
buatBatu();
}
}
if (jarak >= 4200) {
if (halang27 == false) {
halang27 = true;
buatDino(400);
buatBatu();
}
}
if (jarak >= 4250) {
if (halang28 == false) {
halang28 = true;
buatBurung();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 4300) {
if (halang29 == false) {
halang29 = true;
buatPohon();
}
}
if (jarak >= 4350) {
if (halang30 == false) {
halang30 = true;
buatBatu();
}
}
if (jarak >= 4400) {
if (halang31 == false) {
halang31 = true;
buatPohon();
}
}
if (jarak >= 4450) {
if (halang32 == false) {
halang32 = true;
buatGoa();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 4500) {
if (halang33 == false) {
halang33 = true;
buatDino(600);
buatBatu();
}
}
if (jarak >= 4700) {
if (halang34 == false) {
halang34 = true;
buatBurung();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 5000) {
if (halang35 == false) {
halang35 = true;
buatCheckPoint(3);
}
}
if (jarak >= 5100) {
if (halang36 == false) {
halang36 = true;
buatGoa();
}
}
if (jarak >= 5200) {
if (halang37 == false) {
halang37 = true;
buatDino(1200);
}
}
if (jarak >= 5400) {
if (halang38 == false) {
halang38 = true;
buatGoa();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 5600) {
if (halang39 == false) {
halang39 = true;
buatPohon();
}
}
if (jarak >= 5800) {
if (halang40 == false) {
halang40 = true;
buatPohon();
}
}
if (jarak >= 6000) {
if (halang41 == false) {
halang41 = true;
buatBurung();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 6200) {
if (halang42 == false) {
halang42 = true;
buatBatu();
}
}
if (jarak >= 6400) {
if (halang43 == false) {
halang43 = true;
buatGoa();
}
}
if (jarak >= 6600) {
if (halang44 == false) {
halang44 = true;
buatBurung();
}
}
if (jarak >= 6800) {
if (halang45 == false) {
halang45 = true;
buatBurung();
}
}
if (jarak >= 7000) {
if (halang46 == false) {
halang46 = true;
buatPohon();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 7100) {
if (halang47 == false) {
halang47 = true;
buatLubang();
}
}
if (jarak >= 7350) {
if (halang48 == false) {
halang48 = true;
buatGoa();
}
}
if (jarak >= 7450) {
if (halang49 == false) {
halang49 = true;
buatBurung();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 7250) {
if (halang50 == false) {
halang50 = true;
tutupLubang();
}
}
if (jarak >= 7500) {
if (halang51 == false) {
halang51 = true;
buatCheckPoint(4);
}
}
if (jarak >= 7600) {
if (halang52 == false) {
halang52 = true;
buatDino(400);
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 8200) {
if (halang53 == false) {
halang53 = true;
buatDino(600);
}
}
if (jarak >= 8800) {
if (halang54 == false) {
halang54 = true;
buatDino(400);
}
}
if (jarak >= 7600) {
if (halang56 == false) {
halang56 = true;
buatLubang();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 7800) {
if (halang57 == false) {
halang57 = true;
tutupLubang();
}
}
if (jarak >= 7900) {
if (halang58 == false) {
halang58 = true;
buatBurung();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 8100) {
if (halang59 == false) {
halang59 = true;
buatBurung();
}
}
if (jarak >= 8300) {
if (halang60 == false) {
halang60 = true;
buatBurung();
}
}
if (jarak >= 8500) {
if (halang61 == false) {
halang61 = true;
buatBatu();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 8700) {
if (halang62 == false) {
halang62 = true;
buatBurung();
}
}
if (jarak >= 8900) {
if (halang63 == false) {
halang63 = true;
buatPohon();
}
}
if (jarak >= 8950) {
if (halang64 == false) {
halang64 = true;
buatGoa();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 9000) {
if (halang65 == false) {
halang65 = true;
buatBatu();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 9050) {
if (halang66 == false) {
halang66 = true;
buatBatu();
}
}
if (jarak >= 9100) {
if (halang67 == false) {
halang67 = true;
buatPohon();
}
}
if (jarak >= 9150) {
if (halang68 == false) {
halang68 = true;
buatPohon();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 9200) {
if (halang69 == false) {
halang69 = true;
buatGoa();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 9250) {
if (halang70 == false) {
halang70 = true;
buatGoa();
}
}
if (jarak >= 9300) {
if (halang71 == false) {
halang71 = true;
buatGoa();
}
}
if (jarak >= 9350) {
if (halang72 == false) {
halang72 = true;
buatPohon();
}
}
if (jarak >= 9400) {
if (halang73 == false) {
halang73 = true;
buatBatu();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 9450) {
if (halang74 == false) {
halang74 = true;
buatGoa();
}
}
if (jarak >= 9500) {
if (halang75 == false) {
halang75 = true;
buatPohon();
}
}
if (jarak >= 9550) {
if (halang76 == false) {
halang76 = true;
buatPohon();
}
}
if (jarak >= 9600) {
if (halang77 == false) {
halang77 = true;
buatGoa();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 9650) {
if (halang78 == false) {
halang78 = true;
buatBatu();
}
}
if (jarak >= 9700) {
if (halang79 == false) {
halang79 = true;
buatGoa();
}
}
if (jarak >= 9750) {
if (halang80 == false) {
halang80 = true;
buatGoa();
}
}
if (jarak >= 9800) {
if (halang81 == false) {
halang81 = true;
buatGoa();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 9850) {
if (halang82 == false) {
halang82 = true;
buatPohon();
if (levelFly == 1) {
buatBurung2();
}
}
}
if (jarak >= 9900) {
if (halang83 == false) {
halang83 = true;
buatBatu();
}
}
if (jarak >= 10000) {
if (halang84 == false) {
halang84 = true;
buatBurung();
}
}
if (jarak >= 10010) {
if (halang85 == false) {
halang85 = true;
buatBurung();
}
}
if (jarak >= 10020) {
if (halang86 == false) {
halang86 = true;
buatBurung();
}
}
if (jarak >= 10030) {
if (halang87 == false) {
halang87 = true;
buatBatu();
}
}
if (jarak >= 11040) {
if (halang88 == false) {
halang88 = true;
buatBatu();
}
}
if (jarak >= 11050) {
if (halang89 == false) {
halang89 = true;
buatBatu();
}
}
if (jarak >= 11060) {
if (halang90 == false) {
halang90 = true;
buatBatu();
buatBurung();
}
}
if (jarak >= 11070) {
if (halang91 == false) {
halang91 = true;
buatBatu();
buatBurung();
}
}
if (jarak >= 11080) {
if (halang92 == false) {
halang92 = true;
buatBatu();
buatBurung();
}
}
if (jarak >= 11500) {
if (halang93 == false) {
halang93 = true;
buatGoa();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 12000) {
if (halang94 == false) {
halang94 = true;
buatBatu();
}
}
if (jarak >= 12500) {
if (halang95 == false) {
halang95 = true;
buatPohon();
}
}
if (jarak >= 13000) {
if (halang96 == false) {
halang96 = true;
buatBatu();
buatBurung();
}
}
if (jarak >= 13500) {
if (halang97 == false) {
halang97 = true;
buatPohon();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 14000) {
if (halang98 == false) {
halang98 = true;
buatGoa();
buatBurung();
}
}
if (jarak >= 14500) {
if (halang99 == false) {
halang99 = true;
buatPohon();
if (levelFly == 1) {
buatUFO();
}
}
}
if (jarak >= 15000) {
if (halang100 == false) {
halang100 = true;
buatPohon();
}
}
if (jarak >= 15500) {
if (halang101 == false) {
halang101 = true;
buatGoa();
buatBurung();
}
}
if (jarak >= 16000) {
if (halang102 == false) {
halang102 = true;
buatBatu();
}
}
if (jarak >= 16500) {
if (halang103 == false) {
halang103 = true;
buatGoa();
buatBurung();
}
}
if (jarak >= 17000) {
if (halang104 == false) {
halang104 = true;
buatBatu();
if (levelFly == 1) {
buatUFO();
buatBurung2();
}
}
}
if (jarak >= 18000) {
if (halang105 == false) {
halang105 = true;
buatFinish(2);
}
}
tanah_mc._x = tanah_mc._x - (speedTanah * speedKini);
if (tanah_mc._x <= -900) {
if (adaLubang == true) {
tanah_mc.gotoAndStop(2);
} else {
tanah_mc.gotoAndStop(1);
}
tanah_mc._x = 0;
}
if (tanah_mc.indi1.hitTest(raptor_mc.indi2)) {
if (raptor_mc.sedangKena == false) {
backPukul();
raptor_mc.sedangKena = true;
speedKini = speedAwal * 0.5;
}
} else if (tanah_mc.indi2.hitTest(raptor_mc.indi2)) {
if (raptor_mc.sedangKena == false) {
backPukul();
raptor_mc.sedangKena = true;
speedKini = speedAwal * 0.5;
}
}
gunung_mc._x = gunung_mc._x - (speedGunung * speedKini);
if (gunung_mc._x <= -950) {
gunung_mc._x = 0;
}
langit_mc._x = langit_mc._x - (speedLangit * speedKini);
if (langit_mc._x <= -800) {
langit_mc._x = 0;
}
pohon_mc._x = pohon_mc._x - (speedPohon * speedKini);
if (pohon_mc._x <= -900) {
pohon_mc._x = 0;
}
if (raptorLoncat == true) {
speedKini = speedAwal;
raptor_mc._y = raptor_mc._y - raptorSpeedY;
raptorSpeedY = raptorSpeedY - 1.25;
if ((raptorSpeedY <= 0) && (raptor_mc._y >= 250)) {
raptor_mc.gotoAndStop(4);
} else {
raptor_mc.gotoAndStop(3);
}
if ((raptorSpeedY <= 0) && (raptor_mc._y >= 265)) {
raptor_mc._y = 265;
raptorSpeedY = 16 + (levelJump * 1.5);
raptorLoncat = false;
}
} else if (raptorSeruduk == true) {
raptor_mc.gotoAndStop(6);
} else if (raptorTembak == true) {
raptor_mc.gotoAndStop(5);
} else if (raptorNunduk == true) {
raptor_mc.gotoAndStop(2);
} else if (levelFly == 0) {
raptor_mc.gotoAndStop(1);
}
if (raptor_mc.sedangKena == false) {
if (raptorLoncat == false) {
if (raptorSeruduk == true) {
speedKini = speedTengah;
} else {
speedKini = speedAwal;
}
}
}
} else {
mySound2.setVolume(0);
}
if ((levelFly == 1) && (geserKiri == true)) {
raptor_mc.gotoAndStop(9);
} else if ((levelFly == 1) && (geserKanan == true)) {
raptor_mc.gotoAndStop(10);
} else if (levelFly == 1) {
raptor_mc.gotoAndStop(8);
}
if (geserKiri == true) {
if (raptor_mc._x > 130) {
raptor_mc._x = raptor_mc._x - (levelSpeed * 3);
} else {
raptor_mc._x = 130;
}
} else if (geserKanan == true) {
if (raptor_mc._x < 730) {
raptor_mc._x = raptor_mc._x + (levelSpeed * 3);
}
}
if (geserAtas == true) {
if (raptor_mc._y > 30) {
raptor_mc._y = raptor_mc._y - (levelSpeed * 3);
}
} else if (geserBawah == true) {
if (raptor_mc._y < 265) {
raptor_mc._y = raptor_mc._y + (levelSpeed * 3);
}
}
};
Key.removeListener(myListener);
myListener = new Object();
myListener.onKeyDown = function () {
if (Key.getCode() == 32) {
if (sedangTutorial == true) {
sudahGo = true;
sedangTutorial = false;
raptor.anim.play();
tutorial_mc._visible = false;
}
}
if (Key.getCode() == 37) {
if ((sudahSelesai == false) && (sudahGo == true)) {
if (levelFly == 1) {
geserKiri = true;
} else {
raptorTembak = true;
}
}
}
if (Key.getCode() == 38) {
if ((sudahSelesai == false) && (sudahGo == true)) {
if (raptorLoncat == false) {
if (levelFly == 1) {
geserAtas = true;
} else {
backJump();
raptorLoncat = true;
}
}
}
}
if (Key.getCode() == 39) {
if ((sudahSelesai == false) && (sudahGo == true)) {
if (levelFly == 1) {
geserKanan = true;
} else {
raptorSeruduk = true;
}
}
}
if (Key.getCode() == 40) {
if ((sudahSelesai == false) && (sudahGo == true)) {
if (levelFly == 1) {
geserBawah = true;
} else {
raptorNunduk = true;
}
}
}
};
myListener.onKeyUp = function () {
if (Key.getCode() == 37) {
if (levelFly == 1) {
geserKiri = false;
} else {
raptorTembak = false;
}
}
if (Key.getCode() == 38) {
if (levelFly == 1) {
geserAtas = false;
} else {
raptorTembak = false;
}
}
if (Key.getCode() == 39) {
if (levelFly == 1) {
geserKanan = false;
} else {
raptorSeruduk = false;
}
}
if (Key.getCode() == 40) {
if (levelFly == 1) {
geserBawah = false;
} else {
raptorNunduk = false;
}
}
};
Key.addListener(myListener);
cekSuara();
ui_mc.sound_mc.onRelease = function () {
if (adaSuara == true) {
adaSuara = false;
this.gotoAndStop(2);
} else {
adaSuara = true;
this.gotoAndStop(1);
}
cekSuara();
myMusic.setVolume(volume1);
mySound.setVolume(volume2);
mySound2.setVolume(volume1);
};
Frame 33
belugerin_mc._visible = false;
_urlStart = _url.indexOf("://") + 3;
_urlEnd = _url.indexOf("/", _urlStart);
domain = _url.substring(_urlStart, _urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
mainDimana2 = "global";
if ((((domain == "kongregate.com") || (domain == "bgames.com")) || (domain == "yepi.com")) || (domain == "gamezhero.com")) {
mainDimana2 = "alien";
} else {
mainDimana2 = "global";
}
if (mainDimana2 == "global") {
adBox.gotoAndStop(1);
var CPMStarContentSpotID = "9333Q7FC66E5A";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
} else if (mainDimana2 == "alien") {
adBox.gotoAndStop(2);
}
function cekUpgrade() {
xlevelSpeed = ("Level " + levelSpeed) + "/3";
xlevelGun = ("Level " + levelGun) + "/3";
xlevelJump = ("Level " + levelJump) + "/3";
xlevelDash = ("Level " + levelDash) + "/3";
xlevelFly = ("Level " + levelFly) + "/1";
xlevelLife = ("Level " + levelLife) + "/5";
hargaSpeed = new Array("", 500, 1000, "Max");
hargaJump = new Array("", 500, 1000, "Max");
hargaGun = new Array("", 500, 1000, "Max");
hargaDash = new Array("", 500, 1000, "Max");
hargaLife = new Array("", 500, 1000, 1500, 2000, "Max");
hargaFly = new Array(4000, "Max");
xmoney = "Money " + money;
}
stop();
next_btn.onRelease = function () {
gotoAndStop (32);
};
cost = 0;
xcost = "Cost " + cost;
tryKe = "Try: " + xtry;
cekUpgrade();
speed_btn.onRelease = function () {
if (levelSpeed <= 2) {
if (money >= hargaSpeed[levelSpeed]) {
backUang();
money = money - hargaSpeed[levelSpeed];
levelSpeed++;
} else {
xcost = "Not enough money";
}
} else {
xcost = "Maximum level";
}
cekUpgrade();
};
speed_btn.onRollOver = function () {
cost = hargaSpeed[levelSpeed];
xcost = "Cost " + cost;
};
speed_btn.onRollOut = function () {
cost = 0;
xcost = "Cost " + cost;
};
jump_btn.onRelease = function () {
if (levelJump <= 2) {
if (money >= hargaJump[levelJump]) {
backUang();
money = money - hargaJump[levelJump];
levelJump++;
} else {
xcost = "Not enough money";
}
} else {
xcost = "Maximum level";
}
cekUpgrade();
};
jump_btn.onRollOver = function () {
cost = hargaJump[levelJump];
xcost = "Cost " + cost;
};
jump_btn.onRollOut = function () {
cost = 0;
xcost = "Cost " + cost;
};
fly_btn.onRelease = function () {
if (levelFly <= 0) {
if (money >= hargaFly[levelFly]) {
backUang();
money = money - hargaFly[levelFly];
levelFly++;
} else {
xcost = "Not enough money";
}
} else {
xcost = "Maximum level";
}
cekUpgrade();
};
fly_btn.onRollOver = function () {
cost = hargaFly[levelFly];
xcost = "Cost " + cost;
};
fly_btn.onRollOut = function () {
cost = 0;
xcost = "Cost " + cost;
};
life_btn.onRelease = function () {
if (levelLife <= 4) {
if (money >= hargaLife[levelLife]) {
backUang();
money = money - hargaLife[levelLife];
levelLife++;
} else {
xcost = "Not enough money";
}
} else {
xcost = "Maximum level";
}
cekUpgrade();
};
life_btn.onRollOver = function () {
cost = hargaLife[levelLife];
xcost = "Cost " + cost;
};
life_btn.onRollOut = function () {
cost = 0;
xcost = "Cost " + cost;
};
gun_btn.onRelease = function () {
if (levelGun <= 2) {
if (money >= hargaGun[levelGun]) {
backUang();
money = money - hargaGun[levelGun];
levelGun++;
} else {
xcost = "Not enough money";
}
} else {
xcost = "Maximum level";
}
cekUpgrade();
};
gun_btn.onRollOver = function () {
cost = hargaGun[levelJump];
xcost = "Cost " + cost;
};
gun_btn.onRollOut = function () {
cost = 0;
xcost = "Cost " + cost;
};
dash_btn.onRelease = function () {
if (levelDash <= 2) {
if (money >= hargaDash[levelDash]) {
backUang();
money = money - hargaDash[levelDash];
levelDash++;
} else {
xcost = "Not enough money";
}
} else {
xcost = "Maximum level";
}
cekUpgrade();
};
dash_btn.onRollOver = function () {
cost = hargaDash[levelDash];
xcost = "Cost " + cost;
};
dash_btn.onRollOut = function () {
cost = 0;
xcost = "Cost " + cost;
};
Frame 34
stop();
backMenu();
again_btn.onRelease = function () {
initData();
gotoAndStop (32);
};
Symbol 16 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
play();
Symbol 38 MovieClip Frame 15
stop();
Symbol 39 MovieClip [batu_mc] Frame 1
stop();
Symbol 39 MovieClip [batu_mc] Frame 2
_root.backPukul();
Symbol 39 MovieClip [batu_mc] Frame 3
_root.backPukul();
Symbol 41 MovieClip [belakang_mc] Frame 1
stop();
Symbol 41 MovieClip [belakang_mc] Frame 3
_root.backPukul();
Symbol 51 MovieClip [depan_mc] Frame 1
stop();
Symbol 51 MovieClip [depan_mc] Frame 2
_root.backPukul();
Symbol 51 MovieClip [depan_mc] Frame 3
_root.backPukul();
Symbol 53 MovieClip Frame 1
gotoAndPlay(random(5) + 1);
Symbol 56 MovieClip Frame 14
_parent.sudahSerang2 = true;
Symbol 56 MovieClip Frame 54
_parent.sudahSerang = true;
Symbol 56 MovieClip Frame 55
_parent.gotoAndStop(1);
Symbol 59 MovieClip Frame 4
_root.backTRex();
Symbol 59 MovieClip Frame 40
removeMovieClip(_parent);
Symbol 60 MovieClip [dino_mc] Frame 1
stop();
Symbol 65 MovieClip [finish_mc] Frame 1
stop();
Symbol 65 MovieClip [finish_mc] Frame 2
_root.backPukul();
Symbol 68 MovieClip [pohon_mc2] Frame 1
stop();
Symbol 68 MovieClip [pohon_mc2] Frame 2
_root.backPukul();
Symbol 68 MovieClip [pohon_mc2] Frame 3
_root.backPukul();
Symbol 71 MovieClip [point_mc] Frame 1
stop();
Symbol 71 MovieClip [point_mc] Frame 2
_root.backPukul();
Symbol 94 MovieClip Frame 5
stop();
Symbol 95 MovieClip Frame 4
stop();
_root.raptorLoncat = false;
_parent.gotoAndStop(1);
Symbol 103 MovieClip Frame 6
_root.backGun();
Symbol 103 MovieClip Frame 14
_root.backGun();
Symbol 103 MovieClip Frame 22
_root.backGun();
Symbol 103 MovieClip Frame 29
gotoAndPlay (7);
Symbol 113 MovieClip [raptor_mc] Frame 1
stop();
Symbol 123 MovieClip [tanah_mc] Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 1
play();
Symbol 178 MovieClip Frame 36
_root.raptor.anim.play();
_root.backLangkah();
_root.sudahGo = true;
Symbol 178 MovieClip Frame 50
stop();
Symbol 185 MovieClip Frame 1
stop();