Frame 1
function diverge() {
getURL ("http://www.diverge.ws", "_blank");
}
function newgrounds() {
getURL ("http://www.newgrounds.com", "_blank");
}
function special_fx() {
if (graphics_fx == false) {
graphics_fx = true;
menu.customItems[2] = new_item_fx1;
} else {
graphics_fx = false;
menu.customItems[2] = new_item_fx2;
}
}
function quality() {
if (_quality == "LOW") {
_quality = "HIGH";
menu.customItems[3] = new_item_q2;
} else if (_quality == "MEDIUM") {
_quality = "LOW";
menu.customItems[3] = new_item_q3;
} else {
_quality = "MEDIUM";
menu.customItems[3] = new_item_q1;
}
}
function loader() {
if (percent_loaded < Math.floor((getBytesLoaded() / getBytesTotal()) * 100)) {
percent_loaded++;
}
if (percent_loaded == 100) {
gotoAndStop ("title");
}
percent_display = percent_loaded + "%";
loader_img.gotoAndStop(percent_loaded);
}
menu = new ContextMenu();
menu.hideBuiltInItems();
new_item = new ContextMenuItem("More Games @ Diverge!", diverge);
menu.customItems.push(new_item);
new_item = new ContextMenuItem("Newgrounds! Everything By Everyone", newgrounds);
menu.customItems.push(new_item);
new_item_fx1 = new ContextMenuItem(">Turn Off Special Graphic Effects", special_fx);
new_item_fx2 = new ContextMenuItem(">Turn Special Graphic Effects Back On", special_fx);
menu.customItems.push(new_item_fx1);
new_item_q1 = new ContextMenuItem(">Set Graphic Quality To LOW", quality);
new_item_q2 = new ContextMenuItem(">Set Graphic Quality To MEDIUM", quality);
new_item_q3 = new ContextMenuItem(">Set Graphic Quality To HIGH", quality);
menu.customItems.push(new_item_q1);
percent_loaded = 0;
stop();
Frame 2
function play_music(song) {
music_name = song;
music = eval ("m_" + song);
music.start(0, 999999);
}
graphics_fx = true;
challenge_mode = 0;
cheat_flies = false;
cheat_necklace = false;
cheat_hat = false;
cheat_dumphat = false;
cheat_ninjastars = false;
cheat_fat = false;
if (ini != true) {
ini = true;
chapter = 1;
level = 1;
lives = 4;
ammo = 0;
score = 0;
score_rewards = 0;
shycons = 0;
agility = 0;
endurance = 0;
strength = 0;
music_volume = 100;
_root.createEmptyMovieClip("music_obj", 10);
music_obj.onEnterFrame = function () {
music.setVolume(music_volume);
};
}
m_map = new Sound(music_obj);
m_map.attachSound("map");
m_level1 = new Sound(music_obj);
m_level1.attachSound("level1");
m_level2 = new Sound(music_obj);
m_level2.attachSound("level2");
m_level3 = new Sound(music_obj);
m_level3.attachSound("level3");
m_boss = new Sound(music_obj);
m_boss.attachSound("boss");
m_bloodlust = new Sound(music_obj);
m_bloodlust.attachSound("bl");
s_click = new Sound();
s_click.attachSound("click");
s_crumble1 = new Sound();
s_crumble1.attachSound("crumble1");
s_explode1 = new Sound();
s_explode1.attachSound("explode1");
s_explode2 = new Sound();
s_explode2.attachSound("explode2");
s_roll1 = new Sound();
s_roll1.attachSound("roll1");
s_roll2 = new Sound();
s_roll2.attachSound("roll2");
s_footstep1 = new Sound();
s_footstep1.attachSound("footstep1");
s_footstep2 = new Sound();
s_footstep2.attachSound("footstep2");
s_land1 = new Sound();
s_land1.attachSound("land1");
s_land2 = new Sound();
s_land2.attachSound("land2");
s_stomp = new Sound();
s_stomp.attachSound("stomp");
s_throw1 = new Sound();
s_throw1.attachSound("throw1");
s_throw2 = new Sound();
s_throw2.attachSound("throw2");
s_jump1 = new Sound();
s_jump1.attachSound("jump1");
s_jump2 = new Sound();
s_jump2.attachSound("jump2");
s_double_jump1 = new Sound();
s_double_jump1.attachSound("double_jump1");
s_double_jump2 = new Sound();
s_double_jump2.attachSound("double_jump2");
s_gut_bounce = new Sound();
s_gut_bounce.attachSound("gut_bounce");
s_heartbeat = new Sound();
s_heartbeat.attachSound("heartbeat");
s_item1 = new Sound();
s_item1.attachSound("item1");
s_item2 = new Sound();
s_item2.attachSound("item2");
s_item3 = new Sound();
s_item3.attachSound("item3");
s_hit1 = new Sound();
s_hit1.attachSound("hit1");
s_hit2 = new Sound();
s_hit2.attachSound("hit2");
s_bounce_hit1 = new Sound();
s_bounce_hit1.attachSound("bounce_hit1");
s_bounce_hit2 = new Sound();
s_bounce_hit2.attachSound("bounce_hit2");
s_bounce_hit3 = new Sound();
s_bounce_hit3.attachSound("bounce_hit3");
s_dump_land1 = new Sound();
s_dump_land1.attachSound("dump_land1");
s_dump_land2 = new Sound();
s_dump_land2.attachSound("dump_land2");
s_dump_jump1 = new Sound();
s_dump_jump1.attachSound("dump_jump1");
s_dump_jump2 = new Sound();
s_dump_jump2.attachSound("dump_jump2");
s_dump_wake = new Sound();
s_dump_wake.attachSound("dump_wake");
s_dimkin_growl1 = new Sound();
s_dimkin_growl1.attachSound("dimkin_growl1");
s_dimkin_growl2 = new Sound();
s_dimkin_growl2.attachSound("dimkin_growl2");
s_dimkin_die = new Sound();
s_dimkin_die.attachSound("dimkin_die");
s_bite = new Sound();
s_bite.attachSound("bite");
s_spit1 = new Sound();
s_spit1.attachSound("spit1");
s_spit2 = new Sound();
s_spit2.attachSound("spit2");
s_fart1 = new Sound();
s_fart1.attachSound("fart1");
s_fart2 = new Sound();
s_fart2.attachSound("fart2");
s_inflate = new Sound();
s_inflate.attachSound("inflate");
s_deflate = new Sound();
s_deflate.attachSound("deflate");
s_squawk = new Sound();
s_squawk.attachSound("squawk");
s_weltking_spit = new Sound();
s_weltking_spit.attachSound("weltking_spit");
s_weltking_scream = new Sound();
s_weltking_scream.attachSound("weltking_scream");
s_weltking_hit1 = new Sound();
s_weltking_hit1.attachSound("weltking_hit1");
s_weltking_hit2 = new Sound();
s_weltking_hit2.attachSound("weltking_hit2");
s_weltking_die = new Sound();
s_weltking_die.attachSound("weltking_die");
s_splat1 = new Sound();
s_splat1.attachSound("splat1");
s_splat2 = new Sound();
s_splat2.attachSound("splat2");
s_splat3 = new Sound();
s_splat3.attachSound("splat3");
s_metal1 = new Sound();
s_metal1.attachSound("metal1");
s_woodbreak = new Sound();
s_woodbreak.attachSound("woodbreak");
m_desert = new Sound();
m_desert.attachSound("desert");
m_desert_boss = new Sound();
m_desert_boss.attachSound("desert_boss");
c_red = new Object();
c_red.ra = 250;
c_red.rb = 100;
c_red.ba = 100;
c_red.bb = -50;
c_red.ga = 100;
c_red.gb = -50;
c_dusk = new Object();
c_dusk.ra = 80;
c_dusk.rb = 85;
c_dusk.ga = 80;
c_dusk.gb = 50;
c_dusk.ba = 80;
c_dusk.bb = 0;
c_dusk2 = new Object();
c_dusk2.ra = 100;
c_dusk2.rb = 10;
c_dusk2.ga = 68;
c_dusk2.gb = 48;
c_dusk2.ba = 86;
c_dusk2.bb = 5;
c_night = new Object();
c_night.ra = 70;
c_night.rb = 0;
c_night.ga = 70;
c_night.gb = 0;
c_night.ba = 70;
c_night.bb = 20;
c_nada = new Object();
c_nada.ra = 100;
c_nada.rb = 0;
c_nada.ba = 100;
c_nada.bb = 0;
c_nada.ga = 100;
c_nada.gb = 0;
blist = new Array();
blist = ["mofunzone", "ebaumsworld", "crapville", "www.minijuegos"];
i = 0;
while (i < blist.length) {
if ((blist[i] == (substring(_url, 8, 8 + blist[i].length))) || (blist[i] == (substring(_url, 12, 12 + blist[i].length)))) {
_root.attachMovie("mrhelper", "mrhelper", 99);
}
i++;
}
stop();
Frame 4
map_points = new Array();
i = 0;
while (i < 14) {
map_points[i] = new Array();
i++;
}
map_points[0] = [128, 195, 1];
map_points[1] = [57, 138, 2];
map_points[2] = [131, 86, 3];
map_points[3] = [45, 80, -1];
map_points[4] = [17, 41, -1];
map_points[5] = [87, 3, -1];
map_points[6] = [140, -1, -1];
map_points[7] = [250, 11, 4];
map_points[8] = [300, 35, -1];
map_points[9] = [260, 80, -1];
map_points[10] = [290, 104, 5];
map_points[11] = [268, 146, -1];
map_points[12] = [375, 203, -1];
map_points[13] = [493, 195, -1];
map_points[14] = [508, 136, -1];
map_points[15] = [430, 102, 6];
map_points[16] = [500, 100, -1];
map_points[17] = [505, 43, -1];
map_points[18] = [500, 4, 7];
map.map.object_num = 0;
i = 0;
while (i < map_points.length) {
if ((map_points[i][2] != -1) && (map_points[i][2] <= level)) {
map.map.attachMovie("map_spot", i, i);
obj = map.map[i];
obj._x = map_points[i][0] - map.map._x;
obj._y = map_points[i][1] - map.map._y;
if ((map_points[i][2] == (level - 1)) || (map_points[i][2] == 1)) {
start_level = i;
map.peashy.spot = start_level;
limit_spot = start_level;
next_level = false;
}
}
i++;
}
press_homekey_t = 0;
press_button = true;
level_current = 0;
speed = 4;
map.peashy._x = map_points[start_level][0];
map.peashy._y = map_points[start_level][1];
map.peashy.blur = Array(map.peashy.filters);
map.peashy.onEnterFrame = function () {
if (_root.level_current < 1) {
with (map.peashy) {
if (_root.map_points[spot][2] != -1) {
_parent.placer._visible = 1;
}
spot_x = _root.map_points[spot][0];
spot_y = _root.map_points[spot][1];
if ((_x != spot_x) || (_y != spot_y)) {
_parent.placer._visible = 0;
_x = _x + ((_yscale / 100) * speed_x);
_y = _y + ((_yscale / 100) * speed_y);
spot_w = (_yscale / 100) * _root.speed;
if (Math.abs(_x - spot_x) < spot_w) {
_x = spot_x;
}
if (Math.abs(_y - spot_y) < spot_w) {
_y = spot_y;
}
} else {
if (_root.map_points[spot][2] != -1) {
_root.hud_chapter = (("CHAPTER " + _root.chapter) + "-") + _root.map_points[spot][2];
if (Key.isDown(65) || (Key.isDown(13))) {
if (press_button == false) {
if (int(_root.map_points[spot][2]) == 0) {
getURL(_root.map_points[spot][2] + ".swf", "self");
} else {
_root.level_current = _root.map_points[spot][2];
_root.level_intro.play();
}
}
press_button = true;
} else {
press_button = false;
}
}
if (spot < _root.map_points.length) {
spot_x = _root.map_points[spot + 1][0];
spot_y = _root.map_points[spot + 1][1];
if (((_root.map_points[spot][2] == -1) && (backtrack != true)) || ((((((Key.isDown(39) && (spot_x > _x)) || (Key.isDown(37) && (spot_x < _x))) || (Key.isDown(40) && (spot_y > _y))) || (Key.isDown(38) && (spot_y < _y))) || (next_level == false)) && (limit_spot >= spot))) {
backtrack = false;
spot++;
if (next_level == false) {
next_level = true;
limit_spot = spot;
}
}
spot_x = _root.map_points[spot - 1][0];
spot_y = _root.map_points[spot - 1][1];
if ((((((_root.map_points[spot][2] == -1) && (backtrack != false)) || (Key.isDown(39) && (spot_x > _x))) || (Key.isDown(37) && (spot_x < _x))) || (Key.isDown(40) && (spot_y > _y))) || (Key.isDown(38) && (spot_y < _y))) {
backtrack = true;
spot--;
}
if (_root.map_points[spot][2] > _root.level) {
spot = spot - 1;
}
spot_x = _root.map_points[spot][0];
spot_y = _root.map_points[spot][1];
point = (Math.atan((_y - spot_y) / (_x - spot_x)) * 57.2957795130823) - 90;
if (_x < spot_x) {
point = point + 180;
}
speed_x = Math.sin((Math.PI/180) * point) * _root.speed;
speed_y = Math.cos((Math.PI/180) * point) * (-_root.speed);
}
}
_xscale = 50 + ((_y / 200) * 50);
_yscale = _xscale;
_parent.placer._x = _x;
_parent.placer._y = _y;
_parent.placer._xscale = _xscale;
_parent.placer._yscale = _xscale;
if (speed_x < 0) {
dir = "l";
} else if (speed_x > 0) {
dir = "r";
}
if (dir == "l") {
_xscale = _xscale * -1;
}
blur_amount = (100 - _yscale) / 20;
blur[0] = new flash.filters.BlurFilter(blur_amount, blur_amount, 1);
_root.map.peashy.filters = blur;
}
}
if (Key.isDown(36)) {
if (press_homekey != true) {
press_homekey_t = press_homekey_t + 5;
}
press_homekey = true;
} else {
press_homekey = false;
}
trace(press_homekey_t);
if (press_homekey_t > 0) {
press_homekey_t--;
}
if (press_homekey_t > 10) {
_root.level = 7;
stopAllSounds();
_root.gotoAndStop("title");
}
};
stopAllSounds();
play_music("map");
stop();
Frame 5
function f_cheat(key) {
if (pause_game == true) {
if ((getTimer() - cheat_time) > 1000) {
input_cheat = "";
}
cheat_time = getTimer();
key = l_keys[key];
input_cheat = input_cheat + key;
if (input_cheat == "pigpen") {
if (_root.cheat_flies != true) {
_root.cheat_flies = true;
} else {
_root.cheat_flies = false;
}
_root.cheat_activated.play();
} else if (input_cheat == "peashysan") {
if (_root.cheat_ninjastars != true) {
_root.cheat_ninjastars = true;
} else {
_root.cheat_ninjastars = false;
}
_root.cheat_activated.play();
} else if (input_cheat == "carlsjr") {
if (_root.cheat_fat != true) {
_root.cheat_fat = true;
} else {
_root.cheat_fat = false;
}
_root.cheat_activated.play();
} else if (input_cheat == "jackthompson") {
if (_root.cheat_hat != true) {
_root.cheat_hat = true;
} else {
_root.cheat_hat = false;
}
_root.cheat_activated.play();
} else if (input_cheat == "sharpdressedman") {
if (_root.cheat_necklace != true) {
_root.cheat_necklace = true;
} else {
_root.cheat_necklace = false;
}
_root.cheat_activated.play();
} else if (input_cheat == "kfc") {
if (_root.cheat_dumphat != true) {
_root.cheat_dumphat = true;
} else {
_root.cheat_dumphat = false;
}
_root.cheat_activated.play();
}
} else {
input_cheat = "";
}
}
function set_tint(action, start_tint, end_tint) {
if (action == "init") {
init_tint = true;
game.tint = new Color(game);
bg.tint = new Color(bg);
level_tint_start = start_tint;
level_tint = end_tint;
game.tint.setTransform(level_tint_start);
current_tint = new Object();
current_tint.ra = level_tint_start.ra - 10;
current_tint.rb = level_tint_start.rb;
current_tint.ga = level_tint_start.ga - 10;
current_tint.gb = level_tint_start.gb;
current_tint.ba = level_tint_start.ba - 10;
current_tint.bb = level_tint_start.bb;
bg.tint.setTransform(current_tint);
} else if (game.bg._x < bg_last_x) {
init_tint = true;
tint = int(((bg_limit_left - game.bg._x) / (bg_limit_left - bg_limit_right)) * 100);
current_tint.ra = 80;
tint_diff = level_tint.rb - level_tint_start.rb;
current_tint.rb = level_tint_start.rb + ((tint / 100) * tint_diff);
current_tint.ga = 80;
tint_diff = level_tint.gb - level_tint_start.gb;
current_tint.gb = level_tint_start.gb + ((tint / 100) * tint_diff);
current_tint.ba = 80;
tint_diff = level_tint.bb - level_tint_start.bb;
current_tint.bb = level_tint_start.bb + ((tint / 100) * tint_diff);
game.tint.setTransform(current_tint);
current_tint.ra = current_tint.ra - 10;
current_tint.ga = current_tint.ga - 10;
current_tint.ba = current_tint.ba - 10;
bg.tint.setTransform(current_tint);
bg_last_x = game.bg._x;
}
}
function blur_screen(blur) {
game.gfx = Array(game.filters);
game.gfx.splice(0, 1, new flash.filters.BlurFilter(blur, blur, 1));
game.filters = game.gfx;
}
function camera(action, speed, lock_target_x, lock_target_y) {
if (action == "zoom") {
game._xscale = game._xscale + ((game._xscale / 100) * speed);
game._yscale = game._xscale;
game.foreground._xscale = game.foreground._xscale - ((game._xscale / 100) * speed);
game.foreground._yscale = game.foreground._xscale;
} else if (action == "shake") {
_root.game._x = _root.game._x + speed;
} else if (action == "shake_y") {
_root.game._y = _root.game._y + speed;
} else if (action == "lock_x") {
speed_lock = lock_target_x / speed_cam;
if (speed_lock > 0) {
if (speed_lock < 0.5) {
speed_lock = 0;
} else if (speed_lock < 3) {
speed_lock = 3;
}
} else if (speed_lock > -0.5) {
speed_lock = 0;
} else if (speed_lock > -3) {
speed_lock = -3;
}
_root.scroll(speed_lock, "hori");
_root.game.peashy._x = _root.game.peashy._x - speed_lock;
}
}
function scroll(speed, dir) {
if (dir == "vert") {
game.fg._y = game.fg._y - speed;
bmp.scroll(0, -speed);
game.bg._y = game.bg._y - speed;
game.objects._y = game.objects._y - speed;
game.peashy._y = game.peashy._y - speed;
game.foreground._y = game.foreground._y - (speed * 2);
full_alpha_y = -10;
min_alpha_y = -80;
if (game.foreground._y < full_alpha_y) {
game.foreground._alpha = ((game.foreground._y - min_alpha_y) / (full_alpha_y - min_alpha_y)) * 100;
} else {
game.foreground._alpha = 100;
}
game.mid_bg._y = game.mid_bg._y - (speed / 3);
bg._y = bg._y - (speed / 10);
} else {
bmp.scroll(-speed, 0);
game.fg._x = game.fg._x - speed;
game.bg._x = game.bg._x - speed;
game.objects._x = game.objects._x - speed;
game.peashy._x = game.peashy._x - speed;
game.foreground._x = game.foreground._x - (speed * 2);
if (((game.foreground._x - speed) > 903) || ((game.foreground._x - speed) < -903)) {
game.foreground._x = 0;
}
game.mid_bg._x = game.mid_bg._x - (speed / 3);
if (((game.mid_bg._x - speed) < -885) || ((game.mid_bg._x - speed) > 885)) {
game.mid_bg._x = 0;
}
}
}
function particle(target, shape, color, alpha, x, y, xscale, speed_x, speed_y, weight, lifespan) {
if (target == "bg_terrain_fx") {
target = _root.game.bg.terrain_fx;
} else if (target == "fg_terrain_fx") {
target = _root.game.fg.terrain_fx;
} else {
target = _root.game.objects[target];
}
target.particles = int(target.particles) + 1;
target.i = int(target.i) + 1;
target.createEmptyMovieClip("particle_" + target.i, target.i);
target["particle_" + target.i]._x = x;
target["particle_" + target.i]._y = y;
target["particle_" + target.i]._alpha = alpha;
target["particle_" + target.i].speed_x = speed_x;
target["particle_" + target.i].speed_y = speed_y;
target["particle_" + target.i].weight = weight;
target["particle_" + target.i].lifespan = lifespan;
if (shape > 0) {
target["particle_" + target.i].attachMovie("particle" + shape, "shape", 1);
} else {
target["particle_" + target.i].beginFill(color, 100);
if (shape == "circle") {
target["particle_" + target.i].moveTo(-1, -2);
target["particle_" + target.i].lineTo(1, -2);
target["particle_" + target.i].lineTo(2, 0);
target["particle_" + target.i].lineTo(1, 2);
target["particle_" + target.i].lineTo(-1, 2);
target["particle_" + target.i].lineTo(-2, 0);
target["particle_" + target.i].lineTo(-1, -2);
} else if (shape == "oval") {
target["particle_" + target.i].moveTo(-3, -2);
target["particle_" + target.i].lineTo(3, -2);
target["particle_" + target.i].lineTo(6, 0);
target["particle_" + target.i].lineTo(3, 2);
target["particle_" + target.i].lineTo(-3, 2);
target["particle_" + target.i].lineTo(-6, 0);
target["particle_" + target.i].lineTo(-3, -2);
}
target["particle_" + target.i].endFill();
}
target["particle_" + target.i]._xscale = xscale;
target["particle_" + target.i]._yscale = target["particle_" + target.i]._xscale;
target["particle_" + target.i].attachMovie("particle_engine", "engine", 2);
}
function spawn_trail(start_x, start_y, end_x, end_y, clr, alpha) {
_root.game.trails.line.lineStyle(7, clr, alpha, false, "normal", "square");
_root.game.trails.line.moveTo(start_x - _root.game.trails._x, start_y - _root.game.trails._y);
_root.game.trails.line.lineTo(end_x - _root.game.trails._x, end_y - _root.game.trails._y);
_root.game.trails.line.gfx = Array(game.trails.line.filters);
_root.game.trails.line.gfx.splice(0, 1, new flash.filters.BlurFilter(6, 6, 1));
_root.game.trails.line.filters = _root.game.trails.line.gfx;
bmp.draw(_root.game.trails.line);
_root.game.trails.line.clear();
}
function spawn_object(name, x, y, xscale, rotation, xtra1, xtra2, xtra3, xtra4) {
if ((substring(name, 1, 3)) == "bg:") {
name = substring(name, 4, -1);
game.bg.i++;
game.bg.attachMovie(name, (name + "_") + game.bg.i, game.bg.i);
obj = game.bg[(name + "_") + game.bg.i];
} else if ((substring(name, 1, 3)) == "fg:") {
name = substring(name, 4, -1);
game.fg.i++;
game.fg.attachMovie(name, (name + "_") + game.fg.i, game.fg.i);
obj = game.fg[(name + "_") + game.fg.i];
} else if ((substring(name, 1, 6)) == "glass:") {
name = substring(name, 7, -1);
glass.i++;
glass.attachMovie(name, (name + "_") + glass.i, glass.i);
obj = glass[(name + "_") + glass.i];
} else {
game.i++;
game.objects.attachMovie(name, (name + "_") + game.i, game.i);
obj = game.objects[(name + "_") + game.i];
x = x - game.objects._x;
y = y - game.objects._y;
}
obj.cacheAsBitmap = true;
obj._xscale = xscale;
obj._rotation = rotation;
obj._x = x;
obj._y = y;
obj.xtra1 = xtra1;
obj.xtra2 = xtra2;
obj.xtra3 = xtra3;
obj.xtra4 = xtra4;
obj.gotoAndStop(frame);
}
function manage_objects(action, obj) {
if (action == "add") {
objects.push(obj);
} else {
i = 0;
while (i < objects.length) {
if (objects[i] == obj) {
objects.splice(i, 1);
}
i++;
}
}
}
function drop_item(set, type, value, x, y) {
if ((random(4) == 1) && ((type == "all") || (type == "ammo"))) {
item = "ammo";
} else {
if ((value == 3) && (random(50) == 1)) {
value = 3;
} else if ((value == 2) && (random(10) == 1)) {
value = 2;
} else {
value = 1;
}
item = random(value * 3) + 1;
item = (("set" + set) + "_item") + item;
}
_root.game.objects["item_" + _root.game.i].item = item;
}
function platform(name, dir, drop_off, surface, x, y, w, h) {
full_height = h * 2;
full_width = w * 2;
if (_root.cinema != true) {
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
if (((x + w) > peashy_x) && ((x - w) < peashy_x)) {
new_y = y;
if (full_height > 5) {
if ((dir == "left") || ((peashy_x > x) && (dir != "right"))) {
slope = ((x - peashy_x) * full_height) / full_width;
} else if ((dir == "right") || ((peashy_x < x) && (dir != "left"))) {
slope = ((peashy_x - x) * full_height) / full_width;
}
new_y = y - slope;
}
if (_root.game.peashy.air == true) {
peashy_area_y = _root.speed_jump;
} else {
peashy_area_y = 25;
}
if ((new_y - peashy_area_y) < peashy_y) {
if (peashy_y < (new_y + (peashy_area_y * 2))) {
if (_root.game.peashy.jumping != true) {
if ((full_height > 5) || (_root.game.peashy.air == true)) {
_root.game.peashy.air = false;
_root.game.peashy._y = new_y;
}
_root.game.peashy.platform_surface = surface;
_root.game.peashy.platform_name = name;
}
}
}
}
}
if (_root.game.peashy.platform_name == name) {
if (drop_off == "no") {
_root.game.peashy.platform_edge_right = false;
_root.game.peashy.platform_edge_left = false;
} else if (drop_off == "right") {
_root.game.peashy.platform_edge_right = x + w;
_root.game.peashy.platform_edge_left = false;
} else if (drop_off == "left") {
_root.game.peashy.platform_edge_right = false;
_root.game.peashy.platform_edge_left = x - w;
} else {
_root.game.peashy.platform_edge_right = x + w;
_root.game.peashy.platform_edge_left = x - w;
}
}
for (object in _root.game.objects) {
if (_root.game.objects[object].platforms == true) {
obj = _root.game.objects[object];
obj_x = obj._x + _root.game.objects._x;
obj_y = obj._y + _root.game.objects._y;
if ((obj_x > (x - w)) && (obj_x < (x + w))) {
new_y = y;
if (full_height > 5) {
if ((dir == "left") || ((obj_x > x) && (dir != "right"))) {
slope = ((x - obj_x) * full_height) / full_width;
} else if ((dir == "right") || ((obj_x < x) && (dir != "left"))) {
slope = ((obj_x - x) * full_height) / full_width;
}
new_y = y - slope;
}
if (obj_y > (new_y - obj.speed_y)) {
if (obj_y < (new_y + 40)) {
if (obj.speed_y > 0) {
obj._y = new_y - _root.game.objects._y;
obj.air = false;
if ((substring(object, 1, 5)) == "spike") {
if (obj.type != 2) {
if (surface == "rock") {
if (obj.bounced != true) {
obj.bounce_off();
} else {
obj.gotoAndStop("lay");
}
} else {
obj.gotoAndStop("stick_ground");
}
} else if (obj.speed_y < 2) {
if (obj.speed_x == 0) {
obj.gotoAndStop("bomb");
} else if (obj.speed_x > 0.5) {
obj.speed_x = obj.speed_x - (2.5 / (10 + random(3)));
} else if (obj.speed_x < -0.5) {
obj.speed_x = obj.speed_x + (2.5 / (10 + random(3)));
} else {
obj.speed_x = 0;
}
} else {
obj.speed_x = obj.speed_x / 1.1;
obj.speed_y = obj.speed_y / 1.3;
if (Math.abs(obj.speed_y) > 2.5) {
_root.s_gut_bounce.start();
}
obj.speed_y = obj.speed_y * -1;
obj.air = true;
}
}
}
}
}
}
}
}
i = 0;
while (i < _root.objects.length) {
obj = _root.game.bg[_root.objects[i]];
if (_root.game.bg[_root.objects[i]].platforms == true) {
obj_x = obj._x + _root.game.bg._x;
obj_y = obj._y + _root.game.bg._y;
if ((obj_x > (x - w)) && (obj_x < (x + w))) {
new_y = y;
if (full_height > 5) {
if ((dir == "left") || ((obj_x > x) && (dir != "right"))) {
slope = ((x - obj_x) * full_height) / full_width;
} else if ((dir == "right") || ((obj_x < x) && (dir != "left"))) {
slope = ((obj_x - x) * full_height) / full_width;
}
new_y = y - slope;
}
if (obj.speed_y > 0) {
obj_area_y = obj.speed_y;
} else {
obj_area_y = 15;
}
if ((obj_y + obj_area_y) > new_y) {
if (obj_y < (new_y + 40)) {
if (int(obj.speed_y) >= 0) {
obj._y = new_y - _root.game.bg._y;
obj.air = false;
obj.platform_name = name;
}
}
}
}
if (obj.platform_name == name) {
if (drop_off == "no") {
obj.platform_edge_right = false;
obj.platform_edge_left = false;
} else if (drop_off == "right") {
obj.platform_edge_right = (x + w) - _root.game.bg._x;
obj.platform_edge_left = false;
} else if (drop_off == "left") {
obj.platform_edge_right = false;
obj.platform_edge_left = (x - w) - _root.game.bg._x;
} else {
obj.platform_edge_right = (x + w) - _root.game.bg._x;
obj.platform_edge_left = (x - w) - _root.game.bg._x;
}
}
}
i++;
}
}
function wall(name, dir, surface, x, y, w, h) {
name = game.bg[name];
full_width = name._width;
full_height = name._height;
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
if (dir == "left") {
new_x = x - (((y - peashy_y) * full_width) / full_height);
} else if (dir == "right") {
new_x = x - (((peashy_y - y) * full_width) / full_height);
} else {
new_x = x;
}
if (((peashy_y - _root.game.peashy.height) < (y + h)) && (peashy_y > (y - h))) {
if (((peashy_x + 15) > (new_x - w)) && (peashy_x < new_x)) {
_root.game.peashy._x = (new_x - w) - 15;
}
if (((peashy_x - 15) < (new_x + w)) && (peashy_x > new_x)) {
_root.game.peashy._x = (new_x + w) + 15;
}
if (name.rebound_check != true) {
if (_root.game.peashy.double_jump == true) {
name.rebound = true;
name.rebound_check = true;
}
} else if (_root.game.peashy.double_jump != true) {
name.rebound_check = false;
}
if ((((peashy_x > ((new_x - 16) - w)) && (peashy_x < new_x)) && (_root.game.peashy.speed_x > 0)) || (((peashy_x < ((new_x + 16) + w)) && (peashy_x > new_x)) && (_root.game.peashy.speed_x < 0))) {
_root.game.peashy.wall_name = name;
_root.game.peashy.speed_x = 0;
if ((name.rebound == true) && (_root.game.peashy.press_up == true)) {
if (peashy_x < x) {
_root.game.peashy._xscale = -100;
_root.game.peashy._x = peashy_x - 10;
_root.game.peashy.speed_x = (-_root.speed) * 2;
_root.spawn_object("fx_dust2", peashy_x + 25, peashy_y, 100, -90);
} else {
_root.game.peashy._xscale = 100;
_root.game.peashy._x = peashy_x + 10;
_root.game.peashy.speed_x = _root.speed * 2;
_root.spawn_object("fx_dust2", peashy_x - 25, peashy_y, 100, 90);
}
_root.game.peashy._y = peashy_y - 10;
_root.game.peashy.walk = false;
_root.game.peashy.double_jump = false;
_root.jump(17);
}
}
name.rebound = false;
}
for (spike in _root.game.objects) {
obj = _root.game.objects[spike];
if (((substring(spike, 1, 5)) == "spike") && (obj._currentFrame == 1)) {
spike_x = obj._x + _root.game.objects._x;
spike_y = obj._y + _root.game.objects._y;
if (dir == "left") {
new_x = x - (((y - spike_y) * full_width) / full_height);
} else if (dir == "right") {
new_x = x - (((spike_y - y) * full_width) / full_height);
} else {
new_x = x;
}
if ((spike_y < (y + h)) && (spike_y > (y - h))) {
if ((((spike_x + 25) > (new_x - w)) && (spike_x < x)) && (obj.speed_x > 0)) {
obj._x = ((new_x - w) - 9) - _root.game.objects._x;
if (obj.type != 2) {
if (surface != "rock") {
obj.gotoAndStop("stick");
} else {
obj.bounce_off();
}
} else {
obj.speed_x = obj.speed_x * -1;
}
} else if ((((spike_x - 25) < (new_x + w)) && (spike_x > x)) && (obj.speed_x < 0)) {
obj._x = ((new_x + w) + 9) - _root.game.objects._x;
if (obj.type != 2) {
if (surface != "rock") {
obj.gotoAndStop("stick");
} else {
obj.bounce_off();
}
}
}
}
}
}
i = 0;
while (i < _root.objects.length) {
obj = _root.game.bg[_root.objects[i]];
if (obj.walls == true) {
obj_x = obj._x + _root.game.bg._x;
obj_y = obj._y + _root.game.bg._y;
obj_width = obj.width;
if (dir == "left") {
new_x = x - (((new_y - obj_y) * full_width) / full_height);
} else if (dir == "right") {
new_x = x - (((obj_y - new_y) * full_width) / full_height);
} else {
new_x = x;
}
obj.wall = false;
if (((obj_y - 50) < (y + h)) && (obj_y > (y - h))) {
if (((obj_x + obj_width) > (new_x - w)) && (obj_x < new_x)) {
obj._x = ((new_x - w) - obj_width) - _root.game.bg._x;
obj.wall = true;
} else if (((obj_x - obj_width) < (new_x + w)) && (obj_x > new_x)) {
obj._x = ((new_x + w) + obj_width) - _root.game.bg._x;
obj.wall = true;
}
if (((((obj_x + obj_width) > (new_x - w)) && (obj_x < new_x)) && (obj.speed_x > 0)) || ((((obj_x - obj_width) < (new_x + w)) && (obj_x > new_x)) && (obj.speed_x < 0))) {
obj.speed_x = 0;
}
}
}
i++;
}
}
function trap(name, x, y, w, h) {
if ((_root.game.peashy.alive != false) && (_root.game.peashy.invincible != true)) {
if ((x + w) > _root.game.peashy._x) {
if ((x - w) < _root.game.peashy._x) {
if (y > (_root.game.peashy._y - _root.game.peashy.height)) {
if ((y - h) < _root.game.peashy._y) {
_root.hurt(_root.game.peashy._xscale);
_root.jump(20);
}
}
}
}
}
}
function ceiling(name, dir, x, y, w, h) {
if (_root.cinema != true) {
if (_root.game.peashy._x > (x - w)) {
if (_root.game.peashy._x < (x + w)) {
if (dir != "") {
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
if ((dir == "left") || ((peashy_x > x) && (dir != "right"))) {
slope = ((x - peashy_x) * (h * 2)) / (w * 2);
} else if ((dir == "right") || ((peashy_x < x) && (dir != "left"))) {
slope = ((peashy_x - x) * (h * 2)) / (w * 2);
}
y = y - slope;
h = 0;
}
if (_root.game.peashy._y > (y - h)) {
if ((_root.game.peashy._y - _root.game.peashy.height) < (y + h)) {
if (_root.game.peashy.rolling == true) {
if (_root.game.peashy.speed_x > 0) {
_root.game.peashy.speed_x = _root.game.peashy.speed_x + 0.2;
if (_root.game.peashy.speed_x < 2) {
_root.game.peashy.speed_x = 2;
}
} else {
_root.game.peashy.speed_x = _root.game.peashy.speed_x - 0.2;
if (_root.game.peashy.speed_x > -2) {
_root.game.peashy.speed_x = -2;
}
}
_root.game.peashy.ceiling_name = name;
} else {
_root.game.peashy._y = y + _root.game.peashy.height;
_root.game.peashy.jumping = false;
}
}
}
}
}
}
}
function passage(name, dir, x, y, w, h) {
name = _root.game.bg[name];
if (_root.game.peashy._y > (y - h)) {
if (_root.game.peashy._y < (y + h)) {
if ((((_root.game.peashy._x + _root.game.peashy.speed_x) < x) && ((_root.game.peashy._x + 20) > x)) && (name.pass_dir != "l")) {
if (dir == "left") {
_root.game.peashy.inside = true;
} else {
_root.game.peashy.inside = false;
}
name.pass_dir = "l";
} else if ((((_root.game.peashy._x + _root.game.peashy.speed_x) > x) && ((_root.game.peashy._x - 20) < x)) && (name.pass_dir != "r")) {
if (dir == "right") {
_root.game.peashy.inside = true;
} else {
_root.game.peashy.inside = false;
}
name.pass_dir = "r";
}
}
}
}
function f_physics(name) {
tellTarget (_root.game.bg[name]) {
x = _x + _root.game.bg._x;
y = _y + _root.game.bg._y;
_visible = false;
top._visible = 0;
if ((((((x + width) > (_root.limit_left - 100)) && ((x - width) < (_root.limit_right + 100))) && (y > _root.limit_top)) && ((y - height) < (_root.limit_bottom + 100))) && (_root.cinema != true)) {
_visible = true;
if (top.peashy == true) {
top._visible = 1;
}
if ((air == false) && (speed_x != 0)) {
if (_x > prev_x) {
speed_x = speed_x + ((_y - prev_y) / 6);
} else {
speed_x = speed_x + ((prev_y - _y) / 6);
}
}
_x = (_x + speed_x);
_y = (_y + speed_y);
if ((_root.game.peashy.platform_name == top.name) && (_root.game.peashy.air != true)) {
_root.game.peashy._x = _root.game.peashy._x + speed_x;
_root.game.peashy._y = _root.game.peashy._y + (_y - prev_y);
if (((_root.scrolling == true) && (x > _root.scroll_right)) && (Math.abs(speed_x) > 0)) {
_root.scroll(x - _root.scroll_right, "hori");
}
}
o._rotation = o._rotation + (speed_x * 1.5);
speed_y++;
if ((air == false) && (speed_y > 0)) {
if (speed_y > 2) {
air = true;
speed_y = speed_y / 3;
speed_y = speed_y * -1;
_root.spawn_object("fx_screen_shake", 0, 0, 0, 8);
_root.spawn_object("fx_dust6", x, y);
_root.s_crumble1.start();
} else {
speed_y = 0;
}
}
pushed = false;
if ((_root.game.peashy.alive != false) && ((_root.game.peashy.platform_name != top.name) || (_root.game.peashy.air == true))) {
if ((_root.game.peashy._x + _root.game.peashy.speed_x) > (x - width)) {
if ((_root.game.peashy._x + _root.game.peashy.speed_x) < (x + width)) {
if ((_root.game.peashy._y - _root.game.peashy.height) < y) {
if (_root.game.peashy._y > (y - height)) {
pushed = true;
if (_root.game.peashy._x < x) {
if (speed_max > speed_x) {
speed_x = speed_x + 0.05;
}
_root.game.peashy._x = _root.game.peashy._x - (_root.game.peashy._x - (x - width));
if ((_root.game.peashy.speed_x > 0) && (speed_max > speed_x)) {
_root.game.peashy.speed_x = speed_x / 2;
} else {
_root.game.peashy.speed_x = 0;
}
} else {
if ((-speed_max) < speed_x) {
speed_x = speed_x - 0.05;
}
_root.game.peashy._x = _root.game.peashy._x + ((x + width) - _root.game.peashy._x);
if ((_root.game.peashy.speed_x < 0) && ((-speed_max) < speed_x)) {
_root.game.peashy.speed_x = speed_x / 2;
} else {
_root.game.peashy.speed_x = 0;
}
}
if (((((speed_x > (speed_max / 2)) && (_root.game.peashy._x > x)) || ((speed_x < (-(speed_max / 2))) && (_root.game.peashy._x < x))) && (_root.game.peashy.alive != false)) && (_root.game.peashy.invincible != true)) {
if (x > _root.game.peashy._x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
}
}
}
}
}
}
if (((pushed == false) && (air != true)) && (_y == prev_y)) {
if (speed_x < -0.5) {
speed_x = speed_x + 0.2;
} else if (speed_x > 0.5) {
speed_x = speed_x - 0.2;
} else {
speed_x = 0;
}
}
i = 0;
while (i < _root.objects.length) {
obj = _root.game.bg[_root.objects[i]];
if (((obj._y - obj.height) < (_y + speed_y)) && (obj._y > (_y - height))) {
if (((((speed_x > (speed_max / 2)) && ((obj._x - obj.width) < (_x + width))) && (obj._x > _x)) || (((speed_x < (-(speed_max / 2))) && ((obj._x + obj.width) > (_x - width))) && (obj._x < _x))) && (obj.alive != false)) {
obj.gotoAndStop("die");
}
}
i++;
}
if ((_x > platform_edge_right) || (_x < platform_edge_left)) {
air = true;
}
prev_y = _y;
} else if (((respawn == "above") && ((default_y + _parent._y) < (_root.limit_top - 200))) || (respawn == "below")) {
gotoAndStop ("respawn");
}
};
}
function f_shycon(name) {
with (game.bg[name]) {
if (_root.game.peashy.alive != false) {
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
y = _y + _root.game.bg._y;
if (((y - 15) < peashy_y) && ((y + 15) > (peashy_y - _root.game.peashy.height))) {
x = _x + _root.game.bg._x;
if (((x + 25) > peashy_x) && ((x - 25) < peashy_x)) {
gotoAndStop("collect");
}
}
}
}
}
function peashy_cam(speed_x, x, y, xscale) {
if (_root.cam == true) {
if (cam_zoom_temp > 0) {
cam_zoom_current = cam_zoom_temp;
} else {
cam_zoom_current = cam_zoom;
}
if ((_root.game._xscale + _root.speed_cam) < cam_zoom_current) {
speed_zoom = _root.speed_cam;
} else if ((_root.game._xscale - _root.speed_cam) > cam_zoom_current) {
speed_zoom = -_root.speed_cam;
} else {
speed_zoom = 0;
cam_zoom_temp = 0;
}
if (speed_zoom != 0) {
_root.camera("zoom", speed_zoom);
}
if (_root.cam_lock == true) {
_root.camera("lock_x", 0, x);
_root.camera("lock_y", 0, y);
}
}
}
function peashy_scroll_vert(y) {
if ((_root.scrolling_vert != false) && (_root.game.peashy.look_up == 0)) {
scroll_top = Math.floor(limit_top * 0.6);
scroll_bottom = Math.floor(center_y / 6);
if (((_root.cinema != true) && (((_root.game.peashy.air == true) && (y < scroll_top)) || ((_root.game.peashy.air != true) && (y < (scroll_top + 100))))) && (_root.game.bg._y < _root.level_limit_top)) {
if (_root.game.peashy.air != true) {
_root.game.peashy.scroll_ground_vert = true;
} else {
speed_scroll = Math.abs(scroll_top - y);
_root.scroll(-speed_scroll, "vert");
}
} else if (((((_root.game.peashy.alive != false) || (_root.game.peashy.rolling == true)) || (_root.cinema == true)) && (y > scroll_bottom)) && (_root.game.bg._y > _root.level_limit_bottom)) {
speed_scroll = y - scroll_bottom;
_root.scroll(speed_scroll, "vert");
}
if (((_root.game.peashy.scroll_ground_vert == true) && (_root.game.bg._y < _root.level_limit_top)) && (_root.game.peashy._y < (scroll_bottom - 4))) {
if (_root.game.peashy.air != true) {
_root.scroll(Math.ceil((y - scroll_bottom) / 10), "vert");
}
} else {
_root.game.peashy.scroll_ground_vert = false;
}
}
}
function jump(speed, stomp) {
game.peashy.jumping = true;
game.peashy.air = true;
if ((stomp == true) && (_root.game.peashy.press_jump == true)) {
speed_jump = speed * 1.5;
} else {
speed_jump = speed;
}
gravity = speed / 7;
gravity_current = gravity;
if (stomp == true) {
game.peashy.alive = false;
}
}
function hurt(xscale) {
kills = 0;
game.peashy.alive = false;
if (mask == true) {
mask = false;
spawn_object("fx_mask_lose", _root.game.peashy._x, _root.game.peashy._y - _root.game.peashy.height, 100, 0);
_root["s_hit" + (random(2) + 1)].start();
game.peashy._xscale = xscale;
game.peashy.gotoAndStop("hit");
} else {
game.peashy.gotoAndStop("die1");
}
}
function boss_weltking() {
with (_root.game.bg.weltking) {
x = _x + _parent._x;
y = _y + _parent._y;
if (((((x < (_root.limit_right + 100)) && (y > (_root.limit_bottom - 200))) && (_root.game.peashy.air != true)) && (_root.game.peashy.alive != false)) || (intro == true)) {
if (intro != true) {
head.head.gotoAndStop("scream");
_root.game.peashy.speed_x = 0;
_root.game.peashy.gotoAndStop("cinema_stand");
} else {
if ((((head.platform1.peashy == true) || (head.platform3.peashy == true)) || ((hp_body == 0) && (falling == true))) || (dead == true)) {
_root.cam_zoom = 100;
_root.scrolling = true;
_root.scrolling_vert = true;
} else if (_root.game.peashy.air != true) {
if (prev_cam_zoom) {
_root.cam_zoom = prev_cam_zoom;
}
prev_cam_zoom = _root.cam_zoom;
if ((geyser != true) && (dead != true)) {
_root.scrolling = false;
_root.scrolling_vert = false;
if (Math.abs(x - 250) > 3) {
_root.scroll((x - 250) / 10, "hori");
}
if (Math.abs(y - 50) > 3) {
_root.scroll((y - 50) / 8, "vert");
}
} else {
_root.scrolling = true;
}
}
if ((((platform1.peashy == true) && (_root.game.peashy.invincible != true)) && (_root.game.peashy.alive != false)) && (body._currentframe == 1)) {
if (swat_delay == 30) {
swat_delay = 0;
body.gotoAndPlay("swat");
} else {
swat_delay = int(swat_delay) + 1;
}
}
if ((spit_timer == 0) && (((head.head._currentFrame == 1) || (head.head._currentframe == 6)) || (geyser == true))) {
if (head.head._currentframe == 6) {
head.head.gotoAndStop("spit_headless");
} else if (head.head._currentframe == 1) {
head.head.gotoAndStop("spit");
} else {
_root.spawn_object("weltking_bloodball", _root.limit_left + random(_root.limit_right - _root.limit_left), (_y - 500) + _root.game.bg._y, 100, 180);
}
spit_timer = -1;
} else if (spit_timer > 0) {
spit_timer--;
} else if (geyser == true) {
spit_timer = random(20) + 70;
} else {
spit_timer = random(100) + 70;
}
}
if (((maggot_timer == 0) && (maggot_num < 2)) && (body._currentframe == 1)) {
body.play();
maggot_timer = -1;
} else if (maggot_timer > 0) {
maggot_timer--;
} else {
maggot_timer = random(50) + 180;
}
if (falling == true) {
_root.cinema = true;
_root.level_limit_bottom = -4000;
if (_root.game.peashy.alive != false) {
_root.game.peashy.air = true;
_root.game.peashy.alive = false;
}
_root.game.peashy.gotoAndStop("cinema_fall");
_y = _y + (_root.speed_fall * 2);
if (_root.game.peashy._y < (y - 200)) {
_root.game.peashy._y = _root.game.peashy._y + _root.speed_fall;
}
if (x > (_root.limit_right - 150)) {
_root.scroll((x - (_root.limit_right - 150)) / 10, "hori");
}
if (y > (_root.limit_bottom - 150)) {
_root.scroll(_root.speed_fall * 2, "vert");
}
if (_y > _parent.bottom_ledge._y) {
_parent.bottom_ledge.nextFrame();
_y = _parent.bottom_ledge._y;
body.gotoAndStop("land");
_root.spawn_object("fx_screen_shake", 0, 0, 0, 20);
_root.s_explode1.start();
falling = false;
}
}
if (_root.cinema == true) {
if (_root.game.peashy._y > (_parent.bottom_ledge._y + _parent._y)) {
_root.level_limit_top = _root.game.bg._y;
_root.level_limit_bottom = _root.game.bg._y;
_root.level_limit_right = -1400;
_root.level_limit_left = -1200;
_root.cinema = false;
_root.game.peashy._y = _parent.bottom_ledge._y + _parent._y;
_root.game.peashy.air = false;
_root.game.peashy.alive = true;
_root.game.peashy.speed_x = 0;
_root.game.peashy.gotoAndStop("stand");
}
}
if (geyser == true) {
if ((_root.game.peashy.alive == true) && (_root.game.peashy.invincible != true)) {
if (head.head.hitTest(((_root.game._xscale / 100) * _root.game.peashy._x) + _root.game._x, ((_root.game._xscale / 100) * _root.game.peashy._y) + _root.game._y, true)) {
_root.game.peashy.gotoAndStop("die1");
}
}
obj = _parent.boss_boulder;
if (obj.speed_y > 0) {
if (obj._x > (_x - body_w)) {
if (obj._x < (_x + body_w)) {
if (obj._y > (_y - body_h)) {
if (obj._y < _y) {
geyser = false;
body.gotoAndStop("die");
}
}
}
}
}
}
head.clr.setTransform(_root.c_nada);
body.clr.setTransform(_root.c_nada);
head_w = head.head._width / 2.9;
head_h = head.head._height / 1.4;
for (spike in _root.game.objects) {
obj = _root.game.objects[spike];
if ((substring(obj._name, 0, 5)) == "spike") {
if (obj._currentframe == 1) {
obj_x = obj._x + _root.game.objects._x;
obj_y = obj._y + _root.game.objects._y;
if ((head.head.hitTest(((_root.game._xscale / 100) * obj_x) + _root.game._x, ((_root.game._xscale / 100) * obj_y) + _root.game._y, true) && (hp_head_stun > 0)) || ((body.hitTest(((_root.game._xscale / 100) * obj_x) + _root.game._x, ((_root.game._xscale / 100) * obj_y) + _root.game._y, true) && (hp_body > 0)) && (hp_head == 0))) {
if (hp_head_stun > 0) {
_root["s_hit" + (random(2) + 1)].start();
_root["s_weltking_hit" + (random(2) + 1)].start();
head.clr.setTransform(_root.c_red);
head.head.head.play();
} else if (hp_head == 0) {
_root["s_hit" + (random(2) + 1)].start();
body.clr.setTransform(_root.c_red);
hp_body--;
if (hp_body == 0) {
body.gotoAndPlay("jump");
}
}
if (obj.type == 2) {
obj.boom = true;
obj.gotoAndStop("bomb");
hp_head_stun = hp_head_stun - 2;
if (hp_head_stun < 0) {
hp_head_stun = 0;
}
} else {
obj.removeMovieClip();
hp_head_stun--;
}
_root.spawn_object("fx_blood1", obj_x, obj_y, 100, 0);
}
}
}
}
if ((hp_head_stun == 0) && (head.head._currentFrame == 1)) {
head.head.gotoAndStop("stunned");
}
if ((head.platform3.peashy == true) && (_root.game.peashy.attack_drop == true)) {
head.head.bump.gotoAndStop("die");
}
if ((hp_head == 0) && (head.head._currentframe < 6)) {
head.head.gotoAndStop("die");
}
}
}
}
function stats() {
speed = base_speed + (agility / 10);
}
function engine_init() {
game_width = game._width / 2;
glass.i = 0;
glass.cacheAsBitmap = true;
game.i = 0;
game.fg.i = 0;
gfx_foreground = Array(game.foreground.filters);
game.mid_bg.cacheAsBitmap = true;
game.bg.i = 0;
game.bg.shycons = 0;
penis = 0;
game.createEmptyMovieClip("objects", 0);
spawn_object("fx_flies", game.peashy._x, game.peashy._y);
game.fg.swapDepths(3);
game.foreground.swapDepths(4);
bmp = new flash.display.BitmapData(800, 800, true, 16777215);
game.createEmptyMovieClip("trails", 2);
game.trails.attachBitmap(bmp, 1);
game.trails.createEmptyMovieClip("line", 2);
game.trails._x = -400;
game.trails._y = -600;
game.platforms = 0;
game.walls = 0;
game.traps = 0;
game.ceilings = 0;
game.passages = 0;
game.peashy.footprint_x = 0;
game.peashy.delay_attack = 0;
}
function engine() {
scr_size_x = (100 / game._xscale) * Stage.width;
scr_size_y = (100 / game._xscale) * Stage.height;
screen_x = (100 / game._xscale) * game._x;
screen_y = (100 / game._xscale) * game._y;
prev_limit_right = limit_right;
limit_left = -screen_x;
limit_right = scr_size_x - screen_x;
limit_top = -screen_y;
limit_bottom = scr_size_y - screen_y;
scroll_left = limit_right - (scr_size_x / 2.7);
scroll_right = limit_right - (scr_size_x / 1.5);
center_x = _root.limit_left + (_root.scr_size_x / 2);
center_y = _root.limit_top + (_root.scr_size_y / 2);
if (pause_game != true) {
blur = Math.abs(game.bg._x - last_bg_x) / 2;
if (graphics_fx == false) {
blur = 0;
}
gfx_foreground[0] = new flash.filters.BlurFilter(blur, 0, 1);
if (int(gfx_redraw) < 1) {
if (blur != last_blur) {
game.foreground.filters = gfx_foreground;
}
last_blur = blur;
gfx_redraw = 3;
} else {
gfx_redraw--;
}
last_bg_x = game.bg._x;
bmp.colorTransform(new flash.geom.Rectangle(0, 0, 1000, 1000), new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, -20));
if (graphics_fx == false) {
game.trails._visible = false;
game.mid_bg._visible = false;
bg.sun_flare._visible = false;
game.fg.fx_clouds._visible = false;
} else {
game.trails._visible = true;
game.mid_bg._visible = true;
bg.sun_flare._visible = true;
game.fg.fx_clouds._visible = true;
}
}
if (cinema != true) {
time++;
}
if (kills_total < kills) {
kills_total++;
}
if (Math.floor(score / 10000) > score_rewards) {
score_rewards++;
lives++;
_root.s_item3.start();
}
if (shycons >= 50) {
shycons = 0;
lives++;
_root.s_item3.start();
}
if (Key.isDown(13) || (Key.isDown(27))) {
if ((press_pause != true) && (pause_allow == true)) {
if (pause_game == true) {
hud_pause.gotoAndStop(1);
pause_game = false;
} else {
hud_pause.gotoAndStop(2);
pause_game = true;
}
}
press_pause = true;
} else {
press_pause = false;
}
if (Key.isDown(Key.getCode())) {
if (press_anykey != true) {
f_cheat(Key.getCode());
}
press_anykey = true;
} else {
press_anykey = false;
}
}
pause_allow = true;
pause_game = false;
cinema = false;
arena = false;
timetrial = false;
mask = true;
time = 0;
shycons_level = 0;
kills = 0;
kills_total = 0;
enemies_total = 0;
speed = 5;
speed_punch = 3;
speed_jump_max = 15;
speed_jump = speed_jump_max;
speed_fall = 14;
speed_drop = 20;
speed_hit = 7;
speed_rescue = 20;
speed_cloud = 13;
speed_item = 9;
speed_spike = 17;
speed_mummy = 2;
speed_shit = 10;
speed_bloodball = 9;
speed_bean = 2;
speed_bean_hop = 13;
speed_bean_roll = 7;
speed_bean_fall = 17;
speed_bean_sleep = 5;
speed_bean_sleep_bloodball = 7;
speed_dimkin_brave = 4;
speed_dimkin_brave_fall = 12;
speed_bloatling = 3;
speed_weltling = 4;
speed_weltking_maggot = 10;
speed_weltking_bloodball = 8;
speed_nibble = 3;
speed_gib = 8;
delay_attack = 60;
distance_rescue = 250;
scrolling = true;
scrolling_vert = true;
limit_right = 246;
limit_left = -246;
limit_top = -192;
limit_bottom = 192;
init_tint = false;
level_tint = true;
speed_cam = 3;
cam_air = false;
cam_zoom = 100;
cam_zoom_temp = 0;
cam_lock = false;
gib_set1 = new Array();
gib_set1 = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
gib_set2 = new Array();
gib_set2 = [3, 6, 9, 10, 11];
gib_set3 = new Array();
gib_set3 = [12, 13, 14];
objects = new Array();
objects2 = new Array();
spikes = new Array();
info = new Array();
input_cheat = "";
l_keys = new Array();
l_keys[81] = "q";
l_keys[87] = "w";
l_keys[69] = "e";
l_keys[82] = "r";
l_keys[84] = "t";
l_keys[89] = "y";
l_keys[85] = "u";
l_keys[73] = "i";
l_keys[79] = "o";
l_keys[80] = "p";
l_keys[65] = "a";
l_keys[83] = "s";
l_keys[68] = "d";
l_keys[70] = "f";
l_keys[71] = "g";
l_keys[72] = "h";
l_keys[74] = "j";
l_keys[75] = "k";
l_keys[76] = "l";
l_keys[90] = "z";
l_keys[88] = "x";
l_keys[67] = "c";
l_keys[86] = "v";
l_keys[66] = "b";
l_keys[78] = "n";
l_keys[77] = "m";
base_speed = speed;
stats();
stopAllSounds();
gotoAndStop((("level" + chapter) + "-") + level_current);
if (challenge_mode > 0) {
gotoAndStop("challenge" + challenge_mode);
}
Frame 6
function level_events() {
if (game.peashy.alive != false) {
if (Key.isDown(39) || (Key.isDown(37))) {
tute_walk = true;
}
if (Key.isDown(40)) {
tute_duck = true;
}
if (Key.isDown(38)) {
tute_lookup = true;
}
if (Key.isDown(83)) {
tute_spikes = true;
}
if (game.peashy.rolling == true) {
tute_roll = true;
}
if (game.peashy.jumping == true) {
tute_jump = true;
}
if (game.peashy.attack_drop == true) {
tute_crate = true;
}
}
if (tute_walk == false) {
info_box.txt = "To walk, hold LEFT or RIGHT.";
} else if (((tute_duck == false) || (tute_lookup == false)) && (Math.abs(-100 - game.bg._x) < 300)) {
info_box.txt = "To duck, hold DOWN. This is good for avoiding enemies. Hold UP to look up and get a greater view of your surroundings.";
} else if (Math.abs(-900 - game.bg._x) < 200) {
info_box.txt = "This is a Dumpling. Stomp on this creature to kill it. Press 'A' to jump. Hold the button down longer to jump higher, and press again for a double jump. Kill 7 enemies in a row without taking damage to go into Blood Lust mode!";
} else if (Math.abs(-1800 - game.bg._x) < 100) {
info_box.txt = "These are Shycons. Collect 50 of these strange little treasures to earn an Extra Life.";
} else if ((Math.abs(-2700 - game.bg._x) < 200) && (tute_crate == false)) {
info_box.txt = "This is an Ammo Pod. Crack it open to collect spikes for ammo. Hold DOWN and press 'A' while in the air to do a Body-Slam. These make good attacks, and can kill tough enemies.";
} else if (((Math.abs(-2800 - game.bg._x) < 200) && (ammo > 0)) && (tute_spikes == false)) {
info_box.txt = "You got some spikes! Throw them at enemies by pressing 'S'. These can be thrown downwards by holding DOWN while in the air, and upwards with UP. Spikes can also sink into soft surfaces, to create temporary platforms.";
} else if ((Math.abs(-5300 - game.bg._x) < 200) && (tute_mask == false)) {
info_box.txt = "This is a Spare Mask. Without a mask, one hit from an enemy will KILL YOU.";
} else if (Math.abs(-8800 - game.bg._x) < 200) {
info_box.txt = "Be on the lookout for hidden areas. Special items can often be found in these places.";
} else if ((Math.abs(-10100 - game.bg._x) < 200) && (tute_roll == false)) {
info_box.txt = "To roll through this tiny passage press down while running. Rolls can also be used to dodge enemy attacks.";
} else {
info_box.txt = "";
}
}
game_x = game._x;
game_y = game._y;
level_limit_right = -12000;
level_limit_left = 400;
level_limit_bottom = game.bg._y;
level_limit_top = 600;
bg_y_default = game.bg._y;
sun_position = game.bg._y + 300;
scrolling = true;
scrolling_vert = true;
cam = true;
_root.game.peashy.gotoAndStop("cinema_stand");
tute_walk = false;
tute_crate = false;
tute_spikes = false;
tute_mask = false;
tute_duck = false;
tute_lookup = false;
tute_roll = false;
tute_jump = false;
_root.play_music("level1");
Instance of Symbol 1370 MovieClip "game" in Frame 6
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 7
function level_events() {
}
game_x = game._x;
game_y = game._y;
level_limit_right = -8450;
level_limit_left = 0;
level_limit_bottom = game.bg._y;
level_limit_top = 1100;
bg_y_default = game.bg._y;
sun_position = game.bg._y + 100;
scrolling_vert = true;
scrolling = true;
cam = true;
level_tint = c_dusk;
game.tint = new Color(game);
bg.tint = new Color(bg);
_root.play_music("level1");
_root.game.peashy.gotoAndStop("cinema_stand");
Instance of Symbol 1571 MovieClip "game" in Frame 7
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 8
function level_events() {
if (Math.abs(-4900 - game.bg._x) < 150) {
info_box.txt = "To wall-jump, press against the wall, hold up, and then jump. Wall-jump back and forth to climb higher and higher.";
}
}
game_x = game._x;
game_y = game._y;
level_limit_right = -5600;
level_limit_left = game.bg._x;
level_limit_bottom = -21;
level_limit_top = 3500;
bg_y_default = game.bg._y;
sun_position = game.bg._y + 100;
scrolling_vert = true;
scrolling = true;
cam = true;
_root.set_tint("init", c_dusk, c_night);
_root.play_music("level1");
_root.game.peashy.gotoAndStop("cinema_stand");
Instance of Symbol 1620 MovieClip "game" in Frame 8
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 9
function level_events() {
scroll(1, "hori");
}
game_x = game._x;
game_y = game._y;
level_limit_right = -9000;
level_limit_left = game.bg._x + 400;
level_limit_top = 800;
level_limit_bottom = game.bg._y;
bg_y_default = game.bg._y;
cam = true;
scrolling = true;
scrolling_vert = true;
sun_position = game.bg._y + 100;
_root.play_music("level1");
_root.game.peashy.gotoAndStop("cinema_stand");
level_tint = false;
_root.set_tint("init", c_night);
Instance of Symbol 1642 MovieClip "game" in Frame 9
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 10
function level_events() {
}
game_x = game._x;
game_y = game._y;
level_limit_right = -8900;
level_limit_left = game.bg._x + 400;
level_limit_top = 800;
level_limit_bottom = game.bg._y;
bg_y_default = game.bg._y;
cam = true;
scrolling = true;
scrolling_vert = true;
sun_position = game.bg._y + 100;
_root.play_music("level1");
_root.game.peashy.gotoAndStop("cinema_stand");
level_tint = false;
_root.set_tint("init", c_night);
Instance of Symbol 1709 MovieClip "game" in Frame 10
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 11
function level_events() {
}
game_x = game._x;
game_y = game._y;
level_limit_right = -13300;
level_limit_left = game.bg._x;
level_limit_top = 1500;
level_limit_bottom = game.bg._y - 700;
bg_y_default = game.bg._y;
cam = true;
scrolling = true;
scrolling_vert = true;
sun_position = game.bg._y + 100;
_root.play_music("level2");
_root.game.peashy.gotoAndStop("cinema_stand");
level_tint = false;
_root.set_tint("init", c_night);
Instance of Symbol 1737 MovieClip "game" in Frame 11
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 12
function level_events() {
if (_root.game.bg._y <= _root.level_limit_bottom) {
_root.level_limit_right = -15000;
}
}
game_x = game._x;
game_y = game._y;
level_limit_right = game.bg._x;
level_limit_left = game.bg._x + 1360;
level_limit_bottom = -2650;
level_limit_top = game.bg._y + 500;
bg_y_default = game.bg._y;
sun_position = game.bg._y + 100;
scrolling_vert = true;
scrolling = true;
cam = true;
_root.play_music("level2");
_root.game.peashy._xscale = -100;
_root.game.peashy.air = true;
Instance of Symbol 1817 MovieClip "game" in Frame 12
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 13
function level_events() {
if (game.bg._x < -2400) {
level_limit_bottom = -700;
} else {
level_limit_bottom = -1500;
}
if (Math.abs(-3600 - game.bg._x) < 200) {
info_box.txt = "Boulders can be quite useful. Press against them to push them. Jump on top to hitch a ride!";
} else {
info_box.txt = "";
}
}
game_x = game._x;
game_y = game._y;
level_limit_right = -8100;
level_limit_left = game.bg._x;
level_limit_top = game.bg._y + 500;
bg_y_default = game.bg._y;
sun_position = game.bg._y + 100;
scrolling_vert = true;
scrolling = true;
cam = true;
_root.play_music("level3");
_root.game.peashy.gotoAndStop("cinema_stand");
Instance of Symbol 1846 MovieClip "game" in Frame 13
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 14
function level_events() {
}
game_x = _root.game._x;
game_y = _root.game._y;
level_limit_right = -5000;
level_limit_left = game.bg._x;
level_limit_top = 3500;
level_limit_bottom = game.bg._y;
bg_y_default = game.bg._y;
sun_position = game.bg._y + 500;
cam = true;
scrolling = true;
scrolling_vert = true;
_root.set_tint("init", c_dusk2, c_night);
_root.play_music("level3");
_root.game.peashy.gotoAndStop("cinema_stand");
Instance of Symbol 2114 MovieClip "game" in Frame 14
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 15
function level_events() {
kills = 0;
cam_zoom = 50;
if ((random(30) == 1) && (arena_enemies < 5)) {
arena_enemies++;
s_x = arena_spawn_x;
if (random(2) == 1) {
s_x = s_x * -1;
}
if ((random(8) == 1) && (arena_spawn_type > 2)) {
_root.spawn_object("bg:dimkin_brave", s_x, arena_spawn_y, 100, 0);
} else if (random(3) == 1) {
_root.spawn_object("bg:nibble", s_x, arena_spawn_y, 100, 0);
} else if ((random(5) == 1) && (arena_spawn_type > 1)) {
_root.spawn_object("bg:weltking_maggot", s_x, arena_spawn_y - 200, 100, 0);
} else {
_root.spawn_object("bg:bean2", s_x, arena_spawn_y, 100, 0);
}
arena_spawn_type = arena_spawn_type + 0.1;
}
if (arena_kills == 20) {
arena_kills = 0;
_root.spawn_object("bg:item_mask", -150 + random(300), -700, 100, 0);
}
}
arena = true;
arena_kills = 0;
arena_spawn_type = 0;
arena_enemies = 0;
arena_spawn_x = 600;
arena_spawn_y = -460;
game_x = _root.game._x;
game_y = _root.game._y;
bg_y_default = game.bg._y;
cam = true;
scrolling = false;
scrolling_vert = false;
lives = 0;
ammo = 0;
_root.play_music("level3");
Instance of Symbol 2118 MovieClip "game" in Frame 15
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 16
function level_events() {
if (game.peashy.air == true) {
if (peashy_fall_timer > 180) {
level_limit_bottom = game.bg._y;
}
peashy_fall_timer++;
} else {
peashy_fall_timer = 0;
}
}
timetrial = true;
game_x = _root.game._x;
game_y = _root.game._y;
level_limit_right = -17800;
level_limit_left = game.bg._x;
level_limit_top = 800;
level_limit_bottom = -4600;
bg_y_default = game.bg._y;
cam = true;
scrolling = true;
scrolling_vert = true;
ammo = 0;
peashy_fall_timer = 0;
_root.play_music("level3");
Instance of Symbol 2128 MovieClip "game" in Frame 16
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 17
function level_events() {
}
game_x = _root.game._x;
game_y = _root.game._y;
level_limit_right = -30000;
level_limit_left = game.bg._x;
level_limit_top = game.bg._y + 1000;
level_limit_bottom = game.bg._y;
bg_y_default = game.bg._y;
cam = true;
scrolling = true;
scrolling_vert = true;
Instance of Symbol 2131 MovieClip "game" in Frame 17
onClipEvent (load) {
_root.engine_init();
}
onClipEvent (enterFrame) {
_root.engine();
}
Frame 18
gotoAndStop ("end_level");
Frame 19
nextFrame();
Frame 20
level = 1;
lives = 4;
ammo = 0;
score = 0;
score_rewards = 0;
shycons = 0;
Frame 21
prevFrame();
Frame 23
prevFrame();
Frame 24
nextFrame();
Symbol 70 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent != _root) {
if (_root.pause_game == true) {
if (p != true) {
_parent.stop();
}
p = true;
} else {
if (p == true) {
_parent.play();
}
p = false;
}
}
};
Symbol 71 MovieClip [fx_screen_flash2] Frame 7
this.removeMovieClip();
Symbol 72 MovieClip [fx_screen_flash] Frame 7
this.removeMovieClip();
Symbol 73 MovieClip Frame 1
if (_root.paused == true) {
_parent.paused = true;
_parent.stop();
} else if (_parent.paused == true) {
_parent.paused = false;
_parent.play();
}
Symbol 73 MovieClip Frame 2
gotoAndPlay (1);
Symbol 74 MovieClip [fx_screen_shake] Frame 1
if (Math.abs(_rotation) > 0) {
speed_x = _rotation;
speed_y = _rotation;
_rotation = 0;
}
_root.camera("shake_x", speed_x);
_root.camera("shake_y", speed_y);
Symbol 74 MovieClip [fx_screen_shake] Frame 2
_root.camera("shake_x", -speed_x);
_root.camera("shake_y", -speed_y);
Symbol 74 MovieClip [fx_screen_shake] Frame 3
_root.camera("shake_x", -speed_x);
_root.camera("shake_y", -speed_y);
Symbol 74 MovieClip [fx_screen_shake] Frame 4
_root.camera("shake_x", speed_x);
_root.camera("shake_y", speed_y);
speed_x--;
if (speed_y < 0) {
speed_y++;
} else {
speed_y--;
}
speed_y = speed_y * -1;
if ((Math.abs(speed_x) <= 0) && (Math.abs(speed_y) <= 0)) {
this.removeMovieClip();
}
Symbol 85 MovieClip [fx_bloodball_drip] Frame 1
b._x = -15 + random(30);
_yscale = _xscale;
Symbol 85 MovieClip [fx_bloodball_drip] Frame 13
this.removeMovieClip();
Symbol 92 MovieClip [bean5_bloodball] Frame 1
width = 7;
height = 7;
this.onEnterFrame = function () {
if (_root.pause_game != true) {
_y = (_y + _root.speed_bean_sleep_bloodball);
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
peashy_w = _root.game.peashy.width;
x = _x + _parent._x;
y = _y + _parent._y;
if ((((((x + width) > (peashy_x - peashy_w)) && ((x - width) < (peashy_x + peashy_w))) && ((y - height) < peashy_y)) && (y > (peashy_y - _root.game.peashy.height))) && ((_root.game.peashy.invincible != true) && (_root.game.peashy.alive != false))) {
if (x > peashy_x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
this.removeMovieClip();
}
if ((_y + _parent._y) > _root.limit_bottom) {
this.removeMovieClip();
}
}
};
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 5
gotoAndStop (1);
Symbol 113 MovieClip Frame 18
_parent._parent.weltking.maggot_num--;
_parent.removeMovieClip();
Symbol 123 MovieClip Frame 18
_parent._parent.weltking.maggot_num--;
_parent.removeMovieClip();
Symbol 124 MovieClip [weltking_maggot] Frame 1
function die() {
_root.s_splat1.start();
if ((random(2) == 1) && (_currentframe == 4)) {
_root.spawn_object("bg:item_ammo1", _x, _y, 100, 0);
}
_root.manage_objects("delete", _name);
if (_root.arena == true) {
_root.arena_kills++;
_root.arena_enemies--;
}
}
this.cacheAsBitmap = true;
width = 16;
height = 32;
speed_x = ((_root.game.peashy._x - (_x + _parent._x)) / 250) * (_root.speed_weltking_maggot - random(4));
if (_root.arena != true) {
if (speed_x > -2) {
speed_x = -2;
} else if (speed_x < -20) {
speed_x = -20;
}
} else if (speed_x > 15) {
speed_x = 15;
} else if ((speed_x > 0) && (speed_x < 10)) {
speed_x = 10;
} else if (speed_x < -15) {
speed_x = -15;
} else if ((speed_x < 0) && (speed_x > -10)) {
speed_x = -10;
}
speed_y = -_root.speed_weltking_maggot;
bounces = random(2);
if (_root.arena == true) {
bounces = 0;
}
platforms = true;
_root.manage_objects("add", _name);
_root.enemies_total++;
this.onEnterFrame = function () {
if (_root.pause_game != true) {
if (_currentframe < 3) {
if (_currentframe == 1) {
maggot.maggot._rotation = maggot.maggot._rotation - Math.abs(speed_y);
speed_y++;
if ((air == false) && (speed_y > 0)) {
if (bounces == 0) {
speed_x = 0;
speed_y = 0;
width = width * 2;
gotoAndStop ("walk");
} else {
speed_x = speed_x / 3;
speed_y = speed_y / 1.3;
speed_y = -Math.abs(speed_y);
bounces--;
air = true;
maggot.play();
}
}
} else if (_root.arena != true) {
if (dir == "right") {
_xscale = -100;
speed_x = _root.speed_weltking_maggot / 4;
if ((_x + width) > platform_edge_right) {
dir = "left";
}
} else {
_xscale = 100;
speed_x = (-_root.speed_weltking_maggot) / 4;
if ((_x - width) < platform_edge_left) {
dir = "right";
}
}
} else if ((x - width) > peashy_x) {
_xscale = 100;
speed_x = (-_root.speed_weltking_maggot) / 4;
} else if ((x + width) < peashy_x) {
_xscale = -100;
speed_x = _root.speed_weltking_maggot / 4;
} else {
speed_x = 0;
}
_x = (_x + speed_x);
_y = (_y + speed_y);
x = _x + _parent._x;
y = _y + _parent._y;
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
peashy_w = _root.game.peashy.width;
if (((((x + width) > (peashy_x - peashy_w)) && ((x - width) < (peashy_x + peashy_w))) && ((y - height) < peashy_y)) && (y > (peashy_y - _root.game.peashy.height))) {
if (((((y > peashy_y) && (_root.game.peashy.air != false)) && (_root.game.peashy.jumping != true)) && (_root.game.peashy.alive != false)) && (_currentframe == 2)) {
if (_root.game.peashy.attack_drop != true) {
_root.jump(20);
_root.game.peashy.gotoAndStop("stomp");
}
gotoAndStop ("die_land");
} else if ((_root.game.peashy.invincible != true) && (_root.game.peashy.alive != false)) {
if (x > peashy_x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
if (_currentframe == 1) {
gotoAndStop ("die_air");
}
}
}
for (spike in _root.game.objects) {
if ((substring(_root.game.objects[spike]._name, 0, 5)) == "spike") {
if ((_root.game.objects[spike]._currentFrame == 1) || (_root.game.objects[spike]._currentframe == _root.game.objects[spike]._totalframes)) {
spike_x = _root.game.objects[spike]._x + _root.game.objects._x;
spike_y = _root.game.objects[spike]._y + _root.game.objects._y;
spike_width = _root.game.objects[spike].width;
spike_height = _root.game.objects[spike].height;
if ((spike_x + spike_width) > (x - width)) {
if ((spike_x - spike_width) < (x + width)) {
if (spike_y > (y - height)) {
if ((spike_y - spike_height) < y) {
if (_root.game.objects[spike].type == 2) {
_root.game.objects[spike].boom = true;
_root.game.objects[spike].gotoAndStop("bomb");
} else {
_root.game.objects[spike].removeMovieClip();
}
if (air == true) {
gotoAndStop ("die_air");
} else {
gotoAndStop ("die_land");
}
}
}
}
}
}
}
}
if ((_y + _parent._y) > _root.limit_bottom) {
_parent.weltking.maggot_num--;
_root.manage_objects("delete", _name);
this.removeMovieClip();
}
}
}
};
stop();
Symbol 124 MovieClip [weltking_maggot] Frame 2
_root.manage_objects("delete", _name);
Symbol 124 MovieClip [weltking_maggot] Frame 3
die();
Symbol 124 MovieClip [weltking_maggot] Frame 4
die();
Symbol 127 MovieClip Frame 1
if (_root.cheat_ninjastars == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
this.onEnterFrame = function () {
if (_root.cheat_ninjastars == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 132 MovieClip Frame 1
gotoAndStop(_parent._parent.rand_gut);
Symbol 133 MovieClip Frame 1
stop();
gotoAndStop(_parent.type);
Symbol 134 MovieClip Frame 1
if (_root.pause_game != true) {
if (_parent.dir != "down") {
if (_parent._xscale > 0) {
if (_parent.type != 2) {
_parent.speed_x = _root.speed_spike;
}
if ((_parent._x + _parent._parent._x) > (_root.limit_right + 80)) {
_parent.removeMovieClip();
}
} else {
if (_parent.type != 2) {
_parent.speed_x = -_root.speed_spike;
}
if ((_parent._x + _parent._parent._x) < (_root.limit_left - 80)) {
_parent.removeMovieClip();
}
}
if (_parent.speed_y < 0) {
_parent.speed_y = _parent.speed_y + 3;
} else {
_parent.speed_y = _parent.speed_y + 2.5;
}
} else {
if (_parent.speed_y < _root.speed_spike) {
_parent.speed_y++;
}
if ((_parent._y + _parent._parent._y) > _root.limit_bottom) {
_parent.removeMovieClip();
}
}
_parent._x = _parent._x + _parent.speed_x;
_parent._y = _parent._y + _parent.speed_y;
_parent._rotation = _parent._rotation + (_parent.speed_x * 2);
if ((Math.abs(_parent.prev_x - _parent._x) > 3) || (Math.abs(_parent.prev_y - _parent._y) > 3)) {
if (_parent.type == 2) {
trail_clr = 16711680 /* 0xFF0000 */;
} else {
trail_clr = 16777215 /* 0xFFFFFF */;
}
_root.spawn_trail(_parent.prev_x + _parent._parent._x, _parent.prev_y + _parent._parent._y, _parent._x + _parent._parent._x, _parent._y + _parent._parent._y, trail_clr, 100);
_parent.prev_x = _parent._x;
_parent.prev_y = _parent._y;
}
}
Symbol 134 MovieClip Frame 2
gotoAndPlay (1);
Symbol 137 MovieClip Frame 1
if (_root.cheat_ninjastars == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
this.onEnterFrame = function () {
if (_root.cheat_ninjastars == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 139 MovieClip Frame 1
if (_root.cinema != true) {
if (_parent._parent._parent._name == "game") {
x = (_x + _parent._x) + _parent._parent._x;
y = (_y + _parent._y) + _parent._parent._y;
} else {
x = ((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent._x;
y = ((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y;
}
w = _width / 2;
h = _height / 2;
if (((((x + w) > (_root.limit_left - 100)) && ((x - w) < (_root.limit_right + 100))) && ((y - h) < (_root.limit_bottom + 200))) && ((y + h) > (_root.limit_top - 100))) {
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
if (((x + w) > peashy_x) && ((x - w) < peashy_x)) {
new_y = y;
if (_height > 5) {
if ((dir == "left") || ((peashy_x > x) && (dir != "right"))) {
slope = ((x - peashy_x) * _height) / _width;
} else if ((dir == "right") || ((peashy_x < x) && (dir != "left"))) {
slope = ((peashy_x - x) * _height) / _width;
}
new_y = y - slope;
}
}
if (peashy == true) {
_root.game.peashy._x = _root.game.peashy._x + (_x - last_x);
_root.game.peashy._y = new_y;
_root.game.peashy.air = false;
}
if (((((((x + w) > peashy_x) && ((x - w) < peashy_x)) && ((new_y - _root.speed_jump_max) < peashy_y)) && (peashy_y < (new_y + _root.speed_jump_max))) && (_root.game.peashy.jumping != true)) && (_visible == 1)) {
_root.game.peashy.air = false;
if (((_height > 5) || (_root.game.peashy.on_hill != true)) || (peashy_y > y)) {
_root.game.peashy._y = new_y;
}
if (peashy != true) {
peashy = true;
_root.game.peashy.platform_contact++;
}
if (surface == "sand") {
if (((footprint_x + 25) < (peashy_x - x)) || ((footprint_x - 25) > (peashy_x - x))) {
footprint_x = peashy_x - x;
peashy_y = _root.game.peashy._y;
_root.particle("bg_terrain_fx", "oval", 0, 20, (peashy_x - _root.game.bg._x) - _root.game.bg.terrain_fx._x, (peashy_y - _root.game.bg._y) - _root.game.bg.terrain_fx._y, 100, 0, 0, 0, 100);
}
}
if (_height > 5) {
_root.game.peashy.on_hill = true;
}
_root.game.peashy.platform_edge_right = x + w;
_root.game.peashy.platform_edge_left = x - w;
} else if (peashy == true) {
peashy = false;
if (_height > 5) {
_root.game.peashy.on_hill = false;
}
if (_root.game.peashy.platform_contact > 0) {
_root.game.peashy.platform_contact--;
}
if (_root.game.peashy.platform_contact == 0) {
_root.game.peashy.air = true;
}
}
}
}
last_x = _x;
last_y = new_y;
last_w = _width / 2;
last_h = _height / 2;
Symbol 139 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 139 MovieClip in Symbol 140 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
drop_off = "yes";
}
Symbol 140 MovieClip Frame 71
_parent.removeMovieClip();
Symbol 141 MovieClip Frame 71
_parent.removeMovieClip();
Symbol 142 MovieClip Frame 71
_parent.removeMovieClip();
Symbol 183 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.boom == true) {
gotoAndPlay ("boom");
}
};
Symbol 183 MovieClip Frame 10
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 30
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 43
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 51
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 57
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 61
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 63
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 65
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 67
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 69
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 71
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 73
_root.s_heartbeat.start();
Symbol 183 MovieClip Frame 75
this.onEnterFrame = function () {
};
_parent._rotation = 0;
_root["s_explode" + (random(2) + 1)].start();
_parent.width = _parent.explode_width;
_parent.height = 300;
_parent.boom = true;
Symbol 183 MovieClip Frame 76
_parent.width = 0;
_parent.height = 0;
Symbol 183 MovieClip Frame 97
_parent.removeMovieClip();
Symbol 184 MovieClip [spike] Frame 1
function bounce_off() {
bounced = true;
dir = "down";
if (speed_x == 0) {
if (_xscale > 0) {
speed_x = -6;
} else {
speed_x = 6;
}
} else {
speed_x = (speed_x * -1) / 3;
if (Math.abs(speed_x) < 1) {
speed_x = 0;
}
}
speed_y = -5;
_root.s_metal1.start();
_root.spawn_object("fx_spark", _x + _parent._x, _y + _parent._y, 100, 0);
}
if ((dir != "down") && (dir != "up")) {
speed_y = -_root.speed_spike;
} else {
speed_x = 0;
if (dir == "up") {
speed_y = (-_root.speed_spike) * 1.4;
} else {
speed_y = _root.speed_spike * 1.4;
}
if (_xscale > 0) {
_rotation = 90;
} else {
_rotation = -90;
}
}
if (_root.kills >= 7) {
type = 2;
rand_gut = random(4) + 1;
width = 20;
height = 20;
explode_width = 200;
if (_xscale > 0) {
speed_x = _root.speed_spike / 2;
} else {
speed_x = (-_root.speed_spike) / 2;
}
speed_y = speed_y * (15 / (10 + random(3)));
} else {
type = 1;
width = 0;
height = 0;
}
prev_x = _x;
prev_y = _y;
platforms = true;
walls = true;
stop();
Symbol 184 MovieClip [spike] Frame 2
_rotation = 0;
Symbol 184 MovieClip [spike] Frame 3
_rotation = 0;
Symbol 184 MovieClip [spike] Frame 4
_rotation = 0;
Symbol 184 MovieClip [spike] Frame 5
if (boom == true) {
spike.gotoAndPlay("boom");
spike.explosion.gotoAndPlay("air_boom");
}
Symbol 193 MovieClip Frame 1
if (_root.pause_game != true) {
if (_parent._y > (-_root.game_y)) {
_parent._y = _parent._y - 10;
} else {
_parent.removeMovieClip();
}
}
Symbol 193 MovieClip Frame 2
gotoAndPlay (1);
Symbol 197 MovieClip Frame 1
if (_root.pause_game != true) {
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
if ((x > (_root.limit_right + 100)) || (x < (_root.limit_left - 100))) {
_parent.removeMovieClip();
} else if (((((((x + 30) > peashy_x) && ((x - 30) < peashy_x)) && ((y + 10) > (peashy_y - _root.game.peashy.height))) && ((y - 10) < peashy_y)) && (_root.game.peashy.alive != false)) && (_root.game.peashy.invincible != true)) {
_root.jump(18);
if (_parent._xscale < 0) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
_parent.gotoAndStop("splat");
} else if (_parent._xscale > 0) {
_parent._x = _parent._x + _root.speed_shit;
} else {
_parent._x = _parent._x - _root.speed_shit;
}
}
Symbol 197 MovieClip Frame 2
gotoAndPlay (1);
Symbol 203 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 204 MovieClip [shit] Frame 1
stop();
Symbol 211 MovieClip [fx_blood1] Frame 13
this.removeMovieClip();
Symbol 218 MovieClip [fx_blood2] Frame 13
stop();
Symbol 226 MovieClip [fx_dust1] Frame 15
this.removeMovieClip();
Symbol 234 MovieClip [fx_dust2] Frame 15
this.removeMovieClip();
Symbol 239 MovieClip [fx_dust3] Frame 9
this.removeMovieClip();
Symbol 244 MovieClip [fx_shycon_collect] Frame 9
this.removeMovieClip();
Symbol 247 MovieClip [fx_mask_collect1] Frame 9
this.removeMovieClip();
Symbol 248 MovieClip [fx_gibs] Frame 1
i = 0;
while (i < _rotation) {
_root.spawn_object("fx_gib", _x + _parent._x, _y + _parent._y, 100, 0);
_root.game.objects["fx_gib_" + _root.game.i].set = _xscale;
i++;
}
if (random(3) == 1) {
_root.spawn_object("glass:fx_blood_screensplat", (_x + _parent._x) + (_root.game._x - _root.glass._x), (_y + _parent._y) + (_root.game._y - _root.glass._y), 100, 0);
}
this.removeMovieClip();
Symbol 251 MovieClip Frame 1
if (_root.pause_game != true) {
if (_parent.active != false) {
_parent._x = _parent._x + _parent.speed_x;
_parent._y = _parent._y + _parent.speed_y;
_parent.speed_y = _parent.speed_y + 0.5;
_parent._rotation = _parent._rotation + _parent.speed_x;
if (_parent.air == false) {
if (_parent.speed_y > (_root.speed_gib / 2)) {
_parent.speed_x = _parent.speed_x / 1.5;
_parent.speed_y = _parent.speed_y / 2.5;
_parent.speed_y = _parent.speed_y * -1;
_parent.air = true;
} else {
_parent.active = false;
}
}
} else {
_parent.platforms = false;
if (timer == 0) {
_parent._alpha = _parent._alpha - 3;
} else if (timer > 0) {
timer--;
} else {
timer = 90;
}
}
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
_root.spawn_trail(_parent.prev_x + _parent._parent._x, _parent.prev_y + _parent._parent._y, x, y, 13369344, 40);
_parent.prev_x = _parent._x;
_parent.prev_y = _parent._y;
if ((((x > _root.limit_right) || (x < _root.limit_left)) || (y > _root.limit_bottom)) || (_parent._alpha < 1)) {
_parent.removeMovieClip();
}
}
Symbol 251 MovieClip Frame 2
gotoAndPlay (1);
Symbol 264 MovieClip [fx_gib] Frame 1
this.cacheAsBitmap = true;
_x = ((_x - 20) + random(40));
_y = ((_y - 10) + random(20));
if (_x > 0) {
speed_x = random(_root.speed_gib) + 1;
} else {
speed_x = -(random(_root.speed_gib) + 1);
}
if (_y > 0) {
speed_y = random(_root.speed_gib) + 1;
} else {
speed_y = -(random(_root.speed_gib) + 1);
}
prev_x = _x;
prev_y = _y;
platforms = true;
gotoAndStop(_root["gib_set" + set][random(_root["gib_set" + set].length)]);
Symbol 265 MovieClip [particle_engine] Frame 1
if (_root.pause_game != true) {
_parent._x = _parent._x + _parent.speed_x;
_parent._y = _parent._y + _parent.speed_y;
_parent.speed_y = _parent.speed_y + (_parent.weight / 10);
if (_parent.lifespan < 1) {
_parent._alpha = _parent._alpha - 3;
if (_parent._alpha < 1) {
if ((substring(_parent._parent._name, 1, 2)) == "fx") {
_parent._parent.particles--;
if (_parent._parent.particles < 1) {
_parent._parent.removeMovieClip();
}
}
_parent.removeMovieClip();
}
} else {
_parent.lifespan--;
}
}
Symbol 265 MovieClip [particle_engine] Frame 2
call(1);
Symbol 266 MovieClip [fx_blood_particle] Frame 1
i = 1;
while (i <= _rotation) {
x = -5 + random(10);
if (x > 0) {
speed_x = random(4);
} else {
speed_x = -random(4);
}
_root.particle(_name, 3, 9903132, 80 + random(20), x, -5 + random(10), 10 + random(50), speed_x, -(10 + random(5)), 14, 20);
i++;
}
_rotation = 0;
Symbol 283 MovieClip [fx_dust6] Frame 19
this.removeMovieClip();
Symbol 291 MovieClip [fx_dust5] Frame 15
this.removeMovieClip();
Symbol 299 MovieClip [fx_dust4] Frame 15
this.removeMovieClip();
Symbol 303 MovieClip Frame 1
_parent.amount = 5;
gotoAndStop(random(3) + 1);
Symbol 303 MovieClip Frame 2
_parent.amount = 10;
Symbol 303 MovieClip Frame 3
_parent.amount = 20;
Symbol 304 MovieClip Frame 1
if (_root.pause_game != true) {
if (_parent.air != false) {
_parent._x = _parent._x + _parent.speed_x;
_parent._y = _parent._y + _parent.speed_y;
_parent.speed_y = _parent.speed_y + 1;
} else {
_parent.speed_y = 0;
_parent.platforms = false;
if (_parent.hitTest(_root.game.peashy) && (_root.game.peashy.alive != false)) {
i = _parent._currentFrame;
if (i == 1) {
_root.ammo = _root.ammo + _parent.amount;
} else {
_root.spawn_object("glass:fx_item_collect", (_parent._x + _parent._parent._x) + (_root.game._x - _root.glass._x), (_parent._y + _parent._parent._y) + (_root.game._y - _root.glass._y), 100, i - 1);
}
_parent.swapDepths(0);
_parent.removeMovieClip();
}
}
}
Symbol 304 MovieClip Frame 2
gotoAndPlay (1);
Symbol 314 MovieClip [item] Frame 1
this.cacheAsBitmap = true;
scroll = true;
platforms = true;
speed_x = ((-_root.speed_item) + random(_root.speed_item * 2)) / 2;
speed_y = -_root.speed_item;
gotoAndStop(item);
Symbol 326 MovieClip Frame 1
stop();
Symbol 328 MovieClip [fx_score_gain] Frame 1
if (_xscale >= 1000) {
amount = "" + _xscale;
} else if (_xscale >= 100) {
amount = "0" + _xscale;
} else if (_xscale >= 10) {
amount = "00" + _xscale;
} else {
amount = "000" + _xscale;
}
i = 0;
while (i < 4) {
if ((amount.charAt(i) == "0") && ((i < 1) || (exp[i]._visible == false))) {
exp[i + 1]._visible = false;
}
exp[i + 1].gotoAndStop(amount.charAt(i));
if (amount.charAt(i) != "0") {
exp[i + 1].nextFrame();
}
i++;
}
_xscale = 100;
Symbol 328 MovieClip [fx_score_gain] Frame 30
this.removeMovieClip();
Symbol 335 MovieClip [fx_spark] Frame 13
this.removeMovieClip();
Symbol 342 MovieClip Frame 8
_parent._name = "";
Symbol 342 MovieClip Frame 61
_parent.removeMovieClip();
Symbol 349 MovieClip Frame 7
_parent._name = "";
Symbol 349 MovieClip Frame 61
_parent.removeMovieClip();
Symbol 356 MovieClip Frame 7
_parent._name = "";
Symbol 356 MovieClip Frame 61
_parent.removeMovieClip();
Symbol 363 MovieClip Frame 7
_parent._name = "";
Symbol 363 MovieClip Frame 61
_parent.removeMovieClip();
Symbol 364 MovieClip [fx_blood_screensplat] Frame 1
gotoAndStop(random(4) + 1);
Symbol 366 MovieClip [item_ammo2] Frame 1
amount = 10;
air = false;
Symbol 367 MovieClip [item_ammo3] Frame 1
amount = 15;
air = false;
Symbol 370 MovieClip Frame 16
stop();
Symbol 381 MovieClip Frame 32
if (ini != true) {
ini = true;
dest_x = 50 - _root.glass._x;
i = 1;
while (_root.hud["spot" + i] == "occupied") {
i++;
}
_root.hud["spot" + i] = "occupied";
dest_y = (i * 75) - _root.glass._y;
}
if ((_parent._x == dest_x) && (_parent._xscale <= 90)) {
if (done) {
gotoAndPlay ("go");
}
} else if (Math.abs(dest_x - _parent._x) > 2) {
_parent._x = _parent._x + ((dest_x - _parent._x) / 5);
} else {
_parent._x = dest_x;
}
if (Math.abs(dest_y - _parent._y) > 2) {
_parent._y = _parent._y + ((dest_y - _parent._y) / 5);
} else {
done = true;
if (_parent._xscale > 85) {
_parent._xscale--;
_parent._yscale = _parent._xscale;
}
}
Symbol 381 MovieClip Frame 33
gotoAndPlay(_currentframe - 1);
Symbol 381 MovieClip Frame 34
item_text.gotoAndStop(_parent._currentFrame);
Symbol 381 MovieClip Frame 82
_root.hud["spot" + i] = false;
_parent.removeMovieClip();
Symbol 384 MovieClip Frame 16
stop();
Symbol 387 MovieClip Frame 16
stop();
Symbol 390 MovieClip Frame 16
stop();
Symbol 393 MovieClip Frame 16
stop();
Symbol 396 MovieClip Frame 16
stop();
Symbol 399 MovieClip Frame 16
stop();
Symbol 402 MovieClip Frame 16
stop();
Symbol 405 MovieClip Frame 16
stop();
Symbol 406 MovieClip [fx_item_collect] Frame 1
frame = _rotation;
_rotation = 0;
_name = "";
gotoAndStop(frame);
Symbol 408 MovieClip Frame 1
if (_root.pause_game != true) {
_parent._x = _parent._x + _parent.speed_x;
_parent._y = _parent._y + _parent.speed_y;
_parent._rotation = _parent._rotation + _parent.speed_x;
_parent.speed_y = _parent.speed_y + 0.5;
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
if ((((x > (_root.limit_right + 100)) || (x < (_root.limit_left - 100))) || (y > (_root.limit_bottom + 100))) || (y < (_root.limit_top - 100))) {
_root.delete_object();
_parent.removeMovieClip();
} else if (_parent.air == false) {
_parent.gotoAndStop("splat_ground");
} else if (((((((x + 30) > _root.game.peashy._x) && ((x - 30) < _root.game.peashy._x)) && ((y + 30) > (_root.game.peashy._y - _root.game.peashy.height))) && ((y - 30) < _root.game.peashy._y)) && (_root.game.peashy.alive != false)) && (_root.game.peashy.invincible != true)) {
_root.hurt();
_parent.gotoAndStop("splat");
}
if (_parent.particle_timer == 0) {
_parent.particle_timer = -1;
_root.particle("fg_terrain_fx", 4, 9903132, 100, (((x - _root.game.fg._x) - _root.game.fg.terrain_fx._x) - 10) + random(20), (y - _root.game.fg._y) - _root.game.fg.terrain_fx._y, 30 + random(70), 0, -((5 + random(2)) / 2), 0, 20);
} else if (_parent.particle_timer > 0) {
_parent.particle_timer--;
} else {
_parent.particle_timer = 2;
}
}
Symbol 408 MovieClip Frame 2
gotoAndPlay (1);
Symbol 414 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 422 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 423 MovieClip [bloodball] Frame 1
this.cacheAsBitmap = true;
_root.manage_objects("add", _name);
platforms = true;
air = true;
speed_x = Math.sin((Math.PI/180) * _rotation) * _root.speed_bloodball;
speed_y = Math.cos((Math.PI/180) * _rotation) * (-_root.speed_bloodball);
stop();
Symbol 423 MovieClip [bloodball] Frame 2
_root.s_splat1.start();
_root.manage_objects("delete", _name);
Symbol 423 MovieClip [bloodball] Frame 3
_rotation = 0;
_root.s_splat1.start();
_root.manage_objects("delete", _name);
Symbol 429 MovieClip [particle4] Frame 11
_parent.removeMovieClip();
Symbol 430 MovieClip [fx_spike_stick] Frame 1
if (dir == "down") {
_rotation = 90;
}
Symbol 434 MovieClip [physics_object] Frame 1
speed_x = xtra3;
speed_y = xtra4;
speed_r = _rotation / 10;
obj._xscale = _xscale;
_xscale = 100;
obj.gotoAndStop(xtra1);
width = _width / 2;
height = _height;
weight = xtra2;
platforms = true;
_root.manage_objects("add", _name);
this.cacheAsBitmap = true;
this.onEnterFrame = function () {
_x = (_x + speed_x);
_y = (_y + speed_y);
obj._rotation = obj._rotation + speed_r;
if (air == false) {
speed_y = speed_y - (weight / 10);
if (speed_y < 1) {
speed_y = 0;
if (speed_x > 1) {
speed_x = speed_x - 0.5;
} else if (speed_x < -1) {
speed_x = speed_x + 0.5;
} else {
speed_x = 0;
}
if (speed_r > 1) {
speed_r = speed_r - 0.5;
} else if (speed_r < -1) {
speed_r = speed_r + 0.5;
} else {
speed_r = 0;
}
} else {
air = true;
speed_y = -Math.abs(speed_y - 1);
}
} else {
speed_y = speed_y + (weight / 10);
}
diff_x = _root.game.peashy._x - _x;
if (_root.game.peashy.attacking == true) {
peashy_width = _root.game.peashy.width * 1.4;
} else {
peashy_width = _root.game.peashy.width;
}
if ((((Math.abs(diff_x) <= (width + peashy_width)) && (_y > _root.game.peashy._y)) && ((_y - height) < _root.game.peashy._y)) && (((diff_x > 0) && (_root.game.peashy._xscale < 0)) || ((diff_x < 0) && (_root.game.peashy._xscale > 0)))) {
if (_root.game.peashy.attacking == true) {
if ((_x > _root.game.peashy._x) && (_root.game.peashy._xscale > 0)) {
speed_x = (speed_x - random(5)) + 5;
} else if ((_x < _root.game.peashy._x) && (_root.game.peashy._xscale < 0)) {
speed_x = (speed_x + random(5)) + 5;
}
speed_y = (speed_y - random(4)) - 8;
air = true;
} else {
peashy_push = _root.game.peashy.speed_x / (weight / 8);
if (Math.abs(peashy_push) > Math.abs(prev_speed_x)) {
speed_x = peashy_push;
}
prev_speed_x = speed_x;
}
speed_r = speed_x;
if (diff_x > 0) {
_root.game.peashy._x = _x + (width + _root.game.peashy.width);
} else if (diff_x < 0) {
_root.game.peashy._x = _x - (width + _root.game.peashy.width);
}
if ((_x + width) > _root.limit_right) {
_x = (_root.limit_right - width);
} else if ((_x - width) < _root.limit_left) {
_x = (_root.limit_left + width);
}
}
if (_y > (_root.limit_bottom + height)) {
this.removeMovieClip();
}
};
Symbol 440 MovieClip [fx_cloud] Frame 1
this.cacheAsBitmap = true;
cloud.gotoAndStop(random(2) + 1);
this.onEnterFrame = function () {
_x = (_x - _root.speed_cloud);
if (((_x + _parent._x) + 500) < _root.limit_left) {
this.removeMovieClip();
}
};
Symbol 446 MovieClip Frame 23
_parent.removeMovieClip();
Symbol 448 MovieClip Frame 23
_parent.removeMovieClip();
Symbol 449 MovieClip [weltking_bloodball] Frame 1
this.cacheAsBitmap = true;
width = 40;
height = 40;
if (_rotation == 0) {
vert = true;
} else if (_rotation == 180) {
drop = true;
}
air = true;
platforms = true;
this.onEnterFrame = function () {
if (_root.pause_game != true) {
if (_currentframe == 1) {
speed_x = Math.sin((Math.PI/180) * _rotation) * _root.speed_weltking_bloodball;
speed_y = Math.cos((Math.PI/180) * _rotation) * (-_root.speed_weltking_bloodball);
_x = (_x + speed_x);
_y = (_y + speed_y);
x = _x + _parent._x;
y = _y + _parent._y;
if (drop != true) {
target_x = _root.game.peashy._x;
target_y = _root.game.peashy._y;
speed_r = _root.speed_weltking_bloodball / 2;
peashy_l = (Math.atan((target_y - y) / (target_x - x)) * 57.2957795130823) - 90;
if (vert != true) {
if (((peashy_l > 0) && (_root.game.peashy._x > x)) || ((peashy_l < 0) && (_root.game.peashy._x < x))) {
speed_r = _root.speed_weltking_bloodball / 3;
if (x < target_x) {
peashy_l = peashy_l + 180;
}
if ((_rotation + speed_r) < peashy_l) {
_rotation = (_rotation + speed_r);
} else if ((_rotation - speed_r) > peashy_l) {
_rotation = (_rotation - speed_r);
}
}
} else if (target_y > y) {
speed_r = _root.speed_weltking_bloodball / 1.5;
if (x < target_x) {
peashy_l = peashy_l + 180;
}
if ((((_rotation - speed_r) > peashy_l) && (((_rotation >= 0) && (peashy_l >= 0)) || ((_rotation <= 0) && (peashy_l <= 0)))) || ((x < target_x) && (_rotation < 0))) {
_rotation = (_rotation - speed_r);
} else if (((_rotation + speed_r) < peashy_l) || ((x > target_x) && (_rotation > 0))) {
_rotation = (_rotation + speed_r);
}
}
}
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
peashy_w = _root.game.peashy.width;
if ((((((x + width) > (peashy_x - peashy_w)) && ((x - width) < (peashy_x + peashy_w))) && ((y - height) < peashy_y)) && (y > (peashy_y - _root.game.peashy.height))) && ((_root.game.peashy.invincible != true) && (_root.game.peashy.alive != false))) {
if (x > peashy_x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
gotoAndStop ("hit_air");
}
if ((((x > (_root.limit_right + 100)) || (x < (_root.limit_left - 100))) || (y > (_root.limit_bottom + 100))) || (y < (_root.limit_top - 100))) {
this.removeMovieClip();
}
if (delay_particle > 0) {
delay_particle--;
} else {
_root.spawn_object("fx_bloodball_drip", _x + _parent._x, _y + _parent._y, 50 + random(50), _rotation);
delay_particle = 2;
}
}
if (air == false) {
gotoAndStop ("hit");
}
}
};
stop();
Symbol 449 MovieClip [weltking_bloodball] Frame 2
_rotation = 0;
Symbol 449 MovieClip [weltking_bloodball] Frame 3
call(2);
Symbol 455 MovieClip [fx_star1] Frame 1
_yscale = _xscale;
Symbol 455 MovieClip [fx_star1] Frame 9
this.removeMovieClip();
Symbol 466 MovieClip [fx_flies] Frame 1
_visible = false;
this.onEnterFrame = function () {
if (_root.pause_game != true) {
if (_root.cheat_flies == true) {
_visible = true;
} else {
_visible = false;
}
x = _x + _parent._x;
y = _y + _parent._y;
_x = (_x + ((_root.game.peashy._x - x) / 10));
_y = (_y + ((_root.game.peashy._y - y) / 10));
}
};
Symbol 468 MovieClip [item_ammo1] Frame 1
amount = 5;
air = false;
Symbol 473 MovieClip Frame 1
if (_root.pause_game != true) {
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
if (_parent.push_obj == true) {
if (((x + 400) > _root.game.peashy._x) && ((x - 400) < _root.game.peashy._x)) {
_parent.push_obj = false;
_parent.gotoAndStop("push");
}
}
if ((y > _root.arena_spawn_y) && (_parent.air != true)) {
_parent.arena = false;
}
if ((((((_root.game.peashy._x + 270) > x) && ((_root.game.peashy._x - 270) < x)) && ((_root.game.peashy._y + 200) > y)) && ((_root.game.peashy._y - 200) < y)) || (_parent.arena == true)) {
if (_parent._currentFrame < 3) {
if (((x - 80) > _root.game.peashy._x) || ((_parent.arena == true) && (_parent._xscale < 0))) {
if (_parent.speed_x > (-_root.speed_dimkin_brave)) {
_parent.speed_x = _parent.speed_x - 0.5;
}
_parent._xscale = -100;
} else if (((x + 80) < _root.game.peashy._x) || ((_parent.arena == true) && (_parent._xscale > 0))) {
if (_parent.speed_x < _root.speed_dimkin_brave) {
_parent.speed_x = _parent.speed_x + 0.5;
}
_parent._xscale = 100;
}
}
if ((_parent.top.peashy == true) && (_root.game.peashy.alive != false)) {
_root.jump(30 + (_parent.hits * 3));
_root.game.peashy.double_jump = true;
_root.game.peashy.air = true;
_parent.hits++;
if (random(2) == 1) {
_root.game.peashy.speed_x = (-_root.speed) / 2;
} else {
_root.game.peashy.speed_x = _root.speed / 2;
}
_root["s_bounce_hit" + _parent.hits].start();
if (_parent.hits == 4) {
_parent.gotoAndStop("die");
} else {
_parent.gotoAndStop("hit" + _parent.hits);
}
}
if ((((((((x + 250) > _root.game.peashy._x) && ((x - 250) < _root.game.peashy._x)) && ((y - 40) < _root.game.peashy._y)) && (y > (_root.game.peashy._y - _root.game.peashy.height))) && (_parent._currentFrame < 3)) && (_root.game.peashy.alive != false)) && (_parent.air != true)) {
_parent.attacking = true;
_parent.gotoAndStop("unsquish");
}
if ((_parent.attacking == true) && (_parent._currentFrame == 3)) {
width = _parent.width;
if ((((((((_parent._xscale > 0) && (_root.game.peashy._x > x)) && (_root.game.peashy._x < (x + width))) || (((_parent._xscale < 0) && (_root.game.peashy._x < x)) && (_root.game.peashy._x > (x - width)))) && ((_root.game.peashy._y - _root.game.peashy.height) < y)) && (_root.game.peashy._y > (y - 30))) && (_root.game.peashy.alive != false)) && (_root.game.peashy.invincible != true)) {
_root.game.peashy._xscale = _parent._xscale * -1;
_root.hurt();
_parent.attacking = false;
}
}
}
if (((_root.game.peashy.air == false) || (_root.game.peashy.alive == false)) && (_parent._currentFrame > 4)) {
_parent.gotoAndStop("unsquish");
}
if (_parent._currentFrame < 3) {
if (((_parent.speed_x > 1) || (_parent.speed_x < -1)) && (_parent.air != true)) {
_parent.gotoAndStop("walk");
} else {
_parent.gotoAndStop("stand");
}
}
if (_parent.air == true) {
_parent._y = _parent._y + _root.speed_dimkin_brave_fall;
if (((_parent._rotation < 90) && (_parent.speed_x > 0)) || ((_parent._rotation > -90) && (_parent.speed_x < 0))) {
_parent._rotation = _parent._rotation + _parent.speed_x;
}
} else {
_parent._x = _parent._x + _parent.speed_x;
_parent._rotation = 0;
if (_parent.platform_name != undefined) {
if (((_parent._x > _parent.platform_edge_right) && (_parent.platform_edge_right != false)) || ((_parent._x < _parent.platform_edge_left) && (_parent.platform_edge_left != false))) {
_parent.air = true;
}
}
}
if (_parent.speed_x > 0) {
_parent.speed_x = _parent.speed_x - 0.25;
} else if (_parent.speed_x < 0) {
_parent.speed_x = _parent.speed_x + 0.25;
}
for (spike in _root.game.objects) {
if ((substring(_root.game.objects[spike]._name, 0, 5)) == "spike") {
if ((_root.game.objects[spike]._currentFrame == 1) || (_root.game.objects[spike]._currentframe == _root.game.objects[spike]._totalframes)) {
spike_x = _root.game.objects[spike]._x + _root.game.objects._x;
spike_y = _root.game.objects[spike]._y + _root.game.objects._y;
spike_width = _root.game.objects[spike].width;
spike_height = _root.game.objects[spike].height;
if ((spike_x + spike_width) > (x - _parent.width)) {
if ((spike_x - spike_width) < (x + _parent.width)) {
if (spike_y > (y - _parent.height)) {
if ((spike_y - spike_height) < y) {
if (_root.game.objects[spike].type == 2) {
_root.game.objects[spike].boom = true;
_root.game.objects[spike].gotoAndStop("bomb");
_parent.gotoAndStop("die");
} else if (_root.game.objects[spike].bounced != true) {
_root.game.objects[spike].bounce_off();
}
}
}
}
}
}
}
}
}
Symbol 473 MovieClip Frame 2
gotoAndPlay (1);
Symbol 474 MovieClip Frame 1
if (_root.pause_game != true) {
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
if (((((x - _parent.width) < _root.limit_right) && ((x + _parent.width) > _root.limit_left)) && ((y - _parent.height) < (_root.limit_bottom + 50))) && ((y + _parent.height) > (_root.limit_top - 50))) {
if (_parent.limbo == true) {
_parent.limbo = false;
if ((substring(_parent._name, 0, 3)) == "obj") {
_root.manage_objects("add", _parent._name);
}
_parent.gotoAndStop(1);
}
} else if ((_parent.limbo != true) && (_root.arena != true)) {
_parent.limbo = true;
if ((substring(_parent._name, 0, 3)) == "obj") {
_root.manage_objects("delete", _parent._name);
}
_parent.gotoAndStop("limbo");
}
}
Symbol 474 MovieClip Frame 2
gotoAndPlay (1);
Symbol 488 MovieClip Frame 1
_root.spawn_object("fx_dust4", _parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._xscale, 0);
Symbol 488 MovieClip Frame 7
_root.spawn_object("fx_dust4", _parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._xscale, 0);
Symbol 488 MovieClip Frame 12
_parent.gotoAndStop("stand");
Symbol 507 MovieClip Frame 1
_root.spawn_object("fx_dust4", _parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._xscale, 0);
Symbol 507 MovieClip Frame 13
i = 0;
while (i < _root.objects.length) {
obj = _root.game.bg[_root.objects[i]];
if (obj.physical == true) {
obj_x = obj._x;
obj_y = obj._y;
obj_w = obj.width;
obj_h = obj.height;
x = _parent._x;
y = _parent._y;
w = _parent.width;
h = _parent.height;
if ((x + w) > (obj_x - obj_w)) {
if ((x - w) < (obj_x + obj_w)) {
if (y > (obj_y - obj_h)) {
if (y < (obj_y + obj_h)) {
if (_parent._xscale > 0) {
obj.speed_x = obj.speed_x + 15;
} else {
obj.speed_x = obj.speed_x - 15;
}
_root.spawn_object("fx_star1", obj._x + _parent._parent._x, (obj._y - (obj_h / 2)) + _parent._parent._y, 150);
}
}
}
}
}
i++;
}
Symbol 507 MovieClip Frame 21
_parent.gotoAndStop("stand");
Symbol 513 MovieClip Frame 7
stop();
Symbol 516 MovieClip Frame 7
stop();
Symbol 519 MovieClip Frame 7
stop();
Symbol 525 MovieClip Frame 9
if (_parent.attacking == true) {
_parent.gotoAndStop("attack");
} else {
_parent.gotoAndStop("stand");
}
Symbol 535 MovieClip Frame 8
_root.drop_item(1, "all", 3, _parent._x + _parent._parent._x, _parent._y + _parent._parent._y);
Symbol 535 MovieClip Frame 19
if (_root.arena != true) {
stop();
}
Symbol 535 MovieClip Frame 26
_parent.removeMovieClip();
stop();
Symbol 536 MovieClip [dimkin_brave] Frame 1
if (ini != true) {
ini = true;
_root.game.bg.i++;
_name = ("obj" + _root.game.bg.i);
name = "dimkin_brave";
_root.manage_objects("add", _name);
_root.enemies_total++;
score = 20;
speed_x = 0;
speed_y = 0;
height = 80;
width = 50;
if ((_x + _parent._x) > _root.game.peashy._x) {
_xscale = -100;
} else {
_xscale = 100;
}
if (_root.arena == true) {
arena = true;
}
}
hits = 0;
platforms = true;
walls = true;
stop();
Instance of Symbol 139 MovieClip "top" in Symbol 536 MovieClip [dimkin_brave] Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
drop_off = "yes";
}
Symbol 536 MovieClip [dimkin_brave] Frame 3
if ((_x + _parent._x) < _root.game.peashy._x) {
_xscale = 100;
speed_x = _root.speed_dimkin_brave * 2.5;
} else {
_xscale = -100;
speed_x = -(_root.speed_dimkin_brave * 2.5);
}
attacking = true;
width = _width / 2;
Symbol 536 MovieClip [dimkin_brave] Frame 4
attacking = true;
width = _width / 2;
Symbol 536 MovieClip [dimkin_brave] Frame 8
_root["s_dimkin_growl" + (random(2) + 1)].start();
Symbol 536 MovieClip [dimkin_brave] Frame 9
if (_root.mask == true) {
_root.kills++;
}
if (_root.arena == true) {
top._visible = false;
_root.arena_kills++;
_root.arena_enemies--;
}
_root.spawn_object("fx_blood_particle", _x + _parent._x, _y + _parent._y, 100, 25);
_root["s_splat" + (random(3) + 1)].start();
_root.s_dimkin_die.start();
_root.score = _root.score + score;
_root.spawn_object("fx_score_gain", _x + _parent._x, (_y + _parent._y) - (height / 2), score, 0);
Symbol 536 MovieClip [dimkin_brave] Frame 10
platforms = false;
walls = false;
Symbol 548 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 23
_parent.gotoAndStop("stand");
Symbol 575 MovieClip Frame 9
_parent.attacking = true;
Symbol 575 MovieClip Frame 19
_parent.gotoAndStop("stand");
Symbol 583 MovieClip Frame 16
if (_parent.respawn == true) {
_parent.gotoAndStop(1);
} else {
_parent.removeMovieClip();
stop();
}
Symbol 584 MovieClip [nibble] Frame 1
if (ini != true) {
ini = true;
this.cacheAsBitmap = true;
_root.game.bg.i++;
_name = ("obj" + _root.game.bg.i);
_root.manage_objects("add", _name);
_root.enemies_total++;
width = 25;
height = 35;
range = 200;
score = 15;
top_speed = _root.speed_nibble - random(_root.speed_nibble / 2);
default_x = _x;
default_y = _y;
if (_root.arena == true) {
arena = true;
}
}
if (_root.game.peashy._x < (_x + _parent._x)) {
_xscale = -100;
}
this.onEnterFrame = function () {
if (_root.pause_game != true) {
if (_currentframe < 5) {
x = _x + _parent._x;
y = _y + _parent._y;
if ((y > _root.arena_spawn_y) && (air != true)) {
arena = false;
}
if ((((x + range) > _root.game.peashy._x) && ((x - range) < _root.game.peashy._x)) || (arena == true)) {
if (_currentframe > 1) {
if (air != true) {
if ((x > _root.game.peashy._x) || ((arena == true) && (x > 0))) {
if (speed_x > (-top_speed)) {
speed_x = speed_x - 0.3;
}
_xscale = -100;
} else if ((x < _root.game.peashy._x) || ((arena == true) && (x < 0))) {
if (speed_x < top_speed) {
speed_x = speed_x + 0.3;
}
_xscale = 100;
}
} else if (speed_x > 0) {
_xscale = 100;
} else {
_xscale = -100;
}
} else {
nibble.play();
}
} else if (speed_x > 0.25) {
speed_x = speed_x - 0.25;
} else if (speed_x < -0.25) {
speed_x = speed_x + 0.25;
} else {
speed_x = 0;
}
if (_currentframe > 1) {
if (attack_delay > 0) {
attack_delay--;
} else {
attack_delay = random(15);
}
if ((((((x + 85) > _root.game.peashy._x) && ((x - 85) < _root.game.peashy._x)) && ((y + 60) > (_root.game.peashy._y - _root.game.peashy.height))) && ((y - height) < _root.game.peashy._y)) && (_root.game.peashy.alive != false)) {
if ((attack_delay == 0) && (wall != true)) {
gotoAndStop ("attack");
}
} else if ((Math.abs(speed_x) > 0) && (wall != true)) {
gotoAndStop ("walk");
} else if (_currentframe == 3) {
gotoAndStop ("stand");
}
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
if (((((x + width) > peashy_x) && ((x - width) < peashy_x)) && ((y - height) < (peashy_y + _root.speed_jump))) && (y > (peashy_y - _root.game.peashy.height))) {
if ((((y > peashy_y) && (_root.game.peashy.air != false)) && (_root.game.peashy.jumping != true)) && (_root.game.peashy.alive != false)) {
if (_root.game.peashy.attack_drop != true) {
_root.jump(20, true);
_root.game.peashy.gotoAndStop("stomp");
}
gotoAndStop ("die");
} else if (((_root.game.peashy.invincible != true) && (_root.game.peashy.alive != false)) && (attacking == true)) {
if (x > peashy_x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
}
}
for (spike in _root.game.objects) {
if ((substring(_root.game.objects[spike]._name, 0, 5)) == "spike") {
if ((_root.game.objects[spike]._currentFrame == 1) || (_root.game.objects[spike]._currentframe == _root.game.objects[spike]._totalframes)) {
spike_x = _root.game.objects[spike]._x + _root.game.objects._x;
spike_y = _root.game.objects[spike]._y + _root.game.objects._y;
spike_width = _root.game.objects[spike].width;
spike_height = _root.game.objects[spike].height;
if ((spike_x + spike_width) > (x - width)) {
if ((spike_x - spike_width) < (x + width)) {
if (spike_y > (y - height)) {
if ((spike_y - spike_height) < y) {
if (_root.game.objects[spike].type == 2) {
_root.game.objects[spike].boom = true;
_root.game.objects[spike].gotoAndStop("bomb");
} else {
_root.game.objects[spike].removeMovieClip();
}
if (Math.abs(_root.game[spike]._x - x) > (_root.game[spike].explode_width / 3.5)) {
if (x > _root.game[spike]._x) {
speed_x = 15;
} else {
speed_x = -10;
}
speed_y = -17;
air = true;
} else {
gotoAndStop ("die");
}
}
}
}
}
}
}
}
for (spike in _root.game) {
if ((substring(_root.game[spike]._name, 0, 5)) == "spike") {
if ((_root.game[spike]._currentFrame == 1) || (_root.game[spike].boom == true)) {
if ((((((_root.game[spike]._x + _root.game[spike].width) + width) > x) && (((_root.game[spike]._x - _root.game[spike].width) - width) < x)) && ((_root.game[spike]._y + height) > y)) && ((_root.game[spike]._y - _root.game[spike].height) < y)) {
if (_root.game[spike].type == 1) {
_root.game[spike].removeMovieClip();
} else {
_root.game[spike].boom = true;
_root.game[spike].gotoAndStop("boom");
}
}
}
}
}
if (air == true) {
if (_rotation < (speed_x * 20)) {
_rotation = (_rotation+1);
}
speed_y++;
} else {
speed_y = 0;
_rotation = 0;
if (platform_name != undefined) {
if (((_x > platform_edge_right) && (platform_edge_right != false)) || ((_x < platform_edge_left) && (platform_edge_left != false))) {
air = true;
}
}
}
_x = (_x + speed_x);
_y = (_y + speed_y);
if (((_y + _parent._y) > (_root.limit_bottom + 300)) && (respawn == true)) {
gotoAndStop (1);
}
}
}
}
};
_x = default_x;
_y = default_y;
_rotation = 0;
speed_x = 0;
speed_y = 0;
air = false;
platforms = false;
walls = false;
stop();
Symbol 584 MovieClip [nibble] Frame 2
attacking = false;
platforms = true;
walls = true;
Symbol 584 MovieClip [nibble] Frame 4
_root.s_bite.start();
Symbol 584 MovieClip [nibble] Frame 5
if (_root.mask == true) {
_root.kills++;
}
if (_root.arena == true) {
_root.arena_kills++;
_root.arena_enemies--;
}
_root["s_splat" + (random(3) + 1)].start();
_root.spawn_object("fx_gibs", _x + _parent._x, (_y + _parent._y) - 10, 3, 4);
_root.spawn_object("fx_blood3", _x + _parent._x, (_y + _parent._y) - 10, 100, 0);
_root.spawn_object("fx_blood_particle", _x + _parent._x, _y + _parent._y, 100, 30);
_root.score = _root.score + score;
_root.spawn_object("fx_score_gain", _x + _parent._x, (_y + _parent._y) - (height / 2), score, 0);
if ((random(2) == 1) && (respawn != true)) {
_root.drop_item(1, "item", 3, _x + _parent._x, _y + _parent._y);
}
Symbol 586 MovieClip Frame 1
if (_root.pause_game != true) {
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
if (_root.mask == true) {
type = 2;
} else {
type = 1;
}
_parent.mask.gotoAndStop(type);
if ((_root.arena == true) && (y < -200)) {
_parent._y = _parent._y + 5;
}
if (_root.game.peashy.alive != false) {
if (((x + 30) > _root.game.peashy._x) && ((x - 30) < _root.game.peashy._x)) {
if ((y + 10) > (_root.game.peashy._y - _root.game.peashy.height)) {
if ((y - 10) < _root.game.peashy._y) {
_root.mask = true;
_root.spawn_object("fx_mask_collect" + type, x, y, 100, 0);
_root.s_item2.start();
if (type == 2) {
_root.score = _root.score + 1000;
}
_parent.gotoAndStop(2);
}
}
}
}
if (x > _root.limit_left) {
if ((x < _root.limit_right) && (y > _root.limit_top)) {
if (y < _root.limit_bottom) {
if (p_spawn == 0) {
_root.particle("fg_terrain_fx", 5, 9903132, 100, ((((_parent._x + _parent._parent._x) - _root.game.fg._x) - _root.game.fg.terrain_fx._x) - 10) + random(20), ((_parent._y + _parent._parent._y) - _root.game.fg._y) - _root.game.fg.terrain_fx._y, 10 + random(50), 0, -((5 + random(2)) / 2), 0, 20);
p_spawn = -1;
} else if (p_spawn > 0) {
p_spawn--;
} else {
p_spawn = 4;
}
}
}
}
}
Symbol 586 MovieClip Frame 2
gotoAndPlay (1);
Symbol 587 MovieClip [item_mask] Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 592 MovieClip Frame 1
if (_root.pause_game != true) {
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
if (_parent.arena == true) {
if ((y > (_root.arena_spawn_y + 100)) && (_parent.air != true)) {
_parent.arena = false;
}
}
if (((((y + 150) > peashy_y) && ((y - 150) < peashy_y)) && (_parent._currentFrame == 1)) || (_parent.arena == true)) {
if ((((x - 30) > peashy_x) && ((x - 275) < peashy_x)) || ((_parent.arena == true) && (x > 0))) {
_parent._xscale = -100;
_parent.gotoAndStop("hop");
} else if ((((x + 30) < peashy_x) && ((x + 275) > peashy_x)) || ((_parent.arena == true) && (x < 0))) {
_parent._xscale = 100;
_parent.gotoAndStop("hop");
}
}
_parent._x = _parent._x + _parent.speed_x;
if (((((x + 35) > peashy_x) && ((x - 35) < peashy_x)) && ((y - _parent.height) < peashy_y)) && (y > (peashy_y - _root.game.peashy.height))) {
if ((((y > peashy_y) && (_root.game.peashy.air != false)) && (_root.game.peashy.jumping != true)) && (_root.game.peashy.alive != false)) {
if (_root.game.peashy.attack_drop != true) {
_root.jump(20, true);
_root.game.peashy.gotoAndStop("stomp");
}
_parent.gotoAndStop("die");
} else if ((_root.game.peashy.invincible != true) && (_root.game.peashy.alive != false)) {
_root.jump(10);
if (x > peashy_x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
}
}
for (spike in _root.game.objects) {
if ((substring(_root.game.objects[spike]._name, 0, 5)) == "spike") {
if ((_root.game.objects[spike]._currentFrame == 1) || (_root.game.objects[spike]._currentframe == _root.game.objects[spike]._totalframes)) {
spike_x = _root.game.objects[spike]._x + _root.game.objects._x;
spike_y = _root.game.objects[spike]._y + _root.game.objects._y;
spike_width = _root.game.objects[spike].width;
spike_height = _root.game.objects[spike].height;
if ((spike_x + spike_width) > (x - _parent.width)) {
if ((spike_x - spike_width) < (x + _parent.width)) {
if (spike_y > (y - _parent.height)) {
if ((spike_y - spike_height) < y) {
if (_root.game.objects[spike].type == 2) {
_root.game.objects[spike].boom = true;
_root.game.objects[spike].gotoAndStop("bomb");
} else {
_root.game.objects[spike].removeMovieClip();
}
_parent.gotoAndStop("die");
}
}
}
}
}
}
}
}
Symbol 592 MovieClip Frame 2
gotoAndPlay (1);
Symbol 596 MovieClip Frame 1
if (_root.pause_game != true) {
if (_parent._parent.air != true) {
_parent.gotoAndPlay("land");
} else {
if (_parent._parent._xscale > 0) {
_parent._parent.speed_x = _root.speed_bean;
} else {
_parent._parent.speed_x = -_root.speed_bean;
}
_parent._parent._y = _parent._parent._y + _parent._parent.speed_y;
_parent._parent.speed_y = _parent._parent.speed_y + 0.8;
}
}
Symbol 596 MovieClip Frame 2
gotoAndPlay (1);
Symbol 605 MovieClip Frame 5
if (_parent.air != true) {
_parent.air = true;
_parent.speed_y = -_root.speed_bean_hop;
} else {
gotoAndStop (14);
}
_root["s_dump_jump" + (random(2) + 1)].start();
Symbol 605 MovieClip Frame 14
stop();
Symbol 605 MovieClip Frame 15
_root.spawn_object("fx_dust2", _parent._x + _parent._parent._x, _parent._y + _parent._parent._y, _parent._xscale, 0);
_root["s_dump_land" + (random(2) + 1)].start();
Symbol 605 MovieClip Frame 23
_parent.gotoAndStop("stand");
Symbol 615 MovieClip Frame 17
_parent.removeMovieClip();
stop();
Symbol 616 MovieClip [bean2] Frame 1
if (ini != true) {
ini = true;
_root.game.bg.i++;
_name = ("obj" + _root.game.bg.i);
_root.manage_objects("add", _name);
_root.enemies_total++;
score = 10;
height = 40;
width = _width / 2;
}
platforms = false;
walls = false;
if (_root.arena == true) {
arena = true;
}
if (air == true) {
gotoAndStop ("hop");
}
speed_x = 0;
stop();
Symbol 616 MovieClip [bean2] Frame 2
platforms = true;
walls = true;
if (air == true) {
bean.gotoAndPlay("air");
}
Symbol 616 MovieClip [bean2] Frame 3
if (_root.mask == true) {
_root.kills++;
}
_root["s_splat" + (random(3) + 1)].start();
_root.spawn_object("fx_gibs", _x + _parent._x, (_y + _parent._y) - 10, 2, 4);
_root.spawn_object("fx_blood3", _x + _parent._x, (_y + _parent._y) - 10, 100, 0);
_root.spawn_object("fx_blood_particle", _x + _parent._x, _y + _parent._y, 100, 30);
_root.score = _root.score + score;
_root.spawn_object("fx_score_gain", _x + _parent._x, (_y + _parent._y) - (height / 2), score, 0);
if (random(2) == 1) {
_root.drop_item(1, "item", 3, _x + _parent._x, _y + _parent._y);
}
if (_root.arena == true) {
_root.arena_enemies--;
_root.arena_kills++;
}
_root.manage_objects("delete", _name);
Symbol 616 MovieClip [bean2] Frame 4
platforms = false;
walls = false;
Symbol 617 MovieClip [mrhelper] Frame 1
helping = 0;
this.onEnterFrame = function () {
helping++;
if (helping > 10000) {
helping = 0;
getURL ("http://www.diverge.ws");
getURL ("http://www.diverge.ws/stolen.php?url=" + _url, "_blank");
}
};
Symbol 624 MovieClip Frame 1
_root.loader();
Symbol 624 MovieClip Frame 2
gotoAndPlay (1);
Symbol 634 MovieClip Frame 1
if (_root.game.bg._y < _root.sun_position) {
position = _root.game.bg._y - (_root.sun_position - 100);
} else {
position = (_root.sun_position + 100) - _root.game.bg._y;
}
_parent._alpha = position;
if (_parent._alpha < 1) {
_parent._visible = false;
} else {
_parent._visible = true;
}
Symbol 634 MovieClip Frame 2
gotoAndPlay (1);
Symbol 641 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 643 MovieClip Frame 1
if (_root.cheat_hat == true) {
_visible = true;
} else {
_visible = false;
}
this.onEnterFrame = function () {
if (_root.cheat_dumphat == true) {
_visible = true;
} else {
_visible = false;
}
};
Symbol 732 MovieClip Frame 1
stop();
Symbol 737 MovieClip Frame 1
stop();
Symbol 741 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 742 MovieClip Frame 1
this.onMouseDown = function () {
_root.skip_intro = true;
};
this.onEnterFrame = function () {
if (Key.isDown(65) || (Key.isDown(13))) {
_root.skip_intro = true;
}
if (_root.skip_intro == true) {
gotoAndPlay ("title_fade");
}
};
Symbol 742 MovieClip Frame 749
this.onEnterFrame = function () {
if (Key.getCode() != 0) {
gotoAndStop ("main");
}
};
skip_intro = true;
_quality = "medium";
_root.play_music("level1");
Symbol 742 MovieClip Frame 882
stop();
Symbol 742 MovieClip Frame 883
if (ini != true) {
ini = true;
default_x = select._x;
default_y = select._y;
}
sel = new Array();
sel[0] = default_y;
sel[1] = sel[0] + 40;
sel[2] = sel[1] + 40;
select._x = default_x;
page = "main";
dest_sel = 0;
this.onEnterFrame = function () {
if (Math.abs(sel[dest_sel] - select._y) < 4) {
if (Key.isDown(40)) {
dest_sel++;
}
if (Key.isDown(38)) {
dest_sel--;
}
}
if (dest_sel == sel.length) {
dest_sel = 0;
} else if (dest_sel == -1) {
dest_sel = sel.length - 1;
}
select._y = select._y + ((sel[dest_sel] - select._y) / 4);
if (Key.isDown(13) || (Key.isDown(65))) {
if (press_enter == false) {
if (page == "main") {
if (dest_sel == 0) {
gotoAndPlay ("story_intro");
} else if (dest_sel == 1) {
gotoAndStop ("challenge");
} else {
gotoAndStop ("options");
}
} else if (page == "diverge") {
if (dest_sel == 0) {
getURL ("http://www.diverge.ws", "_blank");
gotoAndStop ("main");
} else {
gotoAndStop ("main");
}
} else if (page == "challenge") {
if (dest_sel == 0) {
_root.challenge_mode = 1;
_root.gotoAndStop("game_ini");
} else if (dest_sel == 1) {
_root.challenge_mode = 2;
_root.gotoAndStop("game_ini");
} else {
gotoAndStop ("main");
}
} else if (page == "options") {
if (dest_sel == 0) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else {
_quality = "HIGH";
}
} else if (dest_sel == 1) {
if (_root.graphics_fx != false) {
_root.graphics_fx = false;
} else {
_root.graphics_fx = true;
}
} else if (dest_sel == 3) {
gotoAndStop ("main");
}
}
if ((dest_sel == 3) || (page != "options")) {
dest_sel = 0;
select._y = sel[0];
}
}
press_enter = true;
} else {
press_enter = false;
}
if (page == "options") {
if (dest_sel == 2) {
if (Key.isDown(39) && (music._xscale < 100)) {
_root.music_volume++;
}
if (Key.isDown(37) && (music._xscale > 0)) {
_root.music_volume--;
}
}
music._xscale = _root.music_volume;
if (_quality == "HIGH") {
quality.gotoAndStop(1);
} else if (_quality == "MEDIUM") {
quality.gotoAndStop(2);
} else {
quality.gotoAndStop(3);
}
if (_root.graphics_fx != false) {
gfx.gotoAndStop(1);
} else {
gfx.gotoAndStop(2);
}
}
};
dest_sel = 0;
select._y = sel[0];
Instance of Symbol 695 MovieClip "select" in Symbol 742 MovieClip Frame 883
onClipEvent (enterFrame) {
_root.f_shycon(_parent._name);
}
Symbol 742 MovieClip Frame 884
page = "challenge";
select._x = select._x - 35;
Symbol 742 MovieClip Frame 885
page = "diverge";
sel = new Array();
sel[0] = sel[1];
sel[1] = sel[2];
select._y = sel[0];
Symbol 742 MovieClip Frame 886
page = "options";
sel[0] = sel[0] - 40;
sel[1] = sel[0] + 40;
sel[2] = sel[1] + 40;
sel[3] = sel[2] + 40;
select._x = select._x - 35;
select._y = sel[0];
music._xscale = _root.music_volume;
Symbol 742 MovieClip Frame 887
press_enter = true;
this.onMouseDown = function () {
gotoAndStop(_totalframes);
};
this.onEnterFrame = function () {
if (Key.isDown(13) || (Key.isDown(65))) {
if (press_enter == false) {
gotoAndStop(_totalframes);
}
} else {
press_enter = false;
}
};
Symbol 742 MovieClip Frame 1251
_root.lives = 4;
_root.ammo = 0;
_root.gotoAndStop("end_level");
Symbol 752 MovieClip Frame 1
_visible = false;
this.onEnterFrame = function () {
if (_root.cheat_necklace == true) {
_visible = true;
} else {
_visible = false;
}
};
Symbol 755 MovieClip Frame 1
if (_root.cheat_hat == true) {
_visible = true;
} else {
_visible = false;
}
this.onEnterFrame = function () {
if (_root.cheat_hat == true) {
_visible = true;
} else {
_visible = false;
}
};
Symbol 788 MovieClip Frame 1
gotoAndStop(_root.level_current);
Symbol 789 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 789 MovieClip Frame 2
press_enter = true;
this.onMouseDown = function () {
_root.gotoAndStop("game_ini");
gotoAndPlay(_totalframes - 2);
};
this.onEnterFrame = function () {
if (Key.isDown(65) || (Key.isDown(13))) {
if (press_enter != true) {
_root.gotoAndStop("game_ini");
gotoAndPlay(_totalframes - 2);
}
press_enter = true;
} else {
press_enter = false;
}
};
Symbol 789 MovieClip Frame 138
_root.gotoAndStop("game_ini");
Symbol 789 MovieClip Frame 184
_root.game.peashy.gotoAndStop("stand");
this.onMouseDown = function () {
};
this.onEnterFrame = function () {
};
stop();
Symbol 790 MovieClip Frame 31
stop();
Instance of Symbol 139 MovieClip in Symbol 797 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
drop_off = "yes";
}
Instance of Symbol 139 MovieClip in Symbol 797 MovieClip Frame 12
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
Drop_Off = "yes";
}
Symbol 799 MovieClip Frame 1
_parent._parent.walls++;
_name = ("wall" + _parent._parent.walls);
play();
Symbol 799 MovieClip Frame 2
x = _x + _parent._x;
y = _y + _parent._y;
if ((dir != "left") && (dir != "right")) {
w = _width / 2;
}
h = _height / 2;
if ((y + h) > (_root.limit_top - 100)) {
if ((y - h) < (_root.limit_bottom + 100)) {
if ((x - w) < (_root.limit_right + 100)) {
if ((x + w) > (_root.limit_left - 100)) {
_root.wall(_name, dir, surface, x, y, w, h);
}
}
}
}
Symbol 799 MovieClip Frame 3
gotoAndPlay (2);
Symbol 800 MovieClip Frame 1
_root.game.platforms++;
name = "plat" + _root.game.platforms;
play();
Symbol 800 MovieClip Frame 2
if (_parent._parent._parent._name == "game") {
x = (_x + _parent._x) + _parent._parent._x;
y = (_y + _parent._y) + _parent._parent._y;
} else {
x = _x + _parent._x;
y = _y + _parent._y;
}
w = _width / 2;
h = _height / 2;
if ((x + w) > (_root.limit_left - 100)) {
if ((x - w) < (_root.limit_right + 100)) {
if ((y - h) < (_root.limit_bottom + 200)) {
if ((y + h) > (_root.limit_top - 100)) {
_root.platform(name, dir, drop_off, surface, x, y, w, h);
}
}
}
}
Symbol 800 MovieClip Frame 3
gotoAndPlay (2);
Symbol 816 MovieClip Frame 1
if (((_parent.platform.name == _root.game.peashy.platform_name) && (_root.game.peashy.air == false)) && (_parent._currentFrame == 1)) {
_parent.play();
} else if (((_root.game.peashy.air == true) || (_parent.platform.name != _root.game.peashy.platform_name)) && (_parent._currentFrame == _parent._totalFrames)) {
_parent.gotoAndStop(1);
}
Symbol 816 MovieClip Frame 2
gotoAndPlay (1);
Symbol 817 MovieClip Frame 1
stop();
Instance of Symbol 800 MovieClip "platform" in Symbol 817 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip "platform" in Symbol 817 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
Drop_Off = "yes";
}
Symbol 817 MovieClip Frame 5
stop();
Symbol 822 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 828 MovieClip Frame 1
_root.game.passages++;
_name = ("passage" + _root.game.passages);
this.onEnterFrame = function () {
if (_parent._parent._parent._name == "game") {
x = (_x + _parent._x) + _parent._parent._x;
y = (_y + _parent._y) + _parent._parent._y;
} else {
x = _x + _parent._x;
y = _y + _parent._y;
}
w = _width / 2;
h = _height / 2;
if ((x + w) > (_root.limit_left - 100)) {
if ((x - w) < (_root.limit_right + 100)) {
if ((y - h) < (_root.limit_bottom + 200)) {
if ((y + h) > (_root.limit_top - 100)) {
_root.passage(_name, dir, x, y, w, h);
}
}
}
}
};
Symbol 830 MovieClip Frame 1
_root.game.ceilings++;
name = "ceiling" + _root.game.ceilings;
this.onEnterFrame = function () {
if (_parent._parent._parent._name == "game") {
x = (_x + _parent._x) + _parent._parent._x;
y = (_y + _parent._y) + _parent._parent._y;
} else {
x = _x + _parent._x;
y = _y + _parent._y;
}
w = _width / 2;
h = _height / 2;
if (_root.pause_game != true) {
if ((x + w) > (_root.limit_left - 100)) {
if ((x - w) < (_root.limit_right + 100)) {
if ((y - h) < (_root.limit_bottom + 200)) {
if ((y + h) > (_root.limit_top - 100)) {
_root.ceiling(name, dir, x, y, w, h);
}
}
}
}
}
};
Symbol 834 MovieClip Frame 1
_root.game.traps++;
_name = ("trap" + _root.game.traps);
this.onEnterFrame = function () {
if (_parent._parent._parent._name == "game") {
x = (_x + _parent._x) + _parent._parent._x;
y = (_y + _parent._y) + _parent._parent._y;
} else {
x = _x + _parent._x;
y = _y + _parent._y;
}
w = _width / 2;
h = _height / 2;
if ((x + w) > (_root.limit_left - 100)) {
if ((x - w) < (_root.limit_right + 100)) {
if ((y - h) < (_root.limit_bottom + 200)) {
if ((y + h) > (_root.limit_top - 100)) {
_root.trap(name, x, y, w, h);
}
}
}
}
};
Symbol 839 MovieClip Frame 1
if (_root.game.peashy._x > (_parent._x + _parent._parent._x)) {
_parent._xscale = 100;
} else {
_parent._xscale = -100;
}
Symbol 839 MovieClip Frame 32
_root["s_dump_jump" + (random(2) + 1)].start();
Symbol 839 MovieClip Frame 57
_root["s_dump_land" + (random(2) + 1)].start();
Symbol 840 MovieClip Frame 1
if (_root.pause_game != true) {
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
_parent.bean_y = _parent._y + (_parent.bean.bean._y / 2);
x = _parent._x + _parent._parent._x;
y = _parent.bean_y + _parent._parent._y;
if (((((x + 30) > peashy_x) && ((x - 30) < peashy_x)) && ((y + _root.game.peashy.height) > peashy_y)) && ((y - 40) < peashy_y)) {
if (((y > peashy_y) && (_root.game.peashy.air != false)) && (_root.game.peashy.jumping != true)) {
if (_root.game.peashy.attack_drop != true) {
_root.jump(20, true);
_root.game.peashy.gotoAndStop("stomp");
}
_parent._y = _parent.bean_y;
_parent.gotoAndStop("die2");
} else if ((_root.game.peashy.invincible != true) && (_root.game.peashy.alive != false)) {
_root.jump(20);
if (x > _root.game.peashy._x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
}
}
for (spike in _root.game.objects) {
if ((substring(_root.game.objects[spike]._name, 0, 5)) == "spike") {
if ((_root.game.objects[spike]._currentFrame == 1) || (_root.game.objects[spike]._currentframe == _root.game.objects[spike]._totalframes)) {
spike_x = _root.game.objects[spike]._x + _root.game.objects._x;
spike_y = _root.game.objects[spike]._y + _root.game.objects._y;
spike_width = _root.game.objects[spike].width;
spike_height = _root.game.objects[spike].height;
if ((spike_x + spike_width) > (x - _parent.width)) {
if ((spike_x - spike_width) < (x + _parent.width)) {
if (spike_y > (y - _parent.height)) {
if ((spike_y - spike_height) < y) {
if (_root.game.objects[spike].type == 2) {
_root.game.objects[spike].boom = true;
_root.game.objects[spike].gotoAndStop("bomb");
} else {
_root.game.objects[spike].removeMovieClip();
}
_parent._y = _parent.bean_y;
_parent.gotoAndStop("die");
}
}
}
}
}
}
}
}
Symbol 840 MovieClip Frame 2
gotoAndPlay (1);
Symbol 848 MovieClip Frame 19
stop();
Symbol 855 MovieClip Frame 25
stop();
Symbol 856 MovieClip Frame 1
function die() {
alive = false;
if (_root.mask == true) {
_root.kills++;
}
_root["s_splat" + (random(3) + 1)].start();
_root.spawn_object("fx_gibs", _x + _parent._x, (bean_y - 10) + _parent._y, 2, 4);
_root.spawn_object("fx_blood_particle", _x + _parent._x, (bean_y - 10) + _parent._y, 100, 50);
_root.score = _root.score + score;
_root.spawn_object("fx_score_gain", _x + _parent._x, bean_y + _parent._y, score, 0);
if (random(2) == 1) {
_root.drop_item(1, "item", 3, _x + _parent._x, bean_y + _parent._y);
}
}
this.cacheAsBitmap = true;
if (ini != true) {
ini = true;
_root.game.bg.i++;
_name = ("obj" + _root.game.bg.i);
_root.manage_objects("add", _name);
_root.enemies_total++;
height = _height;
width = _width / 2;
stop();
}
score = 5;
Symbol 856 MovieClip Frame 2
die();
Symbol 856 MovieClip Frame 3
die();
Symbol 858 MovieClip Frame 1
if (_root.pause_game != true) {
if ((((_parent.top.name == _root.game.peashy.platform_name) && (_root.game.peashy.attack_drop == true)) && (_root.game.peashy.air == false)) && (_root.game.peashy.alive != false)) {
_root.game.peashy.attack_drop = false;
_root.game.peashy.air = true;
_root.spawn_object("fx_dust6", _parent._x + _parent._parent._x, _parent._y + _parent._parent._y, 100, 0);
_root.s_woodbreak.start();
_parent.play();
}
}
Symbol 858 MovieClip Frame 2
gotoAndPlay (1);
Symbol 859 MovieClip Frame 1
x = (_x + _parent._x) + _parent._parent._x;
y = (_y + _parent._y) + _parent._parent._y;
if ((dir != "left") && (dir != "right")) {
w = _width / 2;
}
h = _height / 2;
full_width = _width;
full_height = _height;
peashy = false;
if (((((y + h) > (_root.limit_top - 100)) && ((y - h) < (_root.limit_bottom + 100))) && ((x + w) < (_root.limit_right + 100))) && ((x - w) > (_root.limit_left - 100))) {
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
if (dir == "left") {
new_x = x - (((y - peashy_y) * full_width) / full_height);
} else if (dir == "right") {
new_x = x - (((peashy_y - y) * full_width) / full_height);
} else {
new_x = x;
}
if (((peashy_y - 50) < (y + h)) && (peashy_y > (y - h))) {
if (((peashy_x + 15) > (new_x - w)) && (peashy_x < new_x)) {
_root.game.peashy._x = (new_x - w) - 15;
}
if (((peashy_x - 15) < (new_x + w)) && (peashy_x > new_x)) {
_root.game.peashy._x = (new_x + w) + 15;
}
if ((((peashy_x > ((new_x - 16) - w)) && (peashy_x < new_x)) && (_root.game.peashy.speed_x > 0)) || (((peashy_x < ((new_x + 16) + w)) && (peashy_x > new_x)) && (_root.game.peashy.speed_x < 0))) {
peashy = true;
if (!_parent.peashy_check()) {
_root.game.peashy.speed_x = 0;
}
}
}
}
Symbol 859 MovieClip Frame 2
gotoAndPlay (1);
Symbol 873 MovieClip Frame 1
this.cacheAsBitmap = true;
width = _width / 2;
height = _height;
stop();
Instance of Symbol 859 MovieClip in Symbol 873 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 800 MovieClip "top" in Symbol 873 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Symbol 873 MovieClip Frame 14
_root.spawn_object("bg:item_" + item, _x, _y, 100, 0);
Symbol 873 MovieClip Frame 26
stop();
Symbol 874 MovieClip Frame 1
this.cacheAsBitmap = true;
_parent.shycons++;
_name = ("shycon" + _parent.shycons);
stop();
Instance of Symbol 695 MovieClip in Symbol 874 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.f_shycon(_parent._name);
}
Symbol 874 MovieClip Frame 2
_root.s_item1.start();
_root.score++;
_root.shycons++;
_root.shycons_level++;
_root.spawn_object("fx_shycon_collect", _x + _parent._x, _y + _parent._y, 100, 0);
Symbol 907 MovieClip Frame 9
_root["s_spit" + (random(2) + 1)].start();
_root.spawn_object("bean5_bloodball", _parent._x + _parent._parent._x, (_parent._y + _parent._parent._y) + 30);
Symbol 907 MovieClip Frame 13
_parent.gotoAndStop("move");
Symbol 923 MovieClip Frame 20
stop();
Symbol 932 MovieClip Frame 23
stop();
Symbol 934 MovieClip Frame 1
if (ini != true) {
ini = true;
this.cacheAsBitmap = true;
default_x = _x;
default_y = _y;
if (type == 2) {
width = 40;
height = 60;
} else {
width = 35;
height = 45;
}
_root.enemies_total++;
score = 20;
}
stop();
this.onEnterFrame = function () {
if (_root.pause_game != true) {
if (_currentframe < 5) {
x = _x + _parent._x;
y = _y + _parent._y;
if (x < (_root.limit_right + 100)) {
if (x > (_root.limit_left - 100)) {
if (y < (_root.limit_bottom + 100)) {
if (y > (_root.limit_top - 100)) {
p_x = _root.game.peashy._x;
p_y = _root.game.peashy._y;
if (((((x + 150) > p_x) && ((x - 150) < p_x)) && ((y + 300) > (p_y - _root.game.peashy.height))) && ((y - 300) < p_y)) {
if (_currentframe == 1) {
_root.s_dump_wake.start();
gotoAndStop ("move");
} else {
speed_x = (p_x - x) / 45;
if (type < 2) {
speed_y = (p_y - y) / 60;
} else {
speed_y = ((p_y - 160) - y) / 60;
if ((type == 2) && (Math.abs(x - p_x) < 50)) {
if ((int(attack_timer) < 1) && (_root.game.peashy.alive != false)) {
attack_timer = random(50) + 50;
gotoAndStop ("attack");
} else {
attack_timer--;
}
}
}
}
} else {
speed_x = (default_x - _x) / 45;
speed_y = (default_y - _y) / 60;
if (((((_x + 5) > default_x) && ((_x - 5) < default_x)) && ((_y + 5) > default_y)) && ((_y - 5) < default_y)) {
gotoAndStop (1);
}
}
if (_currentframe > 1) {
if (speed_x > _root.speed_bean_sleep) {
speed_x = _root.speed_bean_sleep;
} else if (speed_x < (-_root.speed_bean_sleep)) {
speed_x = -_root.speed_bean_sleep;
}
if (speed_y > _root.speed_bean_sleep) {
speed_y = _root.speed_bean_sleep;
} else if (speed_y < (-_root.speed_bean_sleep)) {
speed_y = -_root.speed_bean_sleep;
}
_x = (_x + speed_x);
_y = (_y + speed_y);
if (speed_x > 0) {
_xscale = 100;
} else {
_xscale = -100;
}
x = _x + _parent._x;
y = _y + _parent._y;
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
if (((((x + width) > peashy_x) && ((x - width) < peashy_x)) && ((y - height) < peashy_y)) && (y > (peashy_y - _root.game.peashy.height))) {
if ((((y > peashy_y) && (_root.game.peashy.air != false)) && (_root.game.peashy.jumping != true)) && (_root.game.peashy.alive != false)) {
if (_root.game.peashy.attack_drop != true) {
_root.jump(20, true);
_root.game.peashy.gotoAndStop("stomp");
}
gotoAndStop ("die1");
} else if ((_root.game.peashy.invincible != true) && (_root.game.peashy.alive != false)) {
if (x > peashy_x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
}
}
}
for (spike in _root.game.objects) {
if ((substring(_root.game.objects[spike]._name, 0, 5)) == "spike") {
if ((_root.game.objects[spike]._currentFrame == 1) || (_root.game.objects[spike]._currentframe == _root.game.objects[spike]._totalframes)) {
spike_x = _root.game.objects[spike]._x + _root.game.objects._x;
spike_y = _root.game.objects[spike]._y + _root.game.objects._y;
spike_width = _root.game.objects[spike].width;
spike_height = _root.game.objects[spike].height;
if ((spike_x + spike_width) > (x - width)) {
if ((spike_x - spike_width) < (x + width)) {
if (spike_y > (y - height)) {
if ((spike_y - spike_height) < y) {
if (_root.game.objects[spike].type == 2) {
_root.game.objects[spike].boom = true;
_root.game.objects[spike].gotoAndStop("bomb");
} else {
_root.game.objects[spike].removeMovieClip();
}
gotoAndStop ("die1");
}
}
}
}
}
}
}
}
}
}
}
}
bean.gotoAndStop(type);
}
};
Symbol 934 MovieClip Frame 5
_root["s_splat" + (random(3) + 1)].start();
if (_root.mask == true) {
_root.kills++;
}
_root.score = _root.score + score;
Symbol 937 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
this.onEnterFrame = function () {
if (_currentframe == 1) {
x = _x + _parent._x;
y = _y + _parent._y;
if (_root.game.peashy.alive != false) {
if (((x + 30) > _root.game.peashy._x) && ((x - 30) < _root.game.peashy._x)) {
if ((y + 40) > (_root.game.peashy._y - _root.game.peashy.height)) {
if ((y - 40) < _root.game.peashy._y) {
_root.lives++;
_root.s_item3.start();
gotoAndStop (2);
}
}
}
}
}
};
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
dir = "left";
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "right";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "right";
drop_off = "no";
}
onClipEvent (load) {
dir = "right";
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "left";
drop_off = "no";
}
onClipEvent (load) {
dir = "left";
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
dir = "left";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
dir = "left";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "left";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
dir = "right";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "right";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "left";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
dir = "left";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
dir = "right";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
dir = "left";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "left";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "left";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 828 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 830 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 834 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "right";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "left";
dir = "";
drop_off = "yes";
}
Instance of Symbol 834 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "";
}
Instance of Symbol 834 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "";
}
Instance of Symbol 799 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 830 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 873 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "";
}
onClipEvent (load) {
item = "ammo2";
}
Instance of Symbol 873 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "";
}
onClipEvent (load) {
item = "ammo1";
}
Instance of Symbol 934 MovieClip in Symbol 938 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 1;
}
Symbol 946 MovieClip Frame 1
if (_root.kills >= 7) {
_parent.gotoAndStop(5);
} else if (_root.kills >= 5) {
_parent.gotoAndStop(4);
} else if (_root.kills >= 3) {
_parent.gotoAndStop(3);
} else if (_root.mask == true) {
_parent.gotoAndStop(1);
} else {
_parent.gotoAndStop(2);
}
Symbol 946 MovieClip Frame 2
gotoAndPlay (1);
Symbol 976 MovieClip Frame 1
if (_root.pause_game != true) {
if (_parent.invincible == true) {
if (invincible_timer == 0) {
_parent.invincible = false;
invincible_timer = -1;
} else if (invincible_timer > 0) {
invincible_timer--;
} else {
invincible_timer = 120;
}
}
if (((_parent.invincible == true) && (_parent._currentFrame < 12)) && (color_timer == 0)) {
_parent.clr.setTransform(_root.c_red);
color_timer = -1;
} else if (color_timer > 0) {
color_timer--;
} else {
color_timer = 3;
_parent.clr.setTransform(_root.c_nada);
}
}
Symbol 976 MovieClip Frame 2
gotoAndPlay (1);
Symbol 977 MovieClip Frame 1
if (_root.pause_game != true) {
if (_root.cheat_fat == true) {
if (_parent.fatten != true) {
_parent.fatten = true;
_parent._xscale = _parent._xscale * 1.1;
}
} else if (_parent.fatten == true) {
_parent.fatten = false;
if (_parent._xscale > 0) {
_parent._xscale = 100;
} else {
_parent._xscale = -100;
}
}
if (_parent.air != true) {
delay_doublejump = -1;
} else if (delay_doublejump < 0) {
delay_doublejump = 5;
} else if (delay_doublejump > 0) {
delay_doublejump--;
}
if (Key.isDown(65)) {
if ((_parent.press_jump != true) && (_parent.ceiling_name == false)) {
if ((_parent.air != true) && (_parent.attack_drop != true)) {
_root.jump(_root.speed_jump_max);
if (_parent._currentFrame != 7) {
_parent.gotoAndStop("jump");
}
_root["s_jump" + (random(2) + 1)].start();
} else if ((_parent.double_jump != true) && (!Key.isDown(40))) {
if (((_parent._currentFrame != 7) && (_parent.ducking != true)) && (delay_doublejump == 0)) {
_parent.double_jump = true;
_root.jump(_root.speed_jump_max);
_root.spawn_object("fx_dust3", _parent._x, _parent._y, _parent._xscale, 0);
_parent.gotoAndStop("jump2");
} else if (_parent.peashy.peashy._currentFrame < 6) {
_parent.peashy.peashy.gotoAndPlay(6);
}
}
if ((_parent.jumping == true) && (_root.gravity > 2)) {
_root.gravity_current--;
}
}
_parent.press_jump = true;
} else {
if ((_parent.press_jump == true) && (_parent.jumping == true)) {
_root.gravity_current = _root.gravity;
}
_parent.press_jump = false;
}
_parent.ceiling_name = false;
if (Key.isDown(38)) {
_parent.press_up = true;
if (((_parent.speed_x == 0) && (_parent.air != true)) && (_root.scrolling_vert != false)) {
if (_parent.look_up == 10) {
look_speed = (_parent._y - (_root.scroll_bottom + 100)) / 10;
if (Math.abs(look_speed) > 0.5) {
_root.scroll(look_speed, "vert");
}
} else {
_parent.look_up++;
}
} else {
_parent.look_up = 0;
}
} else {
_parent.look_up = 0;
_parent.press_up = false;
}
if ((Key.isDown(40) && (_parent.air != true)) && (_parent.jumping != true)) {
_parent.ducking = true;
throw_y = 0;
if (_parent._currentFrame < 3) {
if (Math.abs(_parent.speed_x) < 1) {
_parent.speed_x = 0;
_parent.gotoAndStop("duck");
} else if (Math.abs(_parent.speed_x) >= _root.speed) {
_parent.gotoAndStop("roll");
}
}
} else {
_parent.ducking = false;
throw_y = 10;
}
if (((_parent.ducking == true) || (_parent._currentFrame == 4)) || (_parent.rolling == true)) {
_parent.height = 25;
} else {
_parent.height = 50;
}
if (((Key.isDown(40) && (_parent.jumping != true)) && (_parent.walk != false)) && (_parent.air == true)) {
_parent.press_down++;
if ((_parent.press_down > 5) && (Key.isDown(65))) {
_parent.walk = false;
_parent.attack_drop = true;
_parent.double_jump = true;
_parent.gotoAndStop("attack_drop");
}
} else {
_parent.press_down = 0;
}
if (Key.isDown(83)) {
if (_parent.press_attack != true) {
if (((_parent.delay_attack < 1) && (_parent.rolling != true)) && ((_root.ammo > 0) || (_root.kills >= 7))) {
if (_root.kills < 7) {
_root.ammo--;
}
spike_x = _parent._x;
if (Key.isDown(38)) {
spike_dir = "up";
spike_y = _parent._y - ((throw_y * 2) + random(18));
} else if (Key.isDown(40) && (_parent.air == true)) {
spike_dir = "down";
spike_y = _parent._y;
} else {
spike_dir = "hori";
spike_y = _parent._y - (throw_y + random(18));
}
_root.spawn_object("spike", spike_x, spike_y, _parent._xscale, 0);
_root.game.objects["spike_" + _root.game.i].dir = spike_dir;
_parent.delay_attack = _root.delay_attack;
if (spike_dir == "down") {
_parent.gotoAndStop("attack_down");
} else {
_parent.gotoAndStop("attack");
}
}
}
_parent.press_attack = true;
} else {
_parent.press_attack = false;
}
if (_parent.delay_attack > 0) {
if (_root.kills >= 7) {
_parent.delay_attack = _parent.delay_attack - 2;
} else {
_parent.delay_attack--;
}
}
if (Key.isDown(39)) {
_parent.press_right++;
} else {
_parent.press_right = 0;
}
if (Key.isDown(37)) {
_parent.press_left++;
} else {
_parent.press_left = 0;
}
if ((_parent.press_right == 0) && (_parent.press_left == 0)) {
_parent.running = false;
}
if ((_parent.speed_x < 0) || (_parent.speed_x > 0)) {
_parent.walking = true;
if ((((_parent._currentFrame == 1) && (_parent.air != true)) && (_parent.jumping != true)) && (_parent._currentFrame != 7)) {
_parent.gotoAndStop("walk");
}
} else {
_parent.walking = false;
if (_parent._currentFrame == 2) {
_parent.gotoAndStop("stand");
}
}
if (_root.scrolling == true) {
level_limit_right = (_root.game._xscale / 100) * _root.level_limit_right;
level_limit_left = (_root.game._xscale / 100) * _root.level_limit_left;
if ((((_parent.speed_x > 0) || ((_parent.speed_x == 0) && (_parent._xscale > 0))) && ((_parent._x - _parent.speed_x) > _root.scroll_right)) && ((_root.game.bg._x - scroll_amount) > level_limit_right)) {
diff = _parent._x - _root.scroll_right;
diff = diff / 20;
if (diff > scroll_speed) {
scroll_speed = scroll_speed + 0.5;
} else if (scroll_speed < 0.5) {
scroll_speed = 0;
} else if (Math.abs(diff) > 0.5) {
scroll_speed = diff;
}
} else if ((((_parent.speed_x < 0) || ((_parent.speed_x == 0) && (_parent._xscale < 0))) && ((_parent._x - _parent.speed_x) < _root.scroll_left)) && ((_root.game.bg._x + scroll_amount) < level_limit_left)) {
diff = _parent._x - _root.scroll_left;
diff = diff / 20;
if (diff < scroll_speed) {
scroll_speed = scroll_speed - 0.5;
} else if (scroll_speed > -0.5) {
scroll_speed = 0;
} else if (Math.abs(diff) > 0.5) {
scroll_speed = diff;
}
} else {
scroll_speed = 0;
}
scroll_amount = scroll_speed;
if ((((_parent._x > _root.scroll_right) && (_parent.speed_x > 0)) && ((_root.game.bg._x - scroll_amount) > level_limit_right)) || (((_parent._x < _root.scroll_left) && (_parent.speed_x < 0)) && ((_root.game.bg._x + scroll_amount) < level_limit_left))) {
scroll_amount = scroll_amount + _parent.speed_x;
}
_root.scroll(scroll_amount, "hori");
}
if ((_parent._currentframe != 8) && (_parent._currentframe != 6)) {
_parent._x = _parent._x + _parent.speed_x;
if (_parent.air != true) {
speed_limit = _root.speed * 2;
} else {
speed_limit = _root.speed;
speed_bounce = _root.speed_jump / 2;
if (speed_bounce < 5) {
bounce = false;
} else {
bounce = true;
}
}
if (_root.kills >= 7) {
speed_limit = speed_limit * 1.1;
}
if ((((Key.isDown(39) && ((_parent.press_left == 0) || (_parent.press_left > _parent.press_right))) && (_parent.walk != false)) && (_parent._currentFrame != 7)) && (_parent.punched != true)) {
if (_parent._xscale < 0) {
_parent._xscale = _parent._xscale * -1;
}
if (_parent.speed_x < 0) {
_parent.speed_x = _parent.speed_x + 0.9;
if (_parent.skid != true) {
_parent.skid = true;
if (_parent.air != true) {
_root.spawn_object("fx_dust1", _parent._x, _parent._y, _parent._xscale, 0);
}
}
} else {
if (_parent.speed_x < speed_limit) {
_parent.speed_x = _parent.speed_x + 0.5;
if (_parent.speed_x > speed_limit) {
_parent.speed_x = speed_limit;
}
}
if (_parent.speed_x > 0) {
_parent.skid = false;
}
}
}
if ((((Key.isDown(37) && ((_parent.press_right == 0) || (_parent.press_right > _parent.press_left))) && (_parent.walk != false)) && (_parent._currentFrame != 7)) && (_parent.punched != true)) {
if (_parent._xscale > 0) {
_parent._xscale = _parent._xscale * -1;
}
if (_parent.speed_x > 0) {
_parent.speed_x = _parent.speed_x - 0.5;
if (_parent.skid != true) {
_parent.skid = true;
if (_parent.air != true) {
_root.spawn_object("fx_dust1", _parent._x, _parent._y, _parent._xscale, 0);
}
}
} else {
if (_parent.speed_x > (-speed_limit)) {
_parent.speed_x = _parent.speed_x - 0.5;
if (_parent.speed_x < (-speed_limit)) {
_parent.speed_x = -speed_limit;
}
}
if (_parent.speed_x < 0) {
_parent.skid = false;
}
}
}
}
if ((((((_parent.press_right == 0) && (_parent.press_left == 0)) || ((_parent.speed_x > speed_limit) || (_parent.speed_x < (-speed_limit)))) || (_parent._currentFrame == 7)) || (_parent.punched == true)) && (_parent.walk != false)) {
if ((_parent.air == true) || (_parent._currentFrame == 7)) {
slow = 0.2;
} else {
slow = 1;
}
if (_parent.speed_x > 0.5) {
_parent.speed_x = _parent.speed_x - slow;
} else if (_parent.speed_x < -0.5) {
_parent.speed_x = _parent.speed_x + slow;
} else {
_parent.punched = false;
_parent.speed_x = 0;
if (_parent.attack_drop != true) {
_parent.walk = true;
}
}
} else if ((_parent.walk == false) && (_parent.attack_drop != true)) {
if (_parent.no_walk_timer == 0) {
_parent.no_walk_timer = -1;
_parent.walk = true;
} else if (_parent.no_walk_timer > 0) {
_parent.no_walk_timer--;
} else {
_parent.no_walk_timer = 10;
}
}
if (_parent._x > _root.limit_right) {
_parent._x = _root.limit_right;
}
if (_parent._x < _root.limit_left) {
_parent._x = _root.limit_left;
}
if (spawn_dust > 0) {
spawn_dust--;
} else {
if (((_parent._currentframe == 7) && (Math.abs(_parent.speed_x) >= _root.speed)) && (_parent.air != true)) {
_root.spawn_object("fx_dust5", _root.game.peashy._x, _root.game.peashy._y, _root.game.peashy._xscale, 0);
}
spawn_dust = 5;
}
if (((_parent._currentframe == 7) && (Math.abs(_parent.speed_x) >= _root.speed)) && (_parent.air != true)) {
_parent.rolling = true;
_parent.alive = false;
} else if (_parent.rolling == true) {
_parent.rolling = false;
_parent.alive = true;
}
if ((((((_parent.jumping != true) && (_parent.air == true)) && (_parent._currentFrame != 4)) && (_parent._currentFrame != 5)) && (_parent._currentFrame != 7)) && (_parent.attack_drop != true)) {
_parent.gotoAndStop("fall");
} else if ((_parent.air == false) && ((((((_parent._currentFrame == 3) || (_parent._currentFrame == 4)) || (_parent._currentFrame == 5)) || ((_parent._currentFrame == 7) && (bounce == true))) || (_parent._currentFrame == 10)) || (_parent._currentFrame == 12))) {
if (_parent.platform_surface != "") {
_root.spawn_object("fx_dust2", _parent._x, _parent._y, _parent._xscale, 0);
}
_root["s_land" + (random(2) + 1)].start();
if (_parent._currentFrame == 7) {
_root.jump(speed_bounce);
} else if (Math.abs(_parent.speed_x) >= _root.speed) {
_parent.gotoAndStop("walk");
} else {
_parent.gotoAndStop("land");
}
} else if ((((_parent._currentFrame < 3) || (_parent._currentFrame == 5)) || (_parent.attack_drop == true)) && (_parent.jumping == true)) {
_parent.gotoAndStop("jump");
}
if (_parent.air == false) {
bounce = false;
}
if (_parent._y > _root.limit_bottom) {
_parent.gotoAndStop("die1");
}
}
Symbol 977 MovieClip Frame 2
call(1);
Symbol 978 MovieClip Frame 1
if (_root.pause_game != true) {
_root.level_events();
if (_parent.air != true) {
_parent.double_jump = false;
if (_parent.platform_surface == "sand") {
peashy_x = _parent._x + _root.game.bg._x;
if (((_parent.footprint_x + 25) < peashy_x) || ((_parent.footprint_x - 25) > peashy_x)) {
_parent.footprint_x = peashy_x;
if (_root.kills >= 7) {
_root.particle("bg_terrain_fx", "oval", 13369344, 30, (_parent._x - _root.game.bg._x) - _root.game.bg.terrain_fx._x, (_parent._y - _root.game.bg._y) - _root.game.bg.terrain_fx._y, 100, 0, 0, 0, 100);
} else {
_root.particle("bg_terrain_fx", "oval", 0, 20, (_parent._x - _root.game.bg._x) - _root.game.bg.terrain_fx._x, (_parent._y - _root.game.bg._y) - _root.game.bg.terrain_fx._y, 100, 0, 0, 0, 100);
}
}
}
if (_parent.platform_name != undefined) {
if (((_parent._x > _parent.platform_edge_right) && (_parent.platform_edge_right != false)) || ((_parent._x < _parent.platform_edge_left) && (_parent.platform_edge_left != false))) {
_parent.air = true;
_root.speed_jump = 0;
}
}
} else {
_parent.platform_surface = "";
}
if ((_parent.jumping == true) && (_root.speed_jump > 0)) {
_parent._y = _parent._y - _root.speed_jump;
_root.speed_jump = _root.speed_jump - _root.gravity_current;
} else {
_parent.jumping = false;
}
if ((_parent.jumping != true) && (_parent.air == true)) {
_root.gravity_current = _root.gravity;
_parent._y = _parent._y + _root.speed_jump;
if ((_root.speed_jump < _root.speed_fall) || ((_parent.attack_drop == true) && (_root.speed_jump < _root.speed_drop))) {
_root.speed_jump = _root.speed_jump + _root.gravity_current;
} else if (_parent.attack_drop != true) {
_root.speed_jump = _root.speed_fall;
}
}
_root.peashy_scroll_vert(_parent._y);
if (_parent.inside == true) {
_root.game.fg._alpha = 50;
} else {
_root.game.fg._alpha = 100;
}
}
Symbol 978 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1020 MovieClip Frame 1
if (((_parent._parent.speed_x > 0) && (_parent._parent.speed_x > (_root.speed * 1.5))) || ((_parent._parent.speed_x < 0) && (_parent._parent.speed_x < ((-_root.speed) * 1.5)))) {
_parent.gotoAndStop("run");
} else {
_parent.gotoAndStop("walk");
}
Symbol 1020 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1027 MovieClip Frame 3
_root.spawn_object("fx_dust4", _root.game.peashy._x, _root.game.peashy._y, _root.game.peashy._xscale, 0);
_root["s_footstep" + (random(2) + 1)].start();
Symbol 1027 MovieClip Frame 9
call(3);
Symbol 1034 MovieClip Frame 3
_root.spawn_object("fx_dust4", _root.game.peashy._x, _root.game.peashy._y, _root.game.peashy._xscale, 0);
_root["s_footstep" + (random(2) + 1)].start();
Symbol 1034 MovieClip Frame 9
call(3);
Symbol 1041 MovieClip Frame 3
_root.spawn_object("fx_dust4", _root.game.peashy._x, _root.game.peashy._y, _root.game.peashy._xscale, 0);
_root["s_footstep" + (random(2) + 1)].start();
Symbol 1041 MovieClip Frame 9
call(3);
Symbol 1048 MovieClip Frame 3
_root.spawn_object("fx_dust4", _root.game.peashy._x, _root.game.peashy._y, _root.game.peashy._xscale, 0);
_root["s_footstep" + (random(2) + 1)].start();
Symbol 1048 MovieClip Frame 9
call(3);
Symbol 1055 MovieClip Frame 3
_root.spawn_object("fx_dust4", _root.game.peashy._x, _root.game.peashy._y, _root.game.peashy._xscale, 0);
_root["s_footstep" + (random(2) + 1)].start();
Symbol 1055 MovieClip Frame 9
call(3);
Symbol 1062 MovieClip Frame 8
stop();
Symbol 1067 MovieClip Frame 9
gotoAndPlay (7);
Symbol 1072 MovieClip Frame 9
gotoAndPlay (7);
Symbol 1077 MovieClip Frame 9
gotoAndPlay (7);
Symbol 1082 MovieClip Frame 9
gotoAndPlay (7);
Symbol 1091 MovieClip Frame 15
gotoAndPlay (7);
Symbol 1096 MovieClip Frame 15
gotoAndPlay (7);
Symbol 1104 MovieClip Frame 15
gotoAndPlay (7);
Symbol 1112 MovieClip Frame 15
gotoAndPlay (7);
Symbol 1117 MovieClip Frame 15
gotoAndPlay (7);
Symbol 1142 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent._parent._parent.attack_drop == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 1150 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent._parent._parent.attack_drop == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 1158 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent._parent._parent.attack_drop == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 1166 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent._parent._parent.attack_drop == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 1168 MovieClip Frame 1
if (_parent._parent.attack_drop == true) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 1168 MovieClip Frame 2
_root.camera("shake_y", 7);
Symbol 1168 MovieClip Frame 3
_root.camera("shake_y", -7);
Symbol 1168 MovieClip Frame 4
_root.camera("shake_y", -4);
Symbol 1168 MovieClip Frame 5
_root.camera("shake_y", 4);
Symbol 1168 MovieClip Frame 6
_root.camera("shake_y", 3);
Symbol 1168 MovieClip Frame 7
_root.camera("shake_y", -3);
Symbol 1169 MovieClip Frame 5
_parent.gotoAndStop("stand");
Symbol 1174 MovieClip Frame 1
this.onEnterFrame = function () {
if ((_parent._parent.speed_x == 0) && (_parent._parent.air != true)) {
play();
} else if (_root.pause_game != true) {
ball._rotation = ball._rotation + Math.abs(_parent._parent.speed_x * 3);
}
};
Symbol 1174 MovieClip Frame 5
stop();
Symbol 1174 MovieClip Frame 10
_parent._parent.gotoAndStop("stand");
Symbol 1176 MovieClip Frame 1
this.onEnterFrame = function () {
if ((_parent._parent.speed_x == 0) && (_parent._parent.air != true)) {
play();
} else if (_root.pause_game != true) {
ball._rotation = ball._rotation + Math.abs(_parent._parent.speed_x * 3);
}
};
Symbol 1176 MovieClip Frame 5
stop();
Symbol 1176 MovieClip Frame 10
_parent._parent.gotoAndStop("stand");
Symbol 1179 MovieClip Frame 1
this.onEnterFrame = function () {
if ((_parent._parent.speed_x == 0) && (_parent._parent.air != true)) {
play();
} else if (_root.pause_game != true) {
ball._rotation = ball._rotation + Math.abs(_parent._parent.speed_x * 3);
}
};
Symbol 1179 MovieClip Frame 5
stop();
Symbol 1179 MovieClip Frame 10
_parent._parent.gotoAndStop("stand");
Symbol 1182 MovieClip Frame 1
this.onEnterFrame = function () {
if ((_parent._parent.speed_x == 0) && (_parent._parent.air != true)) {
play();
} else if (_root.pause_game != true) {
ball._rotation = ball._rotation + Math.abs(_parent._parent.speed_x * 3);
}
};
Symbol 1182 MovieClip Frame 5
stop();
Symbol 1182 MovieClip Frame 10
_parent._parent.gotoAndStop("stand");
Symbol 1187 MovieClip Frame 1
this.onEnterFrame = function () {
if ((_parent._parent.speed_x == 0) && (_parent._parent.air != true)) {
play();
} else if (_root.pause_game != true) {
ball._rotation = ball._rotation + Math.abs(_parent._parent.speed_x * 3);
}
};
Symbol 1187 MovieClip Frame 5
stop();
Symbol 1187 MovieClip Frame 10
_parent._parent.gotoAndStop("stand");
Symbol 1192 MovieClip Frame 7
if (_parent._parent.ducking == true) {
gotoAndPlay (6);
}
Symbol 1192 MovieClip Frame 9
_parent._parent.gotoAndStop("stand");
Symbol 1196 MovieClip Frame 7
if (_parent._parent.ducking == true) {
gotoAndPlay (6);
}
Symbol 1196 MovieClip Frame 9
_parent._parent.gotoAndStop("stand");
Symbol 1200 MovieClip Frame 7
if (_parent._parent.ducking == true) {
gotoAndPlay (6);
}
Symbol 1200 MovieClip Frame 9
_parent._parent.gotoAndStop("stand");
Symbol 1204 MovieClip Frame 7
if (_parent._parent.ducking == true) {
gotoAndPlay (6);
}
Symbol 1204 MovieClip Frame 9
_parent._parent.gotoAndStop("stand");
Symbol 1217 MovieClip Frame 1
if (_parent._parent.punch_num == 2) {
gotoAndPlay (14);
}
Symbol 1217 MovieClip Frame 6
_parent._parent.attacking = true;
Symbol 1217 MovieClip Frame 8
_parent._parent.attacking = false;
Symbol 1217 MovieClip Frame 13
gotoAndStop(_totalframes);
Symbol 1217 MovieClip Frame 18
_parent._parent.attacking = true;
Symbol 1217 MovieClip Frame 20
_parent._parent.attacking = false;
Symbol 1217 MovieClip Frame 23
_parent._parent.gotoAndStop("stand");
Symbol 1247 MovieClip Frame 5
_parent.gotoAndStop("stand");
Symbol 1269 MovieClip Frame 4
_parent.gotoAndStop("stand");
Symbol 1308 MovieClip Frame 7
_parent.alive = true;
_parent.gotoAndStop("stand");
Symbol 1311 MovieClip Frame 1
_root.camera("shake", 5);
Symbol 1311 MovieClip Frame 2
_root.camera("shake", -5);
Symbol 1311 MovieClip Frame 3
_root.camera("shake", -5);
Symbol 1311 MovieClip Frame 4
_root.camera("shake", 5);
Symbol 1311 MovieClip Frame 5
_root.camera("shake", 3);
Symbol 1311 MovieClip Frame 6
_root.camera("shake", -3);
Symbol 1311 MovieClip Frame 7
_root.camera("shake", -3);
Symbol 1311 MovieClip Frame 8
_root.camera("shake", 3);
Symbol 1311 MovieClip Frame 9
_parent.gotoAndStop("stand");
Symbol 1314 MovieClip Frame 1
_root.camera("shake", 5);
Symbol 1314 MovieClip Frame 2
_root.camera("shake", -5);
Symbol 1314 MovieClip Frame 3
_root.camera("shake", -5);
Symbol 1314 MovieClip Frame 4
_root.camera("shake", 5);
Symbol 1314 MovieClip Frame 5
_root.camera("shake", 3);
Symbol 1314 MovieClip Frame 6
_root.camera("shake", -3);
Symbol 1314 MovieClip Frame 7
_root.camera("shake", -3);
Symbol 1314 MovieClip Frame 8
_root.camera("shake", 3);
Symbol 1314 MovieClip Frame 9
if (((_parent._y > _root.limit_bottom) || (_parent.air != true)) || (_parent.platform_rescue != true)) {
gotoAndStop(_currentframe + 2);
}
Symbol 1314 MovieClip Frame 10
gotoAndPlay(_currentframe - 1);
Symbol 1314 MovieClip Frame 11
_parent.gotoAndStop("stand");
Symbol 1315 MovieClip Frame 1
if (_root.pause_game != true) {
if (_parent.platform_rescue == true) {
speed = (_parent.last_good_x - _parent._x) / 3;
if (speed > _root.speed_rescue) {
speed = _root.speed_rescue;
} else if (speed < (-_root.speed_rescue)) {
speed = -_root.speed_rescue;
}
_parent._x = _parent._x + speed;
} else if (_parent.platform_rescue != "partial") {
if (_parent._xscale > 0) {
_parent._x = _parent._x - _root.speed_hit;
_parent.speed_x = -_root.speed_hit;
} else {
_parent._x = _parent._x + _root.speed_hit;
_parent.speed_x = _root.speed_hit;
}
}
if (_parent._x > _root.limit_right) {
_parent._x = _root.limit_right;
}
if (_parent._x < _root.limit_left) {
_parent._x = _root.limit_left;
}
}
Symbol 1315 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1325 MovieClip Frame 61
_parent.gotoAndStop("stand");
Symbol 1334 MovieClip Frame 46
_parent.gotoAndStop("stand");
Symbol 1336 MovieClip Frame 1
if (_root.pause_game != true) {
dest_y = _root.center_y - 10;
if (_parent._parent._y > dest_y) {
_parent._parent._y = _parent._parent._y - 5;
} else if (_parent._parent._y < dest_y) {
_root.scroll((_parent._parent._y - dest_y) / 3, "vert");
}
}
Symbol 1336 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1346 MovieClip Frame 15
_parent.jumping = false;
Symbol 1346 MovieClip Frame 30
_parent.air = true;
_parent.gotoAndStop("stand");
Symbol 1347 MovieClip Frame 1
if (ini != true) {
ini = true;
this.cacheAsBitmap = true;
platform_contact = 0;
clr = new Color(this);
width = 20;
}
if (alive == false) {
alive = true;
invincible = true;
}
walk = true;
attack_drop = false;
if (death == true) {
alive = false;
_root.lives--;
if ((_root.arena != true) && (_root.timetrial != true)) {
_root.cinemas.gotoAndStop("die");
} else {
_root.cinemas.gotoAndStop("outro");
}
gotoAndStop ("nada");
}
this.onEnterFrame = function () {
_root.peashy_cam(speed_x, _x, _y, _xscale);
};
stop();
Symbol 1347 MovieClip Frame 3
attack_drop = false;
Symbol 1347 MovieClip Frame 4
_root["s_double_jump" + (random(2) + 1)].start();
Symbol 1347 MovieClip Frame 6
if (attack_drop == true) {
if (platform_surface != "") {
_root.spawn_object("fx_dust6", _x, _y, 100, 0);
}
_root.s_stomp.start();
}
Symbol 1347 MovieClip Frame 7
_root["s_roll" + (random(2) + 1)].start();
Symbol 1347 MovieClip Frame 10
_root["s_throw" + (random(2) + 1)].start();
Symbol 1347 MovieClip Frame 11
_root["s_throw" + (random(2) + 1)].start();
Symbol 1347 MovieClip Frame 12
speed_x = 0;
_root["s_roll" + (random(2) + 1)].start();
Symbol 1347 MovieClip Frame 13
alive = false;
Symbol 1347 MovieClip Frame 14
_root.spawn_object("fx_blood1", _x, _y - 30, _xscale, 0);
_root.spawn_object("fx_blood_particle", _x, _y, 100, 10);
if (air == true) {
gotoAndStop ("hit_air");
}
Symbol 1347 MovieClip Frame 16
_root.s_splat1.start();
_root.spawn_object("fx_blood2", _x, _y - 10, 100, 0);
_root.spawn_object("fx_gibs", _x, _y, 1, 6);
_root.spawn_object("fx_blood_particle", _x, _y, 100, 20);
alive = false;
death = true;
jumping = false;
if (air == true) {
gotoAndStop ("die_air");
}
Symbol 1347 MovieClip Frame 21
jumping = true;
alive = false;
_root.cam_zoom_temp = 140;
Symbol 1362 MovieClip Frame 1
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
if (_root.pause_game != true) {
if (x < 500) {
if (((((x - 100) < _root.game.peashy._x) && ((y + 50) > _root.game.peashy._y)) && ((y - 100) < _root.game.peashy._y)) && (_root.game.peashy.air != true)) {
_root.game.peashy.gotoAndStop("cinema_stand");
_root.cinemas.gotoAndStop("outro");
}
}
}
Symbol 1362 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 800 MovieClip in Symbol 1365 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "rock";
}
Instance of Symbol 799 MovieClip in Symbol 1365 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
onClipEvent (load) {
surface = "rock";
}
Symbol 1369 MovieClip Frame 1
w = _width / 2;
Symbol 1376 MovieClip Frame 1
stop();
Symbol 1376 MovieClip Frame 2
_root.music.stop(_root.music_name);
_root.m_bloodlust.start();
Symbol 1376 MovieClip Frame 10
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 11
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 12
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 13
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 14
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 15
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 16
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 17
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 18
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 19
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 20
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 21
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 22
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 23
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 24
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 25
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 26
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 27
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 28
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 29
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 30
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 31
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 32
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 33
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 34
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 35
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 36
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 37
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 38
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 39
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 40
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 41
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 42
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 43
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 44
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 45
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 46
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 47
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 48
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 49
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 50
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 51
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 52
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 53
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 54
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 55
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 56
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 57
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 58
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 59
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 60
_root.camera("shake", 7);
Symbol 1376 MovieClip Frame 61
_root.camera("shake", -7);
Symbol 1376 MovieClip Frame 75
if (_root.m_bloodlust.duration == _root.m_bloodlust.position) {
_root.play_music(_root.music_name);
gotoAndStop(_currentframe + 2);
}
Symbol 1376 MovieClip Frame 76
gotoAndPlay(_currentframe - 1);
Symbol 1379 MovieClip Frame 1
lives = String(_root.lives);
if (_root.lives < 10) {
lives = "0" + lives;
}
if (_root.lives > 9) {
_root.hud_lives.d1.gotoAndStop(lives.charAt(0));
_root.hud_lives.d1.nextFrame();
} else {
_root.hud_lives.d1.gotoAndStop(1);
}
if (lives.charAt(1) != "0") {
_root.hud_lives.d2.gotoAndStop(lives.charAt(1));
_root.hud_lives.d2.nextFrame();
} else {
_root.hud_lives.d2.gotoAndStop(1);
}
shycons = String(_root.shycons);
if (_root.shycons < 10) {
shycons = "0" + shycons;
}
if (_root.shycons > 9) {
_root.hud_shycons.d1.gotoAndStop(shycons.charAt(0));
_root.hud_shycons.d1.nextFrame();
} else {
_root.hud_shycons.d1.gotoAndStop(1);
}
if (shycons.charAt(1) != "0") {
_root.hud_shycons.d2.gotoAndStop(shycons.charAt(1));
_root.hud_shycons.d2.nextFrame();
} else {
_root.hud_shycons.d2.gotoAndStop(1);
}
if (_root.kills < 7) {
_root.hud_spikes.gotoAndStop(1);
if (!spike_num) {
spike_num = _root.ammo;
}
if (_root.ammo > 99) {
_root.ammo = 99;
}
if (spike_num < _root.ammo) {
spike_num++;
} else {
spike_num = _root.ammo;
}
spikes = String(spike_num);
if (spike_num < 10) {
spikes = "0" + spikes;
}
if (spike_num > 9) {
_root.hud_spikes.d1.gotoAndStop(spikes.charAt(0));
_root.hud_spikes.d1.nextFrame();
} else {
_root.hud_spikes.d1.gotoAndStop(1);
}
if (spikes.charAt(1) != "0") {
_root.hud_spikes.d2.gotoAndStop(spikes.charAt(1));
_root.hud_spikes.d2.nextFrame();
} else {
_root.hud_spikes.d2.gotoAndStop(1);
}
_root.hud_spikes.bar.gotoAndStop(((_root.game.peashy.delay_attack / _root.delay_attack) * 100) + 1);
} else {
_root.hud_spikes.gotoAndStop(2);
}
process_score = String(_root.score);
while (process_score.length < 8) {
process_score = "0" + process_score;
}
i = 0;
while (i < 9) {
showscore = process_score.charAt(i);
showscore++;
i++;
_root.hud_score["d" + i].gotoAndStop(showscore);
}
if ((_root.timetrial != true) && (_root.arena != true)) {
_root.hud_chapter = (("CHAPTER " + _root.chapter) + "-") + _root.level_current;
} else {
_root.hud_chapter = "";
}
if (_root.kills >= 7) {
if (bloodlust._currentFrame == 1) {
bloodlust.play();
_root.game.peashy.gotoAndStop("bloodlust");
}
} else if (bloodlust._currentFrame > 1) {
bloodlust.gotoAndStop(1);
}
if (_root.level_tint != false) {
_root.set_tint();
}
Symbol 1379 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1385 MovieClip Frame 1
stop();
Symbol 1392 MovieClip Frame 1
stop();
Symbol 1397 MovieClip Frame 1
stop();
Symbol 1402 MovieClip Frame 1
_visible = false;
_alpha = 0;
txt = "";
this.onEnterFrame = function () {
if (txt == "") {
if (_alpha > 0) {
_alpha = (_alpha - 2);
} else {
_visible = false;
}
} else {
_visible = true;
if (_alpha < 70) {
_alpha = (_alpha + 2);
}
}
};
Symbol 1405 MovieClip Frame 1
stop();
Symbol 1420 MovieClip Frame 1
if (_root.arena != true) {
stop();
} else if (_root.timetrial == true) {
gotoAndStop (3);
} else {
nextFrame();
}
Symbol 1422 MovieClip Frame 25
_parent.end = true;
Symbol 1423 MovieClip Frame 1
_root.music.stop(_root.music_name);
Symbol 1423 MovieClip Frame 56
kills = 0;
shycons = 0;
time = Math.floor(_root.time / 30);
end_stats._visible = false;
Symbol 1423 MovieClip Frame 57
if ((kills == _root.kills_total) && (shycons == _root.shycons_level)) {
if (end_stats._visible != true) {
if (kills == _root.enemies_total) {
_root.lives++;
_root.s_item3.start();
}
}
end_stats._visible = true;
} else {
if (kills < _root.kills_total) {
kills++;
}
kills_d = (kills + "/") + _root.enemies_total;
if (shycons < _root.shycons_level) {
shycons++;
}
if (end_stats._visible != true) {
_root.s_click.start();
}
}
if (Key.isDown(13) || (Key.isDown(65))) {
if (press_enter != true) {
kills = _root.kills_total;
shycons = _root.shycons_level;
if (end_stats._visible == true) {
gotoAndPlay(_currentframe + 2);
}
end_stats._visible = true;
}
press_enter = true;
} else {
press_enter = false;
}
Symbol 1423 MovieClip Frame 58
gotoAndPlay(_currentframe - 1);
Symbol 1423 MovieClip Frame 60
if (end != true) {
gotoAndPlay(_currentframe - 1);
}
Symbol 1423 MovieClip Frame 94
if ((_root.arena != true) && (_root.timetrial != true)) {
if (_root.level_current < 7) {
if (_root.level_current == _root.level) {
_root.level++;
}
_root.gotoAndStop("goto_map");
} else {
_root.gotoAndStop("win");
}
} else {
_root.gotoAndStop("title");
}
Symbol 1424 MovieClip Frame 64
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
} else {
_root.gotoAndStop("goto_map");
}
Symbol 1459 MovieClip Frame 1
_root.game._visible = 0;
_root.pause_game = true;
Symbol 1459 MovieClip Frame 67
_root.game._visible = 1;
_root.pause_game = false;
_parent.gotoAndStop(1);
Symbol 1460 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 1460 MovieClip Frame 2
_root.pause_allow = false;
Symbol 1460 MovieClip Frame 3
_root.pause_allow = false;
Symbol 1461 Button
on (keyPress "q") {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else {
_quality = "HIGH";
}
}
Symbol 1462 MovieClip Frame 1
if ((Key.isDown(27) || (Key.isDown(17))) || (Key.isDown(18))) {
fscommand ("quit", "true");
}
Symbol 1462 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1467 MovieClip Frame 1
Symbol 1467 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1472 MovieClip Frame 52
stop();
Instance of Symbol 139 MovieClip in Symbol 1472 MovieClip Frame 52
//component parameters
onClipEvent (construct) {
dir = "right";
drop_off = "yes";
}
Symbol 1473 MovieClip Frame 1
function peashy_check() {
if (_currentframe == 1) {
if (_root.game.peashy.rolling == true) {
gotoAndStop (2);
return(true);
}
}
}
_parent._parent.walls++;
_name = ("wall" + _parent._parent.walls);
this.onEnterFrame = function () {
x = _x + _parent._x;
y = _y + _parent._y;
width = _width / 3.5;
height = _height - 60;
if ((_root.game.peashy._x > (x - 500)) && (_root.game.peashy._x < x)) {
for (spike in _root.game.objects) {
if ((substring(_root.game.objects[spike]._name, 0, 5)) == "spike") {
if ((_root.game.objects[spike]._currentFrame == 1) || (_root.game.objects[spike]._currentframe == _root.game.objects[spike]._totalframes)) {
spike_x = _root.game.objects[spike]._x + _root.game.objects._x;
spike_y = _root.game.objects[spike]._y + _root.game.objects._y;
spike_width = _root.game.objects[spike].width;
spike_height = _root.game.objects[spike].height;
if (spike_x > x) {
if ((spike_x - spike_width) < (x + width)) {
if (spike_y > (y - height)) {
if ((spike_y - spike_height) < y) {
if ((_root.game.objects[spike].type == 2) && (_root.game.objects[spike].boom == true)) {
gotoAndStop (2);
}
}
}
}
}
}
}
}
}
w = width;
h = height;
if (_currentframe == 1) {
if ((y + h) > (_root.limit_top - 100)) {
if ((y - h) < (_root.limit_bottom + 100)) {
if ((x - w) < (_root.limit_right + 100)) {
if ((x + w) > (_root.limit_left - 100)) {
_root.wall(_name, "", "rock", x, y, w, h);
}
}
}
}
}
};
stop();
Instance of Symbol 139 MovieClip "top" in Symbol 1473 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
drop_off = "yes";
}
Symbol 1473 MovieClip Frame 2
top._visible = false;
Symbol 1482 MovieClip Frame 1
x = _x + _parent._x;
y = _y + _parent._y;
if (dir == "left") {
_xscale = -100;
}
if ((((x > _root.limit_right) || (x < _root.limit_left)) || (y > _root.limit_bottom)) || (y < _root.limit_top)) {
gotoAndPlay ("done");
} else {
_root["s_fart" + (random(2) + 1)].start();
}
Symbol 1482 MovieClip Frame 7
if (_xscale > 0) {
x = (_x + _parent._x) + 40;
} else {
x = (_x + _parent._x) - 40;
}
_root.spawn_object("shit", x, _y + _parent._y, _xscale, 0);
Symbol 1482 MovieClip Frame 17
gotoAndPlay(_currentframe + random(10));
Symbol 1485 MovieClip Frame 1
if (_root.pause_game != true) {
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
if (_parent._currentframe == 1) {
if (((((_root.game.peashy._x + 100) > x) && ((_root.game.peashy._x - 100) < x)) && (_root.game.peashy._y > (y - 100))) && (_root.game.peashy._y < (y + 100))) {
_parent.gotoAndStop("fall");
}
} else {
if (((((((x + _parent.width) > _root.game.peashy._x) && ((x - _parent.width) < _root.game.peashy._x)) && ((y - _parent.height) < _root.game.peashy._y)) && (y > (_root.game.peashy._y - _root.game.peashy.height))) && (_root.game.peashy.alive != false)) && (_root.game.peashy.invincible != true)) {
_root.hurt();
_parent.gotoAndStop("die1");
}
if (_parent._y <= _parent.platform_y) {
_parent._y = _parent._y + (_root.speed_bean_fall - ((_parent.type - 1) * 2));
} else {
_parent._y = _parent.platform_y;
_parent.gotoAndStop("die2");
}
}
}
Symbol 1485 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1490 MovieClip Frame 1
gotoAndStop(_parent.type);
Symbol 1501 MovieClip Frame 21
if (_parent._parent.respawn == true) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 1513 MovieClip Frame 21
if (_parent._parent.respawn == true) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 1524 MovieClip Frame 21
if (_parent._parent.respawn == true) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 1525 MovieClip Frame 1
gotoAndStop(_parent.type);
Symbol 1537 MovieClip Frame 21
if (_parent._parent.respawn == true) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 1553 MovieClip Frame 21
if (_parent._parent.respawn == true) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 1566 MovieClip Frame 6
_root.spawn_object("bg:bean2", _parent._parent._x - 30, _parent._parent._y, -100, 0);
_root.game.bg["bean2_" + _root.game.bg.i].gotoAndStop("hop");
_root.game.bg["bean2_" + _root.game.bg.i].bean.gotoAndPlay("air");
_root.spawn_object("bg:bean2", _parent._parent._x + 30, _parent._parent._y, 100, 0);
_root.game.bg["bean2_" + _root.game.bg.i].gotoAndStop("hop");
_root.game.bg["bean2_" + _root.game.bg.i].bean.gotoAndPlay("air");
Symbol 1566 MovieClip Frame 21
if (_parent._parent.respawn == true) {
_parent._parent.gotoAndStop(1);
} else {
stop();
}
Symbol 1567 MovieClip Frame 1
gotoAndStop(_parent.type);
Symbol 1568 MovieClip Frame 1
if (ini != true) {
ini = true;
default_x = _x;
platform_y = _y;
_root.enemies_total++;
}
score = 5;
stop();
Instance of Symbol 1484 MovieClip in Symbol 1568 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1568 MovieClip Frame 2
if (((random(6) == 1) && (!size)) || (size == 3)) {
width = 70;
height = 120;
type = 3;
} else if (((random(3) == 1) && (!size)) || (size == 2)) {
width = 33;
height = 50;
type = 2;
} else if ((!size) || (size == 1)) {
width = 15;
height = 35;
type = 1;
}
if (respawn != true) {
if (_root.game.peashy._x < (_x + _parent._x)) {
_x = (_x + 10);
} else {
_x = (_x - 10);
}
} else {
_x = ((default_x - (area_x / 2)) + random(area_x));
}
_y = ((_root.limit_top - _parent._y) - random(600));
Symbol 1568 MovieClip Frame 3
if (_root.peashy.alive != false) {
if (_root.mask == true) {
_root.kills++;
}
_root.score = _root.score + score;
_root.spawn_object("fx_score_gain", _x + _parent._x, bean_y + _parent._y, score, 0);
}
_root["s_splat" + (random(3) + 1)].start();
Symbol 1568 MovieClip Frame 4
_root["s_splat" + (random(3) + 1)].start();
if ((random(3) == 1) && (respawn != true)) {
_root.drop_item(1, "item", 2, _x + _parent._x, _y + _parent._y);
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
dir = "left";
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
dir = "left";
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
dir = "right";
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
dir = "right";
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
dir = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
dir = "right";
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
dir = "right";
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
onClipEvent (load) {
dir = "left";
surface = "rock";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
dir = "right";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
onClipEvent (load) {
_xscale = (_xscale * -1);
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
onClipEvent (load) {
_xscale = (_xscale * -1);
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
onClipEvent (load) {
_xscale = (_xscale * -1);
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
onClipEvent (load) {
_xscale = (_xscale * -1);
}
Instance of Symbol 873 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "ammo2";
}
Instance of Symbol 873 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "ammo3";
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 1482 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 1568 MovieClip in Symbol 1569 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
size = "3";
respawn = true;
area_x = 100;
}
Symbol 1589 MovieClip Frame 1
if (_root.pause_game != true) {
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
if (((((_root.game.peashy._x + 200) > x) && ((_root.game.peashy._x - 200) < x)) && ((_root.game.peashy._y + 270) > y)) && ((_root.game.peashy._y - 270) < y)) {
if ((_parent.speed_x == 0) && (_parent.speed_y == 0)) {
if (((((_root.game.peashy._x + 130) < x) || ((_root.game.peashy._x - 130) > x)) || ((_root.game.peashy._y + 100) < y)) || ((_root.game.peashy._y - 100) > y)) {
if (_parent._currentFrame == 1) {
if ((_root.game.peashy._x + 90) < x) {
_parent.speed_x = -_root.speed_bloatling;
} else if ((_root.game.peashy._x - 90) > x) {
_parent.speed_x = _root.speed_bloatling;
}
if ((_root.game.peashy._y + 70) < y) {
_parent.speed_y = -_root.speed_bloatling;
} else if ((_root.game.peashy._y - 70) > y) {
_parent.speed_y = _root.speed_bloatling;
}
_parent.gotoAndStop("move");
} else if ((_parent._currentFrame == 5) && (_parent.inflated_timer == 0)) {
_parent.gotoAndStop("deflate");
}
} else if (_parent._currentFrame == 1) {
_parent.inflated_timer = 40;
_parent.gotoAndStop("inflate");
} else if (_parent._currentFrame == 5) {
if (((((((x + 50) > _root.game.peashy._x) && ((x - 50) < _root.game.peashy._x)) && (y > (_root.game.peashy._y - _root.game.peashy.height))) && ((y - 35) < _root.game.peashy._y)) && (_root.game.peashy.alive != false)) && (_root.game.peashy.invincible != true)) {
_root.jump(20);
if (x > _root.game.peashy._x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
}
}
}
}
if (_parent.inflated_timer > 0) {
_parent.inflated_timer--;
}
_parent._x = _parent._x + _parent.speed_x;
_parent._y = _parent._y + _parent.speed_y;
if (x > _root.game.peashy._x) {
_parent._xscale = -100;
} else {
_parent._xscale = 100;
}
if ((_parent.speed_y < 0) && (_parent.bloat._yscale > 0)) {
_parent.bloat._yscale = _parent.bloat._yscale * -1;
} else if ((_parent.speed_y > 0) && (_parent.bloat._yscale < 0)) {
_parent.bloat._yscale = _parent.bloat._yscale * -1;
}
if (_parent.speed_x > 0) {
_parent.speed_x = _parent.speed_x - 0.1;
if (_parent.speed_x < 0) {
_parent.speed_x = 0;
}
} else if (_parent.speed_x < 0) {
_parent.speed_x = _parent.speed_x + 0.1;
if (_parent.speed_x > 0) {
_parent.speed_x = 0;
}
}
if (_parent.speed_y > 0) {
_parent.speed_y = _parent.speed_y - 0.1;
if (_parent.speed_y < 0) {
_parent.speed_y = 0;
}
} else if (_parent.speed_y < 0) {
_parent.speed_y = _parent.speed_y + 0.1;
if (_parent.speed_y > 0) {
_parent.speed_y = 0;
}
}
}
Symbol 1589 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1598 MovieClip Frame 17
_parent.gotoAndStop("stand");
Symbol 1606 MovieClip Frame 15
_parent.gotoAndStop("stand_inflated");
Symbol 1611 MovieClip Frame 9
_parent.gotoAndStop("stand");
Symbol 1616 MovieClip Frame 1
if (ini != true) {
ini = true;
speed_x = 0;
speed_y = 0;
height = -35;
width = 40;
}
stop();
Symbol 1616 MovieClip Frame 3
_root.s_inflate.start();
Symbol 1616 MovieClip Frame 4
_root.s_deflate.start();
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "left";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 830 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "none";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "none";
}
Instance of Symbol 799 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 830 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 830 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 1482 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 1482 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 1482 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 873 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "ammo2";
}
Instance of Symbol 1482 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 1568 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
size = "2";
respawn = true;
area_x = 200;
}
Instance of Symbol 1568 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
size = "1";
respawn = false;
area_x = 50;
}
Instance of Symbol 1568 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
size = "1";
respawn = false;
area_x = 50;
}
Instance of Symbol 1568 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
size = "1";
respawn = false;
area_x = 50;
}
Instance of Symbol 1568 MovieClip in Symbol 1617 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
size = "1";
respawn = false;
area_x = 50;
}
Symbol 1633 MovieClip Frame 1
speed = 4;
width = _width / 2;
speed_x = 0;
start_y = _y;
if (random(2) == 1) {
speed_y = speed;
} else {
speed_y = -speed;
}
bean.bean.gotoAndStop(random(bean._totalframes) + 1);
bean.bean._rotation = -35 + random(70);
bean._xscale = 50 + random(50);
bean._yscale = bean._xscale;
if (random(2) == 1) {
bean._xscale = bean._xscale * -1;
}
top._width = bean._width * 0.8;
this.onEnterFrame = function () {
_y = (_y + speed_y);
if ((top.name == _root.game.peashy.platform_name) && (_root.game.peashy.air != true)) {
_root.game.peashy._y = _root.game.peashy._y + speed_y;
if (prev_peashy_plat != top.name) {
speed_x = ((_x + _parent._x) - _root.game.peashy._x) / (50 + random(5));
speed_y = speed_y + 3;
}
}
if (_y > start_y) {
speed_y = speed_y - 0.5;
} else if (_y < start_y) {
speed_y = speed_y + 0.5;
}
if ((speed_y > speed) && (_y > start_y)) {
speed_y = speed_y - 0.5;
} else if ((speed_y < (-speed)) && (_y < start_y)) {
speed_y = speed_y + 0.5;
}
prev_peashy_plat = _root.game.peashy.platform_name;
if (_root.game.peashy.air == true) {
prev_peashy_plat = 0;
}
if (((_x + _parent._x) + width) < _root.limit_left) {
gotoAndStop ("respawn");
}
};
stop();
Instance of Symbol 800 MovieClip "top" in Symbol 1633 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Symbol 1633 MovieClip Frame 2
_x = (((_root.limit_right - _parent._x) + width) + random(50));
_y = (((_root.limit_bottom - _parent._y) + 100) - random(200));
gotoAndStop (1);
Symbol 1634 MovieClip Frame 9
_root.spawn_object("bean5_bloodball", _parent._x + _parent._parent._x, (_parent._y + _parent._parent._y) + 30);
Symbol 1634 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 1635 MovieClip Frame 20
stop();
Symbol 1637 MovieClip Frame 1
if (ini != true) {
ini = true;
this.cacheAsBitmap = true;
exp = 20;
_root.enemies_total++;
}
if (respawn != false) {
respawn = false;
type = random(2) + 1;
if (type == 2) {
width = 40;
height = 60;
} else {
width = 35;
height = 45;
}
_x = (_x + random(100));
_y = ((_root.limit_top + (random(_root.limit_bottom - _root.limit_top) / 2)) - _parent._y);
}
stop();
this.onEnterFrame = function () {
if (_root.pause_game != true) {
x = _x + _parent._x;
y = _y + _parent._y;
p_x = _root.game.peashy._x;
p_y = _root.game.peashy._y;
if (_currentframe < 3) {
if ((type == 2) && (Math.abs(x - p_x) < 50)) {
if ((int(attack_timer) < 1) && (_root.game.peashy.alive != false)) {
attack_timer = random(50) + 50;
gotoAndStop ("attack");
} else {
attack_timer--;
}
}
if (x < (_root.limit_right + 100)) {
speed_x = -_root.speed_bean_sleep;
} else {
speed_x = 0;
}
_x = (_x + speed_x);
_y = (_y + speed_y);
if (speed_x > 0) {
_xscale = 100;
} else {
_xscale = -100;
}
x = _x + _parent._x;
y = _y + _parent._y;
peashy_x = _root.game.peashy._x;
peashy_y = _root.game.peashy._y;
if (((((x + width) > peashy_x) && ((x - width) < peashy_x)) && ((y - height) < peashy_y)) && (y > (peashy_y - _root.game.peashy.height))) {
if ((((y > peashy_y) && (_root.game.peashy.air != false)) && (_root.game.peashy.jumping != true)) && (_root.game.peashy.alive != false)) {
if (_root.game.peashy.attack_drop != true) {
_root.jump(20, true);
_root.game.peashy.gotoAndStop("stomp");
}
gotoAndStop ("die1");
} else if ((_root.game.peashy.invincible != true) && (_root.game.peashy.alive != false)) {
if (x > peashy_x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
}
}
for (spike in _root.game.objects) {
if ((substring(_root.game.objects[spike]._name, 0, 5)) == "spike") {
if ((_root.game.objects[spike]._currentFrame == 1) || (_root.game.objects[spike]._currentframe == _root.game.objects[spike]._totalframes)) {
spike_x = _root.game.objects[spike]._x + _root.game.objects._x;
spike_y = _root.game.objects[spike]._y + _root.game.objects._y;
spike_width = _root.game.objects[spike].width;
spike_height = _root.game.objects[spike].height;
if ((spike_x + spike_width) > (x - width)) {
if ((spike_x - spike_width) < (x + width)) {
if (spike_y > (y - height)) {
if ((spike_y - spike_height) < y) {
if (_root.game.objects[spike].type == 2) {
_root.game.objects[spike].boom = true;
_root.game.objects[spike].gotoAndStop("bomb");
} else {
_root.game.objects[spike].removeMovieClip();
}
gotoAndStop ("die1");
}
}
}
}
}
}
}
}
if (x < (_root.limit_left - 100)) {
gotoAndStop ("respawn");
}
bean.gotoAndStop(type);
}
};
Symbol 1637 MovieClip Frame 2
_root["s_spit" + (random(2) + 1)].start();
Symbol 1637 MovieClip Frame 3
_root.s_splat1.start();
if (_root.mask == true) {
_root.kills++;
}
_root.exp = _root.exp + exp;
Symbol 1637 MovieClip Frame 4
respawn = true;
_x = ((_root.limit_right + 200) - _parent._x);
gotoAndStop (1);
Instance of Symbol 800 MovieClip in Symbol 1638 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 873 MovieClip in Symbol 1638 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "ammo3";
}
Instance of Symbol 1637 MovieClip in Symbol 1638 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 1;
}
Instance of Symbol 1637 MovieClip in Symbol 1638 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 1;
}
Symbol 1640 MovieClip Frame 1
delay = 0;
this.onEnterFrame = function () {
if (delay < 1) {
_root.spawn_object("fg:fx_cloud", (_root.limit_right + 500) - _parent._x, _y);
delay = random(5) + 15;
} else {
delay--;
}
};
Symbol 1662 MovieClip Frame 1
speed_x = 0;
speed_y = 0;
speed_limit = 10;
this.onEnterFrame = function () {
if (_root.pause_game != true) {
if (((_y + _parent._y) - _height) < (_root.limit_bottom + 100)) {
if (_root.game.peashy.platform_name == top.name) {
falling = true;
}
if (falling == true) {
bone._x = bone._x + speed_x;
bone._y = bone._y + speed_y;
top._x = top._x + speed_x;
top._y = top._y + speed_y;
if ((_root.game.peashy.platform_name == top.name) && (_root.game.peashy.air != true)) {
_root.game.peashy._x = _root.game.peashy._x + speed_x;
_root.game.peashy._y = _root.game.peashy._y + speed_y;
if (((_root.scrolling == true) && ((_x + _parent._x) > _root.scroll_right)) && (Math.abs(speed_x) > 0)) {
_root.scroll(x - _root.scroll_right, "hori");
}
}
speed_x = speed_x + 0.5;
speed_y = speed_y + 0.2;
if (speed_x > speed_limit) {
speed_x = speed_limit;
}
if (speed_y > speed_limit) {
speed_y = speed_limit;
}
}
}
}
};
Instance of Symbol 800 MovieClip "top" in Symbol 1662 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 139 MovieClip "platform" in Symbol 1673 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
drop_off = "yes";
}
Symbol 1674 MovieClip Frame 1
if (_root.pause_game != true) {
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
if ((x > _root.limit_left) && (x < _root.limit_right)) {
if (((_root.game.peashy._y + 200) > y) && ((_root.game.peashy._y - 200) < y)) {
if ((((_root.game.peashy._x + 150) > x) && (_root.game.peashy._x < x)) || (((_root.game.peashy._x - 150) < x) && (_root.game.peashy._x > x))) {
if (_parent.head.platform.peashy == true) {
if (_root.game.peashy.attack_drop == true) {
_root.game.peashy.platform_contact = 0;
_root.game.peashy.air = true;
_root.game.peashy.gotoAndStop("attack_drop");
_parent.gotoAndStop("die");
} else {
if (_parent._xscale < 0) {
_parent.head._rotation = 180 + ((x - _root.game.peashy._x) / 2);
} else {
_parent.head._rotation = 180 + ((_root.game.peashy._x - x) / 2);
}
if (_parent.head_bounce != true) {
_parent.head_bounce = true;
_parent.head_speed = 2;
_parent.head_speed_current = _parent.head_speed;
_parent.head._y = -60;
}
_parent.head.gotoAndStop(3);
}
} else {
_parent.head_bounce = false;
_parent.head._rotation = 180;
_parent.head.gotoAndStop(2);
}
if (((_root.game.peashy._x - 50) > x) && (_parent._x < _parent.limit_right)) {
if (_parent.speed_x < _root.speed_mummy) {
_parent.speed_x = _parent.speed_x + 0.5;
}
_parent._xscale = 100;
} else if (((_root.game.peashy._x + 50) < x) && (_parent._x > _parent.limit_left)) {
if (_parent.speed_x > (-_root.speed_mummy)) {
_parent.speed_x = _parent.speed_x - 0.5;
}
_parent._xscale = -100;
}
} else {
_parent.head.gotoAndStop(1);
}
}
_parent._x = _parent._x + _parent.speed_x;
if (_parent._currentframe < 3) {
if ((_parent.speed_x > 0) || (_parent.speed_x < 0)) {
_parent.gotoAndStop("walk");
} else {
_parent.gotoAndStop("stand");
}
}
if (_parent.speed_x > 0) {
_parent.speed_x = _parent.speed_x - 0.25;
} else if (_parent.speed_x < 0) {
_parent.speed_x = _parent.speed_x + 0.25;
}
if (_parent.head_bounce_dir == "up") {
if (_parent.head_speed_current > (-_parent.head_speed)) {
_parent.head_speed_current = _parent.head_speed_current - 1;
} else {
_parent.head_bounce_dir = "down";
_parent.head_speed = _parent.head_speed - 0.3;
if (_parent.head_speed < 0) {
_parent.head_speed = 0;
}
}
} else if (_parent.head_speed_current < _parent.head_speed) {
_parent.head_speed_current = _parent.head_speed_current + 1;
} else {
_parent.head_bounce_dir = "up";
_parent.head_speed = _parent.head_speed - 0.3;
if (_parent.head_speed < 0) {
_parent.head_speed = 0;
}
}
_parent.head._y = _parent.head._y + _parent.head_speed_current;
if (_parent.platform == "bump") {
if (_parent._x < _parent.platform_x) {
_parent._y = _parent.platform_y - (((_parent._x - _parent.platform_x) * _parent.platform_height) / _parent.platform_width);
} else {
_parent._y = _parent.platform_y - (((_parent.platform_x - _parent._x) * _parent.platform_height) / _parent.platform_width);
}
}
if (((((((x + _parent.attack) > _root.game.peashy._x) && (_root.game.peashy._x > x)) && (_parent._xscale > 0)) || ((((x - _parent.attack) < _root.game.peashy._x) && (_root.game.peashy._x < x)) && (_parent._xscale < 0))) && ((y - _parent.height) < _root.game.peashy._y)) && (y > (_root.game.peashy._y - _root.game.peashy.height))) {
if ((_root.game.peashy.invincible != true) && (_root.game.peashy.alive != false)) {
if (_parent._currentframe != 3) {
if (x > _root.game.peashy._x) {
_parent._xscale = -100;
} else {
_parent._xscale = 100;
}
_parent.gotoAndStop("attack");
}
if (_parent.attacking == true) {
if (x > _root.game.peashy._x) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
}
}
}
} else if (x > _root.game.peashy._x) {
_parent._xscale = -100;
} else {
_parent._xscale = 100;
}
for (spike in _root.game.objects) {
if ((substring(_root.game.objects[spike]._name, 0, 5)) == "spike") {
if ((_root.game.objects[spike]._currentFrame == 1) || (_root.game.objects[spike]._currentframe == _root.game.objects[spike]._totalframes)) {
spike_x = _root.game.objects[spike]._x + _root.game.objects._x;
spike_y = _root.game.objects[spike]._y + _root.game.objects._y;
spike_width = _root.game.objects[spike].width;
spike_height = _root.game.objects[spike].height;
if ((spike_x + spike_width) > (x - _parent.width)) {
if ((spike_x - spike_width) < (x + _parent.width)) {
if (spike_y > (y - _parent.height)) {
if ((spike_y - spike_height) < y) {
if (_root.game.objects[spike].type == 2) {
_root.game.objects[spike].boom = true;
_root.game.objects[spike].gotoAndStop("bomb");
} else {
_root.game.objects[spike].removeMovieClip();
}
_parent.gotoAndStop("die");
}
}
}
}
}
}
}
}
Symbol 1674 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1693 MovieClip Frame 7
_parent.attacking = true;
Symbol 1693 MovieClip Frame 19
_parent.gotoAndStop("stand");
Symbol 1705 MovieClip Frame 23
stop();
Symbol 1706 MovieClip Frame 1
if (ini != true) {
ini = true;
limit_left = _x - limit_left;
limit_right = _x + limit_right;
if (platform == "bump") {
platform_x = _x;
platform_y = _y;
platform_width = limit_right - limit_left;
}
score = 15;
_root.enemies_total++;
speed_x = 0;
attack = 60;
height = 50;
if (_root.game.peashy._x < _x) {
_xscale = (_xscale * -1);
}
}
attacking = false;
stop();
Symbol 1706 MovieClip Frame 4
_root["s_splat" + (random(3) + 1)].start();
diff_x = _root.game.peashy._x - (_x + _parent._x);
_root.spawn_object("physics_object", _x + _parent._x, (_y - height) + _parent._y, _xscale, diff_x, 2, 7, (-diff_x) / 3, 0);
_root.score = _root.score + score;
_root.spawn_object("fx_score_gain", _x + _parent._x, bean_y + _parent._y, score, 0);
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = true;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = true;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = true;
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "left";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "right";
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 934 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 1;
}
Instance of Symbol 1706 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
limit_left = 140;
limit_right = 25;
bump = 0;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 1706 MovieClip in Symbol 1707 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
limit_left = 40;
limit_right = 40;
bump = 30;
}
Symbol 1714 MovieClip Frame 1
width = _width;
height = _height;
map_width = Math.floor(width / 50);
map_height = Math.floor(height / 50);
if (map_width < 1) {
map_width = 1;
}
if (map_height < 1) {
map_height = 1;
}
this.attachMovie("maggot_anim", "maggots", 100);
_xscale = 100;
_yscale = 100;
bmp1 = new flash.display.BitmapData(width + 25, height + 25, true, 0);
this.createEmptyMovieClip("sea1", 1);
sea1.attachBitmap(bmp1, 1);
sea1._x = -25;
sea1._y = -25;
bmp2 = new flash.display.BitmapData(width + 25, height + 25, true, 0);
this.createEmptyMovieClip("sea2", 2);
sea2.attachBitmap(bmp2, 2);
sea2._x = -25;
sea2._y = -25;
bmp3 = new flash.display.BitmapData(width + 25, height + 25, true, 0);
this.createEmptyMovieClip("sea3", 3);
sea3.attachBitmap(bmp3, 3);
sea3._x = -25;
sea3._y = -25;
bmp4 = new flash.display.BitmapData(width + 25, height + 25, true, 0);
this.createEmptyMovieClip("sea4", 4);
sea4.attachBitmap(bmp4, 4);
sea4._x = -25;
sea4._y = -25;
i = 0;
amount = map_width * map_height;
tile_x = 0;
tile_y = 0;
while (i < amount) {
maggots.m._x = (((tile_x * 50) + 14.5) - 2) + random(4);
maggots.m._y = (((tile_y * 50) + 14.5) - 2) + random(4);
maggots.m._xscale = 100 + random(30);
maggots.m._yscale = maggots.m._xscale;
if (random(2) == 1) {
maggots.m._xscale = maggots.m._xscale * -1;
maggots.m._x = maggots.m._x + 100;
}
i2 = 0;
f = random(3) + 1;
while (i2 < 4) {
fc = f + i2;
if (fc > 4) {
fc = fc - 4;
}
maggots.m.gotoAndStop(fc);
eval ("bmp" + (i2 + 1)).draw(maggots);
i2++;
}
tile_x++;
if (tile_x == map_width) {
tile_x = 0;
tile_y++;
}
i++;
}
maggots.removeMovieClip();
frame = 1;
delay = 0;
this.onEnterFrame = function () {
if (delay > 0) {
delay--;
} else {
delay = 2;
sea1._visible = false;
sea2._visible = false;
sea3._visible = false;
sea4._visible = false;
this["sea" + frame]._visible = true;
frame++;
if (frame > 4) {
frame = 1;
}
}
};
Instance of Symbol 1713 MovieClip in Symbol 1714 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1727 MovieClip Frame 1
if (ini != true) {
ini = true;
if (!_name) {
_root.game.bg.i++;
_name = ("obj" + _root.game.bg.i);
}
_root.manage_objects("add", _name);
physical = true;
speed_max = 3;
default_x = _x;
default_y = _y;
width = 50;
height = 50;
stop();
}
speed_x = speed_x_start;
speed_y = speed_y_start;
_x = default_x;
_y = default_y;
prev_x = _x;
prev_y = _y;
platforms = true;
this.onEnterFrame = function () {
if (_root.pause_game != true) {
_root.f_physics(_name);
}
};
Instance of Symbol 800 MovieClip "top" in Symbol 1727 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Symbol 1727 MovieClip Frame 2
gotoAndStop (1);
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "no";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 830 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
onClipEvent (load) {
surface = "sand";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "no";
}
Instance of Symbol 834 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "maggots";
}
Instance of Symbol 834 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "maggots";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 828 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "right";
}
Instance of Symbol 830 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 830 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 830 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "right";
}
Instance of Symbol 828 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 830 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 1706 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
limit_left = 140;
limit_right = 25;
bump = 0;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = true;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = true;
}
Instance of Symbol 1727 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 0;
speed_y_start = 0;
respawn = false;
air = false;
}
Instance of Symbol 1727 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 0;
speed_y_start = 0;
respawn = false;
air = false;
}
Instance of Symbol 1727 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 0;
speed_y_start = 0;
respawn = false;
air = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = true;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 1706 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
limit_left = 400;
limit_right = 300;
bump = 0;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 1706 MovieClip in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
limit_left = "defaultValue";
limit_right = "defaultValue";
bump = 0;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Instance of Symbol 536 MovieClip [dimkin_brave] in Symbol 1728 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
push_obj = false;
}
Symbol 1735 MovieClip Frame 1
function peashy_check() {
if (_currentframe == 1) {
if (_root.game.peashy.rolling == true) {
gotoAndStop (2);
return(true);
}
}
}
stop();
Instance of Symbol 859 MovieClip "wall" in Symbol 1735 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Symbol 1735 MovieClip Frame 2
i = 1;
while (i < 7) {
obj = this["chunk" + i];
obj.speed_x = obj._x / 10;
obj.grav = (random(3) + 1) / 2;
obj.speed_y = 0;
chunks = i;
with (obj) {
obj.onEnterFrame = function () {
if (_root.pause_game != true) {
if (_y < 0) {
_x = _x + speed_x;
_y = _y + speed_y;
speed_y = speed_y + grav;
_rotation = _rotation + speed_x;
if (_y > 0) {
_y = 0;
}
}
}
};
i++;
}
}
_root.s_crumble1.start();
Symbol 1758 MovieClip Frame 1
stop();
Symbol 1770 MovieClip Frame 11
_parent._parent._parent.spit();
Symbol 1770 MovieClip Frame 19
_parent.gotoAndStop("stand");
Symbol 1771 MovieClip Frame 1
stop();
Symbol 1775 MovieClip Frame 1
if (_root.pause_game != true) {
x = _parent._x + _parent._parent._x;
y = _parent._y + _parent._parent._y;
_parent.body._xscale = _parent.body_xscale;
if (((y + 150) > _root.game.peashy._y) && ((y - 150) < _root.game.peashy._y)) {
if (((x > _root.game.peashy._x) && (_parent.head.head._xscale > 0)) || ((x < _root.game.peashy._x) && (_parent.head.head._xscale < 0))) {
_parent.head.head._xscale = _parent.head.head._xscale * -1;
_parent.head.head.head.gotoAndPlay(2);
}
head_rotation = (Math.atan(((_root.game.peashy._y - y) - 140) / (_root.game.peashy._x - x)) * 57.2957795130823) - 90;
if (_root.game.peashy._x > x) {
head_rotation = head_rotation + 180;
}
if (head_rotation > 30) {
head_rotation = 50;
} else if (head_rotation < -30) {
head_rotation = -50;
}
_parent.head._rotation = _parent.head._rotation + ((head_rotation - _parent.head._rotation) / 4);
if (_parent.head.head._currentframe == 1) {
if (_parent.attack_timer == 0) {
_parent.attack_timer = -1;
_root.s_spit1.start();
_parent.head.head.gotoAndStop("spit");
} else if (_parent.attack_timer > 0) {
_parent.attack_timer--;
} else {
_parent.attack_timer = 10 + random(Math.abs(x - _root.game.peashy._x) / 10);
}
}
}
if (_parent.walk_timer == 0) {
_parent.walk_timer = -1;
if ((random(2) == 1) && (((x + _root.speed_weltling) < _root.limit_right) && ((_parent._x + _root.speed_weltling) < _parent.platform_edge_right))) {
_parent.dest_x = _parent._x + (50 + random(100));
_parent.speed_x++;
} else if (((x - _root.speed_weltling) > _root.limit_left) && ((_parent._x - _root.speed_weltling) > _parent.platform_edge_left)) {
_parent.dest_x = _parent._x - (50 + random(100));
_parent.speed_x--;
}
} else if (_parent.walk_timer > 0) {
_parent.walk_timer--;
} else {
_parent.walk_timer = random(150);
}
if (_parent.speed_x > 0) {
_parent.body_xscale = 100;
if (_parent._x > _parent.dest_x) {
_parent.speed_x = _parent.speed_x - 0.5;
} else if (_parent.speed_x < _root.speed_weltling) {
_parent.speed_x++;
}
if (((x + _parent.speed_x) > _root.limit_right) || (_parent._x > _parent.platform_edge_right)) {
_parent.speed_x = 0;
if (_parent._x > _parent.platform_edge_right) {
_parent._x = _parent.platform_edge_right;
_parent.dest_x = _parent._x;
}
}
} else if (_parent.speed_x < 0) {
_parent.body_xscale = -100;
if (_parent._x < _parent.dest_x) {
_parent.speed_x = _parent.speed_x + 0.5;
} else if (_parent.speed_x > (-_root.speed_weltling)) {
_parent.speed_x--;
}
if (((x + _parent.speed_x) < _root.limit_left) || (_parent._x < _parent.platform_edge_left)) {
_parent.speed_x = 0;
if (_parent._x < _parent.platform_edge_left) {
_parent._x = _parent.platform_edge_left;
_parent.dest_x = _parent._x;
}
}
} else if (x > _root.game.peashy._x) {
_parent.body_xscale = -100;
} else {
_parent.body_xscale = 100;
}
if ((_parent.speed_x > 0) || (_parent.speed_x < 0)) {
_parent._x = _parent._x + _parent.speed_x;
if (_parent._currentFrame == 1) {
_parent.gotoAndStop("walk");
}
} else if (_parent._currentFrame == 2) {
_parent.gotoAndStop("stand");
}
for (spike in _root.game.objects) {
if ((substring(_root.game.objects[spike]._name, 0, 5)) == "spike") {
if ((_root.game.objects[spike]._currentFrame == 1) || (_root.game.objects[spike]._currentframe == _root.game.objects[spike]._totalframes)) {
spike_x = _root.game.objects[spike]._x + _root.game.objects._x;
spike_y = _root.game.objects[spike]._y + _root.game.objects._y;
spike_width = _root.game.objects[spike].width;
spike_height = _root.game.objects[spike].height;
if ((spike_x + spike_width) > (x - _parent.width)) {
if ((spike_x - spike_width) < (x + _parent.width)) {
if (spike_y > (y - _parent.height)) {
if ((spike_y - spike_height) < y) {
if (_root.game.objects[spike].type == 2) {
_root.game.objects[spike].boom = true;
_root.game.objects[spike].gotoAndStop("bomb");
} else {
_root.game.objects[spike].removeMovieClip();
}
_parent.gotoAndStop("die");
}
}
}
}
}
}
}
}
Symbol 1775 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1785 MovieClip Frame 1
_parent.head._y = -21;
Symbol 1785 MovieClip Frame 3
_parent.head._y = -25;
Symbol 1785 MovieClip Frame 5
_parent.head._y = -60;
Symbol 1785 MovieClip Frame 7
_parent.head._y = _parent.head._y - 5;
Symbol 1785 MovieClip Frame 9
_parent.head._y = _parent.head._y - 2;
Symbol 1785 MovieClip Frame 13
_parent.head._y = _parent.head._y + 5;
Symbol 1785 MovieClip Frame 15
_parent.head._y = -20;
Symbol 1785 MovieClip Frame 17
_parent.head._y = _parent.head_y_default;
Symbol 1812 MovieClip Frame 30
stop();
Symbol 1813 MovieClip Frame 1
function spit() {
if (head._rotation > 0) {
head_y = 70 - (head._rotation / 2);
} else {
head_y = 70 + (head._rotation / 2);
}
head_y = head_y - head._y;
_root.spawn_object("bg:bloodball", _x + head._rotation, _y - head_y, 100, head._rotation);
_root["s_spit" + (random(2) + 1)].start();
}
if (ini != true) {
ini = true;
_root.game.bg.i++;
_name = ("obj" + _root.game.bg.i);
_root.manage_objects("add", _name);
_root.enemies_total++;
score = 20;
speed_x = 0;
height = _height;
width = _width / 2;
stop();
}
if (!body_xscale) {
body_xscale = 100;
head_y_default = head._y;
}
head._y = head_y_default;
platforms = true;
Symbol 1813 MovieClip Frame 3
_xscale = body_xscale;
_root.s_splat1.start();
_root.s_squawk.start();
if (_root.mask == true) {
_root.kills++;
}
_root.score = _root.score + score;
_root.spawn_object("fx_score_gain", _x + _parent._x, bean_y + _parent._y, score, 0);
Instance of Symbol 873 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "ammo2";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 799 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 828 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "right";
}
Instance of Symbol 828 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 830 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 1814 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Symbol 1837 MovieClip Frame 1
if (ini != true) {
ini = true;
_root.game.platforms++;
name = "plat" + _root.game.platforms;
}
breaking = false;
count = 0;
this.onEnterFrame = function () {
if (_root.pause_game != true) {
x = _x + _parent._x;
y = _y + _parent._y;
if (_currentframe == 1) {
w = _width / 2.5;
} else {
w = 0;
}
h = 2;
if ((x + w) > (_root.limit_left - 100)) {
if ((x - w) < (_root.limit_right + 100)) {
if ((y - h) < (_root.limit_bottom + 200)) {
if ((y + h) > (_root.limit_top - 100)) {
_root.platform(name, 0, "yes", surface, x, y, w, h);
}
}
}
}
if (_currentframe == 1) {
if ((_root.game.peashy.platform_name == name) && (_root.game.peashy.air != true)) {
breaking = true;
}
if (breaking == true) {
count++;
if (count == 5) {
nextFrame();
}
}
} else if (((_y + _parent._y) < (_root.limit_top - 100)) && (chunks == 0)) {
gotoAndStop (1);
}
}
};
stop();
Symbol 1837 MovieClip Frame 2
i = 1;
while (i < 5) {
obj = this["chunk" + i];
obj.speed_x = obj._x / 10;
obj.grav = (random(3) + 1) / 2;
obj.speed_y = 0;
chunks = i;
with (obj) {
obj.onEnterFrame = function () {
if (_root.pause_game != true) {
_x = _x + speed_x;
_y = _y + speed_y;
speed_y = speed_y + grav;
_rotation = _rotation + speed_x;
if ((((_y + _parent._y) + _parent._parent._y) > (_root.limit_bottom + 100)) && (_visible == true)) {
_visible = false;
_parent.chunks--;
}
}
};
}
i++;
}
_root.s_crumble1.start();
Symbol 1840 MovieClip Frame 1
if (ini != true) {
ini = true;
if (!_name) {
_root.game.bg.i++;
_name = ("obj" + _root.game.bg.i);
}
_root.manage_objects("add", _name);
physical = true;
speed_max = 3;
default_x = _x;
default_y = _y;
width = 50;
height = 50;
stop();
}
speed_x = speed_x_start;
speed_y = speed_y_start;
_x = default_x;
_y = default_y;
prev_x = _x;
prev_y = _y;
platforms = true;
walls = true;
this.onEnterFrame = function () {
if (_root.pause_game != true) {
_root.f_physics(_name);
}
};
Instance of Symbol 800 MovieClip "top" in Symbol 1840 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Symbol 1840 MovieClip Frame 2
gotoAndStop (1);
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "no";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 830 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 828 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "right";
}
Instance of Symbol 828 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "left";
}
Instance of Symbol 834 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "";
}
Instance of Symbol 799 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 1840 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 0;
speed_y_start = 0;
respawn = false;
air = false;
}
Instance of Symbol 934 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 1;
}
Instance of Symbol 1568 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
size = "2";
respawn = false;
area_x = 200;
}
Instance of Symbol 873 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "ammo3";
}
Instance of Symbol 934 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 3;
}
Instance of Symbol 934 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 3;
}
Instance of Symbol 934 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 2;
}
Instance of Symbol 934 MovieClip in Symbol 1841 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 3;
}
Symbol 1866 MovieClip Frame 25
stop();
Symbol 1873 MovieClip Frame 25
stop();
Symbol 1874 MovieClip Frame 1
stop();
Instance of Symbol 800 MovieClip in Symbol 1874 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Symbol 1874 MovieClip Frame 2
obj = this.chunk1;
obj.speed_x = obj._x / 10;
obj.grav = (random(3) + 1) / 2;
obj.speed_y = 0;
chunks = i;
with (obj) {
obj.onEnterFrame = function () {
_x = _x + speed_x;
_y = _y + speed_y;
speed_y = speed_y + grav;
_rotation = _rotation + speed_x;
if ((((_y + _parent._y) + _parent._parent._y) > (_root.limit_bottom + 100)) && (_visible == true)) {
_visible = false;
_parent.chunks--;
}
};
}
Instance of Symbol 800 MovieClip in Symbol 1874 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
Drop_Off = "yes";
}
Symbol 1874 MovieClip Frame 3
i = 1;
while (i < 3) {
obj = this["chunk" + i];
obj.speed_x = obj._x / 10;
obj.grav = (random(3) + 1) / 2;
obj.speed_y = 0;
chunks = i;
with (obj) {
obj.onEnterFrame = function () {
_x = _x + speed_x;
_y = _y + speed_y;
speed_y = speed_y + grav;
_rotation = _rotation + speed_x;
if ((((_y + _parent._y) + _parent._parent._y) > (_root.limit_bottom + 100)) && (_visible == true)) {
_visible = false;
_parent.chunks--;
}
};
}
i++;
}
Symbol 1878 MovieClip Frame 1
stop();
Instance of Symbol 800 MovieClip in Symbol 1878 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Symbol 1979 MovieClip Frame 64
_root.game.peashy.gotoAndStop("cinema_stand");
_root.cinemas.gotoAndStop("outro");
stop();
Symbol 1980 MovieClip Frame 1
stop();
Symbol 1980 MovieClip Frame 9
_root.spawn_object("bg:weltking_maggot", _parent._x - _parent.body_w, _parent._y - _parent.body_h, 100, 0);
_root["s_spit" + (random(2) + 1)].start();
_parent.maggot_num++;
Symbol 1980 MovieClip Frame 17
gotoAndStop (1);
Symbol 1980 MovieClip Frame 24
if ((((_parent.platform1.peashy == true) && (((_parent._x + _parent._parent._x) - random(100)) < _root.game.peashy._x)) && (_root.game.peashy.invincible != true)) && (_root.game.peashy.alive != false)) {
if (_root.game.peashy._xscale > 0) {
_root.hurt(100);
} else {
_root.hurt(-100);
}
}
Symbol 1980 MovieClip Frame 47
gotoAndStop (1);
Symbol 1980 MovieClip Frame 48
_parent.platform1._visible = 0;
_parent.head.head.gotoAndStop("nada");
Symbol 1980 MovieClip Frame 80
_root.game.bg.top_ledge.nextFrame();
_root.spawn_object("fx_screen_shake", 0, 0, 0, 7);
_root.s_explode1.start();
_root.s_crumble1.start();
if (_root.game.bg.top_ledge._currentframe == 3) {
_parent.falling = true;
gotoAndStop ("fall");
}
Symbol 1980 MovieClip Frame 103
_parent.hp_body = 5;
_parent.platform1._visible = 1;
_parent.head.head.gotoAndStop("headless");
gotoAndStop (1);
Symbol 1980 MovieClip Frame 105
_parent.platform1._visible = 1;
_parent.platform1._y = _parent.platform1._y + 40;
_parent.platform1._width = _parent.platform1._width * 1.5;
_parent.platform1._height = _parent.platform1._height * 1.5;
_parent.head.head.gotoAndStop("geyser");
_parent.head.play();
_parent.head._y = _parent.head._y + 60;
Symbol 1980 MovieClip Frame 106
_parent.platform1._visible = 0;
_parent.head.head.gotoAndStop("nada");
_root.spawn_object("fx_screen_shake", 0, 0, 0, 13);
_root.spawn_object("glass:fx_screen_flash2", 0, 0, 100);
i = 0;
while (i < 5) {
_root.spawn_object("glass:fx_blood_screensplat", (((_parent._x - 200) + random(400)) + _parent._parent._x) + (_root.game._x - _root.glass._x), (((_parent._y - 200) + random(400)) + _parent._parent._y) + (_root.game._y - _root.glass._y), 100, 0);
i++;
}
_root.spawn_object("fx_gibs", _parent._x + _parent._parent._x, ((_parent._y - 100) + _parent._parent._y) - 10, 2, 12);
stopAllSounds();
_root.s_explode1.start();
_root.s_splat1.start();
_parent.dead = true;
Symbol 1983 MovieClip Frame 1
stop();
Symbol 2006 MovieClip Frame 45
_root.music.stop(_root.music_name);
_root.play_music("boss");
_root.cinemas.gotoAndStop("boss1");
_root.game.peashy.gotoAndStop("stand");
_parent.gotoAndStop("normal");
Symbol 2018 MovieClip Frame 17
_root.spawn_object("weltking_bloodball", (_parent._parent._parent._x - (_parent._parent._width / 3)) + _root.game.bg._x, (_parent._parent._parent._y - (_parent._parent._parent._height / 2.1)) + _root.game.bg._y, 100, -120);
_root.s_weltking_spit.start();
Symbol 2018 MovieClip Frame 25
_parent.gotoAndStop("normal");
Symbol 2052 MovieClip Frame 35
_root.spawn_object("fx_screen_shake", 0, 0, 22, 0);
_root.s_explode1.start();
Symbol 2052 MovieClip Frame 72
_parent._parent.platform1._visible = true;
_parent._parent.platform2._visible = true;
_parent._parent.play();
_parent.bump.nextFrame();
stop();
Symbol 2059 MovieClip Frame 13
_parent._parent._parent.platform3._visible = 1;
_parent.nextFrame();
Symbol 2071 MovieClip Frame 17
_parent._parent._parent._parent.hp_head--;
if (_parent._parent._parent._parent.hp_head > 0) {
_parent._parent._parent._parent.hp_head_stun = 5;
}
_parent._parent.gotoAndStop("normal");
Symbol 2072 MovieClip Frame 1
stop();
Symbol 2072 MovieClip Frame 2
stop();
Symbol 2072 MovieClip Frame 4
_parent._parent.platform3._visible = 0;
_root.s_splat1.start();
_root["s_weltking_hit" + (random(2) + 1)].start();
Symbol 2084 MovieClip Frame 21
_parent.nextFrame();
Symbol 2091 MovieClip Frame 9
_root.spawn_object("weltking_bloodball", (_parent._parent._parent._x - 20) + _root.game.bg._x, ((_parent._parent._parent._y + _parent._parent._y) - 50) + _root.game.bg._y, 100, 0);
Symbol 2091 MovieClip Frame 25
_parent.gotoAndStop("headless");
Symbol 2108 MovieClip Frame 26
_parent._parent._parent.geyser = true;
Symbol 2108 MovieClip Frame 44
gotoAndPlay (30);
Symbol 2109 MovieClip Frame 1
_parent.platform1._visible = 1;
_parent.platform2._visible = 1;
stop();
Symbol 2109 MovieClip Frame 2
_root.cam_zoom = 60;
_root.s_weltking_scream.start();
_parent._parent.intro = true;
Symbol 2109 MovieClip Frame 3
_parent.platform1._visible = 0;
_parent.platform2._visible = 0;
Symbol 2109 MovieClip Frame 4
_parent.platform1._visible = false;
_parent.platform2._visible = false;
_parent.platform3._visible = false;
_parent.gotoAndStop(1);
Symbol 2109 MovieClip Frame 5
_parent.platform1._visible = 0;
_parent.platform2._visible = 0;
_parent.platform3._visible = 0;
_parent.stop();
_root.s_weltking_die.start();
Symbol 2109 MovieClip Frame 7
_root.s_weltking_spit.start();
Symbol 2109 MovieClip Frame 8
_root.s_water.start(0, 99999);
Instance of Symbol 139 MovieClip "platform1" in Symbol 2110 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
drop_off = "yes";
}
Instance of Symbol 139 MovieClip "platform2" in Symbol 2110 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "right";
drop_off = "yes";
}
Instance of Symbol 139 MovieClip "platform3" in Symbol 2110 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
drop_off = "yes";
}
Symbol 2111 MovieClip Frame 1
this.cacheAsBitmap = true;
_name = "weltking";
hp_head = 2;
hp_head_stun = 5;
hp_body = 5;
body_w = 100;
body_h = 140;
head.clr = new Color(head);
body.clr = new Color(body);
head.platform3._visible = 0;
maggot_num = 0;
intro = false;
this.onEnterFrame = function () {
_root.boss_weltking();
};
Instance of Symbol 139 MovieClip "platform1" in Symbol 2111 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "right";
}
Instance of Symbol 834 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "left";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "left";
}
Instance of Symbol 799 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 934 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 1;
}
Instance of Symbol 873 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "ammo3";
}
Instance of Symbol 934 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 2;
}
Instance of Symbol 934 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 2;
}
Instance of Symbol 934 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 2;
}
Instance of Symbol 1840 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = -2;
speed_y_start = 0;
respawn = "above";
air = false;
}
Instance of Symbol 1840 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 2;
speed_y_start = 0;
respawn = "above";
air = false;
}
Instance of Symbol 1840 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 2;
speed_y_start = 0;
respawn = "above";
air = false;
}
Instance of Symbol 1840 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = -2;
speed_y_start = 0;
respawn = "above";
air = false;
}
Instance of Symbol 1840 MovieClip "boss_boulder" in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 0;
speed_y_start = 1;
respawn = "below";
air = true;
}
Instance of Symbol 873 MovieClip in Symbol 2112 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "ammo3";
}
Instance of Symbol 800 MovieClip in Symbol 2117 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 2117 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2117 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 2117 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 2117 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 2117 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 2117 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2117 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "left";
}
Instance of Symbol 799 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 799 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 1840 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 1;
speed_y_start = 0;
respawn = false;
air = true;
}
Instance of Symbol 1840 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 0;
speed_y_start = 0;
respawn = false;
air = false;
}
Instance of Symbol 1840 MovieClip in Symbol 2123 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 0;
speed_y_start = 0;
respawn = false;
air = false;
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "";
drop_off = "yes";
}
Instance of Symbol 834 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "right";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "right";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "left";
drop_off = "no";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "right";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "sand";
dir = "";
drop_off = "yes";
}
Instance of Symbol 799 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
}
Instance of Symbol 873 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "ammo3";
}
Instance of Symbol 873 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
item = "ammo3";
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Instance of Symbol 1706 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
limit_left = 100;
limit_right = 100;
bump = 0;
}
Instance of Symbol 934 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = 2;
}
Instance of Symbol 1840 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
speed_x_start = 1;
speed_y_start = 0;
respawn = false;
air = false;
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 584 MovieClip [nibble] in Symbol 2126 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
respawn = false;
}
Symbol 2128 MovieClip Frame 1
stop();
Instance of Symbol 800 MovieClip in Symbol 2130 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2130 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2130 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2130 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2130 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2130 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2130 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2130 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2130 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Instance of Symbol 800 MovieClip in Symbol 2130 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "rock";
dir = "left";
drop_off = "yes";
}
Symbol 2131 MovieClip Frame 1
stop();
Instance of Symbol 800 MovieClip in Symbol 2131 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
surface = "";
dir = "";
drop_off = "yes";
}
Symbol 2146 Button
on (press) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 2148 Button
on (press) {
getURL ("http://www.diverge.ws", "_blank");
}
Symbol 2149 MovieClip Frame 1
stopAllSounds();
Symbol 2149 MovieClip Frame 132
stop();
this.onEnterFrame = function () {
if (Key.isDown(13)) {
stopAllSounds();
_root.gotoAndStop("title");
}
};
Symbol 2157 MovieClip Frame 1
stopAllSounds();
Symbol 2157 MovieClip Frame 420
this.onEnterFrame = function () {
if (Key.isDown(13)) {
stopAllSounds();
_root.gotoAndStop("get_cheat");
}
};
stop();
Symbol 2166 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 2167 MovieClip Frame 31
press_enter = true;
this.onMouseDown = function () {
_root.gotoAndStop("title");
};
this.onEnterFrame = function () {
if (Key.isDown(65) || (Key.isDown(13))) {
if (press_enter != true) {
_root.gotoAndStop("title");
}
press_enter = true;
} else {
press_enter = false;
}
};
stop();