Frame 1
function CN_Game_Object() {
this.timedScreenArray = new Array();
this.depth_i = 0;
this.offScreenOffset = 700;
this.curScreen = null;
}
function CN_Timer(screen, parent, endTime) {
this.screen = screen;
this.mc = screen.mc.timer;
this.parent = parent;
this.mc.caller = this;
this.endTime = endTime * 1000;
this.active = false;
}
CN_Game_Object.prototype.Continue = function () {
if (this.curScreen != null) {
this.RemoveScreen(this.curScreen);
}
if (this.timedScreenArray.length == 0) {
gotoAndStop (7);
} else {
this.curScreen = this.timedScreenArray.shift();
this.ShowScreen(this.curScreen);
gotoAndStop (1);
}
};
CN_Game_Object.prototype.ExternalGraphicsAreLoaded = function () {
var allLoaded = true;
var i = 0;
while (i < this.timedScreenArray.length) {
if (!this.timedScreenArray[i].isLoaded) {
allLoaded = false;
break;
}
i++;
}
return(allLoaded);
};
CN_Game_Object.prototype.GetExternalParameters = function () {
if (_root.sw1 != null) {
this.timedScreenArray[0] = new Object();
this.timedScreenArray[0].path = _root.sw1;
this.timedScreenArray[0].duration = _root.sw2;
this.timedScreenArray[0].link = _root.sw4;
}
if (_root.sw5 == 1) {
var array_i = this.timedScreenArray.length;
this.timedScreenArray[array_i] = new Object();
if (_root.sw5 != 1) {
this.timedScreenArray[array_i].path = _root.sw5;
} else {
this.timedScreenArray[array_i].path = "orbitPowered/orbitPowered.swf";
}
if (_root.sw6 != null) {
this.timedScreenArray[array_i].duration = _root.sw6;
} else {
this.timedScreenArray[array_i].duration = "3";
}
if (_root.sw7 != null) {
this.timedScreenArray[array_i].link = _root.sw7;
} else {
this.timedScreenArray[array_i].link = null;
}
}
var array_i = this.timedScreenArray.length;
var next_i = 8;
while (_root["sw" + next_i] != null) {
this.timedScreenArray[array_i] = new Object();
this.timedScreenArray[array_i].path = _root["sw" + next_i];
if (_root.sw6 != null) {
this.timedScreenArray[array_i].duration = _root["sw" + (++next_i)];
} else {
this.timedScreenArray[array_i].duration = "5";
}
if (_root.sw7 != null) {
this.timedScreenArray[array_i].link = _root["sw" + (++next_i)];
} else {
this.timedScreenArray[array_i].link = null;
}
array_i++;
next_i++;
}
};
CN_Game_Object.prototype.LaunchOrbitPopup = function () {
if (_root.sw5 == 1) {
getURL ("javascript:popupOrbitCode( )");
}
};
CN_Game_Object.prototype.LoadExternalGraphic = function (screen, depth) {
_root.attachMovie("externalFileHolder", "holder" + depth, depth);
screen.mc = _root["holder" + depth];
screen.mc.caller = screen;
screen.mc.slot.loadMovie(screen.path);
};
CN_Game_Object.prototype.MainMovieIsLoaded = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
return(true);
}
return(false);
};
CN_Game_Object.prototype.PreloadExternalGraphics = function () {
var i = 0;
while (i < this.timedScreenArray.length) {
this.LoadExternalGraphic(this.timedScreenArray[i], i + 1);
this.timedScreenArray[i].mc._x = this.offScreenOffset;
i++;
}
};
CN_Game_Object.prototype.RemoveScreen = function (screen) {
screen.mc.slot.unloadMovie();
screen.mc.removeMovieClip();
delete screen;
};
CN_Game_Object.prototype.ShowScreen = function (screen) {
screen.mc._x = 0;
screen.mc._y = 0;
screen.timer = new CN_Timer(screen, this, screen.duration);
screen.timer.Start();
};
CN_Game_Object.prototype.toString = function () {
return("CN_Game_Object");
};
CN_Timer.prototype.Start = function () {
this.active = true;
this.startTime = getTimer();
};
CN_Timer.prototype.Tick = function () {
if ((getTimer() - this.startTime) >= this.endTime) {
_root.EndTimerAdapter(this.parent);
this.active = false;
}
};
CN_Timer.prototype.toString = function () {
return("CN_Timer");
};
EndTimerAdapter = function (parent) {
parent.Continue();
};
myGameObject = new CN_Game_Object();
this.onEnterFrame = function () {
if (!done1) {
my_total = this.getBytesTotal();
my_loaded = this.getBytesLoaded();
percent = int(my_loaded / (my_total / 21));
if (done1) {
} else {
(bit.gotoAndStop(percent));// not popped
}
((((my_total == my_loaded) && (myGameObject.ExternalGraphicsAreLoaded())) && (!done1)) ? ((done1 = true)bit.play()) : 0);
}
};
Frame 2
play();
Frame 3
if (myGameObject.MainMovieIsLoaded()) {
myGameObject.GetExternalParameters();
myGameObject.PreloadExternalGraphics();
play();
} else {
prevFrame();
}
Frame 4
play();
Frame 5
if (myGameObject.ExternalGraphicsAreLoaded() && (stupid)) {
_root.myGameObject.Continue();
} else {
prevFrame();
}
Frame 7
this.gotoAndStop("introduction", 1);
Frame 8
if (!sdone) {
this.createEmptyMovieClip("music", 10001);
music.createEmptyMovieClip("theme", 1);
theme = new Sound("music.theme");
theme.attachSound("theme");
theme.setVolume(80);
theme.start(0, 9999);
sdone = true;
ideal_vol = 80;
my_vol = 80;
}
Instance of Symbol 76 MovieClip in Frame 9
onClipEvent (load) {
this.holder.loadMovie((_root.trackerPath + "?id=") + new Date().valueOf());
}
Frame 10
function play_sound(name, loop, state) {
if (state) {
this[name].start(0, loop);
}
if (!state) {
this[name].stop();
}
}
function load_images() {
ended = true;
this.createEmptyMovieClip("back_ground", 100);
back_ground.attachMovie("back1", "back1", 1);
duplicateMovieClip ("back_ground.back1", "back2", 2);
duplicateMovieClip ("back_ground.back1", "back3", 3);
loadMovie (("include/back" + backs[level - 1]) + ".swf", back_ground.back1.holder);
loadMovie (("include/back" + backs[level - 1]) + ".swf", back_ground.back2.holder);
loadMovie (("include/back" + backs[level - 1]) + ".swf", back_ground.back3.holder);
this.createEmptyMovieClip("fore_ground", 500);
fore_ground.attachMovie("fore1", "fore1", 1);
loadMovie (("include/fore" + backs[level - 1]) + ".swf", fore_ground.fore1.holder);
}
function make_hero() {
if (!made_hero) {
this.createEmptyMovieClip("hero", 300);
hero.attachMovie("hero", "hero", 1);
made_hero = true;
}
hero._x = movie_width / 2;
hero._y = movie_height - hero_start_y;
ground_y = hero._y;
low_y = hero._y;
}
function attach_background() {
image_height = back_ground.back1._height - 2;
image_width = Math.floor(back_ground.back1._width) - 1;
back_ground._x = 0;
back_ground._y = movie_height;
back_ground.back1._x = (-image_width) + 2;
back_ground.back1._y = -image_height;
back_ground.back2._x = 0;
back_ground.back2._y = -image_height;
back_ground.back3._x = image_width - 2;
back_ground.back3._y = -image_height;
back_width = image_width - 2;
size_diff = int(image_height - movie_height);
}
function attach_middle() {
collect_x = new Array();
collect_y = new Array();
block_list = new Array();
block_range = new Array();
block_name = new Array();
screen_position = new Array();
screen_name = new Array();
screen_eplode = new Array();
this.createEmptyMovieClip("mid_ground", 200);
mid_ground._x = 0;
mid_ground._y = movie_height;
mid_ground.attachMovie("fog", "fog", -1);
name = mid_ground.fog;
name._x = 100;
name._y = -130;
hole_position = holes.split(",");
i = 0;
while (i < hole_position.length) {
temp_num++;
mid_ground.attachMovie("hole", "hole" + (i + 1), temp_num);
name = mid_ground["hole" + (i + 1)];
name._x = hole_position[i];
name.id = temp_num;
screen_name.push("hole" + (i + 1));
block_list.push(hole_position[i]);
block_range.push(140);
block_name.push("hole" + (i + 1));
i++;
}
small_hole_position = small_holes.split(",");
i = 0;
while (i < small_hole_position.length) {
temp_num++;
mid_ground.attachMovie("small_hole", "small_hole" + (i + 1), temp_num);
name = mid_ground["small_hole" + (i + 1)];
name._x = small_hole_position[i];
name.id = temp_num;
screen_name.push("small_hole" + (i + 1));
block_list.push(small_hole_position[i]);
block_range.push(100);
block_name.push("small_hole" + (i + 1));
i++;
}
water_position = waters.split(",");
i = 0;
while (i < water_position.length) {
temp_num++;
mid_ground.attachMovie("water", "water" + (i + 1), temp_num);
name = mid_ground["water" + (i + 1)];
name._x = water_position[i];
name.id = temp_num;
screen_name.push("water" + (i + 1));
block_list.push(water_position[i]);
block_range.push(300);
block_name.push("water" + (i + 1));
i++;
}
cauldron_position = cauldron.split(",");
i = 0;
while (i < cauldron_position.length) {
temp_num++;
mid_ground.attachMovie("cauldron", "cauldron" + (i + 1), temp_num);
name = mid_ground["cauldron" + (i + 1)];
name._x = cauldron_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("cauldron" + (i + 1));
block_list.push(cauldron_position[i]);
block_range.push(70);
block_name.push("cauldron" + (i + 1));
i++;
}
crate_position = crates.split(",");
i = 0;
while (i < crate_position.length) {
temp_num++;
mid_ground.attachMovie("crate", "crate" + (i + 1), temp_num);
name = mid_ground["crate" + (i + 1)];
name._x = crate_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("crate" + (i + 1));
block_list.push(crate_position[i]);
block_range.push(70);
block_name.push("crate" + (i + 1));
i++;
}
breakable_crate_position = breakable_crates.split(",");
i = 0;
while (i < breakable_crate_position.length) {
temp_num++;
mid_ground.attachMovie("breakable_crate", "breakable_crate" + (i + 1), temp_num);
name = mid_ground["breakable_crate" + (i + 1)];
name._x = breakable_crate_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("breakable_crate" + (i + 1));
block_list.push(breakable_crate_position[i]);
block_range.push(70);
block_name.push("breakable_crate" + (i + 1));
i++;
}
breakable_chest_position = breakable_chests.split(",");
i = 0;
while (i < breakable_chest_position.length) {
temp_num++;
mid_ground.attachMovie("breakable_chest", "breakable_chest" + (i + 1), temp_num);
name = mid_ground["breakable_chest" + (i + 1)];
name._x = breakable_chest_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("breakable_chest" + (i + 1));
block_list.push(breakable_chest_position[i]);
block_range.push(70);
block_name.push("breakable_chest" + (i + 1));
i++;
}
spring_position = springs.split(",");
i = 0;
while (i < spring_position.length) {
temp_num++;
mid_ground.attachMovie("spring", "spring" + (i + 1), temp_num);
name = mid_ground["spring" + (i + 1)];
name._x = spring_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("spring" + (i + 1));
i++;
}
seesaw_position = seesaws.split(",");
i = 0;
while (i < seesaw_position.length) {
temp_num++;
mid_ground.attachMovie("seesaw", "seesaw" + (i + 1), temp_num);
name = mid_ground["seesaw" + (i + 1)];
name._x = seesaw_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("seesaw" + (i + 1));
i++;
}
block1_position = blocks1.split(",");
i = 0;
while (i < block1_position.length) {
temp_num++;
block_num++;
mid_ground.attachMovie("block1", "block" + block_num, temp_num);
name = mid_ground["block" + block_num];
name._x = block1_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("block" + block_num);
block_list.push(block1_position[i]);
block_range.push(70);
block_name.push("block" + block_num);
i++;
}
block2_position = blocks2.split(",");
i = 0;
while (i < block2_position.length) {
temp_num++;
block_num++;
mid_ground.attachMovie("block2", "block" + block_num, temp_num);
name = mid_ground["block" + block_num];
name._x = block2_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("block" + block_num);
block_list.push(block2_position[i]);
block_range.push(70);
block_name.push("block" + block_num);
i++;
}
small_block1_position = small_blocks1.split(",");
i = 0;
while (i < small_block1_position.length) {
trace(small_block1_position);
temp_num++;
small_block_num++;
mid_ground.attachMovie("s_block1", "small_block" + small_block_num, temp_num);
name = mid_ground["small_block" + small_block_num];
name._x = small_block1_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("small_block" + small_block_num);
block_list.push(small_block1_position[i]);
block_range.push(70);
block_name.push("small_block" + small_block_num);
i++;
}
small_block2_position = small_blocks2.split(",");
i = 0;
while (i < small_block2_position.length) {
temp_num++;
small_block_num++;
mid_ground.attachMovie("s_block2", "small_block" + small_block_num, temp_num);
name = mid_ground["small_block" + small_block_num];
name._x = small_block2_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("small_block" + small_block_num);
block_list.push(small_block2_position[i]);
block_range.push(70);
block_name.push("small_block" + small_block_num);
i++;
}
ramp_position = ramps.split(",");
i = 0;
while (i < ramp_position.length) {
temp_num++;
mid_ground.attachMovie("ramp", "ramp" + (i + 1), temp_num);
name = mid_ground["ramp" + (i + 1)];
name._x = ramp_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("ramp" + (i + 1));
i++;
}
skate_board_position = skate_boards.split(",");
i = 0;
while (i < skate_board_position.length) {
temp_num++;
mid_ground.attachMovie("skate_board", "skate_board" + (i + 1), temp_num);
name = mid_ground["skate_board" + (i + 1)];
name._x = skate_board_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("skate_board" + (i + 1));
i++;
}
barrel_position = barrels.split(",");
i = 0;
while (i < barrel_position.length) {
temp_num++;
mid_ground.attachMovie("barrel", "barrel" + (i + 1), temp_num);
name = mid_ground["barrel" + (i + 1)];
name._x = barrel_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("barrel" + (i + 1));
i++;
}
cart_position = carts.split(",");
i = 0;
while (i < cart_position.length) {
temp_num++;
mid_ground.attachMovie("cart", "cart" + (i + 1), temp_num);
name = mid_ground["cart" + (i + 1)];
name._x = cart_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("cart" + (i + 1));
i++;
}
stopper_position = stoppers.split(",");
i = 0;
while (i < stopper_position.length) {
temp_num++;
mid_ground.attachMovie("stopper", "stopper" + (i + 1), temp_num);
name = mid_ground["stopper" + (i + 1)];
name._x = stopper_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("stopper" + (i + 1));
i++;
}
speeder_position = speeders.split(",");
i = 0;
while (i < speeder_position.length) {
temp_num++;
mid_ground.attachMovie("speeder", "speeder" + (i + 1), temp_num);
name = mid_ground["speeder" + (i + 1)];
name._x = speeder_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("speeder" + (i + 1));
i++;
}
pumpkin_position = pumpkins.split(",");
i = 0;
while (i < pumpkin_position.length) {
temp_num++;
mid_ground.attachMovie("pumpkin", "pumpkin" + (i + 1), temp_num);
name = mid_ground["pumpkin" + (i + 1)];
name._x = pumpkin_position[i];
name._y = (-hero_start_y) - 30;
name.id = temp_num;
screen_name.push("pumpkin" + (i + 1));
i++;
}
bomb_position = bombs.split(",");
i = 0;
while (i < bomb_position.length) {
temp_num++;
mid_ground.attachMovie("bomb", "bomb" + (i + 1), temp_num);
name = mid_ground["bomb" + (i + 1)];
name._x = bomb_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("bomb" + (i + 1));
i++;
}
clown_position = clowns.split(",");
i = 0;
while (i < clown_position.length) {
temp_num++;
mid_ground.attachMovie("clown", "clown" + (i + 1), temp_num);
name = mid_ground["clown" + (i + 1)];
name._x = clown_position[i];
name._y = -hero_start_y;
name.id = temp_num;
screen_name.push("clown" + (i + 1));
i++;
}
spike_position = spikes.split(",");
i = 0;
while (i < spike_position.length) {
temp_num++;
mid_ground.attachMovie("spike", "spike" + (i + 1), temp_num);
name = mid_ground["spike" + (i + 1)];
name._x = spike_position[i];
name._y = (-hero_start_y) - 220;
name.id = temp_num;
screen_name.push("spike" + (i + 1));
block_list.push(spikes_position[i]);
block_range.push(70);
block_name.push("spike" + (i + 1));
i++;
}
slicer_position = slicers.split(",");
i = 0;
while (i < slicer_position.length) {
temp_num++;
mid_ground.attachMovie("slicer", "slicer" + (i + 1), temp_num);
name = mid_ground["slicer" + (i + 1)];
name._x = slicer_position[i];
name._y = (-hero_start_y) - 220;
name.id = temp_num;
screen_name.push("slicer" + (i + 1));
block_list.push(slicer_position[i]);
block_range.push(70);
block_name.push("slicer" + (i + 1));
i++;
}
boat_position = boats.split(",");
i = 0;
while (i < boat_position.length) {
temp_num++;
mid_ground.attachMovie("boat", "boat" + (i + 1), temp_num);
name = mid_ground["boat" + (i + 1)];
name._x = boat_position[i];
name._y = (-hero_start_y) + 20;
name.id = temp_num;
screen_name.push("boat" + (i + 1));
i++;
}
character_position = characters.split(",");
i = 0;
while (i < character_position.length) {
temp_num++;
mid_ground.attachMovie("characters" + backs[level - 1], "character", temp_num);
name = mid_ground.character;
name._x = character_position[i];
name._y = -hero_start_y;
name.id = temp_num;
end_mark = character_position[i] - 30;
i++;
}
}
function attach_monsters() {
villan_amount = 0;
villan_total = 0;
zombie_position = zombies.split(",");
i = 0;
while (i < zombie_position.length) {
temp_num++;
t_position = zombie_position[i];
mid_ground.attachMovie("zombie", "zombie" + i, temp_num);
mid_ground["zombie" + i]._x = t_position;
mid_ground["zombie" + i]._y = mid_ground["zombie" + i]._y - 30;
villan_total++;
i++;
}
witch_position = witches.split(",");
i = 0;
while (i < witch_position.length) {
temp_num++;
t_position = witch_position[i];
mid_ground.attachMovie("witch", "witch" + i, temp_num);
mid_ground["witch" + i]._x = t_position;
mid_ground["witch" + i]._y = mid_ground["witch" + i]._y - 30;
villan_total++;
i++;
}
wolfman_position = wolfmen.split(",");
i = 0;
while (i < wolfman_position.length) {
temp_num++;
t_position = wolfman_position[i];
mid_ground.attachMovie("wolfman", "wolfman" + i, temp_num);
mid_ground["wolfman" + i]._x = t_position;
mid_ground["wolfman" + i]._y = mid_ground["wolfman" + i]._y - 30;
villan_total++;
i++;
}
frankenstein_position = frankensteins.split(",");
i = 0;
while (i < frankenstein_position.length) {
temp_num++;
t_position = frankenstein_position[i];
mid_ground.attachMovie("frankenstein", "frankenstein" + i, temp_num);
mid_ground["frankenstein" + i]._x = t_position;
mid_ground["frankenstein" + i]._y = mid_ground["frankenstein" + i]._y - 30;
villan_total++;
i++;
}
ghost_position = ghosts.split(",");
i = 0;
while (i < ghost_position.length) {
temp_num++;
t_position = ghost_position[i];
mid_ground.attachMovie("ghost", "ghost" + i, temp_num);
mid_ground["ghost" + i]._x = t_position;
mid_ground["ghost" + i]._y = mid_ground["ghost" + i]._y - 30;
villan_total++;
i++;
}
ghoul_position = ghouls.split(",");
i = 0;
while (i < ghoul_position.length) {
temp_num++;
t_position = ghoul_position[i];
mid_ground.attachMovie("ghoul", "ghoul" + i, temp_num);
mid_ground["ghoul" + i]._x = t_position;
mid_ground["ghoul" + i]._y = mid_ground["ghoul" + i]._y - 30;
villan_total++;
i++;
}
bat_position = bats.split(",");
i = 0;
while (i < (bat_position.length / 2)) {
temp_num++;
bx_position = bat_position[i * 2];
by_position = bat_position[(i * 2) + 1];
mid_ground.attachMovie("bat", "bat" + i, temp_num);
mid_ground["bat" + i]._x = bx_position;
mid_ground["bat" + i]._y = -by_position;
villan_total++;
i++;
}
}
function attach_collect() {
coin_amount = 0;
coin_position = coins.split(",");
i = 0;
while (i < (coin_position.length / 2)) {
collect_num++;
temp_num++;
position_x = coin_position[i * 2];
position_y = coin_position[(i * 2) + 1];
mid_ground.attachMovie("coin", "collect" + collect_num, temp_num);
mid_ground["collect" + collect_num]._x = position_x;
mid_ground["collect" + collect_num]._y = -position_y;
collect_x.push(position_x);
collect_y.push(position_y);
i++;
}
coin_total = coin_position.length / 2;
snack_amount = 0;
bone_position = bones.split(",");
i = 0;
while (i < (bone_position.length / 2)) {
collect_num++;
temp_num++;
position_x = bone_position[i * 2];
position_y = bone_position[(i * 2) + 1];
mid_ground.attachMovie("bone", "collect" + collect_num, temp_num);
mid_ground["collect" + collect_num]._x = position_x;
mid_ground["collect" + collect_num]._y = -position_y;
collect_x.push(position_x);
collect_y.push(position_y);
i++;
}
snack_total = bone_position.length / 2;
}
function attach_foreground() {
fore_height = fore_ground.fore1._height - 2;
fore_ground._x = image_width;
fore_ground._y = movie_height;
fore_ground.fore1._x = 0;
fore_ground.fore1._y = -fore_height;
}
function setup() {
x_speed = 0;
fall = false;
spiked = false;
my_fear = 0;
make_hero();
attach_background();
attach_middle();
attach_foreground();
attach_monsters();
attach_collect();
interface.interface.gotoAndStop("game");
interface.interface.fade_start.gotoAndPlay(1);
in_cart = false;
in_barrel = false;
frame_adj = false;
start_jump = false;
hero.hero.gotoAndStop(1);
objects_loaded = 0;
interface.interface.c_num.n1.gotoAndStop(1);
interface.interface.c_num.n2.gotoAndStop(1);
interface.interface.s_num.n1.gotoAndStop(1);
interface.interface.s_num.n2.gotoAndStop(1);
}
function clear_collect(which) {
collect_x[which] = "x";
collect_y[which] = "y";
mid_ground["collect" + (which + 1)].gotoAndStop(2);
}
function real_dead_dog() {
delete temp_num;
delete block_num;
delete collect_num;
in_barrel = false;
in_cart = false;
vy = -3;
y = 300;
hero.hero.gotoAndStop(1);
rev = 100;
my_fear = 0;
interface.interface.fear.gotoAndStop(1);
interface.interface.heeed.gotoAndStop(1);
grip = 2;
interface.interface.gotoAndStop(2);
setup();
}
function dead_dog() {
lives--;
interface.interface.lives.nextFrame();
fall = false;
ended = true;
start_play = false;
key_left = false;
key_right = false;
if (lives > 0) {
interface.interface.gotoAndStop(4);
} else {
interface.interface.gotoAndStop(5);
}
ideal_vol = 0;
play_sound("life", 0, 1);
}
function play_again() {
delete temp_num;
delete block_num;
delete collect_num;
delete_vars();
interface.removeMovieClip();
back_ground.removeMovieClip();
mid_ground.removeMovieClip();
fore_ground.removeMovieClip();
sounds.removeMovieClip();
hero.removeMovieClip();
in_barrel = false;
in_cart = false;
vy = -3;
y = 300;
rev = 100;
my_fear = 0;
grip = 2;
objects_loaded = 0;
setup_done = false;
made_hero = false;
this.gotoAndStop("introduction");
}
function fear(f_amount) {
if ((!springy) && (!blinky)) {
play_sound("health", 0, 1);
key_left = false;
key_right = false;
my_fear = my_fear + f_amount;
interface.interface.fear.gotoAndStop(Math.ceil(my_fear));
interface.interface.heeed.gotoAndStop(Math.ceil(my_fear / 5));
((my_fear >= 23) ? (dead_dog()) : 0);
if (!blinky) {
blinky = true;
flash = true;
}
}
}
function health_cheat() {
my_fear = 0;
interface.interface.fear.gotoAndStop(1);
interface.interface.heeed.gotoAndStop(1);
}
function add_health(h_amount) {
my_fear = my_fear - h_amount;
my_fear = Math.max(1, my_fear);
interface.interface.fear.gotoAndStop(Math.ceil(my_fear));
interface.interface.heeed.gotoAndStop(Math.ceil(my_fear / 5));
}
function level_clear() {
interface.interface.gotoAndStop("level_clear");
x_speed = 0;
potential_x = 0;
ended = true;
start_play = false;
ideal_vol = 80;
}
function end_level() {
fore_ground.removeMovieClip();
mid_ground.removeMovieClip();
back_ground.removeMovieClip();
delete temp_num;
delete block_num;
delete collect_num;
delete_vars();
my_fear = 0;
interface.interface.fear.gotoAndStop(1);
interface.interface.heeed.gotoAndStop(1);
grip = 2;
objects_loaded = false;
setup_done = false;
if (level == 9) {
interface.interface.gotoAndStop("you_win");
} else {
interface.interface.gotoAndStop("making");
level++;
loadVariablesNum (("include/level" + level) + ".txt", 0);
load_images();
}
}
function delete_vars() {
delete bat_position;
delete breakable_crate_position;
delete breakable_chest_position;
delete hole_position;
delete small_hole_position;
delete water_position;
delete crate_position;
delete spring_position;
delete seesaw_position;
delete blocks1_position;
delete blocks2_position;
delete ramp_position;
delete skate_board_position;
delete barrel_position;
delete cart_position;
delete stopper_position;
delete speeder_position;
delete pumpkin_position;
delete bomb_position;
delete clown_position;
delete spike_position;
delete slicer_position;
delete boat_position;
delete character_position;
delete zombie_position;
delete witche_position;
delete wolfman_position;
delete frankenstein_position;
delete ghost_position;
delete ghoul_position;
delete coin_position;
delete heart_position;
delete bone_position;
delete character_position;
delete cauldron_position;
delete cauldron;
delete bats;
delete breakable_crates;
delete breakable_chests;
delete holes;
delete small_holes;
delete waters;
delete crates;
delete springs;
delete seesaws;
delete blocks1;
delete blocks2;
delete ramps;
delete skates;
delete barrels;
delete carts;
delete stoppers;
delete speeders;
delete pumpkins;
delete bombs;
delete clowns;
delete spikes;
delete slicers;
delete boats;
delete characters;
delete zombies;
delete witches;
delete wolfmen;
delete frankensteins;
delete ghosts;
delete ghouls;
delete coins;
delete hearts;
delete bones;
delete characters;
}
function add_score(amount) {
score = score + amount;
score_length = score.toString().length;
((score_length == 8) ? ((score_zeros = "")) : (((score_length == 7) ? ((score_zeros = "0")) : (((score_length == 6) ? ((score_zeros = "00")) : (((score_length == 5) ? ((score_zeros = "000")) : (((score_length == 4) ? ((score_zeros = "0000")) : (((score_length == 3) ? ((score_zeros = "00000")) : (((score_length == 2) ? ((score_zeros = "000000")) : (((score_length == 1) ? ((score_zeros = "0000000")) : ((score_zeros = "00000000")))))))))))))))));
full_score = score_zeros + score;
s = 0;
while (s < 8) {
to = full_score.substr(s, 1);
interface.interface.score["s" + s].gotoAndStop(Number(to) + 1);
s++;
}
}
function collect_display(which) {
if (which == "coins") {
if (interface.interface.c_num.n2._currentframe == 10) {
interface.interface.c_num.n2.gotoAndStop(1);
interface.interface.c_num.n1.nextFrame();
} else {
interface.interface.c_num.n2.nextFrame();
}
}
if (which == "snacks") {
if (interface.interface.s_num.n2._currentframe == 10) {
interface.interface.s_num.n2.gotoAndStop(1);
interface.interface.s_num.n1.nextFrame();
} else {
interface.interface.s_num.n2.nextFrame();
}
}
}
_quality = "low";
max_speed = 12;
g = 170;
elastic = 0.25;
level = 1;
movie_height = 330;
movie_width = 432;
hero_start_y = 30;
grip = 2;
this.createEmptyMovieClip("interface", 9999);
interface.attachMovie("interface", "interface", 1);
interface._x = 0;
interface._y = 0;
loadVariablesNum (("include/level" + level) + ".txt", 0);
backs = new Array(1, 1, 2, 2, 3, 3, 4, 4, 5);
load_size = new Array(118301, 118301, 81469, 81469, 121908, 121908, 95499, 95499, 136694);
lives = 5;
this.createEmptyMovieClip("sounds", 1000);
sounds.createEmptyMovieClip("run", 1);
run = new Sound("sounds.run");
run.attachSound("run");
run.setVolume(10);
sounds.createEmptyMovieClip("jump", 2);
jump = new Sound("sounds.jump");
jump.attachSound("jump");
jump.setVolume(20);
sounds.createEmptyMovieClip("land", 3);
land = new Sound("sounds.land");
land.attachSound("land");
land.setVolume(60);
sounds.createEmptyMovieClip("bing", 4);
bing = new Sound("sounds.bing");
bing.attachSound("bing");
bing.setVolume(50);
sounds.createEmptyMovieClip("s_coin", 5);
s_coin = new Sound("sounds.s_coin");
s_coin.attachSound("s_coin");
s_coin.setVolume(80);
sounds.createEmptyMovieClip("s_snack", 6);
s_snack = new Sound("sounds.s_snack");
s_snack.attachSound("s_snack");
s_snack.setVolume(100);
sounds.createEmptyMovieClip("c_roll", 7);
c_roll = new Sound("sounds.c_roll");
c_roll.attachSound("c_roll");
c_roll.setVolume(50);
sounds.createEmptyMovieClip("c_stop", 8);
c_stop = new Sound("sounds.c_stop");
c_stop.attachSound("c_stop");
c_stop.setVolume(50);
sounds.createEmptyMovieClip("m_die", 9);
m_die = new Sound("sounds.m_die");
m_die.attachSound("m_die");
m_die.setVolume(50);
sounds.createEmptyMovieClip("health", 10);
health = new Sound("sounds.health");
health.attachSound("health");
health.setVolume(50);
sounds.createEmptyMovieClip("breaky", 11);
breaky = new Sound("sounds.breaky");
breaky.attachSound("breaky");
breaky.setVolume(50);
sounds.createEmptyMovieClip("b_run", 12);
b_run = new Sound("sounds.b_run");
b_run.attachSound("b_run");
b_run.setVolume(30);
sounds.createEmptyMovieClip("life", 13);
life = new Sound("sounds.life");
life.attachSound("life");
life.setVolume(60);
load_images();
this.onEnterFrame = function () {
if (this._currentframe == 10) {
if (my_vol < ideal_vol) {
my_vol = my_vol + 5;
}
if (my_vol > ideal_vol) {
my_vol = my_vol - 5;
}
theme.setVolume(my_vol);
if (ended) {
key_left = false;
key_right = false;
}
time = time + (!ended);
ok1 = back_ground.back1.holder.getBytesLoaded() == load_size[level - 1];
ok2 = back_ground.back2.holder.getBytesLoaded() == load_size[level - 1];
ok3 = back_ground.back3.holder.getBytesLoaded() == load_size[level - 1];
if ((((objects_loaded && (ok1)) && (ok2)) && (ok3)) && (!setup_done)) {
setup();
setup_done = true;
}
if (start_play) {
key_left = Key.isDown(37) * ((!key_right) && (!crouch));
key_right = Key.isDown(39) * ((!key_left) && (!crouch));
key_jump = Key.isDown(32) * ((!on_ramp) && (!crouch));
key_crouch = Key.isDown(40) * (!jumping);
cheat_t++;
if (Key.isDown(82) && (the_cheat.substr(0, 1) != "r")) {
the_cheat = the_cheat + "r";
cheat_t = 0;
}
if (Key.isDown(69) && (the_cheat.substr(1, 1) != "e")) {
the_cheat = the_cheat + "e";
}
if (Key.isDown(65) && (the_cheat.substr(2, 1) != "a")) {
the_cheat = the_cheat + "a";
}
if (Key.isDown(76) && (the_cheat.substr(3, 1) != "l")) {
the_cheat = the_cheat + "l";
}
if (Key.isDown(84) && (the_cheat.substr(4, 1) != "t")) {
the_cheat = the_cheat + "t";
}
if (Key.isDown(72) && (the_cheat.substr(5, 1) != "h")) {
the_cheat = the_cheat + "h";
}
if (the_cheat == "realth") {
health_cheat();
the_cheat = "";
}
if (cheat_t > 100) {
the_cheat = "";
}
(Key.isDown(83) ? (skip_level()) : 0);
skip_level = function () {
level_clear();
};
}
potential_x = (key_left - key_right) * (max_speed + speed_adj);
x_speed = x_speed + ((grip * (x_speed < potential_x)) - (grip * (x_speed > potential_x)));
if ((!in_cart) && (Math.abs(x_speed) < 2)) {
x_speed = 0;
}
back_ground._x = back_ground._x + x_speed;
mid_ground._x = mid_ground._x + x_speed;
fore_ground._x = (back_ground._x * 2) + image_width;
back_ground._x = back_ground._x + x_adj;
mid_ground._x = mid_ground._x + x_adj;
if (back_ground._x > 0) {
back_ground._x = back_ground._x - back_width;
}
if (back_ground._x < (-(back_width - 1))) {
back_ground._x = back_ground._x + back_width;
}
if (key_left) {
rev = -100;
}
if (key_right) {
rev = 100;
}
hero.hero.body._xscale = rev;
hero.hero.barrel._xscale = rev;
if (start_jump) {
jump_ani = true;
(((vy == -67) && (hero.hero.body._currentframe == 2)) ? (hero.hero.body.play()) : 0);
(((vy < 0) && (hero.hero.body._currentframe == 13)) ? ((frame_adj = false)(start_jump = false)play_sound("land", 0, 1)) : 0);
}
still = ((((((x_speed == 0) && (!key_left)) && (!key_right)) && (!jumping)) && (!skating)) && (!fall)) && (!spiked);
running = ((((((x_speed != 0) || (key_left)) || (key_right)) && (!jumping)) && (!skating)) && (!fall)) && (!spiked);
jumping = start_jump;
skating = on_board;
carting = in_cart;
hiding = in_barrel;
(still ? ((ani_frame = 1)) : 0);
(running ? ((ani_frame = 11)) : 0);
(jumping ? ((ani_frame = 21)) : 0);
(skating ? ((ani_frame = 31)) : 0);
(carting ? ((ani_frame = 41)) : 0);
(hiding ? ((ani_frame = 51)) : 0);
(crouch ? ((ani_frame = 61)) : 0);
(fall ? ((ani_frame = 71)) : 0);
(spiked ? ((ani_frame = 81)) : 0);
hero.hero.gotoAndStop(ani_frame);
no_jump = (in_barrel || (in_cart)) && (action_object != "x");
if (((((key_jump && (!dep_jump)) && (hero._y == low_y)) && (!no_jump)) && (!start_jump)) && (vy == -3)) {
dep_jump = true;
vy = 660;
start_jump = true;
}
dep_jump = key_jump;
oldy = y;
y = hero._y;
vy = vy + (g / 10);
y = y + (vy / 10);
if (y > low_y) {
if (((start_jump && (hero.hero.body._currentframe < 13)) && (vy > 0)) && (vy != 677)) {
frame_adj = false;
start_jump = false;
play_sound("land", 0, 1);
}
y = low_y;
vy = int(-(vy * elastic));
}
if (y != low_y) {
run.setVolume(0);
} else {
run.setVolume(10);
}
hero._y = y;
low_y = ground_y - y_level;
crouch = key_crouch * ((hero.hero._currentframe <= 11) || (hero.hero._currentframe == 61));
jump_adj = (movie_height - hero_start_y) - y;
back_ground._y = Math.max(movie_height, Math.min(movie_height + size_diff, movie_height + (jump_adj * 0.2)));
mid_ground._y = back_ground._y;
fore_ground._y = Math.max(movie_height, Math.min((movie_height + size_diff) * 2, movie_height + (jump_adj * 0.4)));
action_object = "x";
i = 0;
while (i < screen_position.length) {
((screen_position[i] == 1) ? ((action_object = screen_name[i])) : 0);
i++;
}
if ((action_object != "x") && (ground_y > (y + level_adj))) {
y_level = level_adj;
}
if (action_object == "x") {
y_level = 0;
level_adj = 0;
hero._y = Math.min(300, hero._y);
}
my_x = hero._x - mid_ground._x;
my_y = (300 - hero._y) + 100;
i = 0;
while (i < collect_x.length) {
(((Math.abs(my_x - collect_x[i]) <= 40) && (Math.abs(my_y - collect_y[i]) <= 40)) ? (clear_collect(i)) : 0);
i++;
}
monitor = mid_ground._x - 216;
((((my_x >= end_mark) && (start_play)) && (!ended)) ? (level_clear()) : 0);
}
};
Symbol 3 MovieClip [externalFileHolder] Frame 1
stop();
Instance of Symbol 1 MovieClip "slot" in Symbol 3 MovieClip [externalFileHolder] Frame 1
onClipEvent (data) {
_parent.caller.isLoaded = true;
}
onClipEvent (mouseUp) {
if ((_parent.caller.link != null) && (this.hitTest(_xmouse, _ymouse, false))) {
getURL (_parent.caller.link, "_blank");
}
}
Instance of Symbol 2 MovieClip "timer" in Symbol 3 MovieClip [externalFileHolder] Frame 1
onClipEvent (enterFrame) {
if (caller.active) {
caller.Tick();
}
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 24 MovieClip [crate] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = 60)) : ((_root.screen_position[id - 1] = 0)));
if (((((my_position > -80) && (my_position < 80)) && (_root.in_cart)) && (_root.x_speed < 0)) && (my_position > 0)) {
}
if (((((my_position > -80) && (my_position < 80)) && (_root.in_cart)) && (_root.x_speed > 0)) && (my_position < 0)) {
}
};
diff = 60;
Symbol 35 Button
on (release) {
_root.stupid = true;
}
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 37
stop();
Instance of Symbol 33 MovieClip in Symbol 36 MovieClip Frame 37
onClipEvent (keyDown) {
_root.stupid = true;
}
Symbol 51 MovieClip Frame 21
stop();
Instance of Symbol 49 MovieClip in Symbol 51 MovieClip Frame 21
onClipEvent (keyDown) {
_root.gotoAndStop("controls", 1);
}
Symbol 74 MovieClip Frame 27
stop();
Instance of Symbol 73 MovieClip in Symbol 74 MovieClip Frame 27
onClipEvent (keyDown) {
_root.gotoAndStop("game", 1);
}
Symbol 86 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.flash) {
time++;
if (time == 1) {
_parent.body._alpha = 10;
}
if (time == 2) {
_parent.body._alpha = 100;
}
if (time == 2) {
time = 0;
st++;
}
}
if (st == 4) {
st = 0;
time = 0;
_root.blinky = false;
_root.flash = false;
}
};
Symbol 126 MovieClip Frame 2
stop();
Symbol 126 MovieClip Frame 13
stop();
Instance of Symbol 138 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - (_root.x_speed * 2);
}
Instance of Symbol 138 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - (_root.x_speed * 2);
}
Symbol 148 MovieClip Frame 15
_root.start_play = true;
_parent.gotoAndStop(2);
Symbol 152 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 5
_parent.gotoAndStop(10);
Symbol 156 MovieClip Frame 7
_parent.gotoAndStop(2);
Instance of Symbol 152 MovieClip "eyes" in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
rnd = int(Math.random() * 62);
((rnd == 0) ? (this.play()) : 0);
}
Symbol 172 MovieClip Frame 1
stop();
Instance of Symbol 152 MovieClip "eyes" in Symbol 172 MovieClip Frame 2
onClipEvent (enterFrame) {
rnd = int(Math.random() * 62);
((rnd == 0) ? (this.play()) : 0);
}
Symbol 177 MovieClip Frame 3
stop();
Symbol 183 MovieClip Frame 15
_root.dead_dog();
stop();
Symbol 184 MovieClip [hero] Frame 1
body._xscale = _root.rev;
Symbol 184 MovieClip [hero] Frame 11
body._xscale = _root.rev;
Instance of Symbol 107 MovieClip "body" in Symbol 184 MovieClip [hero] Frame 11
onClipEvent (load) {
_root.play_sound("run", 999, 1);
}
onClipEvent (unload) {
_root.play_sound("run", 0, 0);
}
Symbol 184 MovieClip [hero] Frame 21
body._xscale = _root.rev;
_root.play_sound("jump", 0, 1);
Instance of Symbol 139 MovieClip "board" in Symbol 184 MovieClip [hero] Frame 41
onClipEvent (unload) {
_root.play_sound("c_roll", 0, 0);
}
Symbol 184 MovieClip [hero] Frame 51
this.onEnterFrame = function () {
if ((barrel._currentframe == 2) && (_root.x_speed != 0)) {
barrel.gotoAndStop(4);
}
if ((((barrel._currentframe == 10) && (_root.x_speed == 0)) && (!_root.key_left)) && (!_root.key_right)) {
barrel.gotoAndStop(6);
}
};
Instance of Symbol 172 MovieClip "barrel" in Symbol 184 MovieClip [hero] Frame 51
onClipEvent (enterFrame) {
if ((_root.x_speed != 0) && (!done)) {
_root.play_sound("b_run", 999, 1);
done = true;
}
if (done && (_root.x_speed == 0)) {
_root.play_sound("b_run", 0, 0);
done = false;
}
}
onClipEvent (unload) {
_root.play_sound("b_run", 0, 0);
}
Symbol 184 MovieClip [hero] Frame 81
_root.start_play = false;
_root.key_left = false;
_root.key_right = false;
Symbol 192 MovieClip [spring] Frame 1
function reset() {
potential_x = 0;
_root.start_play = true;
jumped = false;
_root.execute_spring = false;
bar._rotation = 0;
mom = 0;
action = false;
}
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < my_size) && (my_position > (-my_size));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = 36)) : ((_root.screen_position[id - 1] = 0)));
(((((_root.vy == -3) && (_root.hero._y < _root.ground_y)) && (_root.start_play)) && (item_over)) ? ((action = true)) : 0);
if (action) {
_root.springy = true;
if ((bar._rotation == 0) && (!done)) {
_root.play_sound("run", 0, 0);
_root.play_sound("bing", 0, 1);
done = true;
}
if (bar._rotation != 0) {
done = false;
}
((bar._rotation < 45) ? ((mom = mom + 1)) : 0);
((bar._rotation > 45) ? ((mom = mom - 1)) : 0);
change = (mom * diff) * 0.7;
bar._rotation = bar._rotation + change;
diff = Math.abs(45 - bar._rotation) * 0.95;
_root.start_play = false;
((!jumped) ? ((_root.vy = 1200)(_root.x_speed = 0)(_root.potential_x = 0)(jumped = true)) : 0);
_root.x_speed = _root.x_speed - ((8 * (_root.x_speed > potential_x)) - (4 * (_root.x_speed < potential_x)));
((_root.vy == -3) ? (reset()) : ((potential_x = -12)));
} else {
_root.springy = false;
}
};
my_size = 40;
Symbol 198 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 208 MovieClip [block1] Frame 1
function reset() {
_root.key_left = false;
_root.right_key = false;
action = false;
}
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = my_size)) : ((_root.screen_position[id - 1] = 0)));
((item_over && (temp_y < my_size)) ? ((action = true)) : 0);
temp_y = 300 - _root.hero._y;
if ((((action && (my_position < 60)) && (my_position > 0)) && (!bound_off)) && (_root.in_barrel || (_root.hero.hero.body._xscale == 100))) {
_root.x_speed = 4;
reset();
}
if ((((action && (my_position > -60)) && (my_position <= 0)) && (!bound_off)) && (_root.in_barrel || (_root.hero.hero.body._xscale == -100))) {
_root.x_speed = -4;
reset();
}
};
my_size = 112;
diff = 60;
block.gotoAndStop(_root.level);
Symbol 213 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 223 MovieClip [block2] Frame 1
function reset() {
_root.key_left = false;
_root.right_key = false;
action = false;
}
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = my_size)) : ((_root.screen_position[id - 1] = 0)));
((item_over && (temp_y < my_size)) ? ((action = true)) : 0);
temp_y = 300 - _root.hero._y;
if (((action && (_root.x_speed < 0)) && (!bound_off)) && (_root.in_barrel || (_root.hero.hero.body._xscale == 100))) {
_root.x_speed = -Math.floor(_root.x_speed * 1.2);
reset();
}
if (((action && (_root.x_speed > 0)) && (!bound_off)) && (_root.in_barrel || (_root.hero.hero.body._xscale == -100))) {
_root.x_speed = -Math.ceil(_root.x_speed * 1.2);
reset();
}
};
my_size = 112;
diff = 60;
block.gotoAndStop(_root.level);
Symbol 257 MovieClip [zombie] Frame 1
function explode() {
_root.add_score(1500);
this.attachMovie("blue_explode", "exploder", 1);
dead = true;
_root.villan_amount++;
}
this.onEnterFrame = function () {
if ((!dead) && (!_root.ended)) {
body.play();
my_y = 330 + this._y;
hero_y = _root.hero._y - 50;
enemy_y = my_y - hero_y;
my_x = _parent._x + this._x;
hero_x = _root.hero._x;
enemy_x = my_x - hero_x;
potential_x = 4 * (right - left);
x_speed = x_speed + ((x_speed < potential_x) - (x_speed > potential_x));
this._x = this._x + x_speed;
i = 0;
while (i < list_length) {
stopper = this._x - Number(_root.block_list[i]);
range = Number(_root.block_range[i]);
if (((stopper < range) && (stopper > 0)) && (left)) {
left = false;
right = true;
this._xscale = -100;
}
if (((stopper > (-range)) && (stopper < 0)) && (right)) {
left = true;
right = false;
this._xscale = 100;
}
i++;
}
_root.explode_x[list_place] = this._x;
if ((Math.abs(enemy_x) < (20 + (20 * _root.in_cart))) && (Math.abs(enemy_y < 126))) {
if (((_root.hero.hero.body._currentframe >= 7) && (_root.jumping)) || (_root.in_cart || (_root.springy))) {
explode();
} else if (((!_root.in_barrel) && (!_root.in_cart)) && (!_root.springy)) {
_root.fear(4);
}
}
} else {
body.stop();
}
if (dead) {
body.stop();
body._alpha = body._alpha - 8;
}
};
left = true;
list_length = _root.block_list.length;
Symbol 270 MovieClip [witch] Frame 1
function explode() {
_root.add_score(1500);
this.attachMovie("blue_explode", "exploder", 1);
dead = true;
_root.villan_amount++;
}
this.onEnterFrame = function () {
if ((!dead) && (!_root.ended)) {
body.play();
my_y = 330 + this._y;
hero_y = _root.hero._y - 50;
enemy_y = my_y - hero_y;
my_x = _parent._x + this._x;
hero_x = _root.hero._x;
enemy_x = my_x - hero_x;
potential_x = 2 * (right - left);
x_speed = x_speed + ((x_speed < potential_x) - (x_speed > potential_x));
this._x = this._x + x_speed;
if ((this._x < (start_x - (range * 0.5))) && (left)) {
left = false;
right = true;
this._xscale = -100;
}
if ((this._x > (start_x + (range * 0.5))) && (right)) {
left = true;
right = false;
this._xscale = 100;
}
_root.explode_x[list_place] = this._x;
if ((Math.abs(enemy_x) < (20 + (20 * _root.in_cart))) && (Math.abs(enemy_y < 126))) {
if (((_root.hero.hero.body._currentframe >= 7) && (_root.jumping)) || (_root.in_cart || (_root.springy))) {
explode();
} else if (((!_root.in_barrel) && (!_root.in_cart)) && (!_root.springy)) {
_root.fear(4);
}
}
} else {
body.stop();
}
if (dead) {
body.stop();
body._alpha = body._alpha - 8;
}
};
range = 800;
start_x = this._x;
left = true;
list_length = _root.block_list.length;
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 31
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 304 MovieClip [wolfman] Frame 1
function explode() {
_root.add_score(1500);
this.attachMovie("blue_explode", "exploder", 1);
dead = true;
_root.villan_amount++;
}
this.onEnterFrame = function () {
if ((!dead) && (!_root.ended)) {
look = body._currentframe == 1;
run = body._currentframe == 2;
enemy_x = (_parent._x + this._x) - _root.hero._x;
if (look == true) {
rnd++;
((rnd == 200) ? (body.look.play()(rnd = 0)) : 0);
found_left = ((enemy_x > 0) && (enemy_x < 150)) && (body.look._currentframe == (1 + (30 * (this._xscale == -100))));
found_right = ((enemy_x < 0) && (enemy_x > -150)) && (body.look._currentframe == (31 - (30 * (this._xscale == -100))));
if (!((found_left || (found_right)) && (!_root.in_barrel))) {
} else {
(body.gotoAndStop(2));// not popped
}
}
if (run == true) {
if (!((enemy_x > 300) || (enemy_x < -300))) {
} else {
(body.gotoAndStop(1));// not popped
}
if ((enemy_x < 0) && (this._xscale != -100)) {
this._xscale = -100;
}
if ((enemy_x > 0) && (this._xscale != 100)) {
this._xscale = 100;
}
potential_x = 4 * ((enemy_x < 1) - (enemy_x > 1));
x_speed = x_speed + ((x_speed < potential_x) - (x_speed > potential_x));
this._x = this._x + x_speed;
i = 0;
while (i < list_length) {
stopper = Math.abs(this._x - Number(_root.block_list[i]));
((stopper < 74) ? ((x_speed = (-x_speed) * 1.4)) : 0);
i++;
}
}
_root.explode_x[list_place] = this._x;
if ((Math.abs(enemy_x) < (20 + (20 * _root.in_cart))) && (Math.abs(enemy_y < 126))) {
if (((_root.hero.hero.body._currentframe >= 7) && (_root.jumping)) || (_root.in_cart || (_root.springy))) {
explode();
} else if (((!_root.in_barrel) && (!_root.in_cart)) && (!_root.springy)) {
_root.fear(4);
}
}
} else {
body.run.stop();
}
if (dead) {
body.run.stop();
body._alpha = body._alpha - 8;
}
};
list_length = _root.block_list.length;
Symbol 322 MovieClip [frankenstein] Frame 1
function explode() {
_root.add_score(1500);
this.attachMovie("blue_explode", "exploder", 1);
dead = true;
_root.villan_amount++;
}
this.onEnterFrame = function () {
if ((!dead) && (!_root.ended)) {
body.play();
my_y = 330 + this._y;
hero_y = _root.hero._y - 50;
enemy_y = my_y - hero_y;
my_x = _parent._x + this._x;
hero_x = _root.hero._x;
enemy_x = my_x - hero_x;
potential_x = 4 * (right - left);
x_speed = x_speed + ((x_speed < potential_x) - (x_speed > potential_x));
this._x = this._x + x_speed;
i = 0;
while (i < list_length) {
stopper = this._x - Number(_root.block_list[i]);
range = Number(_root.block_range[i]);
if (((stopper < range) && (stopper > 0)) && (left)) {
left = false;
right = true;
this._xscale = -100;
}
if (((stopper > (-range)) && (stopper < 0)) && (right)) {
left = true;
right = false;
this._xscale = 100;
}
i++;
}
_root.explode_x[list_place] = this._x;
if ((Math.abs(enemy_x) < (20 + (20 * _root.in_cart))) && (Math.abs(enemy_y < 126))) {
if (((_root.hero.hero.body._currentframe >= 7) && (_root.jumping)) || (_root.in_cart || (_root.springy))) {
explode();
} else if (((!_root.in_barrel) && (!_root.in_cart)) && (!_root.springy)) {
_root.fear(4);
}
}
} else {
body.stop();
}
if (dead) {
body.stop();
body._alpha = body._alpha - 8;
}
};
left = true;
list_length = _root.block_list.length;
Symbol 335 MovieClip [ghost] Frame 1
function explode() {
_root.add_score(1500);
this.attachMovie("blue_explode", "exploder", 1);
dead = true;
_root.villan_amount++;
}
this.onEnterFrame = function () {
if ((!dead) && (!_root.ended)) {
body.play();
my_y = 330 + this._y;
hero_y = _root.hero._y - 50;
enemy_y = my_y - hero_y;
my_x = _parent._x + this._x;
hero_x = _root.hero._x;
enemy_x = my_x - hero_x;
potential_x = 3 * (right - left);
x_speed = x_speed + ((x_speed < potential_x) - (x_speed > potential_x));
this._x = this._x + x_speed;
if (enemy_x < (-_root.image_width)) {
this._x = this._x + (_root.image_width * 2);
}
if (enemy_x > _root.image_width) {
this._x = this._x - (_root.image_width * 2);
}
_root.explode_x[list_place] = this._x;
if ((Math.abs(enemy_x) < (20 + (20 * _root.in_cart))) && (Math.abs(enemy_y < 126))) {
if (((_root.hero.hero.body._currentframe >= 7) && (_root.jumping)) || (_root.in_cart || (_root.springy))) {
explode();
} else if (((!_root.in_barrel) && (!_root.in_cart)) && (!_root.springy)) {
_root.fear(4);
}
}
} else {
body.stop();
}
if (dead) {
body.stop();
body._alpha = body._alpha - 8;
}
};
left = true;
list_length = _root.block_list.length;
Symbol 346 MovieClip Frame 1
stop();
Symbol 347 MovieClip [hole] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = -200)) : ((_root.screen_position[id - 1] = 0)));
if (item_over) {
if (_root.y > 300) {
_root.fall = true;
_root.start_play = false;
_root.key_left = false;
_root.key_right = false;
_root.potential_x = 0;
_root.x_speed = 0;
if ((_root.hero._y == 500) && (!_root.ended)) {
_root.dead_dog();
}
}
}
};
diff = 130;
hole.gotoAndStop(_root.level);
Symbol 357 MovieClip [ghoul] Frame 1
function explode() {
_root.add_score(1500);
this.attachMovie("blue_explode", "exploder", 1);
dead = true;
_root.villan_amount++;
}
this.onEnterFrame = function () {
if ((!dead) && (!_root.ended)) {
body.play();
my_y = 330 + this._y;
hero_y = _root.hero._y - 50;
enemy_y = my_y - hero_y;
my_x = _parent._x + this._x;
hero_x = _root.hero._x;
enemy_x = my_x - hero_x;
potential_x = 3 * (right - left);
x_speed = x_speed + ((x_speed < potential_x) - (x_speed > potential_x));
this._x = this._x + x_speed;
if (enemy_x < (-_root.image_width)) {
this._x = this._x + (_root.image_width * 2);
}
if (enemy_x > _root.image_width) {
this._x = this._x - (_root.image_width * 2);
}
_root.explode_x[list_place] = this._x;
if ((Math.abs(enemy_x) < (20 + (20 * _root.in_cart))) && (Math.abs(enemy_y < 126))) {
if (((_root.hero.hero.body._currentframe >= 7) && (_root.jumping)) || (_root.in_cart || (_root.springy))) {
explode();
} else if (((!_root.in_barrel) && (!_root.in_cart)) && (!_root.springy)) {
_root.fear(4);
}
}
} else {
body.stop();
}
if (dead) {
body.stop();
body._alpha = body._alpha - 8;
}
};
left = true;
list_length = _root.block_list.length;
Symbol 360 MovieClip [ramp] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = ((my_position < diff) && (my_position > (-diff))) && (_root.in_cart);
(item_over ? ((_root.screen_position[id - 1] = 1)) : ((_root.screen_position[id - 1] = 0)));
board_y = my_position - diff;
if (item_over) {
_root.on_ramp = true;
_root.low_y = _root.ground_y + (board_y * 0.5);
gravity = board_y;
} else {
gravity = 0;
}
if ((_root.on_ramp && (my_position > 46)) && (my_position < 66)) {
_root.on_ramp = false;
}
_root.ramp_adjust = _root.ramp_adjust + ((_root.ramp_adjust < gravity) - (_root.ramp_adjust > gravity));
angle = Math.min(20, _root.ground_y - _root.y);
_root.hero.hero.board._rotation = Math.min(0, (-angle) * 1.8);
_root.x_speed = _root.x_speed - (_root.ramp_adjust * 0.1);
if ((_root.on_ramp && (_root.x_speed > 0)) && (_root.x_speed < 1)) {
_root.x_speed = 1;
}
if (((my_position < (-diff)) && (_root.on_ramp)) && (!jumped)) {
jumped = true;
_root.vy = _root.x_speed * 10;
}
if ((jumped && (_root.vy == -3)) && (_root.on_ramp)) {
jumped = false;
_root.on_ramp = false;
}
if (((((_root.in_cart && (_root.x_speed > 0)) && (_root.vy == -3)) && (my_position > (-(diff + 40)))) && (my_position < diff)) && (!item_over)) {
_root.x_speed = (-_root.x_speed) * 1.1;
}
};
name = _root.hero.hero.board;
diff = 46;
Symbol 361 MovieClip [cart] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
if (((item_over && (_root.hero.hero._currentframe == 21)) && (_root.hero.hero.body._currentframe > 2)) && (_root.y > 280)) {
_root.in_cart = true;
this._visible = 0;
_root.speed_adj = 4;
_root.grip = 0.5;
_root.start_jump = false;
}
if (((_root.start_jump && (_root.in_cart)) && (_root.hero.hero._currentframe == 41)) && (!_root.on_ramp)) {
_root.play_sound("c_roll", 0, 0);
_root.in_cart = false;
_root.start_play = true;
_root.grip = 2;
_root.speed_adj = 0;
this._visible = 1;
this._x = _root.hero._x - _root.mid_ground._x;
_root.ramp_adjust = 0;
_root.level_adj = 0;
_root.x_speed = int(_root.x_speed);
}
if (_root.in_cart) {
_root.start_play = _root.hero._y == 300;
}
if ((_root.in_cart && (_root.x_speed != 0)) && (!done)) {
_root.play_sound("c_roll", 999, 1);
done = true;
}
if ((_root.in_cart && (_root.x_speed == 0)) && (done)) {
_root.play_sound("c_roll", 0, 0);
done = false;
}
};
diff = 40;
Symbol 362 MovieClip [barrel] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
if ((item_over && (_root.hero.hero.body._currentframe >= 11)) && (_root.hero._y > 240)) {
_root.in_barrel = true;
this._visible = 0;
_root.speed_adj = -2;
_root.grip = 2;
_root.start_jump = false;
_root.key_left = false;
_root.key_right = false;
_root.x_speed = 0;
_root.potential_x = 0;
_root.start_play = false;
}
if ((_root.start_jump && (_root.in_barrel)) && (_root.hero.hero._currentframe == 51)) {
_root.in_barrel = false;
_root.speed_adj = 0;
this._visible = 1;
this._x = _root.hero._x - _root.mid_ground._x;
this._xscale = _root.hero.hero.barrel._xscale;
}
};
diff = 40;
Symbol 365 MovieClip [stopper] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
if (((((my_position < 40) && (my_position > 0)) && (_root.x_speed < 0)) && (_root.in_cart)) && (_root.hero._y == 300)) {
_root.x_speed = -Math.floor(_root.x_speed * 1.1);
_root.play_sound("c_stop", 0, 1);
}
if (((((my_position > -40) && (my_position < 0)) && (_root.x_speed > 0)) && (_root.in_cart)) && (_root.hero._y == 300)) {
_root.x_speed = -Math.ceil(_root.x_speed * 1.1);
_root.play_sound("c_stop", 0, 1);
}
};
Symbol 367 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 22
gotoAndPlay (10);
Symbol 433 MovieClip Frame 1
var startTime = getTimer();
var numFrames = 0;
var recentSetting = 10;
var recentNumFrames = 0;
var recentStartTime = startTime;
function calcFPS() {
numFrames++;
var now = getTimer();
elapsedSeconds = (now - startTime) / 1000;
actualFPS = numFrames / elapsedSeconds;
recentNumFrames++;
if (recentNumFrames == recentSetting) {
var recentElapsedSeconds = ((now - recentStartTime) / 1000);
recentFPSoutput = recentNumFrames / recentElapsedSeconds;
recentStartTime = now;
recentNumFrames = 0;
}
}
Instance of Symbol 432 MovieClip "callCalcFPS" in Symbol 433 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.calcFPS();
}
Instance of Symbol 454 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.level);
}
Symbol 457 MovieClip Frame 28
_root.ideal_vol = 20;
Symbol 457 MovieClip Frame 46
stop();
_root.time = 0;
_root.ended = false;
_root.start_play = true;
Symbol 497 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 8
stop();
Instance of Symbol 49 MovieClip in Symbol 502 MovieClip Frame 8
onClipEvent (keyDown) {
_root.end_level();
}
Symbol 503 MovieClip Frame 34
stop();
Instance of Symbol 499 MovieClip in Symbol 503 MovieClip Frame 34
onClipEvent (load) {
holder.b0._visible = 0;
holder.b1._visible = 0;
holder.b2._visible = 1;
best = _root.snack_total;
percent = int(_root.snack_amount / (best / 19));
bonus_score = percent * 50;
}
onClipEvent (enterFrame) {
if (temp < bonus_score) {
temp = temp + 50;
}
if (percent == 0) {
temp = bonus_score;
holder._x = -14;
}
((temp.toString().length == 1) ? ((ss = 2)) : 0);
((temp.toString().length == 2) ? ((ss = 1)) : 0);
((temp.toString().length == 3) ? ((ss = 0)) : 0);
if (ss == 0) {
holder._x = 0;
holder.b0._visible = 1;
holder.b1._visible = 1;
holder.b2._visible = 1;
}
if (ss == 1) {
holder._x = -7;
holder.b0._visible = 0;
holder.b1._visible = 1;
holder.b2._visible = 1;
}
if (ss == 2) {
holder.b0._visible = 0;
holder.b1._visible = 0;
holder.b2._visible = 1;
}
s = ss;
while (s < 4) {
to = temp.toString().substr(s - ss, 1);
holder["b" + s].gotoAndStop(Number(to) + 1);
s++;
}
if (((temp == bonus_score) || (temp == undefined)) && (!done)) {
_parent.tempy++;
_parent.bonus = _parent.bonus + bonus_score;
done = true;
}
}
Instance of Symbol 499 MovieClip in Symbol 503 MovieClip Frame 34
onClipEvent (load) {
holder.b0._visible = 0;
holder.b1._visible = 0;
holder.b2._visible = 1;
best = _root.coin_total;
percent = int(_root.coin_amount / (best / 19));
bonus_score = percent * 50;
}
onClipEvent (enterFrame) {
if (temp < bonus_score) {
temp = temp + 50;
}
if (percent == 0) {
temp = bonus_score;
holder._x = -14;
}
((temp.toString().length == 1) ? ((ss = 2)) : 0);
((temp.toString().length == 2) ? ((ss = 1)) : 0);
((temp.toString().length == 3) ? ((ss = 0)) : 0);
if (ss == 0) {
holder._x = 0;
holder.b0._visible = 1;
holder.b1._visible = 1;
holder.b2._visible = 1;
}
if (ss == 1) {
holder._x = -7;
holder.b0._visible = 0;
holder.b1._visible = 1;
holder.b2._visible = 1;
}
if (ss == 2) {
holder.b0._visible = 0;
holder.b1._visible = 0;
holder.b2._visible = 1;
}
s = ss;
while (s < 4) {
to = temp.toString().substr(s - ss, 1);
holder["b" + s].gotoAndStop(Number(to) + 1);
s++;
}
if (((temp == bonus_score) || (temp == undefined)) && (!done)) {
_parent.tempy++;
_parent.bonus = _parent.bonus + bonus_score;
done = true;
}
}
Instance of Symbol 499 MovieClip in Symbol 503 MovieClip Frame 34
onClipEvent (load) {
holder.b0._visible = 0;
holder.b1._visible = 0;
holder.b2._visible = 1;
best = _root.villan_total;
percent = int(_root.villan_amount / (best / 19));
bonus_score = percent * 50;
}
onClipEvent (enterFrame) {
if (temp < bonus_score) {
temp = temp + 50;
}
if (percent == 0) {
temp = bonus_score;
holder._x = -14;
}
((temp.toString().length == 1) ? ((ss = 2)) : 0);
((temp.toString().length == 2) ? ((ss = 1)) : 0);
((temp.toString().length == 3) ? ((ss = 0)) : 0);
if (ss == 0) {
holder._x = 0;
holder.b0._visible = 1;
holder.b1._visible = 1;
holder.b2._visible = 1;
}
if (ss == 1) {
holder._x = -7;
holder.b0._visible = 0;
holder.b1._visible = 1;
holder.b2._visible = 1;
}
if (ss == 2) {
holder.b0._visible = 0;
holder.b1._visible = 0;
holder.b2._visible = 1;
}
s = ss;
while (s < 4) {
to = temp.toString().substr(s - ss, 1);
holder["b" + s].gotoAndStop(Number(to) + 1);
s++;
}
if (((temp == bonus_score) || (temp == undefined)) && (!done)) {
_parent.tempy++;
_parent.bonus = _parent.bonus + bonus_score;
done = true;
}
}
Instance of Symbol 499 MovieClip in Symbol 503 MovieClip Frame 34
onClipEvent (load) {
holder.b0._visible = 0;
holder.b1._visible = 0;
holder.b2._visible = 1;
best = 800;
temp_ta = _root.time - best;
temp_tb = best - temp_ta;
percent = int(Math.min(best, temp_tb) / (best / 19));
bonus_score = percent * 50;
}
onClipEvent (enterFrame) {
if (temp < bonus_score) {
temp = temp + 50;
}
if (percent == 0) {
temp = bonus_score;
holder._x = -14;
}
((temp.toString().length == 1) ? ((ss = 2)) : 0);
((temp.toString().length == 2) ? ((ss = 1)) : 0);
((temp.toString().length == 3) ? ((ss = 0)) : 0);
if (ss == 0) {
holder._x = 0;
holder.b0._visible = 1;
holder.b1._visible = 1;
holder.b2._visible = 1;
}
if (ss == 1) {
holder._x = -7;
holder.b0._visible = 0;
holder.b1._visible = 1;
holder.b2._visible = 1;
}
if (ss == 2) {
holder.b0._visible = 0;
holder.b1._visible = 0;
holder.b2._visible = 1;
}
s = ss;
while (s < 4) {
to = temp.toString().substr(s - ss, 1);
holder["b" + s].gotoAndStop(Number(to) + 1);
s++;
}
if (((temp == bonus_score) || (temp == undefined)) && (!done)) {
_parent.tempy++;
_parent.bonus = _parent.bonus + bonus_score;
done = true;
}
}
Instance of Symbol 501 MovieClip in Symbol 503 MovieClip Frame 34
onClipEvent (load) {
function add_score(amount) {
score = score + amount;
score_length = score.toString().length;
((score_length == 8) ? ((score_zeros = "")) : (((score_length == 7) ? ((score_zeros = "0")) : (((score_length == 6) ? ((score_zeros = "00")) : (((score_length == 5) ? ((score_zeros = "000")) : (((score_length == 4) ? ((score_zeros = "0000")) : (((score_length == 3) ? ((score_zeros = "00000")) : (((score_length == 2) ? ((score_zeros = "000000")) : (((score_length == 1) ? ((score_zeros = "0000000")) : ((score_zeros = "00000000")))))))))))))))));
full_score = score_zeros + score;
s = 0;
while (s < 8) {
to = full_score.substr(s, 1);
holder["b" + s].gotoAndStop(Number(to) + 1);
s++;
}
}
add_score(_root.score);
}
onClipEvent (enterFrame) {
if ((_parent.tempy == 4) && (add_b == undefined)) {
add_b = _parent.bonus / 50;
}
if (add_b > 0) {
add_score(50);
add_b--;
}
if ((add_b == 0) && (!done)) {
_root.add_score(_parent.bonus);
done = true;
}
if (done && (_parent.bit._currentframe == 1)) {
_parent.bit.play();
}
}
Symbol 508 MovieClip Frame 25
_root.real_dead_dog();
stop();
Instance of Symbol 501 MovieClip in Symbol 515 MovieClip Frame 17
onClipEvent (load) {
function add_score(amount) {
score = score + amount;
score_length = score.toString().length;
((score_length == 8) ? ((score_zeros = "")) : (((score_length == 7) ? ((score_zeros = "0")) : (((score_length == 6) ? ((score_zeros = "00")) : (((score_length == 5) ? ((score_zeros = "000")) : (((score_length == 4) ? ((score_zeros = "0000")) : (((score_length == 3) ? ((score_zeros = "00000")) : (((score_length == 2) ? ((score_zeros = "000000")) : (((score_length == 1) ? ((score_zeros = "0000000")) : ((score_zeros = "00000000")))))))))))))))));
full_score = score_zeros + score;
s = 0;
while (s < 8) {
to = full_score.substr(s, 1);
holder["b" + s].gotoAndStop(Number(to) + 1);
s++;
}
}
add_score(_root.score);
}
Symbol 515 MovieClip Frame 31
stop();
_root.ideal_vol = 80;
Instance of Symbol 514 MovieClip in Symbol 515 MovieClip Frame 31
onClipEvent (keyDown) {
_root.play_again();
}
Instance of Symbol 514 MovieClip in Symbol 520 MovieClip Frame 21
onClipEvent (keyDown) {
_root.play_again();
}
Symbol 520 MovieClip Frame 25
stop();
Symbol 521 MovieClip [interface] Frame 1
stop();
Symbol 521 MovieClip [interface] Frame 6
_root.myGameObject.LaunchOrbitPopup();
Symbol 563 MovieClip Frame 16
gotoAndPlay (1);
Symbol 564 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 565 MovieClip [coin] Frame 1
stop();
Symbol 565 MovieClip [coin] Frame 2
_root.add_score(50);
_root.coin_amount++;
_root.play_sound("s_coin", 0, 1);
_root.collect_display("coins");
Symbol 574 MovieClip Frame 16
gotoAndPlay (1);
Symbol 575 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 576 MovieClip [bone] Frame 1
stop();
Symbol 576 MovieClip [bone] Frame 2
_root.add_score(500);
_root.snack_amount++;
_root.play_sound("s_snack", 0, 1);
_root.collect_display("snacks");
_root.add_health(10);
Symbol 581 MovieClip Frame 1
stop();
Symbol 582 MovieClip [water] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
((item_over && (!_root.over_boat)) ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = -200)) : ((_root.screen_position[id - 1] = 0)));
if (item_over) {
if (_root.y > 300) {
_root.start_play = false;
_root.key_left = false;
_root.key_right = false;
_root.potential_x = 0;
_root.x_speed = 0;
if ((_root.hero._y == 500) && (!_root.ended)) {
_root.fall = true;
}
}
}
};
diff = 310;
water.gotoAndStop(_root.level);
Symbol 588 MovieClip [spike] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = 0)) : ((_root.screen_position[id - 1] = 0)));
hit_y = Math.abs((this._y + _parent._y) - _root.hero._y);
if (((((hit_y < 22) && (item_over)) && (!_root.ended)) && (!_root.in_barrel)) && (!_root.in_cart)) {
_root.spiked = true;
}
if ((((hit_y < 22) && (item_over)) && (!_root.ended)) && (_root.in_barrel)) {
_root.in_barrel = false;
_root.speed_adj = 0;
_root.mid_ground.barrel1._visible = 1;
_root.mid_ground.barrel1._x = _root.hero._x - _root.mid_ground._x;
_root.mid_ground.barrel1._xscale = _root.hero.hero.barrel._xscale;
_root.spiked = true;
}
if ((((hit_y < 22) && (item_over)) && (!_root.ended)) && (_root.in_cart)) {
_root.in_cart = false;
_root.grip = 1;
_root.speed_adj = 0;
_root.mid_ground.cart1._visible = 1;
_root.mid_ground.cart1._x = _root.hero._x - _root.mid_ground._x;
_root.ramp_adjust = 0;
_root.level_adj = 0;
_root.start_play = false;
_root.potential_x = 0;
_root.key_left = false;
_root.key_right = false;
_root.speed_adj = 0;
_root.spiked = true;
}
yadj = 10 * Math.sin((float++) * 0.1);
this._y = this._y + yadj;
if (this._y > -49) {
y_adj = 0;
this._y = -49;
}
};
diff = 52;
me.gotoAndStop(_root.level);
Symbol 594 MovieClip [slicer] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = 0)) : ((_root.screen_position[id - 1] = 0)));
hit_y = Math.abs((this._y + _parent._y) - _root.hero._y);
if (((((hit_y < 22) && (item_over)) && (!_root.ended)) && (!_root.in_barrel)) && (!_root.in_cart)) {
_root.spiked = true;
}
if ((((hit_y < 22) && (item_over)) && (!_root.ended)) && (_root.in_barrel)) {
_root.in_barrel = false;
_root.speed_adj = 0;
_root.mid_ground.barrel1._visible = 1;
_root.mid_ground.barrel1._x = _root.hero._x - _root.mid_ground._x;
_root.mid_ground.barrel1._xscale = _root.hero.hero.barrel._xscale;
_root.spiked = true;
}
if ((((hit_y < 22) && (item_over)) && (!_root.ended)) && (_root.in_cart)) {
_root.in_cart = false;
_root.grip = 1;
_root.speed_adj = 0;
_root.mid_ground.cart1._visible = 1;
_root.mid_ground.cart1._x = _root.hero._x - _root.mid_ground._x;
_root.ramp_adjust = 0;
_root.level_adj = 0;
_root.start_play = false;
_root.potential_x = 0;
_root.key_left = false;
_root.key_right = false;
_root.speed_adj = 0;
_root.spiked = true;
}
yadj = 10 * Math.sin((float++) * 0.1);
this._y = this._y + yadj;
if (this._y > -49) {
y_adj = 0;
this._y = -49;
}
};
diff = 52;
me.gotoAndStop(_root.level);
Symbol 597 MovieClip [boat] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = 1)) : ((_root.screen_position[id - 1] = 0)));
if (item_over) {
_root.over_boat = true;
} else {
_root.over_boat = false;
}
boat_position = this._x - _root.mid_ground.water1._x;
in_boat = item_over && (_root.hero._y == 299);
if ((in_boat && (!go_left)) && (!go_right)) {
go_right = true;
}
if (go_right) {
go_left = false;
this._x = this._x + 4;
_root.x_adj = -4 * in_boat;
go_left = boat_position > 230;
if (_root.over_boat && (_root.hero._y < 299)) {
_root.x_adj = -4;
}
}
if (go_left) {
go_right = false;
this._x = this._x - 4;
_root.x_adj = 4 * in_boat;
go_right = boat_position < -230;
if (_root.over_boat && (_root.hero._y < 299)) {
_root.x_adj = 4;
}
}
if (in_boat) {
_root.start_play = true;
}
};
my_name = _name.substring(4, 5);
diff = 96;
Symbol 604 MovieClip [speeder] Frame 1
stop();
Symbol 629 MovieClip [bomb_explode] Frame 30
_parent.removeMovieClip();
Symbol 662 MovieClip Frame 25
_parent._parent.removeMovieClip();
Symbol 663 MovieClip [blue_explode] Frame 1
_root.play_sound("m_die", 0, 1);
Symbol 681 MovieClip [bat] Frame 1
function explode() {
_root.add_score(900);
this.attachMovie("red_explode", "exploder", 1);
dead = true;
}
this.onEnterFrame = function () {
if ((!dead) && (!_root.ended)) {
body.play();
bat_y = 330 + this._y;
hero_y = _root.hero._y - (50 - (30 * _root.crouch));
enemy_y = bat_y - hero_y;
bat_x = _parent._x + this._x;
hero_x = _root.hero._x;
enemy_x = bat_x - hero_x;
this._x = this._x - x_speed;
i = 0;
while (i < list_length) {
stopper = Math.abs(this._x - Number(_root.block_list[i]));
((stopper < Number(_root.block_range[i])) ? ((x_speed = (-x_speed) * 1.4)) : 0);
i++;
}
_root.explode_x[list_place] = this._x;
if (enemy_x < ((-_root.image_width) * 0.5)) {
this._x = this._x + _root.image_width;
}
if (enemy_x > (_root.image_width * 0.5)) {
this._x = this._x - _root.image_width;
}
if ((Math.abs(enemy_x) < 60) && (Math.abs(enemy_y) < 45)) {
if ((((_root.enemy_y < 20) && (enemy_y > 0)) && (_root.hero.hero.body._currentframe >= 7)) && (_root.jumping)) {
explode();
}
if (((((_root.hero.hero.body._currentframe < 7) && (_root.jumping)) || ((!_root.jumping) && (Math.abs(enemy_y) < 40))) && (!_root.in_barrel)) && (!_root.in_cart)) {
_root.fear(1);
}
}
if (((Math.abs(enemy_x) < 40) && (Math.abs(enemy_y) < 40)) && (_root.in_cart)) {
explode();
}
} else {
body.stop();
}
if (dead) {
body.stop();
body._alpha = body._alpha - 8;
}
};
body.gotoAndPlay(int(Math.random() * 8) + 1);
x_speed = 3;
Symbol 692 MovieClip Frame 1
stop();
Symbol 693 MovieClip [small_hole] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = -200)) : ((_root.screen_position[id - 1] = 0)));
if (item_over) {
if (_root.y > 300) {
_root.fall = true;
_root.start_play = false;
_root.key_left = false;
_root.key_right = false;
_root.potential_x = 0;
_root.x_speed = 0;
if ((_root.hero._y == 500) && (!_root.ended)) {
_root.dead_dog();
}
}
}
};
diff = 80;
hole.gotoAndStop(_root.level);
Symbol 694 MovieClip Frame 30
_parent._parent.removeMovieClip();
Symbol 695 MovieClip [red_explode] Frame 1
_root.play_sound("m_die", 0, 1);
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 17
_parent.removeMovieClip();
Symbol 699 MovieClip [breakable_crate] Frame 1
function broke() {
done = true;
crate.play();
_root.screen_name[id - 1] = "x";
_root.screen_position[id - 1] = "x";
_root.block_list[id - 1] = "x";
_root.block_range[id - 1] = "x";
_root.block_name[id - 1] = "x";
_root.play_sound("breaky", 0, 1);
}
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
((item_over && (!done)) ? ((_root.screen_position[id - 1] = 1)) : ((_root.screen_position[id - 1] = 0)));
if (((((_root.hero._y > 240) && (_root.jumping)) && (_root.hero.hero.body._currentframe >= 7)) && (!done)) && (item_over)) {
broke();
}
if ((((my_position > -80) && (my_position < 80)) && (_root.in_cart)) && (!done)) {
broke();
}
};
diff = 60;
Symbol 710 MovieClip Frame 1
stop();
Symbol 710 MovieClip Frame 17
_parent.removeMovieClip();
Symbol 711 MovieClip [breakable_chest] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)) : ((_root.screen_position[id - 1] = 0)));
if (((((_root.hero._y > 250) && (_root.jumping)) && (_root.hero.hero.body._currentframe >= 7)) && (!done)) && (item_over)) {
done = true;
chest.play();
_root.screen_name.splice(id - 1, 1);
_root.screen_position.splice(id - 1, 1);
_root.block_list.splice(id - 1, 1);
_root.block_range.splice(id - 1, 1);
_root.block_name.splice(id - 1, 1);
}
if (((((my_position > -80) && (my_position < 80)) && (_root.in_cart)) && (_root.x_speed < 0)) && (my_position > 0)) {
_root.x_speed = -Math.floor(_root.x_speed * 1.2);
}
if (((((my_position > -80) && (my_position < 80)) && (_root.in_cart)) && (_root.x_speed > 0)) && (my_position < 0)) {
_root.x_speed = -Math.ceil(_root.x_speed * 1.2);
}
};
diff = 60;
Symbol 731 MovieClip [cauldron] Frame 1
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)) : ((_root.screen_position[id - 1] = 0)));
if (((_root.hero._y > 260) && (item_over)) || (((cauldron._currentframe >= 26) && (cauldron._currentframe <= 41)) && (item_over))) {
_root.fear(0.5);
}
};
diff = 52;
Symbol 734 MovieClip [fog] Frame 1
this.onEnterFrame = function () {
bat_x = _parent._x + this._x;
hero_x = _root.hero._x;
enemy_x = bat_x - hero_x;
this._x = this._x - 1;
if (enemy_x < ((-_root.image_width) * 0.5)) {
this._x = this._x + _root.image_width;
}
if (enemy_x > (_root.image_width * 0.5)) {
this._x = this._x - _root.image_width;
}
};
Symbol 744 MovieClip [s_block2] Frame 1
function reset() {
_root.key_left = false;
_root.right_key = false;
action = false;
}
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = my_size)) : ((_root.screen_position[id - 1] = 0)));
((item_over && (temp_y < my_size)) ? ((action = true)) : 0);
temp_y = 300 - _root.hero._y;
if (((action && (_root.x_speed < 0)) && (!bound_off)) && (_root.hero.hero.body._xscale == 100)) {
_root.x_speed = -Math.floor(_root.x_speed * 1.2);
reset();
}
if (((action && (_root.x_speed > 0)) && (!bound_off)) && (_root.hero.hero.body._xscale == -100)) {
_root.x_speed = -Math.ceil(_root.x_speed * 1.2);
reset();
}
};
my_size = 54;
diff = 60;
block.gotoAndStop(_root.level);
Symbol 752 MovieClip [s_block1] Frame 1
function reset() {
_root.key_left = false;
_root.right_key = false;
action = false;
}
this.onEnterFrame = function () {
my_position = (_root.mid_ground._x + this._x) - _root.hero._x;
item_over = (my_position < diff) && (my_position > (-diff));
(item_over ? ((_root.screen_position[id - 1] = 1)(_root.level_adj = my_size)) : ((_root.screen_position[id - 1] = 0)));
((item_over && (temp_y < my_size)) ? ((action = true)) : 0);
temp_y = 300 - _root.hero._y;
if (((action && (_root.x_speed < 0)) && (!bound_off)) && (_root.hero.hero.body._xscale == 100)) {
_root.x_speed = -Math.floor(_root.x_speed * 1.2);
reset();
}
if (((action && (_root.x_speed > 0)) && (!bound_off)) && (_root.hero.hero.body._xscale == -100)) {
_root.x_speed = -Math.ceil(_root.x_speed * 1.2);
reset();
}
};
my_size = 36;
diff = 60;
block.gotoAndStop(_root.level);
Symbol 766 MovieClip Frame 1
stop();