Frame 1
mochi.as2.MochiServices.connect("5fa555a63e9cc3f8");
function cargando() {
var _local4;
var _local3;
var _local2;
_local4 = _root.getBytesTotal();
_local3 = _root.getBytesLoaded();
_local2 = Math.floor((_local3 * 100) / _local4);
porcentaje_txt.text = _local2 + " %";
root.barra_mc.gotoAndStop(_local2);
if (_local3 == _local4) {
if (!_root.ad) {
clearInterval(hiloPrecarga);
} else {
_root.gotoAndStop(2);
clearInterval(hiloPrecarga);
}
}
}
stop();
_root.level_world1 = 9;
_root.level_world2 = 9;
_root.level_world3 = 9;
_root.level_world4 = 9;
_root.world_w1 = false;
_root.world_w2 = false;
_root.world_w3 = false;
_root.world_w4 = false;
_root.s1 = false;
_root.s2 = false;
_root.s3 = false;
_root.s4 = false;
_root.s5 = false;
_root.s6 = false;
_root.s7 = false;
_root.s8 = false;
_root.s9 = false;
_root.s10 = false;
_root.s11 = false;
_root.s12 = false;
_root.s13 = false;
_root.s14 = false;
_root.s15 = false;
_root.s16 = false;
_root.s17 = false;
_root.s18 = false;
_root.s19 = false;
_root.s20 = false;
_root.s21 = false;
_root.s22 = false;
_root.s23 = false;
_root.s24 = false;
_root.s25 = false;
_root.s26 = false;
_root.s27 = false;
_root.s28 = false;
_root.s29 = false;
_root.s30 = false;
_root.s31 = false;
_root.s32 = false;
_root.s33 = false;
_root.s34 = false;
_root.s35 = false;
_root.s36 = false;
_root.exit1 = true;
_root.not_hit = false;
once = false;
var hiloPrecarga = setInterval(cargando, 1);
var hide = new ContextMenu();
hide.hideBuiltInItems();
_root.menu = hide;
stop();
gamename = "Robot_Adventure";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
_root.ad = true;
} else {
spilnetwerk = "external";
mochi.as2.MochiAd.showPreGameAd({id:"5fa555a63e9cc3f8", res:"578x430"});
}
_root.localization_url1 = (((("http://www.agame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
Frame 2
var savefile = SharedObject.getLocal("Rbt_1");
if (savefile.data.one == undefined) {
savefile.data.one = 1;
savefile.data.level_world1 = 1;
savefile.data.level_world2 = 1;
savefile.data.level_world3 = 1;
savefile.data.level_world4 = 1;
savefile.data.world_w1 = false;
savefile.data.world_w2 = false;
savefile.data.world_w3 = false;
savefile.data.world_w4 = false;
savefile.data.s1 = false;
savefile.data.s2 = false;
savefile.data.s3 = false;
savefile.data.s4 = false;
savefile.data.s5 = false;
savefile.data.s6 = false;
savefile.data.s7 = false;
savefile.data.s8 = false;
savefile.data.s9 = false;
savefile.data.s10 = false;
savefile.data.s11 = false;
savefile.data.s12 = false;
savefile.data.s13 = false;
savefile.data.s14 = false;
savefile.data.s15 = false;
savefile.data.s16 = false;
savefile.data.s17 = false;
savefile.data.s18 = false;
savefile.data.s19 = false;
savefile.data.s20 = false;
savefile.data.s21 = false;
savefile.data.s22 = false;
savefile.data.s23 = false;
savefile.data.s24 = false;
savefile.data.s25 = false;
savefile.data.s26 = false;
savefile.data.s27 = false;
savefile.data.s28 = false;
savefile.data.s29 = false;
savefile.data.s30 = false;
savefile.data.s31 = false;
savefile.data.s32 = false;
savefile.data.s33 = false;
savefile.data.s34 = false;
savefile.data.s35 = false;
savefile.data.s36 = false;
savefile.data.playerName = "robot";
}
savefile.flush();
_root.level_gears = 0;
_root.globalscore = 0;
_root.life_count = 0;
_root.one = 0;
if (_root.localization_portal == "game_com_cn") {
this.gameover_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.gameover_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_gameover_moregames", "_blank");
};
}
stop();
Frame 3
function update() {
_root.lot = true;
show_score = "Coins : " + score;
rgain = 0;
_root.gear.swapDepths(10000000);
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exits.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
unloadMovie (_root.exits);
_root.createEmptyMovieClip("block_", _root.getNextHighestDepth());
_root.createEmptyMovieClip("enemigo4", _root.getNextHighestDepth());
_root.createEmptyMovieClip("enemigo3", _root.getNextHighestDepth());
_root.createEmptyMovieClip("enemigo2", _root.getNextHighestDepth());
_root.createEmptyMovieClip("enemigo1", _root.getNextHighestDepth());
_root.createEmptyMovieClip("lev", _root.getNextHighestDepth());
_root.createEmptyMovieClip("lad", _root.getNextHighestDepth());
_root.createEmptyMovieClip("lava", _root.getNextHighestDepth());
_root.createEmptyMovieClip("spikes", _root.getNextHighestDepth());
_root.createEmptyMovieClip("moving", _root.getNextHighestDepth());
_root.createEmptyMovieClip("coins", _root.getNextHighestDepth());
_root.createEmptyMovieClip("golds", _root.getNextHighestDepth());
_root.createEmptyMovieClip("tanks", _root.getNextHighestDepth());
_root.createEmptyMovieClip("lasers", _root.getNextHighestDepth());
_root.lev.swapDepths(1000);
_root.coins.swapDepths(100);
_root.block_.swapDepths(10);
_root.lev.swapDepths(11);
_root.alpha_mc.swapDepths(_root.depth);
_root.player.swapDepths(10000);
decay = false;
y = 0;
while (y <= 9) {
x = 0;
while (x <= 200) {
if (level1[y][x] == 1) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 2) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 3) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 4) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 5) {
coin = coins.attachMovie("block", "block_" + coins.getNextHighestDepth(), coins.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
coin.gotoAndStop(level1[y][x]);
coin.onEnterFrame = function () {
if (_root.player.hitTest(this._x, this._y, true)) {
if (!_root.dead) {
if (!_root.not_hit) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
_root.player.player_inside.gotoAndStop(9);
_root.dead = true;
removeMovieClip(this);
}
}
}
};
}
if (level1[y][x] == 6) {
coin = coins.attachMovie("block", "block_" + coins.getNextHighestDepth(), coins.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
coin.gotoAndStop(level1[y][x]);
coin.onEnterFrame = function () {
if (_root.player.hitTest(this._x, this._y, true)) {
_root.level_gears++;
_root.life_count = _root.life_count + 1;
_root.globalscore = _root.globalscore + 100;
rgain++;
_root.gear_n.play();
_root.gear.play();
_root.barText = 1;
_root.barText = 1;
_root.barText = 1;
_root.bartext.gotoAndPlay(2);
if (_root.jet_power < 200) {
_root.has_jetpack = true;
_root.jet_power = _root.jet_power + 3;
}
removeMovieClip(this);
}
};
}
if (level1[y][x] == 7) {
laser = lasers.attachMovie("block", "block_" + lasers.getNextHighestDepth(), lasers.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
laser.gotoAndStop(7);
}
if (level1[y][x] == 8) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 9) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 10) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 11) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 12) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 13) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 14) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 15) {
enemy4 = enemigo4.attachMovie("block", "block_" + enemigo4.getNextHighestDepth(), enemigo4.getNextHighestDepth(), {_x:(x * 37) + 10, _y:(y * 37) + 34});
enemy4.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 16) {
tank = tanks.attachMovie("block", "block_" + tanks.getNextHighestDepth(), tanks.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
tank.gotoAndStop(level1[y][x]);
tank.onEnterFrame = function () {
if (_root.player.hitTest(this)) {
score++;
rgain++;
tank_s = new Sound(this);
tank_s.attachSound("fuel");
tank_s.start();
_root.barText = 3;
_root.barText = 3;
_root.barText = 3;
_root.barText = 3;
_root.bartext.gotoAndPlay(2);
_root.bartext.gotoAndPlay(2);
if (_root.jet_power < 200) {
_root.has_jetpack = true;
_root.jet_power = 200;
}
removeMovieClip(this);
}
};
}
if (level1[y][x] == 17) {
enemy3 = enemigo3.attachMovie("block", "block_" + enemigo3.getNextHighestDepth(), enemigo3.getNextHighestDepth(), {_x:(x * 39) + 15, _y:(y * 39) + 10});
enemy3.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 18) {
enemy1 = enemigo1.attachMovie("block", "block_" + enemigo1.getNextHighestDepth(), enemigo1.getNextHighestDepth(), {_x:(x * 37) + 10, _y:(y * 37) + 34});
enemy1.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 19) {
enemy2 = enemigo2.attachMovie("block", "block_" + enemigo2.getNextHighestDepth(), enemigo2.getNextHighestDepth(), {_x:(x * 37) + 10, _y:(y * 37) + 14});
enemy2.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 20) {
gold = golds.attachMovie("block", "block_" + golds.getNextHighestDepth(), golds.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
gold.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 21) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 22) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 23) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 24) {
place_brick = lev.attachMovie("block", "block_" + lev.getNextHighestDepth(), lev.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
place_brick.gotoAndStop(level1[y][x]);
}
if (level1[y][x] == 25) {
coin = coins.attachMovie("block", "block_" + coins.getNextHighestDepth(), coins.getNextHighestDepth(), {_x:(x * 39) + 10, _y:(y * 39) + 10});
coin.gotoAndStop(level1[y][x]);
coin.onEnterFrame = function () {
if (_root.player.hitTest(this._x, this._y, true)) {
_root.level_gears++;
_root.globalscore = _root.globalscore + 100;
rgain++;
_root.gear_n.play();
_root.gear.play();
_root.barText = 9;
_root.barText = 9;
_root.barText = 9;
_root.bartext.gotoAndPlay(2);
if (_root.jet_power < 200) {
_root.has_jetpack = true;
_root.jet_power = _root.jet_power + 3;
}
removeMovieClip(this);
}
};
}
x++;
}
y++;
}
_root.prelevel.swapDepths(100000000);
_root.depth = _root.depth + 1;
}
_root.cam_stop = false;
_root.depth = 10000000 /* 0x989680 */;
_root.level_gears = 0;
_root.counter_time = 0;
_root.time_dif = 0;
_root.vidas = 5;
_root.lot = true;
bgs.onEnterFrame = function () {
site.onRelease = function () {
};
if (sup == true) {
stimer++;
}
if (Key.isDown(77)) {
if ((son_ == true) && (stimer > 5)) {
sound.removeMovieClip();
stopAllSounds();
stimer = 0;
sup = true;
son_ = false;
}
if ((son_ == false) && (stimer > 5)) {
var _local1 = new Sound();
_local1.attachSound("sound");
_local1.start(0, 99999);
stimer = 0;
sup = true;
son_ = true;
}
}
};
_root.lava.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.enemigo4.removeMovieClip();
_root.enemigo3.removeMovieClip();
_root.enemigo2.removeMovieClip();
_root.enemigo1.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.player.removeMovieClip();
_root.coins.removeMovieClip();
level1 = new Array();
_root.space_s = new Sound(this);
_root.space_s.attachSound("8space");
_root.cave_s = new Sound(this);
_root.cave_s.attachSound("caves");
_root.castle_s = new Sound(this);
_root.castle_s.attachSound("castle");
_root.garbage_s = new Sound(this);
_root.garbage_s.attachSound("garbage");
_root.boss_m_s = new Sound(this);
_root.boss_m_s.attachSound("boss_m");
_root.boss_d_s = new Sound(this);
_root.boss_d_s.attachSound("boss_d");
_root.spikes_hit = false;
_root.extra_s = new Sound(this);
_root.extra_s.attachSound("extra");
stop();
Instance of Symbol 514 MovieClip "ag_mouse" in Frame 3
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 531 MovieClip in Frame 3
on (release) {
getURL ("http://www.lartargames.com", _blank);
}
Frame 4
var savefile = SharedObject.getLocal("Rbt_1");
_root.playerName = savefile.data.playerName;
_root.level_world1 = savefile.data.level_world1;
_root.level_world2 = savefile.data.level_world2;
_root.level_world3 = savefile.data.level_world3;
_root.level_world4 = savefile.data.level_world4;
_root.world_w1 = savefile.data.world_w1;
_root.world_w2 = savefile.data.world_w2;
_root.world_w3 = savefile.data.world_w3;
_root.world_w4 = savefile.data.world_w4;
_root.s1 = savefile.data.s1;
_root.s2 = savefile.data.s2;
_root.s3 = savefile.data.s3;
_root.s4 = savefile.data.s4;
_root.s5 = savefile.data.s5;
_root.s6 = savefile.data.s6;
_root.s7 = savefile.data.s7;
_root.s8 = savefile.data.s8;
_root.s9 = savefile.data.s9;
_root.s10 = savefile.data.s10;
_root.s11 = savefile.data.s11;
_root.s12 = savefile.data.s12;
_root.s13 = savefile.data.s13;
_root.s14 = savefile.data.s14;
_root.s15 = savefile.data.s15;
_root.s16 = savefile.data.s16;
_root.s17 = savefile.data.s17;
_root.s18 = savefile.data.s18;
_root.s19 = savefile.data.s19;
_root.s20 = savefile.data.s20;
_root.s21 = savefile.data.s21;
_root.s22 = savefile.data.s22;
_root.s23 = savefile.data.s23;
_root.s24 = savefile.data.s24;
_root.s25 = savefile.data.s25;
_root.s26 = savefile.data.s26;
_root.s27 = savefile.data.s27;
_root.s28 = savefile.data.s28;
_root.s29 = savefile.data.s29;
_root.s30 = savefile.data.s30;
_root.s31 = savefile.data.s31;
_root.s32 = savefile.data.s32;
_root.s33 = savefile.data.s33;
_root.s34 = savefile.data.s34;
_root.s35 = savefile.data.s35;
_root.s36 = savefile.data.s36;
stop();
Instance of Symbol 701 MovieClip "agame_bt" in Frame 4
on (release) {
if (_root.localization_portal == "game_com_cn") {
getURL (_root.localization_url1, "_blank");
} else {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
}
}
Frame 5
stop();
Frame 6
stopAllSounds();
Frame 7
stop();
stopAllSounds();
unloadMovie (_root.boss_gold);
unloadMovie (_root.boss_3);
unloadMovie (_root.boss4);
unloadMovie (_root.boss);
Instance of Symbol 879 MovieClip in Frame 7
onClipEvent (enterFrame) {
gotoAndStop(_root.level_world1);
}
Instance of Symbol 952 MovieClip in Frame 7
onClipEvent (enterFrame) {
gotoAndStop(_root.level_world2);
}
Instance of Symbol 1024 MovieClip in Frame 7
onClipEvent (enterFrame) {
gotoAndStop(_root.level_world3);
}
Instance of Symbol 1096 MovieClip in Frame 7
onClipEvent (enterFrame) {
gotoAndStop(_root.level_world4);
}
Frame 8
_root.total_gears = 11;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 21;
_root.time_dif = 0;
_root.world1 = 1;
_root.world = 1;
_root.stage = 1;
_root.pp = 0;
_root.paused_game = false;
_root.pm = 0;
_root.mute = false;
_root.vertical = false;
_root.ranka = 0;
_root.rankb = 0;
_root.nojetpack = false;
_root.no_gas = true;
stop();
score = 0;
_root.inter_level = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 10, 0, 0, 0, 8, 11, 0, 0, 0, 0, 0, 0, 0, 9, 1, 1, 11, 0, 0, 9, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 14, 0, 0, 0, 0, 0, 0, 6, 2, 0, 0, 0, 0, 0, 0, 0, 9, 10, 0, 0, 0, 0, 0, 8, 1, 11, 0, 0, 0, 0, 0, 12, 0, 0, 8, 3, 3, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 6, 12, 0, 0, 0, 0, 0, 0, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 8, 11, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 6, 6, 6, 6, 6, 6, 6, 12, 6, 6, 0, 0, 0, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 11, 0, 0, 20, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 1, 1, 10, 3, 3, 3, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
_root.player.swapDepths(1000);
_root.dead_1 = true;
_root.dead_2 = true;
up = 1;
lose_once = false;
_root.rcan = true;
rtimer = 0;
onEnterFrame = function () {
if (Key.isDown(82)) {
if (_root.rcan == true) {
_root.globalscore = _root.globalscore - 500;
_root.level_gears = 0;
_root.gold_gear = 0;
_root.time = 0;
update();
}
}
};
decay = false;
_root.started_game = false;
info._alpha = 100;
info.onEnterFrame = function () {
if (decay == true) {
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
_root.started_game = true;
removeMovieClip(this);
}
}
};
_root.started_game = false;
_root.prelevel.swapDepths(10000);
_root.level = 1;
Instance of Symbol 1097 MovieClip "move" in Frame 8
onClipEvent (enterFrame) {
_x = (_x + ((_root.movea._x - _x) / 1));
this._visible = false;
}
Instance of Symbol 1097 MovieClip "movea" in Frame 8
onClipEvent (enterFrame) {
_x = (_x + ((_root._root.player._x - _x) / 2));
this._visible = false;
}
Instance of Symbol 1110 MovieClip "bgs" in Frame 8
onClipEvent (enterFrame) {
if (!_root.inter_level) {
_x = ((_x + 15) + ((_root.move._x - _x) / 2));
} else {
_x = ((_x + 15) + ((_root.move._x - _x) / 2));
}
if (_x <= 315) {
_x = 315;
}
}
Instance of Symbol 1112 MovieClip "cam" in Frame 8
onClipEvent (enterFrame) {
if (!_root.inter_level) {
if (_root.paused_game == true) {
_x = (_x + (_root.pause_mc._x - _x));
} else {
_x = (_x + (_root.move._x - _x));
}
} else {
_x = (_x + (_root.inter._x - _x));
}
if (_root.cam._x <= 289) {
_x = 289;
}
}
Instance of Symbol 1114 MovieClip "alpha_mc" in Frame 8
onClipEvent (enterFrame) {
_root.alpha_mc.swapDepths(_root.depth);
_x = (_x + (_root.move._x - _x));
if (_x <= 315) {
_x = 315;
}
}
Instance of Symbol 1115 MovieClip "alpha_inter" in Frame 8
onClipEvent (enterFrame) {
_root.alpha_inter.swapDepths(_root.depth);
_x = (_x + (_root.move._x - _x));
if (_x <= 315) {
_x = 315;
}
}
Instance of Symbol 1119 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (!_root.inter_level) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 1121 MovieClip "jumpsound" in Frame 8
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 1123 MovieClip "jetpacksound" in Frame 8
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 1126 MovieClip "gear_n" in Frame 8
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 1129 MovieClip "gear_g" in Frame 8
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 38 MovieClip "hit" in Frame 8
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_root.player)) {
if (!_root.dead) {
trace("_root.dead spikes");
_root.spikes_hit = true;
}
}
}
Instance of Symbol 1133 MovieClip "pausesound" in Frame 8
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 1216 MovieClip "player" in Frame 8
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1253 MovieClip "bartext" in Frame 8
onClipEvent (enterFrame) {
if (!_root.inter_level) {
_x = ((_x - 22) + ((_root.move._x - _x) / 2));
} else {
_x = ((_x + 20) + ((_root.move._x - _x) / 2));
}
if (_x <= 238) {
_x = 238;
}
}
Frame 9
if (_root.level_world1 < 2) {
_root.level_world1 = 2;
}
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.laser);
unloadMovie (_root.moving);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 9
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 10
_root.inter_level = false;
_root.total_gears = 39;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 2;
_root.vertical = false;
_root.enemigos_1 = 1;
_root.nojetpack = false;
level1 = new Array();
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 6, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 6, 6, 0, 6, 16, 6, 0, 0, 0, 6, 6, 6, 2, 0, 0, 0, 0, 0, 6, 6, 6, 0, 6, 0, 2, 7, 6, 6, 20, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 13, 1, 14, 0, 13, 1, 14, 0, 0, 0, 13, 1, 1, 10, 0, 0, 6, 0, 0, 0, 0, 6, 0, 6, 0, 8, 1, 1, 1, 1, 14, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 6, 6, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 0, 2, 6, 6, 6, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 6, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 10, 3, 3, 3, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 2;
Instance of Symbol 1216 MovieClip "player" in Frame 10
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 10
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 11
if (_root.level_world1 < 3) {
_root.level_world1 = 3;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.level_world1 = _root.level_world1;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.laser);
unloadMovie (_root.enemigo1);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 11
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 12
_root.inter_level = false;
_root.total_gears = 37;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 47;
_root.stage = 3;
_root.nojetpack = false;
level1 = new Array();
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11));
(level1[1] = new Array(12, 0, 0, 0, 6, 0, 0, 6, 0, 0, 6, 0, 0, 6, 0, 0, 6, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[2] = new Array(12, 0, 0, 0, 6, 0, 0, 6, 0, 0, 6, 0, 0, 6, 0, 0, 0, 0, 6, 0, 6, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 5, 12));
(level1[3] = new Array(12, 0, 9, 11, 0, 9, 11, 0, 9, 11, 0, 9, 11, 0, 9, 11, 0, 0, 0, 0, 0, 0, 9, 11, 0, 0, 0, 0, 0, 9, 1, 14, 12));
(level1[4] = new Array(12, 0, 8, 10, 0, 8, 10, 0, 8, 10, 0, 8, 10, 0, 8, 10, 0, 0, 0, 0, 0, 0, 8, 10, 0, 0, 0, 0, 3, 10, 6, 6, 12));
(level1[5] = new Array(12, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 10, 6, 0, 0, 12));
(level1[6] = new Array(12, 3, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 10, 6, 6, 0, 20, 12));
(level1[7] = new Array(12, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 6, 6, 6, 12));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 3;
Instance of Symbol 1216 MovieClip "player" in Frame 12
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 12
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 13
if (_root.level_world1 < 4) {
_root.level_world1 = 4;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.level_world1 = _root.level_world1;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 13
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 14
_root.inter_level = false;
_root.total_gears = 32;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 4;
_root.nojetpack = false;
_root.enemigos_1 = 1;
level1 = new Array();
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 11, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 12, 0, 6, 20, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 1, 1, 1, 1, 0, 12, 0, 13, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 6, 0, 0, 0, 0, 12, 18, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 14, 0, 0, 9, 1, 10, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 6, 6, 6, 0, 0, 13, 14, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 13, 10, 0, 0, 0, 0, 0, 6, 6, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 12, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 3, 3, 3, 3, 12, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 10, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 4;
Instance of Symbol 1216 MovieClip "player" in Frame 14
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 14
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 15
if (_root.level_world1 < 5) {
_root.level_world1 = 5;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.level_world1 = _root.level_world1;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo1);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 15
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 16
_root.inter_level = false;
_root.total_gears = 37;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 45;
_root.stage = 5;
_root.nojetpack = false;
_root.enemigos_3 = 1;
level1 = new Array();
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 1, 1, 1, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 6, 6, 0, 0, 6, 0, 0, 2, 3, 2, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 10, 20, 6, 6, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(8, 1, 14, 3, 3, 13, 14, 3, 13, 1, 10, 0, 0, 0, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 6, 6, 0, 9, 10, 6, 13, 1, 1, 14, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 6, 6, 0, 12, 16, 0, 0, 6, 6, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 0, 6, 6, 6, 6, 0, 6, 0, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 14, 0, 0, 13, 14, 3, 13, 14, 3, 3, 3, 13, 14, 0, 0, 0, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 3, 3, 3, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 5;
Instance of Symbol 1216 MovieClip "player" in Frame 16
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 16
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 17
if (_root.level_world1 < 6) {
_root.level_world1 = 6;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.level_world1 = _root.level_world1;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo3);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 17
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 18
_root.inter_level = false;
_root.total_gears = 21;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 6;
_root.nojetpack = false;
level1 = new Array();
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 12, 6, 0, 0, 0, 0, 0, 0, 0, 12, 20, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 0, 0, 12));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 12, 0, 0, 13, 1, 1, 11, 0, 0, 12, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 6, 0, 6, 0, 0, 5, 0, 12));
(level1[3] = new Array(8, 1, 1, 14, 0, 6, 12, 0, 0, 6, 12, 0, 12, 0, 13, 12, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 12, 14, 0, 0, 12, 0, 12, 0, 6, 12, 6, 6, 0, 0, 0, 0, 0, 0, 9, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 0, 1, 1, 1, 1, 0, 0, 13, 12, 0, 12, 0, 0, 0, 0, 0, 9, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 6, 6, 6, 6, 0, 0, 0, 12, 0, 8, 3, 3, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 6;
Instance of Symbol 1216 MovieClip "player" in Frame 18
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 18
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 19
if (_root.level_world1 < 7) {
_root.level_world1 = 7;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.level_world1 = _root.level_world1;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.laser);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 19
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 20
_root.inter_level = false;
_root.total_gears = 52;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 50;
_root.stage = 7;
_root.nojetpack = false;
_root.enemigos_1 = 1;
level1 = new Array();
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 6, 6, 0, 0, 0, 6, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 12));
(level1[2] = new Array(12, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 12));
(level1[3] = new Array(12, 6, 0, 0, 0, 0, 0, 0, 0, 9, 1, 3, 3, 13, 14, 3, 3, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 12));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 0, 9, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 6, 6, 6, 6, 12));
(level1[5] = new Array(12, 0, 0, 0, 0, 9, 1, 10, 6, 6, 6, 0, 6, 6, 0, 0, 6, 6, 0, 0, 6, 6, 0, 0, 6, 6, 6, 6, 6, 12, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 13, 1, 1, 14, 3, 3, 3, 3, 10));
(level1[6] = new Array(12, 0, 0, 9, 1, 10, 0, 2, 6, 20, 6, 0, 0, 0, 6, 16, 0, 0, 6, 6, 0, 0, 6, 6, 0, 0, 0, 0, 6, 12, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 12, 0, 0, 0, 12, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 10, 0, 0, 0, 8, 1, 1, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 7;
Instance of Symbol 1216 MovieClip "player" in Frame 20
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 20
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 21
if (_root.level_world1 < 8) {
_root.level_world1 = 8;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.level_world1 = _root.level_world1;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.laser);
unloadMovie (_root.enemigo1);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 21
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 22
_root.inter_level = false;
_root.total_gears = 53;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 60;
_root.stage = 8;
_root.nojetpack = false;
level1 = new Array();
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 6, 6, 6, 0, 0, 6, 6, 6, 6, 0, 6, 6, 6, 6, 0, 6, 6, 6, 6, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 6, 0, 0, 6, 0, 6, 0, 0, 6, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 6, 6, 6, 6, 0, 6, 0, 0, 6, 0, 0, 6, 6, 0, 0, 6, 6, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 6, 0, 0, 6, 0, 6, 0, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 6, 6, 6, 0, 0, 6, 6, 6, 6, 0, 6, 6, 6, 6, 0, 6, 6, 6, 6, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 5, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 8;
Instance of Symbol 1216 MovieClip "player" in Frame 22
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 22
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 23
if (_root.level_world1 < 9) {
_root.level_world1 = 9;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.level_world1 = _root.level_world1;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 23
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 24
_root.inter_level = false;
_root.total_gears = 0;
_root.level_gears = 0;
_root.total_gold_gears = 0;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 9;
_root.nojetpack = false;
level1 = new Array();
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.boss_tx.swapDepths(10000000);
_root.boss_m_s.start(0, 99);
_root.level = 9;
_root.sglobal = 0;
_root.sglobal = _root.sglobal + level_world4;
_root.sglobal = _root.sglobal + level_world3;
_root.sglobal = _root.sglobal + level_world2;
_root.sglobal = _root.sglobal + level_world1;
if (_root.s1 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s2 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s3 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s4 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s5 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s6 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s7 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s8 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s9 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s10 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s11 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s12 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s13 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s14 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s15 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s16 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s17 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s18 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s19 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s20 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s21 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s22 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s23 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s24 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s25 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s26 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s27 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s28 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s29 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s30 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s31 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s32 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s33 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s34 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s35 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s36 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w1 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w2 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w3 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w4 == true) {
_root.sglobal = _root.sglobal + 2;
}
Instance of Symbol 1216 MovieClip "player" in Frame 24
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 300;
this._x = 80;
this._y = 300;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1318 MovieClip "boss_gold" in Frame 24
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
mochi.as2.MochiScores.setBoardID("a76c81c0ce3dc2a8");
mochi.as2.MochiScores.submit(_root.globalscore, _root.playerName, {}, scoreSent);
this.play();
_root.boss_gold.play();
_root.jetpacksound.gotoAndStop(1);
_root.player.player_inside.gotoAndStop(1);
this.swapDepths(10000000);
_root.started_game = false;
_root.player.removeMovieClip();
if (_root.world == 1) {
_root.world_w1 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w3 = _root.world_w3;
savefile.flush();
}
if (_root.world == 2) {
_root.world_w2 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w2 = _root.world_w3;
savefile.flush();
}
if (_root.world == 3) {
_root.world_w3 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w3 = _root.world_w3;
savefile.flush();
}
if (_root.world == 4) {
_root.world_w4 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w4 = _root.world_w4;
savefile.flush();
}
}
}
Frame 25
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 25
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 26
_root.inter_level = false;
_root.total_gears = 9;
_root.level_gears = 0;
_root.total_gold_gears = 0;
_root.gold_gear = 0;
_root.level_time = 20;
_root.stage = 1;
_root.world = 4;
_root.enemigos_2 = 1;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(8, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(0, 0, 8, 11, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(0, 0, 0, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(0, 0, 0, 0, 8, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 6, 6, 9, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(0, 0, 0, 0, 0, 8, 1, 1, 21, 21, 21, 21, 21, 21, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 10;
Instance of Symbol 1216 MovieClip "player" in Frame 26
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 26
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 27
if (_root.level_world2 < 2) {
_root.level_world2 = 2;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world2 = _root.level_world2;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo2);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 27
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 28
_root.inter_level = false;
_root.total_gears = 17;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 20;
_root.stage = 2;
_root.world = 4;
_root.enemigos_2 = 1;
_root.nojetpack = false;
(level1[0] = new Array(12, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11));
(level1[1] = new Array(12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[2] = new Array(12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 12));
(level1[3] = new Array(12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[4] = new Array(12, 12, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[5] = new Array(12, 12, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 13, 14, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 12));
(level1[6] = new Array(12, 12, 11, 0, 0, 9, 11, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 1, 14, 0, 0, 0, 20, 0, 12));
(level1[7] = new Array(12, 12, 12, 0, 0, 12, 12, 0, 0, 2, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[8] = new Array(12, 12, 12, 21, 21, 12, 12, 21, 21, 12, 21, 21, 12, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 12, 21, 21, 12, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 10));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 11;
Instance of Symbol 1216 MovieClip "player" in Frame 28
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 28
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 29
if (_root.level_world2 < 3) {
_root.level_world2 = 3;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world2 = _root.level_world2;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 29
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 30
_root.inter_level = false;
_root.total_gears = 43;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 3;
_root.world = 4;
_root.enemigos_2 = 1;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11));
(level1[1] = new Array(12, 12, 12, 12, 12, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 12, 0, 0, 6, 0, 0, 0, 0, 12));
(level1[2] = new Array(12, 12, 23, 23, 12, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 9, 1, 1, 1, 14, 0, 12, 0, 0, 6, 0, 0, 0, 0, 12));
(level1[3] = new Array(12, 12, 0, 0, 8, 1, 21, 21, 21, 21, 21, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 6, 6, 0, 0, 0, 6, 12, 0, 6, 0, 6, 0, 12, 0, 0, 13, 1, 1, 1, 1, 12));
(level1[4] = new Array(12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 6, 6, 0, 0, 0, 6, 12, 0, 0, 6, 0, 0, 12, 0, 0, 0, 0, 0, 6, 6, 12));
(level1[5] = new Array(12, 12, 0, 5, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 6, 6, 6, 6, 12, 0, 0, 0, 13, 14, 0, 0, 0, 6, 12, 0, 13, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 6, 12));
(level1[6] = new Array(12, 12, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 6, 12, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 14, 0, 0, 12));
(level1[7] = new Array(12, 12, 12, 12, 12, 0, 0, 0, 2, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 6, 6, 6, 6, 6, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 21, 12, 12, 21, 12, 21, 12, 21, 12, 21, 12, 21, 12, 21, 12, 21, 12, 21, 1, 1, 1, 1, 1, 10, 21, 21, 21, 21, 21, 21, 21, 21, 21, 8, 1, 21, 21, 21, 1, 1, 1, 1, 1, 1, 1, 1, 3, 10));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 12;
Instance of Symbol 1216 MovieClip "player" in Frame 30
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 2055;
forecast_y = 38;
this._x = 2055;
this._y = 38;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 30
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 31
if (_root.level_world2 < 4) {
_root.level_world2 = 4;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world2 = _root.level_world2;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 31
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 32
_root.inter_level = false;
_root.total_gears = 22;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 30;
_root.stage = 4;
_root.world = 4;
_root.enemigos_2 = 1;
_root.nojetpack = false;
(level1[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(0, 0, 0, 0, 0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(9, 1, 1, 1, 1, 10, 0, 23, 0, 6, 6, 6, 6, 0, 23, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(8, 1, 1, 1, 14, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 20, 6, 6, 6, 0, 0, 12, 0, 2, 0, 2, 2, 0, 12, 0, 12, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(12, 16, 6, 6, 6, 0, 0, 12, 21, 12, 21, 12, 12, 21, 12, 21, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 13;
Instance of Symbol 1216 MovieClip "player" in Frame 32
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 70;
_root.player._y = 123;
forecast_x = 70;
forecast_y = 123;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 70;
forecast_y = 123;
this._x = 70;
this._y = 123;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 32
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 33
if (_root.level_world2 < 5) {
_root.level_world2 = 5;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world2 = _root.level_world2;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo2);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 33
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 34
_root.inter_level = false;
_root.total_gears = 49;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 60;
_root.stage = 5;
_root.world = 4;
_root.enemigos_2 = 1;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(22, 6, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 16, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(22, 6, 0, 0, 0, 0, 12, 0, 0, 13, 1, 1, 1, 1, 1, 11, 0, 0, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(22, 6, 0, 13, 1, 1, 12, 0, 0, 0, 0, 0, 0, 6, 6, 12, 0, 0, 0, 0, 0, 12, 0, 0, 9, 1, 1, 1, 11, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(22, 6, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 6, 6, 12, 3, 3, 0, 3, 3, 12, 0, 5, 12, 0, 0, 0, 12, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(1, 1, 1, 1, 14, 0, 8, 1, 1, 1, 14, 0, 13, 1, 1, 12, 6, 6, 0, 6, 6, 23, 1, 1, 10, 0, 0, 0, 8, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 6, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(22, 0, 20, 6, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 6, 12, 6, 6, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(22, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 12, 6, 6, 0, 6, 6, 6, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 3, 3, 3, 3, 1, 1, 1, 1, 3, 3, 2, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 21, 21, 21, 21, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 14;
Instance of Symbol 1216 MovieClip "player" in Frame 34
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 34
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 35
if (_root.level_world2 < 6) {
_root.level_world2 = 6;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world2 = _root.level_world2;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo2);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 35
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 36
_root.inter_level = false;
_root.total_gears = 43;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 54;
_root.stage = 6;
_root.world = 4;
_root.enemigos_2 = 1;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 0, 20, 12));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 6, 6, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 13, 1, 1, 1, 11, 6, 6, 6, 6, 6, 0, 0, 12));
(level1[3] = new Array(12, 0, 0, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 13, 1, 1, 1, 14, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 1, 1, 1, 1, 1, 12));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 6, 6, 6, 0, 0, 0, 9, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[5] = new Array(8, 1, 1, 21, 2, 21, 2, 21, 2, 21, 21, 12, 0, 19, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 12, 0, 0, 6, 6, 6, 6, 6, 0, 0, 0, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 12));
(level1[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 1, 1, 1, 1, 1, 1, 1, 10));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 15;
Instance of Symbol 1216 MovieClip "player" in Frame 36
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 36
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 37
if (_root.level_world2 < 7) {
_root.level_world2 = 7;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world2 = _root.level_world2;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.enemigo2);
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 37
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 38
_root.inter_level = false;
_root.total_gears = 33;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 7;
_root.world = 4;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 6, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(8, 1, 3, 3, 11, 0, 0, 13, 14, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 13, 14, 0, 0, 9, 21, 21, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 13, 1, 14, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(0, 0, 0, 0, 8, 1, 11, 0, 0, 6, 6, 6, 6, 0, 0, 0, 6, 6, 0, 0, 0, 6, 6, 0, 0, 6, 6, 6, 6, 0, 0, 9, 21, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(0, 0, 0, 0, 0, 0, 8, 1, 11, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 9, 21, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 8, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 21, 21, 21, 21, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 16;
Instance of Symbol 1216 MovieClip "player" in Frame 38
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 763;
_root.player._y = 147;
forecast_x = 763;
forecast_y = 147;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 763;
forecast_y = 106;
this._x = 763;
this._y = 106;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 38
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 39
if (_root.level_world2 < 8) {
_root.level_world2 = 8;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world2 = _root.level_world2;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 39
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 40
_root.inter_level = false;
_root.total_gears = 41;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 20;
_root.stage = 8;
_root.world = 4;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 6, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 6, 0, 6, 0, 0, 6, 0, 6, 0, 0, 0, 0, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 6, 0, 6, 0, 0, 5, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 0, 6, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 6, 0, 0, 9, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(8, 1, 1, 1, 1, 1, 3, 1, 1, 3, 1, 3, 1, 3, 3, 1, 1, 3, 1, 11, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 13, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 0, 0, 0, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 3, 3, 1, 1, 11, 0, 0, 0, 6, 6, 6, 6, 16, 6, 20, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 1, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 1, 1, 1, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
_root.chase.swapDepths(100000001);
prelevel.getNextHighestDepth();
_root.level = 17;
Instance of Symbol 1216 MovieClip "player" in Frame 40
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
_root.chase._x = -633;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 40
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Instance of Symbol 1326 MovieClip "chase" in Frame 40
onClipEvent (enterFrame) {
speed = 3;
this._x = this._x + speed;
if (this.hitTest(_root.player)) {
if (!_root.dead) {
trace("_root.dead spikes");
_root.barText = 6;
_root.bartext.gotoAndPlay(2);
_root.bartext.gotoAndPlay(2);
_root.spikes_hit = true;
}
}
}
Frame 41
if (_root.level_world2 < 9) {
_root.level_world2 = 9;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world2 = _root.level_world2;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 41
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 42
_root.inter_level = false;
_root.total_gears = 5;
_root.level_gears = 0;
_root.total_gold_gears = 0;
_root.gold_gear = 0;
_root.level_time = 20;
_root.stage = 9;
_root.world = 4;
_root.nojetpack = false;
(level1[0] = new Array(0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(9, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(8, 11, 0, 0, 9, 1, 1, 1, 11, 0, 0, 9, 1, 1, 1, 11, 6, 6, 9, 1, 1, 1, 1, 1, 1, 11, 6, 6, 9, 1, 1, 1, 11, 6, 9, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(0, 8, 1, 1, 10, 0, 0, 0, 8, 1, 1, 10, 0, 0, 0, 8, 1, 1, 10, 0, 0, 0, 0, 0, 0, 8, 1, 1, 10, 0, 0, 0, 8, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
_root.boss_m_s.start(0, 99);
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.boss_tx.swapDepths(100000001);
_root.level = 18;
_root.sglobal = 0;
_root.sglobal = _root.sglobal + level_world4;
_root.sglobal = _root.sglobal + level_world3;
_root.sglobal = _root.sglobal + level_world2;
_root.sglobal = _root.sglobal + level_world1;
if (_root.s1 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s2 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s3 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s4 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s5 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s6 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s7 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s8 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s9 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s10 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s11 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s12 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s13 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s14 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s15 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s16 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s17 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s18 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s19 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s20 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s21 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s22 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s23 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s24 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s25 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s26 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s27 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s28 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s29 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s30 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s31 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s32 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s33 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s34 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s35 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s36 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w1 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w2 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w3 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w4 == true) {
_root.sglobal = _root.sglobal + 2;
}
Instance of Symbol 1216 MovieClip "player" in Frame 42
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 11;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
_root.chase._x = -633;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1318 MovieClip "boss_gold" in Frame 42
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
mochi.as2.MochiScores.setBoardID("a76c81c0ce3dc2a8");
mochi.as2.MochiScores.submit(_root.globalscore, _root.playerName, {}, scoreSent);
_root.jetpacksound.gotoAndStop(1);
_root.started_game = false;
_root.player.player_inside.gotoAndStop(1);
this.swapDepths(10000000);
this.play();
_root.player.removeMovieClip();
if (_root.world == 1) {
_root.world_w1 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w1 = _root.world_w1;
savefile.flush();
}
if (_root.world == 2) {
_root.world_w2 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w2 = _root.world_w3;
savefile.flush();
}
if (_root.world == 3) {
_root.world_w3 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w3 = _root.world_w3;
savefile.flush();
}
if (_root.world == 4) {
_root.world_w4 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w4 = _root.world_w4;
savefile.flush();
}
}
}
Instance of Symbol 1327 MovieClip in Frame 42
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
trace("hitted");
_root.barText = 7;
_root.bartext.gotoAndPlay(2);
_root.hit_robot = true;
}
}
Frame 43
if (_root.level_world2 < 10) {
_root.level_world2 = 10;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world2 = _root.level_world2;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 43
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 44
_root.inter_level = false;
_root.total_gears = 31;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 1;
_root.world = 2;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(22, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 6, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(22, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 6, 6, 0, 2, 22, 0, 0, 0, 0, 6, 0, 8, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(22, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 12, 22, 0, 0, 0, 0, 0, 6, 0, 6, 6, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(22, 0, 0, 6, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 12, 22, 0, 0, 0, 0, 0, 0, 6, 6, 0, 6, 0, 5, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(22, 0, 0, 6, 0, 12, 6, 6, 6, 12, 0, 6, 6, 0, 0, 6, 6, 0, 12, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 9, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(22, 0, 0, 0, 0, 12, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 12, 20, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 14, 23, 13, 1, 14, 23, 13, 1, 1, 3, 3, 1, 1, 14, 23, 13, 1, 1, 1, 1, 1, 14, 23, 13, 3, 3, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 19;
Instance of Symbol 1216 MovieClip "player" in Frame 44
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 3;
_root.climb_speed = 3;
_root.jet_speed = 6;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 0.5;
jump_power = 13;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
_root.chase._x = -633;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 44
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 45
if (_root.level_world3 < 2) {
_root.level_world3 = 2;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world3 = _root.level_world3;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.laser);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 45
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 46
_root.inter_level = false;
_root.total_gears = 31;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 50;
_root.stage = 2;
_root.world = 2;
_root.enemigos_3 = 1;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 14, 0, 0, 9, 24, 24, 24, 24, 24, 24, 24, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 22, 0, 0, 6, 6, 0, 6, 6, 0, 0, 0, 0, 0, 6, 6, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 5, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 6, 6, 0, 0, 6, 0, 0, 9, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 20, 6, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 9, 1, 1, 1, 11, 0, 0, 9, 1, 11, 0, 0, 9, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 6, 6, 0, 0, 22, 0, 0, 0, 0, 0, 6, 6, 0, 17, 0, 6, 6, 9, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 10, 0, 0, 0, 8, 1, 1, 10, 0, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 14, 0, 0, 8, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 20;
Instance of Symbol 1216 MovieClip "player" in Frame 46
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 410;
_root.player._y = 300;
forecast_x = 410;
forecast_y = 300;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 3;
_root.climb_speed = 3;
_root.jet_speed = 6;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 0.5;
jump_power = 13;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 410;
forecast_y = 300;
this._x = 410;
this._y = 300;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 46
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 47
if (_root.level_world3 < 3) {
_root.level_world3 = 3;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world3 = _root.level_world3;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo3);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 47
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 48
_root.inter_level = false;
_root.total_gears = 39;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 50;
_root.stage = 3;
_root.world = 2;
_root.enemigos_3 = 1;
_root.nojetpack = false;
(level1[0] = new Array(9, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 6, 6, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 0, 6, 0, 0, 6, 0, 13, 14, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 6, 6, 0, 0, 6, 6, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 6, 6, 0, 0, 6, 0, 13, 14, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 17, 0, 0, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 16, 20, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 14, 0, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 1, 1, 1, 1, 1, 1, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 21;
Instance of Symbol 1216 MovieClip "player" in Frame 48
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 3;
_root.climb_speed = 3;
_root.jet_speed = 6;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 0.5;
jump_power = 13;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 48
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 49
if (_root.level_world3 < 4) {
_root.level_world3 = 4;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world3 = _root.level_world3;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo3);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 49
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 50
_root.inter_level = false;
_root.total_gears = 77;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 60;
_root.stage = 4;
_root.world = 2;
_root.enemigos_3 = 1;
_root.nojetpack = false;
(level1[0] = new Array(9, 24, 24, 24, 24, 24, 1, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 11));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[2] = new Array(12, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 6, 6, 6, 0, 6, 6, 6, 0, 0, 6, 6, 6, 0, 6, 6, 6, 0, 0, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 6, 6, 0, 6, 6, 6, 6, 0, 6, 6, 6, 0, 6, 6, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[3] = new Array(12, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[4] = new Array(12, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 9, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[5] = new Array(12, 6, 6, 6, 6, 6, 6, 0, 0, 0, 9, 1, 1, 10, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 0, 23, 0, 0, 0, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 8, 1, 1, 11, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 12));
(level1[6] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 0, 6, 0, 6, 0, 6, 0, 6, 0, 12, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[7] = new Array(12, 0, 20, 0, 0, 0, 0, 9, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 17, 0, 0, 0, 0, 17, 0, 0, 0, 17, 0, 0, 12, 0, 0, 0, 0, 0, 0, 8, 1, 1, 11, 0, 0, 0, 0, 0, 0, 5, 12));
(level1[8] = new Array(8, 1, 1, 1, 1, 21, 21, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 1, 1, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 1, 1, 1, 21, 21, 21, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 21, 21, 21, 21, 1, 1, 10));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 22;
Instance of Symbol 1216 MovieClip "player" in Frame 50
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 1960;
_root.player._y = 80;
forecast_x = 1960;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 3;
_root.climb_speed = 3;
_root.jet_speed = 6;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 0.5;
jump_power = 13;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 1960;
forecast_y = 80;
this._x = 1960;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 50
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 51
if (_root.level_world3 < 5) {
_root.level_world3 = 5;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world3 = _root.level_world3;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo3);
unloadMovie (_root.laser);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 51
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 52
_root.inter_level = false;
_root.total_gears = 35;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 5;
_root.world = 2;
_root.enemigos_3 = 1;
_root.nojetpack = false;
level1 = new Array();
(level1[0] = new Array(9, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 13, 1, 1, 1, 1, 1, 1, 11, 0, 0));
(level1[1] = new Array(12, 0, 0, 12, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 6, 0, 6, 0, 6, 0, 12, 0, 0));
(level1[2] = new Array(12, 0, 0, 12, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 6, 0, 6, 0, 6, 0, 12, 0, 0));
(level1[3] = new Array(12, 6, 0, 12, 0, 20, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 6, 6, 6, 0, 6, 0, 12, 0, 0));
(level1[4] = new Array(12, 0, 0, 12, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 11, 0, 0, 9, 1, 11, 0, 0, 0, 9, 6, 11, 0, 12, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0));
(level1[5] = new Array(12, 6, 0, 12, 0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 8, 1, 1, 10, 0, 8, 1, 1, 1, 10, 6, 8, 12, 10, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0));
(level1[6] = new Array(12, 0, 0, 8, 1, 10, 0, 0, 6, 0, 0, 0, 6, 0, 6, 0, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0));
(level1[7] = new Array(12, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 12, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0));
update();
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 23;
Instance of Symbol 1216 MovieClip "player" in Frame 52
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 3;
_root.climb_speed = 3;
_root.jet_speed = 6;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 0.5;
jump_power = 13;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 52
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 53
if (_root.level_world3 < 6) {
_root.level_world3 = 6;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world3 = _root.level_world3;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo3);
unloadMovie (_root.laser);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 53
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 54
_root.inter_level = false;
_root.total_gears = 58;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 6;
_root.nojetpack = false;
_root.enemigos_1 = 1;
level1 = new Array();
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 0, 12, 0, 0, 6, 6, 6, 6, 6, 0));
(level1[3] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 13, 14, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 12, 0, 0, 6, 0, 0, 0, 6, 0));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 12, 0, 0, 6, 0, 20, 0, 6, 0));
(level1[5] = new Array(12, 13, 1, 14, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 12, 0, 0, 6, 0, 0, 0, 6, 0));
(level1[6] = new Array(12, 6, 6, 6, 0, 0, 0, 0, 0, 13, 14, 0, 6, 6, 0, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 12, 0, 0, 6, 6, 6, 6, 6, 0));
(level1[7] = new Array(12, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 5, 0, 6, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 1, 1, 1, 1, 0, 0));
(level1[8] = new Array(12, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 1, 1, 1, 14, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 24;
Instance of Symbol 1216 MovieClip "player" in Frame 54
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 3;
_root.climb_speed = 3;
_root.jet_speed = 6;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 0.5;
jump_power = 13;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 54
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 55
if (_root.level_world3 < 7) {
_root.level_world3 = 7;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world3 = _root.level_world3;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo3);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 55
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 56
_root.inter_level = false;
_root.total_gears = 53;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 55;
_root.stage = 7;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 6, 0, 6, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 14, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 20, 6, 0, 6, 0, 6, 0, 6, 0, 16, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 16, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 16, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 5, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 25;
Instance of Symbol 1216 MovieClip "player" in Frame 56
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 3;
_root.climb_speed = 3;
_root.jet_speed = 6;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 0.5;
jump_power = 13;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 56
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 57
if (_root.level_world3 < 8) {
_root.level_world3 = 8;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world3 = _root.level_world3;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo3);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 57
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 58
_root.inter_level = false;
_root.total_gears = 53;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 50;
_root.stage = 8;
_root.vertical = false;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2));
(level1[1] = new Array(22, 0, 0, 12, 0, 6, 0, 6, 0, 12, 0, 6, 0, 6, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[2] = new Array(22, 0, 0, 12, 0, 0, 6, 0, 0, 12, 0, 0, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[3] = new Array(22, 0, 0, 12, 0, 0, 2, 0, 0, 12, 0, 0, 2, 0, 0, 12, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 0, 0, 0, 12, 0, 0, 0, 6, 0, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 0, 12));
(level1[4] = new Array(22, 0, 0, 12, 0, 0, 12, 0, 0, 23, 0, 0, 12, 0, 0, 12, 5, 0, 9, 1, 1, 11, 0, 9, 1, 1, 11, 0, 0, 9, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 6, 6, 6, 6, 6, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 20, 0, 12));
(level1[5] = new Array(22, 0, 0, 23, 0, 0, 12, 0, 0, 6, 0, 0, 12, 0, 0, 8, 1, 1, 10, 0, 0, 8, 1, 10, 0, 0, 8, 1, 1, 10, 0, 0, 8, 1, 1, 1, 1, 1, 14, 0, 0, 0, 12, 12, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[6] = new Array(22, 0, 6, 0, 6, 0, 12, 14, 6, 0, 6, 0, 12, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 23, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[7] = new Array(22, 0, 0, 6, 0, 0, 12, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 6, 0, 17, 0, 0, 6, 0, 17, 0, 0, 6, 0, 0, 17, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 10, 21, 21, 21, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 10));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 26;
Instance of Symbol 1216 MovieClip "player" in Frame 58
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 3;
_root.climb_speed = 3;
_root.jet_speed = 6;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 0.5;
jump_power = 13;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 58
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 59
if (_root.level_world3 < 9) {
_root.level_world3 = 9;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world3 = _root.level_world3;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo3);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 59
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 60
_root.inter_level = false;
_root.total_gears = 0;
_root.level_gears = 0;
_root.total_gold_gears = 0;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 9;
_root.vertical = false;
_root.nojetpack = false;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.boss_tx.swapDepths(10000000);
_root.boss_3.swapDepths(100000000);
_root.boss_m_s.start(0, 99);
_root.level = 27;
_root.sglobal = 0;
_root.sglobal = _root.sglobal + level_world4;
_root.sglobal = _root.sglobal + level_world3;
_root.sglobal = _root.sglobal + level_world2;
_root.sglobal = _root.sglobal + level_world1;
if (_root.s1 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s2 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s3 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s4 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s5 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s6 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s7 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s8 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s9 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s10 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s11 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s12 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s13 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s14 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s15 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s16 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s17 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s18 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s19 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s20 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s21 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s22 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s23 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s24 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s25 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s26 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s27 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s28 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s29 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s30 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s31 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s32 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s33 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s34 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s35 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s36 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w1 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w2 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w3 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w4 == true) {
_root.sglobal = _root.sglobal + 2;
}
Instance of Symbol 1318 MovieClip "boss_gold" in Frame 60
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
mochi.as2.MochiScores.setBoardID("a76c81c0ce3dc2a8");
mochi.as2.MochiScores.submit(_root.globalscore, _root.playerName, {}, scoreSent);
_root.jetpacksound.gotoAndStop(1);
_root.started_game = false;
_root.player.player_inside.gotoAndStop(1);
this.swapDepths(10000000);
this.play();
_root.player.removeMovieClip();
this.play();
if (_root.world == 1) {
_root.world_w1 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w1 = _root.world_w1;
savefile.flush();
}
if (_root.world == 2) {
_root.world_w2 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w2 = _root.world_w3;
savefile.flush();
}
if (_root.world == 3) {
_root.world_w3 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w3 = _root.world_w3;
savefile.flush();
}
if (_root.world == 4) {
_root.world_w4 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w4 = _root.world_w4;
savefile.flush();
}
}
}
Instance of Symbol 1216 MovieClip "player" in Frame 60
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 326;
forecast_x = 80;
forecast_y = 326;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = true;
_root.using_jetpack = false;
_root.jet_power = 200;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 5;
_root.climb_speed = 3;
_root.jet_speed = 6;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 0.5;
jump_power = 13;
_root.walking_while_jumping = false;
_root.started_game = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 326;
this._x = 80;
this._y = 326;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
_root.jet_power = _root.jet_power + 1;
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(38) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava_hit == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(8);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1328 MovieClip "boss_3" in Frame 60
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
trace("hitted");
_root.barText = 7;
_root.bartext.gotoAndPlay(2);
_root.hit_robot = true;
}
}
Frame 62
_root.inter_level = false;
_root.total_gears = 20;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 1;
_root.vertical = false;
_root.nojetpack = true;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 6, 0, 6, 0, 6, 6, 0, 0, 0, 6, 6, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 4, 0, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 4, 4, 4, 0, 0, 4, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 0, 0, 4, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 6, 0, 5, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 13, 1, 14, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000020);
_root.jetgone.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 28;
Instance of Symbol 1216 MovieClip "player" in Frame 62
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 75;
_root.player._y = 126;
forecast_x = 75;
forecast_y = 126;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = false;
_root.using_jetpack = false;
_root.jet_power = 0;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 12;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 75;
forecast_y = 126;
this._x = 75;
this._y = 126;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(99) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 62
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 63
if (_root.level_world4 < 2) {
_root.level_world4 = 2;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world4 = _root.level_world4;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 63
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 64
_root.inter_level = false;
_root.total_gears = 50;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 55;
_root.stage = 2;
_root.vertical = false;
_root.nojetpack = true;
(level1[0] = new Array(9, 1, 1, 11, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 20, 0, 0, 0, 6, 0, 0, 6, 0, 0, 6, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 4, 4, 4, 0, 6, 0, 6, 0, 4, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 4, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 4, 0, 6, 0, 4, 0, 0, 4, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 0, 4, 0, 4, 0, 6, 0, 0, 0, 0, 0, 0, 4, 0, 4, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 4, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 4, 4, 0, 0, 4, 4, 0, 0, 0, 0, 0, 6, 6, 0, 4, 0, 6, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 4, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 0, 0, 6, 6, 6, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 6, 6, 0, 4, 4, 0, 0, 0, 4, 0, 6, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 6, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 5, 0, 6, 6, 6, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 29;
Instance of Symbol 1216 MovieClip "player" in Frame 64
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 305;
forecast_x = 80;
forecast_y = 305;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = false;
_root.using_jetpack = false;
_root.jet_power = 0;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 12;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 305;
this._x = 80;
this._y = 305;
_root.has_jetpack = false;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(99) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 64
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 65
if (_root.level_world4 < 3) {
_root.level_world4 = 3;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world4 = _root.level_world4;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 65
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 66
_root.inter_level = false;
_root.total_gears = 37;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 50;
_root.stage = 3;
_root.vertical = false;
_root.nojetpack = true;
(level1[0] = new Array(0, 0, 1, 4, 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4, 4, 0, 4, 0, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4, 4, 4, 0, 6, 0, 0, 0, 12));
(level1[1] = new Array(0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 0, 6, 0, 0, 0, 12));
(level1[2] = new Array(0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 0, 6, 0, 0, 0, 12));
(level1[3] = new Array(0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 0, 6, 0, 0, 0, 12));
(level1[4] = new Array(0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 6, 6, 0, 6, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 0, 6, 0, 0, 0, 12));
(level1[5] = new Array(0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 4, 0, 4, 0, 4, 0, 0, 4, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 0, 6, 0, 0, 0, 12));
(level1[6] = new Array(0, 0, 12, 0, 0, 6, 6, 6, 6, 6, 6, 0, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 6, 6, 0, 0, 4, 0, 0, 6, 6, 6, 0, 0, 6, 6, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 0, 20, 0, 0, 0, 12));
(level1[7] = new Array(0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 5, 0, 0, 0, 12, 12, 12, 12, 12, 12, 0, 0, 0, 5, 0, 12));
(level1[8] = new Array(0, 0, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 3, 3, 1, 1, 14, 0, 0, 13, 1, 14, 0, 0, 13, 14, 0, 13, 14, 0, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 30;
Instance of Symbol 1216 MovieClip "player" in Frame 66
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 140;
_root.player._y = 300;
forecast_x = 140;
forecast_y = 300;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = false;
_root.using_jetpack = false;
_root.jet_power = 0;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 12;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 140;
forecast_y = 300;
this._x = 140;
this._y = 300;
_root.has_jetpack = false;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(99) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 66
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 67
if (_root.level_world4 < 4) {
_root.level_world4 = 4;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world4 = _root.level_world4;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo4);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 67
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 68
_root.inter_level = false;
_root.total_gears = 47;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 60;
_root.stage = 4;
_root.vertical = false;
_root.nojetpack = true;
(level1[0] = new Array(0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 6, 6, 0, 0, 6, 6, 6, 6, 0, 0, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(0, 0, 0, 6, 0, 4, 4, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 4, 4, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 11, 6, 6, 6, 6, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 4, 4, 4, 4, 12, 0, 0, 0, 12, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 0, 0, 20, 0, 12, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 12, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(4, 4, 0, 0, 4, 0, 4, 4, 4, 4, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(0, 0, 0, 4, 0, 0, 0, 6, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 6, 6, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 4, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 31;
Instance of Symbol 1216 MovieClip "player" in Frame 68
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 140;
_root.player._y = 300;
forecast_x = 140;
forecast_y = 300;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = false;
_root.using_jetpack = false;
_root.jet_power = 0;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 12;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 140;
forecast_y = 300;
this._x = 140;
this._y = 300;
_root.has_jetpack = false;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(99) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 68
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 69
if (_root.level_world4 < 5) {
_root.level_world4 = 5;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world4 = _root.level_world4;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo4);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 69
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 70
_root.inter_level = false;
_root.total_gears = 37;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 60;
_root.stage = 5;
_root.vertical = false;
_root.nojetpack = true;
(level1[0] = new Array(12, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 6, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 6, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 12, 12, 12, 12, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 15, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 12, 12, 12, 12, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 0, 0, 0, 6, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 6, 0, 4, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 12, 12, 12, 12, 12, 12, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 14, 3, 3, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 32;
Instance of Symbol 1216 MovieClip "player" in Frame 70
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 80;
forecast_x = 80;
forecast_y = 80;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = false;
_root.using_jetpack = false;
_root.jet_power = 0;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 12;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(99) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 70
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 71
if (_root.level_world4 < 6) {
_root.level_world4 = 6;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world4 = _root.level_world4;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo4);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 71
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 72
_root.inter_level = false;
_root.total_gears = 55;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 55;
_root.stage = 6;
_root.vertical = false;
_root.nojetpack = true;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 6, 6, 12, 12, 12, 12, 12, 20, 6, 6, 0, 0, 6, 6, 6, 6, 0, 0, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 6, 0, 6, 0, 6, 0, 6, 6, 12, 12, 12, 12, 12, 4, 4, 4, 0, 0, 6, 6, 6, 6, 0, 0, 4, 4, 4, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 6, 0, 0, 4, 0, 4, 0, 4, 0, 4, 4, 12, 12, 12, 12, 12, 6, 6, 6, 6, 0, 4, 4, 4, 4, 0, 6, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 4, 0, 6, 0, 6, 0, 6, 0, 6, 6, 0, 12, 12, 12, 12, 12, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 6, 0, 4, 0, 4, 0, 4, 0, 4, 4, 0, 12, 12, 12, 12, 12, 6, 6, 6, 6, 6, 0, 0, 0, 0, 6, 6, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 4, 4, 4, 4, 4, 0, 0, 0, 0, 4, 4, 4, 4, 4, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 6, 25, 25, 25, 25, 25, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 33;
Instance of Symbol 1216 MovieClip "player" in Frame 72
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 240;
forecast_x = 80;
forecast_y = 240;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = false;
_root.using_jetpack = false;
_root.jet_power = 0;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 12;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(99) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 72
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 73
if (_root.level_world4 < 7) {
_root.level_world4 = 7;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world4 = _root.level_world4;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 73
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 74
_root.inter_level = false;
_root.total_gears = 37;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 65;
_root.stage = 7;
_root.vertical = false;
_root.nojetpack = true;
(level1[0] = new Array(9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 6, 0, 0, 6, 6, 0, 0, 6, 6, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(12, 0, 0, 0, 0, 6, 6, 0, 6, 6, 0, 0, 6, 6, 0, 0, 6, 6, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(12, 0, 0, 6, 6, 4, 4, 0, 4, 4, 0, 0, 4, 4, 0, 0, 4, 4, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 0, 9, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[4] = new Array(12, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(12, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 6, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 0, 0, 6, 6, 6, 6, 6, 6, 6, 6, 6, 20, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 34;
Instance of Symbol 1216 MovieClip "player" in Frame 74
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 240;
forecast_x = 80;
forecast_y = 240;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = false;
_root.using_jetpack = false;
_root.jet_power = 0;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 12;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 80;
this._x = 80;
this._y = 80;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(99) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 74
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 75
if (_root.level_world4 < 8) {
_root.level_world4 = 8;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world4 = _root.level_world4;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo4);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 75
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 76
_root.inter_level = false;
_root.total_gears = 18;
_root.level_gears = 0;
_root.total_gold_gears = 1;
_root.gold_gear = 0;
_root.level_time = 45;
_root.stage = 8;
_root.vertical = false;
_root.nojetpack = true;
(level1[0] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 1, 12, 0, 0, 1));
(level1[1] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 12, 12, 0, 0, 1));
(level1[2] = new Array(12, 0, 15, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 4, 0, 0, 0, 12, 12, 0, 0, 1));
(level1[3] = new Array(12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 25, 25, 6, 20, 1));
(level1[4] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 1, 12, 6, 6, 1));
(level1[5] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 1, 12, 12, 12, 12));
(level1[6] = new Array(12, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.level = 35;
Instance of Symbol 1216 MovieClip "player" in Frame 76
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 240;
forecast_x = 80;
forecast_y = 240;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = false;
_root.using_jetpack = false;
_root.jet_power = 0;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 12;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 240;
this._x = 80;
this._y = 240;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(99) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1250 MovieClip "prelevel" in Frame 76
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 77
if (_root.level_world4 < 9) {
_root.level_world4 = 9;
}
var savefile = SharedObject.getLocal("Rbt_1");
savefile.one = _root.one;
savefile.data.playerName = _root.playerName;
savefile.data.level_world4 = _root.level_world4;
savefile.flush();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
stopAllSounds();
level1 = new Array();
_root.space_s.stop();
stop();
_root.inter_level = true;
level1 = new Array();
_root.player.removeMovieClip();
unloadMovie (_root.player);
unloadMovie (_root.enemigo4);
_root.ranking = false;
Instance of Symbol 1317 MovieClip "inter" in Frame 77
onClipEvent (enterFrame) {
if (_root.inter_level == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Frame 78
_root.inter_level = false;
_root.total_gears = 0;
_root.level_gears = 0;
_root.total_gold_gears = 0;
_root.gold_gear = 0;
_root.level_time = 40;
_root.stage = 9;
_root.vertical = false;
_root.nojetpack = true;
_root.boss_m_s.start(0, 99);
(level1[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 25, 25, 25, 25, 25, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 25, 25, 25, 25, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 4, 0, 4, 4, 4, 0, 4, 0, 4, 4, 0, 4, 4, 0, 0, 0, 0, 0, 4, 4, 4, 13, 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0));
(level1[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 12, 12, 12, 12, 12, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0));
(level1[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 12, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 12, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 6, 25, 25, 25, 25, 25, 25, 25, 25, 0, 6, 6, 6, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 25, 25, 25, 25, 25, 25, 25, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
(level1[8] = new Array(12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
update();
stop();
_root.inter_level.gotoAndStop(2);
_root.inter_level.swapDepths(1);
_root.started_game = false;
_root.prelevel.swapDepths(10000000);
prelevel.getNextHighestDepth();
_root.boss_tx.swapDepths(10000000);
_root.boss4.swapDepths(10000001);
_root.level = 36;
_root.sglobal = 0;
_root.sglobal = _root.sglobal + level_world4;
_root.sglobal = _root.sglobal + level_world3;
_root.sglobal = _root.sglobal + level_world2;
_root.sglobal = _root.sglobal + level_world1;
if (_root.s1 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s2 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s3 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s4 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s5 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s6 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s7 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s8 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s9 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s10 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s11 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s12 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s13 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s14 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s15 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s16 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s17 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s18 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s19 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s20 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s21 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s22 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s23 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s24 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s25 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s26 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s27 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s28 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s29 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s30 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s31 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s32 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s33 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s34 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s35 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s36 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w1 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w2 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w3 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w4 == true) {
_root.sglobal = _root.sglobal + 2;
}
Instance of Symbol 1330 MovieClip "boss4" in Frame 78
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
trace("hitted");
_root.barText = 7;
_root.bartext.gotoAndPlay(2);
_root.hit_robot = true;
}
if (_root.started_game == false) {
this.gotoAndStop(1);
} else {
this.play();
}
}
Instance of Symbol 1216 MovieClip "player" in Frame 78
onClipEvent (load) {
_root.pj = 0;
_root.not_hit = false;
_root.player._x = 80;
_root.player._y = 240;
forecast_x = 80;
forecast_y = 240;
_root.rcan = false;
_root.jumping = false;
_root.has_jetpack = false;
_root.using_jetpack = false;
_root.jet_power = 0;
xspeed = 0;
yspeed = 0;
max.yspeed = 11;
_root.walk_speed = 4;
_root.climb_speed = 3;
_root.jet_speed = 4;
_root.climbing = false;
_root.jumping = false;
_root.can_jump = true;
gravity = 1;
jump_power = 12;
_root.walking_while_jumping = false;
}
onClipEvent (enterFrame) {
function feet_on_ladder() {
return(_root.lad.hitTest(_root.player._x, (_root.player._y + (_root.player._height / 2)) - 1, true));
}
function level_under_my_feet() {
return(_root.lev.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
function ladder_under_my_feet() {
return(_root.lad.hitTest(_root.player._x, _root.player._y + (_root.player._height / 2), true));
}
if (!_root.dead_2) {
trace("_root.dead 2 is false");
_root.dead = false;
_root.vidas = _root.vidas - 1;
forecast_x = 80;
forecast_y = 240;
this._x = 80;
this._y = 240;
_root.boss4._x = -500;
_root.alpha_dead = true;
_root.dead_1 = true;
_root.dead_2 = true;
_root.hit_robot = false;
}
if (!_root.dead_1) {
trace("_root.dead 1 is false");
}
if ((timers <= 0) && (lose_once == false)) {
if (mode_ != 0) {
lose_once = true;
_root.started_game = false;
}
}
if (_root.spikes_hit == false) {
if (_root.pre_level == false) {
if ((Key.isDown(32) && (!_root.started_game)) && (_root.paused_game == true)) {
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
}
}
}
if ((_root.started_game == true) && (level_under_my_feet)) {
if (_root.jet_power < 200) {
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) {
}
}
if (Key.isDown(77)) {
if ((_root.pm == 0) && (_root.mute == false)) {
bg = new Sound();
bg.setVolume(0);
trace("mute");
_root.mute = true;
_root.pm = _root.pm + 1;
}
}
if (Key.isDown(78)) {
if ((_root.pm >= 1) && (_root.mute == true)) {
bg = new Sound();
bg.setVolume(100);
trace("unmute");
_root.mute = false;
_root.pm = 0;
}
}
if (Key.isDown(80)) {
if (_root.started_game == true) {
_root.started_game = false;
_root.started_game = false;
_root.paused_game = true;
trace("paused");
_root.pausesound.play();
}
}
timers = timers - up;
show_score = "Coins : " + score;
if (_root.jet_power < 0) {
_root.jet_power = 0;
}
if (_root.jet_power < 20) {
_root.no_gas = true;
if (_root.no_gas) {
if (Key.isDown(38)) {
_root.jetpacksound.gotoAndStop(1);
_root.jet_power = _root.jet_power - 2;
}
}
} else {
_root.no_gas = false;
}
if ((Key.isDown(37) && (_root.started_game)) || (Key.isDown(65) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(2);
xspeed = -_root.climb_speed;
} else if (_root.walking_while_jumping || (_root.can_jump && (_root.pj == 1))) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(10);
xspeed = -_root.walk_speed;
} else if (_root.walking_while_jumping || (_root.can_jump)) {
this.gotoAndStop(2);
this.player_inside.gotoAndStop(1);
xspeed = -_root.walk_speed;
}
}
} else if ((((((!Key.isDown(39)) && (!Key.isDown(68))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
this.player_inside.gotoAndStop(3);
}
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.using_jetpack == false) {
this.player_inside.gotoAndStop(1);
if (_root.climbing) {
this.gotoAndStop(1);
xspeed = _root.climb_speed;
} else if (_root.walking_while_jumping || ((_root.can_jump && (_root.started_game)) && (_root.pj == 1))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(10);
xspeed = _root.walk_speed;
} else if ((_root.walking_while_jumping && (_root.started_game)) || (_root.can_jump && (_root.started_game))) {
this.gotoAndStop(1);
this.player_inside.gotoAndStop(1);
xspeed = _root.walk_speed;
}
}
} else if ((((((!Key.isDown(37)) && (!Key.isDown(65))) && (!Key.isDown(38))) && (!Key.isDown(87))) && (_root.started_game)) && (_root.pj != 1)) {
if (_root.started_game == true) {
this.player_inside.gotoAndStop(3);
}
}
if (!feet_on_ladder()) {
_root.climbing = false;
}
if (_root.using_jetpack == true) {
this.player_inside.gotoAndStop(4);
}
if (((Key.isDown(99) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(87) && (_root.started_game)) && (!_root.dead))) {
if (_root.has_jetpack == true) {
if ((Key.isDown(39) && (_root.started_game)) || (Key.isDown(68) && (_root.started_game))) {
if (_root.spikes_hit == false) {
xspeed = _root.walk_speed;
this.gotoAndStop(1);
}
}
if (((Key.isDown(37) && (_root.started_game)) && (!_root.dead)) || ((Key.isDown(65) && (_root.started_game)) && (!_root.dead))) {
if (_root.spikes_hit == false) {
xspeed = -_root.walk_speed;
this.gotoAndStop(2);
}
}
if (feet_on_ladder() == false) {
if (_root.no_gas == false) {
_root.no_gas = true;
_root.using_jetpack = true;
_root.climbing = false;
_root.jumping = true;
yspeed = -_root.jet_speed;
_root.jet_power = _root.jet_power - 2;
}
}
}
if (feet_on_ladder()) {
yspeed = -_root.climb_speed;
_root.using_jetpack = false;
_root.climbing = true;
_root.jumping = false;
}
} else {
_root.jetpacksound.gotoAndStop(1);
_root.using_jetpack = false;
}
if (_root.jet_power <= 1) {
_root.using_jetpack = false;
_root.has_jetpack = false;
} else {
_root.has_jetpack = true;
}
if ((Key.isDown(40) && (_root.started_game)) || (Key.isDown(83) && (_root.started_game))) {
if (feet_on_ladder() || (ladder_under_my_feet())) {
yspeed = _root.climb_speed;
_root.climbing = true;
_root.jumping = false;
}
}
if (_root.spikes_hit == false) {
if ((((Key.isDown(32) && (_root.can_jump)) && (!_root.jumping)) && (!_root.climbing)) && (_root.started_game)) {
_root.pj = _root.pj + 1;
_root.jumping = true;
_root.player_jumping = true;
if ((_root.player_jumping == true) && (_root.pj == 1)) {
yspeed = yspeed - jump_power;
_root.jumpsound.play();
_root.player_jumping = false;
this.player_inside.gotoAndStop(10);
}
}
}
if (!Key.isDown(32)) {
_root.pj = 0;
}
if (!_root.climbing) {
yspeed = yspeed + gravity;
}
if (yspeed > max.yspeed) {
yspeed = max.yspeed;
}
if ((level_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
if ((ladder_under_my_feet() && (!_root.jumping)) && (!_root.climbing)) {
yspeed = 0;
}
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
if (_root.lasers.hitTest(forecast_x, forecast_y, true)) {
_root.hit_lasers = true;
if (!_root.dead) {
_root.hit_lasers = false;
trace("_root.dead is true");
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.time = 0;
}
}
if (_root.hit_robot == true) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(7);
_root.dead = true;
_root.hit_robot = false;
_root.time = 0;
}
}
if (_root.lava.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true)) {
if (!_root.dead) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
}
if (_root.spikes_hit == true) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
this.player_inside.gotoAndStop(6);
_root.dead = true;
_root.time = 0;
}
while (_root.lev.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true) || (_root.moving.hitTest(forecast_x, (forecast_y + (this._height / 2)) - 1, true))) {
forecast_y--;
xspeed = 0;
yspeed = 0;
_root.jumping = false;
}
while ((_root.lev.hitTest(forecast_x, forecast_y - (this._height / 2), true) || (_root.lava.hitTest(forecast_x, forecast_y - (this._height / 2), true))) || (_root.moving.hitTest(forecast_x, forecast_y - (this._height / 2), true))) {
forecast_y++;
yspeed = 0;
}
while (_root.lev.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y, true)) {
forecast_x++;
xspeed = 0;
}
while (_root.lev.hitTest(forecast_x + (this._width / 2), forecast_y, true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (_root.climbing) {
yspeed = 0;
}
}
}
Instance of Symbol 1318 MovieClip "boss_gold" in Frame 78
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.play();
mochi.as2.MochiScores.setBoardID("a76c81c0ce3dc2a8");
mochi.as2.MochiScores.submit(_root.globalscore, _root.playerName, {}, scoreSent);
_root.boss_gold.play();
_root.jetpacksound.gotoAndStop(1);
_root.started_game = false;
_root.player.player_inside.gotoAndStop(1);
this.swapDepths(10000000);
this.play();
_root.player.removeMovieClip();
this.play();
if (_root.world == 1) {
_root.world_w1 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w3 = _root.world_w3;
savefile.flush();
}
if (_root.world == 2) {
_root.world_w2 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w2 = _root.world_w3;
savefile.flush();
this.play();
}
if (_root.world == 3) {
_root.world_w3 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w3 = _root.world_w3;
savefile.flush();
this.play();
}
if (_root.world == 4) {
_root.world_w4 = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.world_w4 = _root.world_w4;
savefile.flush();
this.play();
}
}
}
Frame 79
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
inter.getNextHighestDepth();
Frame 80
stop();
_root.gotoAndStop("menu");
Frame 81
stop();
unloadMovie (_root.boss_gold);
Frame 82
_root.gotoAndStop("menu");
Frame 83
stop();
_root.sglobal = 0;
_root.sglobal = _root.sglobal + level_world4;
_root.sglobal = _root.sglobal + level_world3;
_root.sglobal = _root.sglobal + level_world2;
_root.sglobal = _root.sglobal + level_world1;
if (_root.s1 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s2 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s3 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s4 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s5 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s6 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s7 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s8 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s9 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s10 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s11 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s12 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s13 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s14 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s15 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s16 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s17 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s18 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s19 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s20 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s21 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s22 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s23 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s24 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s25 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s26 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s27 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s28 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s29 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s30 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s31 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s32 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s33 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s34 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s35 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.s36 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w1 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w2 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w3 == true) {
_root.sglobal = _root.sglobal + 2;
}
if (_root.world_w4 == true) {
_root.sglobal = _root.sglobal + 2;
}
Frame 84
stop();
Frame 85
stop();
Instance of Symbol 701 MovieClip "agame_bt" in Frame 85
on (release) {
if (_root.localization_portal == "game_com_cn") {
getURL (_root.localization_url1, "_blank");
} else {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
}
}
Frame 86
mochi.as2.MochiScores.setBoardID("a76c81c0ce3dc2a8");
var o = {n:[10, 7, 6, 12, 8, 1, 12, 0, 12, 14, 3, 13, 12, 2, 10, 8], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:a76c81c0ce3dc2a8});
stop();
Frame 87
_root.gotoAndStop("menu");
Frame 88
mochi.as2.MochiScores.setBoardID("9c69da71e4c08d77");
var o = {n:[9, 12, 6, 9, 13, 10, 7, 1, 14, 4, 12, 0, 8, 13, 7, 7], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID});
Frame 89
_root.gotoAndStop("menu");
Frame 90
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.inter.swapDepths(1000000);
stop();
_root.player.removeMovieClip();
unloadMovie (_root.player);
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 2
stop();
Symbol 25 MovieClip Frame 3
stop();
Symbol 25 MovieClip Frame 4
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 2
stop();
Symbol 34 MovieClip Frame 3
stop();
Symbol 34 MovieClip Frame 4
stop();
Symbol 45 MovieClip Frame 1
stop();
Instance of Symbol 38 MovieClip "hit" in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_root.player)) {
if (!_root.dead) {
trace("_root.dead spikes");
_root.barText = 6;
_root.bartext.gotoAndPlay(2);
_root.bartext.gotoAndPlay(2);
_root.spikes_hit = true;
}
}
}
Symbol 45 MovieClip Frame 2
stop();
Symbol 45 MovieClip Frame 3
stop();
Symbol 45 MovieClip Frame 4
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 55 MovieClip Frame 3
stop();
Symbol 55 MovieClip Frame 4
stop();
Instance of Symbol 38 MovieClip in Symbol 60 MovieClip [exit] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (!_root.dead) {
if (!_root.not_hit) {
trace("_root.dead is true");
_root.started_game = false;
_root.jumping = false;
_root.using_jetpack = false;
_root.has_jetpack = true;
_root.jet_power = 200;
_root.player.player_inside.gotoAndStop(9);
_root.dead = true;
}
}
}
}
onClipEvent (enterFrame) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.total_gold_gears == 1) {
if (_root.gold_gear == 0) {
unloadMovie (_root.golds);
}
}
}
}
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 117 MovieClip Frame 3
stop();
Symbol 117 MovieClip Frame 4
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 4
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
stop();
Symbol 131 MovieClip Frame 3
stop();
Symbol 131 MovieClip Frame 4
stop();
Symbol 152 MovieClip Frame 1
stop();
Instance of Symbol 151 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
trace("hitted");
_root.barText = 7;
_root.bartext.gotoAndPlay(2);
_root.hit_robot = true;
}
}
Symbol 152 MovieClip Frame 2
stop();
Symbol 240 MovieClip Frame 1
stop();
Instance of Symbol 239 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
trace("hitted");
_root.barText = 7;
_root.bartext.gotoAndPlay(2);
_root.hit_robot = true;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
if (this._currentFrame == 25) {
jes_s = new Sound(this);
jes_s.attachSound("jes");
jes_s.start();
}
} else {
this._visible = false;
}
}
Symbol 251 MovieClip Frame 1
stop();
Instance of Symbol 250 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
trace("hitted");
_root.barText = 7;
_root.bartext.gotoAndPlay(2);
_root.hit_robot = true;
}
}
onClipEvent (enterFrame) {
if (_root.started_game == false) {
this.gotoAndStop(1);
} else {
this.play();
}
}
Symbol 266 MovieClip Frame 1
stop();
Instance of Symbol 265 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
trace("hitted");
_root.barText = 7;
_root.bartext.gotoAndPlay(2);
_root.hit_robot = true;
}
}
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
stop();
Symbol 311 MovieClip Frame 1
stop();
Instance of Symbol 38 MovieClip "hit" in Symbol 311 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if (this.hitTest(_root.player)) {
if (!_root.dead) {
trace("_root.dead spikes");
_root.barText = 5;
_root.bartext.gotoAndPlay(2);
_root.lava_hit = true;
}
}
}
Symbol 311 MovieClip Frame 2
stop();
Symbol 311 MovieClip Frame 3
stop();
Symbol 311 MovieClip Frame 4
stop();
Symbol 312 MovieClip [block] Frame 1
stop();
Instance of Symbol 25 MovieClip in Symbol 312 MovieClip [block] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 2
stop();
Instance of Symbol 34 MovieClip in Symbol 312 MovieClip [block] Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 3
stop();
Instance of Symbol 45 MovieClip in Symbol 312 MovieClip [block] Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 4
stop();
Instance of Symbol 55 MovieClip in Symbol 312 MovieClip [block] Frame 4
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 5
stop();
Instance of Symbol 60 MovieClip [exit] in Symbol 312 MovieClip [block] Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 312 MovieClip [block] Frame 6
stop();
Instance of Symbol 77 MovieClip in Symbol 312 MovieClip [block] Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 312 MovieClip [block] Frame 7
stop();
Instance of Symbol 108 MovieClip in Symbol 312 MovieClip [block] Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
if (this._currentFrame == 2) {
laser_s = new Sound(this);
laser_s.attachSound("laser");
laser_s.start();
}
} else {
this._visible = false;
}
}
Symbol 312 MovieClip [block] Frame 8
stop();
Instance of Symbol 117 MovieClip in Symbol 312 MovieClip [block] Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 9
stop();
Instance of Symbol 122 MovieClip in Symbol 312 MovieClip [block] Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 10
stop();
Instance of Symbol 117 MovieClip in Symbol 312 MovieClip [block] Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 11
stop();
Instance of Symbol 117 MovieClip in Symbol 312 MovieClip [block] Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 12
stop();
Instance of Symbol 131 MovieClip in Symbol 312 MovieClip [block] Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 13
stop();
Instance of Symbol 34 MovieClip in Symbol 312 MovieClip [block] Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 14
stop();
Symbol 312 MovieClip [block] Frame 15
stop();
Instance of Symbol 152 MovieClip in Symbol 312 MovieClip [block] Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 312 MovieClip [block] Frame 16
stop();
Instance of Symbol 167 MovieClip in Symbol 312 MovieClip [block] Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 312 MovieClip [block] Frame 17
stop();
Instance of Symbol 240 MovieClip in Symbol 312 MovieClip [block] Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 312 MovieClip [block] Frame 18
stop();
Instance of Symbol 251 MovieClip in Symbol 312 MovieClip [block] Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 312 MovieClip [block] Frame 19
stop();
Instance of Symbol 266 MovieClip in Symbol 312 MovieClip [block] Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 312 MovieClip [block] Frame 20
stop();
Instance of Symbol 282 MovieClip in Symbol 312 MovieClip [block] Frame 20
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.barText = 2;
_root.bartext.gotoAndPlay(2);
_root.gear_g.play();
if (_root.jet_power < 200) {
_root.has_jetpack = true;
_root.jet_power = _root.jet_power + 1;
}
this.gotoAndStop(2);
}
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 312 MovieClip [block] Frame 21
stop();
Instance of Symbol 311 MovieClip in Symbol 312 MovieClip [block] Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 22
stop();
Instance of Symbol 45 MovieClip in Symbol 312 MovieClip [block] Frame 22
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 23
stop();
Instance of Symbol 34 MovieClip in Symbol 312 MovieClip [block] Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 24
stop();
Instance of Symbol 45 MovieClip in Symbol 312 MovieClip [block] Frame 24
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 25
stop();
Instance of Symbol 131 MovieClip in Symbol 312 MovieClip [block] Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.cam)) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 312 MovieClip [block] Frame 26
stop();
Symbol 1358 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 1359 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.8 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 1360 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1361 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1362 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1363 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local22 = options.color;
delete options.color;
var _local20 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local20);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local24, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1364 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 1365 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 487 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 492 MovieClip Frame 90
Symbol 492 MovieClip Frame 91
stop();
Symbol 495 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 495 MovieClip Frame 90
_root.play();
Symbol 501 MovieClip Frame 89
_root.play();
Symbol 509 MovieClip Frame 89
_root.play();
Symbol 512 MovieClip Frame 89
_root.play();
Symbol 513 MovieClip Frame 1
if (_root.localization_portal == "family") {
gotoAndStop (1);
}
if (_root.localization_portal == "tweens") {
gotoAndStop (2);
}
if (_root.localization_portal == "girl") {
gotoAndStop (3);
}
if (_root.localization_portal == "game_com_cn") {
gotoAndStop (4);
}
Symbol 522 Button
on (release) {
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.playerName = _root.playerName;
savefile.flush();
_root.play();
}
Symbol 531 MovieClip Frame 141
stop();
Symbol 539 MovieClip Frame 200
stop();
Symbol 566 MovieClip Frame 135
stop();
Symbol 584 MovieClip Frame 1
_root.jetpacksound.gotoAndStop(2);
Symbol 585 MovieClip Frame 150
stop();
Symbol 607 MovieClip Frame 120
stop();
Symbol 640 MovieClip Frame 5
explosion_s = new Sound(this);
explosion_s.attachSound("explo1");
explosion_s.start();
Symbol 640 MovieClip Frame 30
stop();
Symbol 641 MovieClip Frame 11
_root.alpha_mc.play();
Symbol 641 MovieClip Frame 81
_root.spikes_hit = false;
_root.dead_1 = false;
_root.dead_2 = false;
trace("stop at dead");
stop();
Symbol 642 MovieClip Frame 156
stop();
Symbol 662 MovieClip Frame 6
_root.alpha_mc.play();
_root.started_game = false;
Symbol 662 MovieClip Frame 77
_root.dead_1 = false;
_root.lava_hit = false;
_root.dead_2 = false;
trace("stop at dead");
stop();
Symbol 663 MovieClip Frame 140
stop();
Symbol 664 MovieClip Frame 2
stop();
Symbol 664 MovieClip Frame 3
stop();
Symbol 664 MovieClip Frame 4
stop();
Symbol 664 MovieClip Frame 5
stop();
Symbol 664 MovieClip Frame 6
stop();
Symbol 667 Button
on (release) {
stopAllSounds();
if (_root.vidas == 0) {
_root.vidas = 5;
}
_root.play();
}
on (rollOver) {
_root.roboto.gotoAndStop(2);
}
Symbol 670 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(7);
}
on (rollOver) {
_root.roboto.gotoAndStop(3);
}
Symbol 674 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("ranking");
}
on (rollOver) {
_root.roboto.gotoAndStop(4);
}
Symbol 677 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("instructions");
}
on (rollOver) {
_root.roboto.gotoAndStop(5);
}
Symbol 680 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("credits");
}
on (rollOver) {
_root.roboto.gotoAndStop(6);
}
Symbol 683 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("gd");
}
on (rollOver) {
_root.roboto.gotoAndStop(2);
}
Symbol 700 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 708 Button
on (release) {
stopAllSounds();
stopAllSounds();
_root.gotoAndStop("map");
}
Symbol 714 MovieClip Frame 365
_root.comic_mc.play();
Symbol 731 MovieClip Frame 200
_root.comic_mc.play();
Symbol 736 MovieClip Frame 59
stop();
Symbol 736 MovieClip Frame 191
stop();
Symbol 736 MovieClip Frame 210
stopAllSounds();
Symbol 736 MovieClip Frame 217
stopAllSounds();
_root.gotoAndStop("map");
Symbol 760 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 797 MovieClip Frame 1
stop();
Symbol 797 MovieClip Frame 2
stop();
Symbol 797 MovieClip Frame 3
stop();
Symbol 797 MovieClip Frame 4
stop();
Symbol 803 Button
on (rollOver) {
_root.back_map.gotoAndStop(1);
}
Symbol 804 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv1");
}
on (rollOver) {
_root.back_map.gotoAndStop(1);
}
Symbol 807 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv1");
}
on (rollOver) {
_root.back_map.gotoAndStop(1);
}
Symbol 808 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv2");
}
on (rollOver) {
_root.back_map.gotoAndStop(1);
}
Symbol 812 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv1");
}
Symbol 813 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv2");
}
Symbol 814 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv3");
}
Symbol 819 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv4");
}
Symbol 825 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv5");
}
Symbol 832 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv6");
}
Symbol 840 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv7");
}
Symbol 849 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv8");
}
Symbol 858 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv9");
}
Symbol 867 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv5");
}
Symbol 868 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv6");
}
Symbol 869 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv7");
}
on (rollOver) {
_root.back_map.gotoAndStop(1);
}
Symbol 870 Button
on (release) {
stopAllSounds();
_root.world = 1;
_root.gotoAndStop("lv8");
}
on (rollOver) {
_root.back_map.gotoAndStop(1);
}
Symbol 879 MovieClip Frame 1
stop();
Symbol 879 MovieClip Frame 2
stop();
Symbol 879 MovieClip Frame 3
stop();
Symbol 879 MovieClip Frame 4
stop();
Symbol 879 MovieClip Frame 5
stop();
Symbol 879 MovieClip Frame 6
stop();
Symbol 879 MovieClip Frame 7
stop();
Symbol 879 MovieClip Frame 8
stop();
Symbol 879 MovieClip Frame 9
stop();
Symbol 879 MovieClip Frame 10
stop();
Symbol 880 Button
on (release) {
stopAllSounds();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.gotoAndStop("menu");
}
Symbol 881 Button
on (rollOver) {
_root.back_map.gotoAndStop(3);
}
Symbol 882 Button
on (release) {
stopAllSounds();
_root.world = 4;
_root.gotoAndStop("lv11");
}
Symbol 885 Button
on (release) {
stopAllSounds();
_root.world = 4;
_root.gotoAndStop("lv12");
}
Symbol 891 Button
on (release) {
stopAllSounds();
_root.world = 4;
_root.gotoAndStop("lv13");
}
Symbol 898 Button
on (release) {
stopAllSounds();
_root.world = 4;
_root.gotoAndStop("lv14");
}
Symbol 904 Button
on (release) {
stopAllSounds();
_root.world = 4;
_root.gotoAndStop("lv15");
}
Symbol 911 Button
on (release) {
stopAllSounds();
_root.world = 4;
_root.gotoAndStop("lv16");
}
Symbol 919 Button
on (release) {
stopAllSounds();
_root.world = 4;
_root.gotoAndStop("lv17");
}
Symbol 931 Button
on (release) {
stopAllSounds();
_root.world = 4;
_root.gotoAndStop("lv18");
}
Symbol 942 Button
on (release) {
stopAllSounds();
_root.world = 4;
_root.gotoAndStop("lv19");
}
Symbol 952 MovieClip Frame 1
stop();
Symbol 952 MovieClip Frame 2
stop();
Symbol 952 MovieClip Frame 3
stop();
Symbol 952 MovieClip Frame 4
stop();
Symbol 952 MovieClip Frame 5
stop();
Symbol 952 MovieClip Frame 6
stop();
Symbol 952 MovieClip Frame 7
stop();
Symbol 952 MovieClip Frame 8
stop();
Symbol 952 MovieClip Frame 9
stop();
Symbol 952 MovieClip Frame 10
stop();
Symbol 953 Button
on (rollOver) {
_root.back_map.gotoAndStop(2);
}
Symbol 954 Button
on (release) {
stopAllSounds();
_root.world = 2;
_root.gotoAndStop("lv20");
}
Symbol 957 Button
on (release) {
stopAllSounds();
_root.world = 2;
_root.gotoAndStop("lv21");
}
Symbol 961 Button
on (release) {
stopAllSounds();
_root.world = 2;
_root.gotoAndStop("lv22");
}
Symbol 966 Button
on (release) {
stopAllSounds();
_root.world = 2;
_root.gotoAndStop("lv23");
}
Symbol 972 Button
on (release) {
stopAllSounds();
_root.world = 2;
_root.gotoAndStop("lv24");
}
Symbol 979 Button
on (release) {
stopAllSounds();
_root.world = 2;
_root.gotoAndStop("lv25");
}
Symbol 987 Button
on (release) {
stopAllSounds();
_root.world = 2;
_root.gotoAndStop("lv26");
}
Symbol 996 Button
on (release) {
stopAllSounds();
_root.world = 2;
_root.gotoAndStop("lv27");
}
Symbol 1006 Button
on (release) {
stopAllSounds();
_root.world = 2;
_root.gotoAndStop("lv28");
}
Symbol 1024 MovieClip Frame 1
stop();
Symbol 1024 MovieClip Frame 2
stop();
Symbol 1024 MovieClip Frame 3
stop();
Symbol 1024 MovieClip Frame 4
stop();
Symbol 1024 MovieClip Frame 5
stop();
Symbol 1024 MovieClip Frame 6
stop();
Symbol 1024 MovieClip Frame 7
stop();
Symbol 1024 MovieClip Frame 8
stop();
Symbol 1024 MovieClip Frame 9
stop();
Symbol 1024 MovieClip Frame 10
stop();
Symbol 1025 Button
on (rollOver) {
_root.back_map.gotoAndStop(4);
}
Symbol 1026 Button
on (release) {
stopAllSounds();
_root.world = 3;
_root.gotoAndStop("lv29");
}
Symbol 1029 Button
on (release) {
stopAllSounds();
_root.world = 3;
_root.gotoAndStop("lv30");
}
Symbol 1033 Button
on (release) {
stopAllSounds();
_root.world = 3;
_root.gotoAndStop("lv31");
}
Symbol 1038 Button
on (release) {
stopAllSounds();
_root.world = 3;
_root.gotoAndStop("lv32");
}
Symbol 1044 Button
on (release) {
stopAllSounds();
_root.world = 3;
_root.gotoAndStop("lv33");
}
Symbol 1051 Button
on (release) {
stopAllSounds();
_root.world = 3;
_root.gotoAndStop("lv34");
}
Symbol 1059 Button
on (release) {
stopAllSounds();
_root.world = 3;
_root.gotoAndStop("lv35");
}
Symbol 1068 Button
on (release) {
stopAllSounds();
_root.world = 3;
_root.gotoAndStop("lv36");
}
Symbol 1078 Button
on (release) {
stopAllSounds();
_root.world = 3;
_root.gotoAndStop("lv37");
}
Symbol 1096 MovieClip Frame 1
stop();
Symbol 1096 MovieClip Frame 2
stop();
Symbol 1096 MovieClip Frame 3
stop();
Symbol 1096 MovieClip Frame 4
stop();
Symbol 1096 MovieClip Frame 5
stop();
Symbol 1096 MovieClip Frame 6
stop();
Symbol 1096 MovieClip Frame 7
stop();
Symbol 1096 MovieClip Frame 8
stop();
Symbol 1096 MovieClip Frame 9
stop();
Symbol 1096 MovieClip Frame 10
stop();
Instance of Symbol 797 MovieClip in Symbol 1098 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 1104 MovieClip Frame 1
stop();
Symbol 1104 MovieClip Frame 2
stop();
Symbol 1104 MovieClip Frame 3
stop();
Symbol 1104 MovieClip Frame 4
stop();
Symbol 1104 MovieClip Frame 5
stop();
Symbol 1104 MovieClip Frame 6
stop();
Symbol 1104 MovieClip Frame 7
stop();
Symbol 1104 MovieClip Frame 8
stop();
Symbol 1104 MovieClip Frame 9
stop();
Symbol 1104 MovieClip Frame 10
stop();
Symbol 1104 MovieClip Frame 11
stop();
Symbol 1104 MovieClip Frame 12
stop();
Symbol 1104 MovieClip Frame 13
stop();
Symbol 1104 MovieClip Frame 14
stop();
Symbol 1104 MovieClip Frame 15
stop();
Symbol 1104 MovieClip Frame 16
stop();
Symbol 1104 MovieClip Frame 17
stop();
Symbol 1104 MovieClip Frame 18
stop();
Symbol 1104 MovieClip Frame 19
stop();
Symbol 1104 MovieClip Frame 20
stop();
Symbol 1104 MovieClip Frame 21
stop();
Symbol 1104 MovieClip Frame 22
stop();
Symbol 1104 MovieClip Frame 23
stop();
Symbol 1104 MovieClip Frame 24
stop();
Symbol 1104 MovieClip Frame 25
stop();
Symbol 1104 MovieClip Frame 26
stop();
Symbol 1104 MovieClip Frame 27
stop();
Symbol 1104 MovieClip Frame 28
stop();
Symbol 1104 MovieClip Frame 29
stop();
Symbol 1104 MovieClip Frame 30
stop();
Symbol 1104 MovieClip Frame 31
stop();
Symbol 1104 MovieClip Frame 32
stop();
Symbol 1104 MovieClip Frame 33
stop();
Symbol 1104 MovieClip Frame 34
stop();
Symbol 1104 MovieClip Frame 35
stop();
Symbol 1104 MovieClip Frame 36
stop();
Symbol 1104 MovieClip Frame 37
stop();
Symbol 1104 MovieClip Frame 38
stop();
Symbol 1104 MovieClip Frame 39
stop();
Symbol 1104 MovieClip Frame 40
stop();
Symbol 1104 MovieClip Frame 41
stop();
Symbol 1104 MovieClip Frame 42
stop();
Symbol 1104 MovieClip Frame 43
stop();
Symbol 1104 MovieClip Frame 44
stop();
Symbol 1104 MovieClip Frame 45
stop();
Symbol 1104 MovieClip Frame 46
stop();
Symbol 1104 MovieClip Frame 47
stop();
Symbol 1104 MovieClip Frame 48
stop();
Symbol 1104 MovieClip Frame 49
stop();
Symbol 1104 MovieClip Frame 50
stop();
Symbol 1104 MovieClip Frame 51
stop();
Symbol 1104 MovieClip Frame 52
stop();
Symbol 1104 MovieClip Frame 53
stop();
Symbol 1104 MovieClip Frame 54
stop();
Symbol 1104 MovieClip Frame 55
stop();
Symbol 1104 MovieClip Frame 56
stop();
Symbol 1104 MovieClip Frame 57
stop();
Symbol 1104 MovieClip Frame 58
stop();
Symbol 1104 MovieClip Frame 59
stop();
Symbol 1104 MovieClip Frame 60
stop();
Symbol 1104 MovieClip Frame 61
stop();
Symbol 1104 MovieClip Frame 62
stop();
Symbol 1104 MovieClip Frame 63
stop();
Symbol 1104 MovieClip Frame 64
stop();
Symbol 1104 MovieClip Frame 65
stop();
Symbol 1104 MovieClip Frame 66
stop();
Symbol 1104 MovieClip Frame 67
stop();
Symbol 1104 MovieClip Frame 68
stop();
Symbol 1104 MovieClip Frame 69
stop();
Symbol 1104 MovieClip Frame 70
stop();
Symbol 1104 MovieClip Frame 71
stop();
Symbol 1104 MovieClip Frame 72
stop();
Symbol 1104 MovieClip Frame 73
stop();
Symbol 1104 MovieClip Frame 74
stop();
Symbol 1104 MovieClip Frame 75
stop();
Symbol 1104 MovieClip Frame 76
stop();
Symbol 1104 MovieClip Frame 77
stop();
Symbol 1104 MovieClip Frame 78
stop();
Symbol 1104 MovieClip Frame 79
stop();
Symbol 1104 MovieClip Frame 80
stop();
Symbol 1104 MovieClip Frame 81
stop();
Symbol 1104 MovieClip Frame 82
stop();
Symbol 1104 MovieClip Frame 83
stop();
Symbol 1104 MovieClip Frame 84
stop();
Symbol 1104 MovieClip Frame 85
stop();
Symbol 1104 MovieClip Frame 86
stop();
Symbol 1104 MovieClip Frame 87
stop();
Symbol 1104 MovieClip Frame 88
stop();
Symbol 1104 MovieClip Frame 89
stop();
Symbol 1104 MovieClip Frame 90
stop();
Symbol 1104 MovieClip Frame 91
stop();
Symbol 1104 MovieClip Frame 92
stop();
Symbol 1104 MovieClip Frame 93
stop();
Symbol 1104 MovieClip Frame 94
stop();
Symbol 1104 MovieClip Frame 95
stop();
Symbol 1104 MovieClip Frame 96
stop();
Symbol 1104 MovieClip Frame 97
stop();
Symbol 1104 MovieClip Frame 98
stop();
Symbol 1104 MovieClip Frame 99
stop();
Symbol 1104 MovieClip Frame 100
stop();
Symbol 1104 MovieClip Frame 101
stop();
Symbol 1104 MovieClip Frame 102
stop();
Symbol 1104 MovieClip Frame 103
stop();
Symbol 1104 MovieClip Frame 104
stop();
Symbol 1104 MovieClip Frame 105
stop();
Symbol 1104 MovieClip Frame 106
stop();
Symbol 1104 MovieClip Frame 107
stop();
Symbol 1104 MovieClip Frame 108
stop();
Symbol 1104 MovieClip Frame 109
stop();
Symbol 1104 MovieClip Frame 110
stop();
Symbol 1104 MovieClip Frame 111
stop();
Symbol 1104 MovieClip Frame 112
stop();
Symbol 1104 MovieClip Frame 113
stop();
Symbol 1104 MovieClip Frame 114
stop();
Symbol 1104 MovieClip Frame 115
stop();
Symbol 1104 MovieClip Frame 116
stop();
Symbol 1104 MovieClip Frame 117
stop();
Symbol 1104 MovieClip Frame 118
stop();
Symbol 1104 MovieClip Frame 119
stop();
Symbol 1104 MovieClip Frame 120
stop();
Symbol 1104 MovieClip Frame 121
stop();
Symbol 1104 MovieClip Frame 122
stop();
Symbol 1104 MovieClip Frame 123
stop();
Symbol 1104 MovieClip Frame 124
stop();
Symbol 1104 MovieClip Frame 125
stop();
Symbol 1104 MovieClip Frame 126
stop();
Symbol 1104 MovieClip Frame 127
stop();
Symbol 1104 MovieClip Frame 128
stop();
Symbol 1104 MovieClip Frame 129
stop();
Symbol 1104 MovieClip Frame 130
stop();
Symbol 1104 MovieClip Frame 131
stop();
Symbol 1104 MovieClip Frame 132
stop();
Symbol 1104 MovieClip Frame 133
stop();
Symbol 1104 MovieClip Frame 134
stop();
Symbol 1104 MovieClip Frame 135
stop();
Symbol 1104 MovieClip Frame 136
stop();
Symbol 1104 MovieClip Frame 137
stop();
Symbol 1104 MovieClip Frame 138
stop();
Symbol 1104 MovieClip Frame 139
stop();
Symbol 1104 MovieClip Frame 140
stop();
Symbol 1104 MovieClip Frame 141
stop();
Symbol 1104 MovieClip Frame 142
stop();
Symbol 1104 MovieClip Frame 143
stop();
Symbol 1104 MovieClip Frame 144
stop();
Symbol 1104 MovieClip Frame 145
stop();
Symbol 1104 MovieClip Frame 146
stop();
Symbol 1104 MovieClip Frame 147
stop();
Symbol 1104 MovieClip Frame 148
stop();
Symbol 1104 MovieClip Frame 149
stop();
Symbol 1104 MovieClip Frame 150
stop();
Symbol 1104 MovieClip Frame 151
stop();
Symbol 1104 MovieClip Frame 152
stop();
Symbol 1104 MovieClip Frame 153
stop();
Symbol 1104 MovieClip Frame 154
stop();
Symbol 1104 MovieClip Frame 155
stop();
Symbol 1104 MovieClip Frame 156
stop();
Symbol 1104 MovieClip Frame 157
stop();
Symbol 1104 MovieClip Frame 158
stop();
Symbol 1104 MovieClip Frame 159
stop();
Symbol 1104 MovieClip Frame 160
stop();
Symbol 1104 MovieClip Frame 161
stop();
Symbol 1104 MovieClip Frame 162
stop();
Symbol 1104 MovieClip Frame 163
stop();
Symbol 1104 MovieClip Frame 164
stop();
Symbol 1104 MovieClip Frame 165
stop();
Symbol 1104 MovieClip Frame 166
stop();
Symbol 1104 MovieClip Frame 167
stop();
Symbol 1104 MovieClip Frame 168
stop();
Symbol 1104 MovieClip Frame 169
stop();
Symbol 1104 MovieClip Frame 170
stop();
Symbol 1104 MovieClip Frame 171
stop();
Symbol 1104 MovieClip Frame 172
stop();
Symbol 1104 MovieClip Frame 173
stop();
Symbol 1104 MovieClip Frame 174
stop();
Symbol 1104 MovieClip Frame 175
stop();
Symbol 1104 MovieClip Frame 176
stop();
Symbol 1104 MovieClip Frame 177
stop();
Symbol 1104 MovieClip Frame 178
stop();
Symbol 1104 MovieClip Frame 179
stop();
Symbol 1104 MovieClip Frame 180
stop();
Symbol 1104 MovieClip Frame 181
stop();
Symbol 1104 MovieClip Frame 182
stop();
Symbol 1104 MovieClip Frame 183
stop();
Symbol 1104 MovieClip Frame 184
stop();
Symbol 1104 MovieClip Frame 185
stop();
Symbol 1104 MovieClip Frame 186
stop();
Symbol 1104 MovieClip Frame 187
stop();
Symbol 1104 MovieClip Frame 188
stop();
Symbol 1104 MovieClip Frame 189
stop();
Symbol 1104 MovieClip Frame 190
stop();
Symbol 1104 MovieClip Frame 191
stop();
Symbol 1104 MovieClip Frame 192
stop();
Symbol 1104 MovieClip Frame 193
stop();
Symbol 1104 MovieClip Frame 194
stop();
Symbol 1104 MovieClip Frame 195
stop();
Symbol 1104 MovieClip Frame 196
stop();
Symbol 1104 MovieClip Frame 197
stop();
Symbol 1104 MovieClip Frame 198
stop();
Symbol 1104 MovieClip Frame 199
stop();
Symbol 1104 MovieClip Frame 200
stop();
Instance of Symbol 1104 MovieClip "barra_fuel" in Symbol 1106 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.nojetpack == true) {
this.gotoAndStop(1);
} else {
gotoAndStop(_root.jet_power);
_root.bgs.bar.barra_fuel.gotoAndStop(_root.jet_power);
}
}
Symbol 1109 MovieClip Frame 1
stop();
Symbol 1109 MovieClip Frame 2
stop();
Symbol 1109 MovieClip Frame 3
stop();
Symbol 1109 MovieClip Frame 4
stop();
Symbol 1109 MovieClip Frame 5
stop();
Symbol 1109 MovieClip Frame 100
stopAllSounds();
_root.gotoAndStop("gameover");
stop();
Instance of Symbol 1109 MovieClip in Symbol 1110 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.vidas > 0) {
gotoAndStop(_root.vidas);
}
if (_root.vidas <= 0) {
gotoAndStop (100);
}
if (_root.life_count >= 50) {
trace("mas una vida");
_root.extra_s.start(0, 0);
_root.vidas = _root.vidas + 1;
_root.life_count = 0;
}
}
Symbol 1112 MovieClip Frame 1
function camControl() {
rp.x = _x;
rp.y = _y;
var _local5 = camH * (_yscale * 0.01);
var _local6 = camW * (_xscale * 0.01);
var _local3 = sH / _local5;
var _local4 = sW / _local6;
_x2 = (_local6 / 2) * _local4;
_y2 = (_local5 / 2) * _local3;
_xscale2 = _local4 * 100;
_yscale2 = _local3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x + (value - _local2.x);
}
function get_x2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function set_y2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._y = _parent._y + (value - _local2.y);
}
function get_y2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function get_xscale2() {
return(_parent._xscale);
}
function set_xscale2(value) {
setProperty2("_xscale", value);
}
function get_yscale2() {
return(_parent._yscale);
}
function set_yscale2(value) {
setProperty2("_yscale", value);
}
function get_rotation2() {
return(parent.rotation);
}
function set_rotation2(value) {
setProperty2("_rotation", value);
}
function setProperty2(prop, n) {
var _local3 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local3);
_parent[prop] = n;
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x - (_local2.x - _local3.x);
_parent._y = _parent._y - (_local2.y - _local3.y);
}
_visible = false;
addProperty("_x2", get_x2, set_x2);
addProperty("_y2", get_y2, set_y2);
addProperty("_xscale2", get_xscale2, set_xscale2);
addProperty("_yscale2", get_yscale2, set_yscale2);
addProperty("_rotation2", get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {x:this._x, y:this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
Symbol 1114 MovieClip Frame 1
stop();
_root.alpha_dead = false;
Symbol 1114 MovieClip Frame 2
_root.started_game = false;
Symbol 1114 MovieClip Frame 107
_root.depth = _root.depth + 10;
_root.alpha_mc.swapDepths(_root.depth);
if (_root.alpha_dead == true) {
_root.started_game = true;
gotoAndStop (1);
} else {
gotoAndStop (171);
}
Symbol 1114 MovieClip Frame 108
_root.depth = _root.depth + 10;
_root.alpha_mc.swapDepths(_root.depth);
Symbol 1114 MovieClip Frame 113
_root.depth = _root.depth + 10;
_root.alpha_mc.swapDepths(_root.depth);
Symbol 1114 MovieClip Frame 138
_root.depth = _root.depth + 10;
_root.alpha_mc.swapDepths(_root.depth);
Symbol 1114 MovieClip Frame 154
_root.depth = _root.depth + 10;
_root.alpha_mc.swapDepths(_root.depth);
Symbol 1114 MovieClip Frame 163
_root.depth = _root.depth + 10;
_root.alpha_mc.swapDepths(_root.depth);
Symbol 1114 MovieClip Frame 172
_root.play();
gotoAndStop (1);
Symbol 1115 MovieClip Frame 1
stop();
Symbol 1115 MovieClip Frame 2
gotoAndStop (1);
Symbol 1119 MovieClip Frame 30
_root.time++;
gotoAndPlay (1);
Symbol 1121 MovieClip Frame 1
jump_s.stop();
stop();
Symbol 1121 MovieClip Frame 2
jump_s = new Sound(this);
jump_s.attachSound("jump");
jump_s.start(0, 0);
Symbol 1121 MovieClip Frame 7
jump_s.stop();
gotoAndStop (1);
Symbol 1123 MovieClip Frame 1
jetpack_s.stop();
stop();
Symbol 1123 MovieClip Frame 2
jetpack_s = new Sound(this);
jetpack_s.attachSound("jetpack");
jetpack_s.start(0, 99);
stop();
Symbol 1126 MovieClip Frame 1
stop();
Symbol 1126 MovieClip Frame 3
gotoAndStop (1);
Symbol 1129 MovieClip Frame 1
stop();
Symbol 1129 MovieClip Frame 2
_root.gold_gear++;
_root.globalscore = _root.globalscore + 300;
Symbol 1129 MovieClip Frame 3
gotoAndStop (1);
Symbol 1133 MovieClip Frame 1
jump_s.stop();
stop();
Symbol 1133 MovieClip Frame 2
pause_s = new Sound(this);
pause_s.attachSound("sn_pause");
pause_s.start(0, 0);
Symbol 1133 MovieClip Frame 9
gotoAndStop (1);
Symbol 1137 Button
on (release) {
_root.nextFrame();
_root.lava.removeMovieClip();
if (_root.total_gold_gears == 1) {
if (_root.gold_gear == 0) {
unloadMovie (_root.golds);
}
}
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.player.removeMovieClip();
_root.pausesound.play();
_root.started_game = true;
_root.started_game = true;
_root.paused_game = false;
_root.pause_mc.gotoAndStop(2);
trace("unpaused");
stopAllSounds();
unloadMovie (_root.player);
_root.gotoAndStop("menu");
}
Symbol 1138 MovieClip Frame 1
stop();
Symbol 1176 MovieClip Frame 9
_root.alpha_mc.play();
Symbol 1176 MovieClip Frame 81
_root.dead_1 = false;
_root.dead_2 = false;
_root.hit_robot = false;
trace("stop at dead");
stop();
Symbol 1214 MovieClip Frame 4
_root.alpha_mc.play();
Symbol 1214 MovieClip Frame 17
tele_s = new Sound(this);
tele_s.attachSound("tele");
tele_s.start();
Symbol 1214 MovieClip Frame 52
_root.inter_level = true;
Symbol 1214 MovieClip Frame 60
_root.next_mc.play();
Symbol 1214 MovieClip Frame 61
_root.play();
stop();
Symbol 1215 MovieClip Frame 1
Symbol 1215 MovieClip Frame 2
gotoAndStop (1);
Symbol 1215 MovieClip Frame 3
stop();
Symbol 1215 MovieClip Frame 4
stop();
Symbol 1215 MovieClip Frame 6
stop();
Symbol 1215 MovieClip Frame 7
stop();
Symbol 1215 MovieClip Frame 8
stop();
Symbol 1215 MovieClip Frame 9
stop();
Symbol 1215 MovieClip Frame 10
stop();
Symbol 1216 MovieClip Frame 1
stop();
Symbol 1233 MovieClip Frame 61
stop();
Symbol 1234 MovieClip Frame 1
stopAllSounds();
Symbol 1234 MovieClip Frame 4
_root.garbage_s.start(0, 99);
Symbol 1234 MovieClip Frame 65
stop();
Symbol 1237 MovieClip Frame 1
_root.space_s.start(0, 99);
Symbol 1237 MovieClip Frame 55
stop();
Symbol 1240 MovieClip Frame 1
_root.castle_s.start(0, 99);
Symbol 1240 MovieClip Frame 57
stop();
Symbol 1245 MovieClip Frame 1
stopAllSounds();
Symbol 1245 MovieClip Frame 4
_root.cave_s.start(0, 99);
Symbol 1245 MovieClip Frame 65
stop();
Symbol 1246 MovieClip Frame 1
stop();
Symbol 1246 MovieClip Frame 2
stop();
Symbol 1246 MovieClip Frame 3
stop();
Symbol 1246 MovieClip Frame 4
stop();
Symbol 1250 MovieClip Frame 1
_root.golds.swapDepths(3);
_root.tanks.swapDepths(4);
Symbol 1250 MovieClip Frame 2
_root.started_game = false;
_root.pre_level = true;
Instance of Symbol 1246 MovieClip "worlds" in Symbol 1250 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.world);
}
Symbol 1250 MovieClip Frame 5
_root.started_game = false;
Symbol 1250 MovieClip Frame 11
_root.started_game = false;
Symbol 1250 MovieClip Frame 22
_root.started_game = false;
Symbol 1250 MovieClip Frame 32
_root.started_game = false;
Symbol 1250 MovieClip Frame 105
_root.pre_level = false;
_root.inter_level = false;
_root.time = 0;
_root.started_game = true;
stop();
Symbol 1252 MovieClip Frame 2
if ((_root.level_gears == _root.total_gears) && (_root.lot == true)) {
_root.barText = 4;
_root.lot = false;
}
if (_root.lava_hit == true) {
_root.barText = 5;
_root.barText = 5;
_root.bartext.gotoAndPlay(2);
}
if (_root.spikes_hit == true) {
_root.barText = 6;
_root.barText = 6;
_root.bartext.gotoAndPlay(2);
}
if (_root.hit_robot == true) {
_root.barText = 7;
_root.barText = 7;
_root.bartext.gotoAndPlay(2);
}
if (_root.hit_lasers == true) {
_root.barText = 8;
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
}
if (_root.barText == 1) {
barText.text = "+ 1 gear collected";
gotoAndPlay (1);
}
if (_root.barText == 2) {
barText.text = "+ 1 gold gear collected";
}
if (_root.barText == 3) {
barText.text = "max fuel";
}
if (_root.barText == 4) {
barText.text = "all gear collected";
}
if (_root.barText == 5) {
barText.text = "oh no! lava";
}
if (_root.barText == 6) {
barText.text = "oops! spikes...";
}
if (_root.barText == 7) {
barText.text = "i cant touch those enemies...";
}
if (_root.barText == 8) {
barText.text = "wow! an electric shock";
}
if (_root.barText == 9) {
barText.text = "+1 brick collected";
}
Symbol 1252 MovieClip Frame 3
if ((_root.level_gears == _root.total_gears) && (_root.lot == true)) {
_root.barText = 4;
_root.lot = false;
}
if (_root.lava_hit == true) {
_root.barText = 5;
_root.barText = 5;
_root.bartext.gotoAndPlay(2);
}
if (_root.spikes_hit == true) {
_root.barText = 6;
_root.barText = 6;
_root.bartext.gotoAndPlay(2);
}
if (_root.hit_robot == true) {
_root.barText = 7;
_root.barText = 7;
_root.bartext.gotoAndPlay(2);
}
if (_root.hit_lasers == true) {
_root.barText = 8;
_root.barText = 8;
_root.bartext.gotoAndPlay(2);
}
if (_root.barText == 1) {
barText.text = "+ 1 gear collected";
gotoAndPlay (1);
}
if (_root.barText == 2) {
barText.text = "+ 1 gold gear collected";
}
if (_root.barText == 3) {
barText.text = "max fuel";
}
if (_root.barText == 4) {
barText.text = "all gear collected";
}
if (_root.barText == 5) {
barText.text = "oh no! lava";
}
if (_root.barText == 6) {
barText.text = "oops! spikes...";
}
if (_root.barText == 7) {
barText.text = "i cant touch those enemies...";
}
if (_root.barText == 8) {
barText.text = "wow! an electric shock";
}
if (_root.barText == 9) {
barText.text = "+1 brick collected";
}
gotoAndStop (1);
Symbol 1253 MovieClip Frame 1
stop();
Symbol 1257 Button
on (release) {
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.level_world1 = _root.level_world1;
savefile.data.level_world2 = _root.level_world2;
savefile.data.level_world3 = _root.level_world3;
savefile.data.level_world4 = _root.level_world4;
savefile.flush();
_root.alpha_mc.gotoAndStop(1);
_root.alpha_inter.gotoAndStop(1);
_root.player.player_inside.gotoAndStop(1);
_root.not_hit = true;
_root.time = 0;
_root.timer.play();
_root.dead = false;
_root.play();
_root.nextframe();
_root.inter_level.swapDepths(1);
_root.inter_level.play();
_parent.nextFrame();
trace("play");
}
Symbol 1316 MovieClip Frame 1
stop();
Symbol 1316 MovieClip Frame 2
stop();
Symbol 1316 MovieClip Frame 3
stop();
Symbol 1316 MovieClip Frame 4
stop();
Symbol 1317 MovieClip Frame 1
stop();
_root.ranka = (_root.gold_gear * 10) + (_root.level_gears * 15);
_root.rankb = ((_root.total_gold_gears * 10) + (_root.total_gears * 15)) + (_root.time_dif * 10);
_root.rank = _root.ranka / _root.rankb;
_root.timer_dif = _root.level_time - _root.time;
if (_root.timer_dif >= 0) {
_root.time_dif = 0;
}
if ((_root.timer_dif < 0) && (_root.timer_dif >= -10)) {
_root.time_dif = 2;
}
if (_root.timer_dif <= -10) {
_root.time_dif = 5;
}
if (_root.rank == 1) {
securityText.text = "AA";
if (_root.ranking == false) {
_root["s" + _root.level] = true;
_root.ranking = true;
var savefile = SharedObject.getLocal("Rbt_1");
savefile.data.s1 = _root.s1;
savefile.data.s2 = _root.s2;
savefile.data.s3 = _root.s3;
savefile.data.s4 = _root.s4;
savefile.data.s5 = _root.s5;
savefile.data.s6 = _root.s6;
savefile.data.s7 = _root.s7;
savefile.data.s8 = _root.s8;
savefile.data.s9 = _root.s9;
savefile.data.s10 = _root.s10;
savefile.data.s11 = _root.s11;
savefile.data.s12 = _root.s12;
savefile.data.s13 = _root.s13;
savefile.data.s14 = _root.s14;
savefile.data.s15 = _root.s15;
savefile.data.s16 = _root.s16;
savefile.data.s17 = _root.s17;
savefile.data.s18 = _root.s18;
savefile.data.s19 = _root.s19;
savefile.data.s20 = _root.s20;
savefile.data.s21 = _root.s21;
savefile.data.s22 = _root.s22;
savefile.data.s23 = _root.s23;
savefile.data.s24 = _root.s24;
savefile.data.s25 = _root.s25;
savefile.data.s26 = _root.s26;
savefile.data.s27 = _root.s27;
savefile.data.s28 = _root.s28;
savefile.data.s29 = _root.s29;
savefile.data.s30 = _root.s30;
savefile.data.s31 = _root.s31;
savefile.data.s32 = _root.s32;
savefile.data.s33 = _root.s33;
savefile.data.s34 = _root.s34;
savefile.data.s35 = _root.s35;
savefile.data.s36 = _root.s36;
savefile.flush();
}
}
if ((_root.rank < 0.99) && (_root.rank > 0.86)) {
securityText.text = "A";
}
if ((_root.rank < 0.85) && (_root.rank > 0.65)) {
securityText.text = "B";
}
if ((_root.rank < 0.64) && (_root.rank > 0.41)) {
securityText.text = "C";
}
if ((_root.rank < 0.4) && (_root.rank > 0.21)) {
securityText.text = "D";
}
if ((_root.rank < 0.2) && (_root.rank > 0)) {
securityText.text = "E";
}
if (_root.rank == 0) {
securityText.text = "E";
}
stop();
Symbol 1317 MovieClip Frame 2
_root.play();
stop();
Symbol 1318 MovieClip Frame 1
stop();
Symbol 1318 MovieClip Frame 2
stopAllSounds();
Symbol 1318 MovieClip Frame 3
_root.boss_d_s.start(0, 99);
mochi.as2.MochiScores.setBoardID("9c69da71e4c08d77");
mochi.as2.MochiScores.submit(_root.sglobal, _root.playerName, {}, scoreSent);
Symbol 1318 MovieClip Frame 120
stopAllSounds();
if ((((_root.world_w1 == true) && (_root.world_w2 == true)) && (_root.world_w3 == true)) && (_root.world_w4 == true)) {
_root.gotoAndStop("end");
} else {
_root.gotoAndStop("map");
}
Instance of Symbol 281 MovieClip in Symbol 1318 MovieClip Frame 120
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.play();
}
}
Symbol 1323 MovieClip Frame 1
_root.started_game = false;
Symbol 1323 MovieClip Frame 206
_root.started_game = true;
Symbol 1323 MovieClip Frame 258
stop();
Symbol 1329 MovieClip Frame 114
_root.jetpacksound.gotoAndStop(1);
Symbol 1329 MovieClip Frame 140
_root.jetpacksound.gotoAndStop(1);
Symbol 1329 MovieClip Frame 154
_root.jetpacksound.gotoAndStop(1);
Symbol 1329 MovieClip Frame 166
_root.jetpacksound.gotoAndStop(1);
Symbol 1329 MovieClip Frame 178
_root.jetpacksound.gotoAndStop(1);
Symbol 1329 MovieClip Frame 193
_root.jetpacksound.gotoAndStop(1);
Symbol 1329 MovieClip Frame 207
_root.jetpacksound.gotoAndStop(1);
Symbol 1329 MovieClip Frame 220
_root.jetpacksound.gotoAndStop(1);
Symbol 1329 MovieClip Frame 238
_root.jetpacksound.gotoAndStop(1);
Symbol 1329 MovieClip Frame 252
_root.jetpacksound.gotoAndStop(1);
Symbol 1329 MovieClip Frame 253
stop();
Symbol 1333 MovieClip Frame 90
_root.play();
Symbol 1334 MovieClip Frame 215
stop();
Symbol 1339 Button
on (release) {
gotoAndStop ("ranking");
}
Symbol 1340 Button
on (release) {
stopAllSounds();
_root.lava.removeMovieClip();
_root.spikes.removeMovieClip();
_root.spike.removeMovieClip();
_root.exit_door.removeMovieClip();
_root.lev.removeMovieClip();
_root.moving.removeMovieClip();
_root.lad.removeMovieClip();
_root.jet_bar.removeMovieClip();
_root.coins.removeMovieClip();
_root.tanks.removeMovieClip();
_root.player.removeMovieClip();
unloadMovie (_root.player);
_root.globalscore = 0;
_root.gotoAndStop("menu");
}
Symbol 1349 Button
on (release) {
gotoAndStop ("gh");
}
Symbol 1351 Button
on (release) {
gotoAndStop ("gs");
}
Symbol 1353 Button
on (release) {
if (_root.localization_portal == "game_com_cn") {
getURL (_root.localization_url1, "_blank");
} else {
getURL (_root.localization_url1 + "&utm_content=button_highscore_3000games", "_blank");
}
}
Symbol 1354 MovieClip Frame 7
explosion_s = new Sound(this);
explosion_s.attachSound("explo1");
explosion_s.start();
Symbol 1354 MovieClip Frame 41
stop();
Symbol 1356 Button
on (release) {
mochi.as2.MochiScores.setBoardID("a76c81c0ce3dc2a8");
mochi.as2.MochiScores.submit(_root.globalscore, _root.playerName, {}, scoreSent);
mochi.as2.MochiScores.setBoardID("9c69da71e4c08d77");
mochi.as2.MochiScores.submit(_root.sglobal, _root.playerName, {}, scoreSent);
gotoAndStop ("ranking");
}