Symbol 23 MovieClip Frame 15
gotoAndPlay (1);
Symbol 23 MovieClip Frame 16
play();
Symbol 23 MovieClip Frame 20
stop();
Symbol 23 MovieClip Frame 21
stop();
Symbol 29 MovieClip Frame 1
taken = 0;
Symbol 33 MovieClip Frame 4
gotoAndPlay (1);
Symbol 33 MovieClip Frame 5
play();
Symbol 33 MovieClip Frame 16
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 52 Button
on (release) {
game_loop = 1;
game_mode = 1;
_root.sound.gotoAndPlay("intro_bg2");
gotoAndStop (34);
}
Symbol 53 Button
on (release) {
gotoAndStop (30);
}
Symbol 58 Button
on (release) {
game_mode = 2;
init();
gotoAndPlay (106);
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
play();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
play();
Symbol 80 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 6
gotoAndStop (1);
Symbol 81 MovieClip Frame 7
stop();
Symbol 81 MovieClip Frame 12
gotoAndStop (7);
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 6
play();
Symbol 93 MovieClip Frame 15
stop();
Instance of Symbol 91 MovieClip "wheel2" in Symbol 103 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 91 MovieClip "wheel1" in Symbol 103 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 104 Button
on (release) {
_parent.game_mode = 3;
_parent.init();
_root.cart._x = _root.goat._x;
_root.goat._x = -40;
_root.cart.gotoAndStop("goat");
_root.cart.dead = 0;
_root.cart.cart.wall.gotoAndStop(15);
_root.cart.rocks = 1;
_root.cart.goat.gotoAndStop(1);
_root.cart.goat.head.gotoAndStop(1);
_parent.flip("cart", _root.goat.dir * -1);
_root.goat._name = "goat_cart";
_root.cart._name = "goat";
_parent.cart = 3;
_parent.gotoAndPlay("play");
}
Symbol 105 Button
on (release) {
_parent.game_mode = 4;
_parent.init();
_root.balloon._x = _root.goat._x;
_root.goat._x = -40;
_root.balloon.basket.rider.gotoAndStop("goat");
_parent.flip("balloon", _root.goat.dir * -1);
_root.goat._name = "goat_balloon";
_root.balloon._name = "goat";
_parent.gotoAndPlay("play");
}
Symbol 106 Button
on (release) {
_parent.game_mode = 5;
_parent.init();
_parent.gotoAndPlay("play");
}
Symbol 107 MovieClip Frame 1
gotoAndStop (4);
if (_parent.mode == 1) {
stop();
} else {
gotoAndStop(_parent.mode);
}
Symbol 131 Button
on (release) {
gotoAndStop (25);
}
Symbol 136 Button
on (release, keyPress "<Right>") {
nextFrame();
}
Symbol 152 Button
on (release, keyPress "<Right>") {
init();
gotoAndPlay (106);
}
Symbol 154 Button
on (release, keyPress "<Right>") {
nextFrame();
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
play();
Symbol 155 MovieClip Frame 10
gotoAndStop (1);
Symbol 155 MovieClip Frame 11
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
play();
Symbol 158 MovieClip Frame 35
stop();
Symbol 181 Button
on (release) {
gotoAndStop (25);
}
Symbol 185 Button
on (release) {
init("continue");
gotoAndPlay (106);
}
Symbol 189 Button
on (release) {
if (game_mode == 1) {
_root.sound.game = "demon";
} else if (game_mode == 2) {
_root.sound.game = "goat";
}
offset = 0;
i = 1;
while ((4 >= i) && (i < length(_root.sound.game))) {
offset = offset + (ord(substring(_root.sound.game, i, 1)) - 97);
trace(substring(_root.sound.game, i, 1));
i++;
}
while (26 < offset) {
offset = offset - 26;
}
score2 = score * 58216505;
_root.sound.score = "";
index = length(score2);
while (0 < index) {
value = substring(score2, index, 1);
if (value == 0) {
if (random(2) == 0) {
character = "l";
} else {
character = "q";
}
} else if (value == 1) {
if (random(2) == 0) {
character = "k";
} else {
character = "n";
}
} else if (value == 2) {
if (random(2) == 0) {
character = "a";
} else {
character = "y";
}
} else if (value == 3) {
if (random(2) == 0) {
character = "o";
} else {
character = "t";
}
} else if (value == 4) {
if (random(2) == 0) {
character = "c";
} else {
character = "p";
}
} else if (value == 5) {
if (random(2) == 0) {
character = "w";
} else {
character = "e";
}
} else if (value == 6) {
if (random(2) == 0) {
character = "v";
} else {
character = "z";
}
} else if (value == 7) {
if (random(2) == 0) {
character = "u";
} else {
character = "g";
}
} else if (value == 8) {
if (random(2) == 0) {
character = "x";
} else {
character = "f";
}
} else if (value == 9) {
if (random(2) == 0) {
character = "b";
} else {
character = "m";
}
}
character = ord(character) + offset;
if (122 < character) {
character = character - 26;
}
character = chr(character);
_root.sound.score = character add _root.sound.score;
index--;
}
_root.sound.getURL("http://www.entropicorder.com/flash/games/update_scores.php", "_blank", "POST");
}
Symbol 194 Button
on (release) {
if (0 >= continues) {
message = "You don't have any continues left.";
} else {
continues--;
init("continue");
gotoAndPlay (106);
}
}
Symbol 199 MovieClip Frame 1
play();
Symbol 199 MovieClip Frame 2
if (_root._totalframes != _root._framesloaded) {
gotoAndPlay (1);
} else if ((((_root._url.indexOf("entropicorder.com") == -1) && (_root._url.indexOf("kenshino.com") == -1)) && (_root._url.indexOf("dynamic4.gamespy.com/~bidforpower/forum") == -1)) && 0) {
gotoAndStop (19);
} else {
gotoAndPlay (5);
}
Symbol 199 MovieClip Frame 5
function MoveBackground(MB_amt) {
var pos = (_root.bg._x - MB_amt);
var width = (_root.bg._width / 2);
var tile;
var i;
i = 1;
while (sheep >= i) {
sheeper(i)._x = sheeper(i)._x - MB_amt;
i++;
}
i = 1;
while (boss >= i) {
sheeper(i, 1)._x = sheeper(i, 1)._x - MB_amt;
i++;
}
i = 1;
while (angel >= i) {
sheeper(i, 2)._x = sheeper(i, 2)._x - MB_amt;
i++;
}
if ((cart == 1) || (cart == 2)) {
_root.cart._x = _root.cart._x - MB_amt;
}
if (balloon == 1) {
_root.balloon._x = _root.balloon._x - MB_amt;
}
if (movethis != 0) {
eval ("_root." + movethis)._x = eval ("_root." + movethis)._x - MB_amt;
}
i = 1;
while (axe >= i) {
eval ("_root.axe" + i)._x = eval ("_root.axe" + i)._x - MB_amt;
i++;
}
i = 1;
while (flame >= i) {
eval ("_root.flame" + i)._x = eval ("_root.flame" + i)._x - MB_amt;
i++;
}
i = 1;
while (light >= i) {
eval ("_root.light" + i)._x = eval ("_root.light" + i)._x - MB_amt;
i++;
}
i = 1;
while (rock >= i) {
eval ("_root.rock" + i)._x = eval ("_root.rock" + i)._x - MB_amt;
eval ("_root.shadower.shadow" + i)._x = eval ("_root.shadower.shadow" + i)._x - MB_amt;
i++;
}
i = 1;
while (bomb >= i) {
eval ("_root.bomb" + i)._x = eval ("_root.bomb" + i)._x - MB_amt;
i++;
}
if (pos < (-width)) {
_root.bg._x = pos + width;
tile = movers(++loop);
_root.wall2._x = (_root.flag._x = (_root.torch._x = (_root.bg._x + width) - 83));
if (dist_far < loop) {
if (tile eq "M") {
_root.sound.gotoAndPlay("intro_bg2");
} else if (tile ne "") {
NewEnemy(tile);
}
}
_root.bg.bg1.nextFrame();
_root.bg.bg2.nextFrame();
if (torch_far < loop) {
_root.torch.gotoAndPlay(1);
} else {
_root.torch.gotoAndStop("out");
}
if (cont_far < loop) {
_root.torch.taken = 0;
} else {
_root.torch.taken = 1;
}
dist_far = loop;
} else if (0 < pos) {
_root.bg._x = pos - width;
tile = movers(--loop);
_root.bg.bg1.prevFrame();
_root.bg.bg2.prevFrame();
_root.wall._x = (_root.flag._x = (_root.torch._x = (_root.bg._x + width) - 83));
_root.torch.gotoAndStop("out");
_root.flag.taken = 1;
} else {
_root.bg._x = pos;
}
}
function movers(M_amt) {
var tile = _root.map[M_amt];
var spec = (substring(tile, 1, 1));
if (M_amt == -2) {
movethis = "wall";
tile = "";
} else if ((_root.map.length - 1) < M_amt) {
movethis = 0;
tile = "";
} else if (spec eq "*") {
movethis = "torch";
tile = substring(_root.map[M_amt], 2, -1);
} else if (spec eq "|") {
movethis = "wall2";
tile = substring(_root.map[M_amt], 2, -1);
} else if (spec eq "#") {
movethis = "flag";
tile = substring(_root.map[M_amt], 2, -1);
} else {
movethis = 0;
}
return(tile);
}
function flip(F_obj, F_dir) {
if (((eval ("_root." + F_obj)._xscale < 0) && (F_dir < 0)) || ((0 < eval ("_root." + F_obj)._xscale) && (0 < F_dir))) {
eval ("_root." + F_obj)._xscale = eval ("_root." + F_obj)._xscale * -1;
eval ("_root." + F_obj).dir = eval ("_root." + F_obj).dir * -1;
}
}
function movebydir(MBD_obj, MBD_amt) {
eval ("_root." + MBD_obj)._x = eval ("_root." + MBD_obj)._x + (MBD_amt * eval ("_root." + MBD_obj).dir);
}
function FireDown(FD_amt) {
var frame = _root.fire._currentframe;
var total = _root.fire._totalframes;
var goat;
if (game_mode == 4) {
goat = "_root.goat.basket.rider";
} else if (cart == 3) {
goat = "_root.goat.goat";
} else {
goat = "_root.goat";
}
if (FD_amt < 0) {
if ((frame + FD_amt) < 1) {
FD_amt = 1 - frame;
}
eval (goat).flame.gotoAndPlay(2);
eval (goat).wing1._visible = 1;
eval (goat).wing2._visible = 1;
eval (goat).head.gotoAndStop(1);
} else if (((frame + FD_amt) >= total) && (frame < total)) {
eval (goat).cloud.gotoAndPlay(2);
eval (goat).wing1._visible = 0;
eval (goat).wing2._visible = 0;
eval (goat).head.gotoAndStop(2);
}
if ((frame != total) || (FD_amt < 0)) {
_root.fire.gotoAndStop(frame + FD_amt);
}
}
function objshoot(OS_obj, OS_weapon, OS_instance, OS_x, OS_y) {
var root;
var dir;
if (OS_weapon == "shadow") {
root = "_root.shadower.";
} else {
root = "_root.";
}
duplicateMovieClip (root add OS_weapon, OS_weapon add OS_instance, copy);
copy++;
if (copy >= maxcopies) {
copy = copy - maxcopies;
}
dir = eval ("_root." + OS_obj).dir;
if (dir == undefined) {
dir = 1;
}
flip(OS_weapon add OS_instance, -dir);
eval ((root add OS_weapon) add OS_instance).dir = dir;
eval ((root add OS_weapon) add OS_instance)._x = eval ("_root." add OS_obj)._x + (OS_x * dir);
eval ((root add OS_weapon) add OS_instance)._y = eval ("_root." add OS_obj)._y + OS_y;
}
function DestroyWeapon(DW_weapon, DW_instance, DW_total) {
var root;
if (((DW_weapon == "sheep") || (DW_weapon == "angel")) || (DW_weapon == "boss")) {
root = "_root.sheeper.";
} else if (DW_weapon == "shadow") {
root = "_root.shadower.";
} else {
root = "_root.";
}
eval ((root add DW_weapon) add DW_instance)._name = "todelete";
if (DW_instance != DW_total) {
eval ((root add DW_weapon) add DW_total)._name = DW_weapon add DW_instance;
}
removeMovieClip(root add "todelete");
return(--DW_total);
}
function NewEnemy(NE_enemy) {
if (NE_enemy eq "") {
return(0);
}
if ((NE_enemy eq "C") && (cart == 0)) {
cart++;
_root.cart.state = 0;
return(_root.cart);
}
if ((NE_enemy eq "B") && (boss < 2)) {
duplicateMovieClip (_root.sheeper.boss, "boss" add (++boss), copy);
copy++;
if (copy >= maxcopies) {
copy = copy - maxcopies;
}
sheeper(boss, 1).state = 0;
return(sheeper(boss, 1));
}
if ((NE_enemy eq "A") && (angel == 0)) {
duplicateMovieClip (_root.sheeper.angel, "angel" add (++angel), copy);
copy++;
if (copy >= maxcopies) {
copy = copy - maxcopies;
}
sheeper(angel, 2).state = 0;
if (game_mode != 2) {
_root.sound.gotoAndPlay("bg2");
}
return(sheeper(angel, 2));
}
if ((((NE_enemy eq "H") && (balloon == 0)) && (game_mode != 4)) && ((0 < _root.balloon.life) || (game_mode == 2))) {
_root.balloon.state = 0;
balloon++;
if (0 >= _root.balloon.life) {
_root.balloon.life = 10;
}
return(_root.balloon);
}
if (sheep < 4) {
duplicateMovieClip (_root.sheeper.sheep, "sheep" add (++sheep), copy);
copy++;
if (copy >= maxcopies) {
copy = copy - maxcopies;
}
sheeper(sheep).state = 0;
return(sheeper(sheep));
}
return(0);
}
function sheeper(Sh_instance, Sh_type) {
if (Sh_type == undefined) {
Sh_type = "sheep";
} else if (Sh_type == 1) {
Sh_type = "boss";
} else if (Sh_type == 2) {
Sh_type = "angel";
}
return(eval (("_root.sheeper." add Sh_type) add Sh_instance));
}
function init(status) {
sheep = (boss = (angel = (cart = (balloon = 0))));
flame = (axe = (light = (rock = (bomb = 0))));
air = 0;
copy = 0;
loop = -1;
movethis = 0;
if (game_mode == 2) {
_root.map = new Array("|");
} else {
_root.map = new Array("S", "S", "S", "*B", "S", "H", "S", "S", "#C", "S", "H", "B", "S", "*H", "S", "C", "B", "S", "B", "S", "*M", "B", "B", "B", "*", "A");
}
if (2 < game_mode) {
score = "";
} else if (status != "continue") {
score = 0;
continues = 2;
} else {
loop = cont_far;
if ((substring(_root.map[loop], 1, 1)) == "#") {
movethis = "flag";
_root.flag._x = (_root.bg._width / 2) - 83;
}
}
flip("goat", -1);
_root.goat.gotoAndStop(1);
_root.goat._y = 95;
_root.goat._x = 170;
_root.goat.head.gotoAndStop(1);
_root.goat.blood.gotoAndStop(1);
_root.goat.flame.gotoAndStop(1);
_root.goat.cloud.gotoAndStop(1);
_root.fire.gotoAndStop(1);
if (game_mode == 2) {
_root.balloon.life = 10;
} else {
_root.balloon.life = 15;
}
_root.sound.gotoAndPlay("bg");
dist_far = (save_far = (cont_far = (torch_far = loop)));
_root.bg.bg1.gotoAndStop(3 + cont_far);
_root.bg.bg2.gotoAndStop(4 + cont_far);
_root.bg._x = 0;
}
maxflames = 5;
maxcopies = 500;
FD_wings = 1;
FD_flame = 2;
FD_hit = 5;
soul_speed = 30;
mode = 1;
_root.goat.dir = 1;
_root.cart.dir = 1;
_root.axe.gotoAndStop(1);
_root.sheeper.angel.stop();
Symbol 199 MovieClip Frame 6
function GoatHit(dir, amt) {
_root.goat.hit_dir = dir;
if (game_mode == 4) {
_root.goat.basket.gotoAndPlay("hit");
} else if (cart != 3) {
_root.goat.gotoAndPlay("hit");
} else {
_root.goat.goat.gotoAndPlay("hit");
}
if (_root.fire._currentframe != _root.fire._totalframes) {
FireDown(amt);
} else if (game_mode == 4) {
_root.goat.gotoAndPlay("fall");
} else if (cart != 3) {
_root.goat.gotoAndPlay("die");
} else {
_root.goat._name = "cart";
_root.goat_cart._name = "goat";
_root.goat._x = _root.cart._x;
_root.goat._y = _root.cart._y - 15;
cart = 2;
_root.cart.gotoAndStop("empty");
flip("goat", _root.cart.dir * -1);
_root.goat.head.gotoAndStop(2);
_root.goat.wing1._visible = (_root.goat.wing2._visible = 0);
air = 0;
_root.goat.gotoAndPlay("die");
}
}
function handle_weapons() {
var i;
var u;
if (game_mode == 4) {
y_adj2 = 5;
} else if (cart == 3) {
y_adj = 15;
} else {
y_adj = 0;
}
if ((cart == 3) && (_root.goat.cart._currentframe == 7)) {
FireRock(_root.goat._x + (150 * _root.goat.dir));
} else if (_root.cart.cart._currentframe == 7) {
if (cart == 1) {
FireRock(_root.goat._x);
} else {
FireRock(_root.cart._x + (150 * _root.cart.dir));
}
}
var u = 1;
while (boss >= u) {
if (((((!_root.goat.dead) && ((sheeper(u, 1)._currentframe == 4) || (sheeper(u, 1)._currentframe == 5))) && (Math.abs(_root.goat._x - sheeper(u, 1)._x) < 80)) && (60 < _root.goat._y)) && (((((2 >= _root.goat._currentframe) && (cart != 3)) && (game_mode != 4)) || ((_root.goat.goat._currentframe == 1) && (cart == 3))) || ((_root.goat.basket.rider._currentframe == 7) && (game_mode == 4)))) {
GoatHit(sheeper(u, 1).dir, FD_hit);
}
u++;
}
i = 1;
while (axe >= i) {
if (eval ("_root.axe" + i).fall == 0) {
movebydir("axe" + i, 10);
} else {
eval ("_root.axe" + i)._y = eval ("_root.axe" + i)._y + eval ("_root.axe" + i).axefall;
if (eval ("_root.axe" + i).axefall < 10) {
eval ("_root.axe" + i).axefall = eval ("_root.axe" + i).axefall + 3;
}
}
i++;
}
i = 1;
while (axe >= i) {
if (eval ("_root.axe" + i).fall && (125 < eval ("_root.axe" + i)._y)) {
axe = DestroyWeapon("axe", i, axe);
} else if ((eval ("_root.axe" + i)._x < -25) || (480 < eval ("_root.axe" + i)._x)) {
axe = DestroyWeapon("axe", i, axe);
} else if ((eval ("_root.axe" + i).fall == 0) && (collide("_root.goat", "axe" + i, 22, 7 - y_adj, (-35 - y_adj) - y_adj2))) {
eval ("_root.axe" + i).fall = 1;
eval ("_root.axe" + i).axefall = -10;
GoatHit(eval ("_root.axe" + i).dir, FD_hit);
}
i++;
}
i = 1;
while (light >= i) {
movebydir("light" + i, 10);
i++;
}
i = 1;
while (light >= i) {
if (eval ("_root.light" + i)._x < -35) {
light = DestroyWeapon("light", i, light);
} else if (collide("_root.goat", "light" + i, 25, -y_adj, (-35 - y_adj) - y_adj2)) {
light = DestroyWeapon("light", i, light);
GoatHit(eval ("_root.light" + i).dir, FD_hit);
}
i++;
}
i = 1;
while (bomb >= i) {
if (eval ("_root.bomb" + i)._y < 95) {
eval ("_root.bomb" + i)._y = eval ("_root.bomb" + i)._y + 10;
} else if (eval ("_root.bomb" + i)._currentframe == 1) {
eval ("_root.bomb" + i).gotoAndPlay(2);
}
i++;
}
i = 1;
while (bomb >= i) {
if (eval ("_root.bomb" + i)._currentframe == _root.bomb._totalframes) {
bomb = DestroyWeapon("bomb", i, bomb);
} else if (eval ("_root.bomb" + i)._currentframe == 7) {
if (collide("_root.goat", "bomb" + i, 70, 45 - y_adj, (-73 - y_adj) - y_adj2)) {
if (_root.goat._x < eval ("_root.bomb" + i)._x) {
GoatHit(-5, FD_hit * 5);
} else {
GoatHit(5, FD_hit * 5);
}
}
u = 1;
while (sheep >= u) {
if (collide(sheeper(u), "bomb" + i, 80, 45, -75)) {
sheeper(u).gotoAndPlay("die");
}
u++;
}
u = 1;
while (boss >= u) {
if (collide(sheeper(u, 1), "bomb" + i, 85, 45, -115) && (2 >= sheeper(u, 1)._currentframe)) {
sheeper(u, 1).life = sheeper(u, 1).life - 5;
if (0 < sheeper(u, 1).life) {
sheeper(u, 1).gotoAndPlay("hit");
} else {
sheeper(u, 1).gotoAndPlay("die");
}
}
u++;
}
u = 1;
while (angel >= u) {
if (collide(sheeper(u, 2), "bomb" + i, 85, 80, -70)) {
sheeper(u, 2).life = sheeper(u, 2).life - 4;
sheeper(u, 2).gotoAndPlay("hit");
if (0 >= sheeper(u, 2).life) {
sheeper(i, 2).dead = 1;
}
}
u++;
}
}
i++;
}
i = 1;
while (rock >= i) {
if (eval ("_root.rock" + i).move) {
eval ("_root.rock" + i)._y = eval ("_root.rock" + i)._y + 15;
}
i++;
}
i = 1;
while (rock >= i) {
if (eval ("_root.rock" + i)._currentframe == _root.rock._totalframes) {
DestroyWeapon("rock", i, rock);
rock = DestroyWeapon("shadow", i, rock);
} else if (((eval ("_root.rock" + i)._y + 15) >= 95) && (eval ("_root.rock" + i).move)) {
BreakRock(i);
eval ("_root.rock" + i)._y = 95;
} else if (eval ("_root.rock" + i).move) {
if (collide("_root.goat", "rock" + i, 25, 10 - y_adj, (-38 - y_adj) - y_adj2)) {
BreakRock(i);
GoatHit(0, FD_hit * 3);
}
u = 1;
while (sheep >= u) {
if (collide(sheeper(u), "rock" + i, 25, 0, -30)) {
BreakRock(i);
sheeper(u).gotoAndPlay("die");
}
u++;
}
u = 1;
while (boss >= u) {
if (collide(sheeper(u, 1), "rock" + i, 30, 0, -70)) {
sheeper(u, 1).life = sheeper(u, 1).life - 4;
if (0 < sheeper(u, 1).life) {
sheeper(u, 1).gotoAndPlay("hit");
} else {
sheeper(u, 1).gotoAndPlay("die");
}
BreakRock(i);
}
u++;
}
u = 1;
while (angel >= u) {
if (collide(sheeper(u, 2), "rock" + i, 30, 35, -25)) {
sheeper(u, 2).life = sheeper(u, 2).life - 2;
sheeper(u, 2).gotoAndPlay("hit");
if (0 >= sheeper(u, 2).life) {
sheeper(i, 2).dead = 1;
}
BreakRock(i);
}
u++;
}
if ((balloon == 1) && (collide("_root.balloon", "rock" + i, 25, 10, -45))) {
_root.balloon.life = _root.balloon.life - 2;
if (0 < _root.balloon.life) {
_root.balloon.basket.gotoAndPlay("hit");
} else {
_root.balloon.gotoAndPlay("fall");
}
BreakRock(i);
}
}
i++;
}
i = 1;
while (flame >= i) {
if (eval ("_root.flame" + i)._currentframe == 1) {
movebydir("flame" + i, 10);
}
i++;
}
i = 1;
while (flame >= i) {
if (((eval ("_root.flame" + i)._x < -25) || (470 < eval ("_root.flame" + i)._x)) || (eval ("_root.flame" + i)._currentframe == _root.flame._totalframes)) {
flame = DestroyWeapon("flame", i, flame);
} else if (eval ("_root.flame" + i)._currentframe == 1) {
u = 1;
while (sheep >= u) {
if (collide(sheeper(u), "flame" + i, 25, 0, -30)) {
if (0 < (--sheeper(u).life)) {
sheeper(u).gotoAndPlay("hit");
} else {
sheeper(u).gotoAndPlay("die");
}
flame = DestroyWeapon("flame", i, flame);
}
u++;
}
u = 1;
while (boss >= u) {
if (collide(sheeper(u, 1), "flame" + i, 30, 0, -70)) {
if (((sheeper(u, 1)._currentframe >= 4) && (23 >= sheeper(u, 1)._currentframe)) && ((sheeper(u, 1)._y - 40) < eval ("_root.flame" + i)._y)) {
if (0 < (--sheeper(u, 1).life)) {
sheeper(u, 1).gotoAndPlay("hit");
} else {
sheeper(u, 1).gotoAndPlay("die");
}
flame = DestroyWeapon("flame", i, flame);
} else {
eval ("_root.flame" + i).gotoAndPlay("poof");
}
}
u++;
}
u = 1;
while (angel >= u) {
if (collide(sheeper(u, 2), "flame" + i, 10, 25, -15)) {
sheeper(u, 2).gotoAndPlay("hit");
if (0 >= (--sheeper(u, 2).life)) {
sheeper(i, 2).dead = 1;
}
flame = DestroyWeapon("flame", i, flame);
}
u++;
}
if (cart == 1) {
if ((((_root.cart._x - 60) - 7) < eval ("_root.flame" + i)._x) && ((_root.cart._y - 22) < eval ("_root.flame" + i)._y)) {
eval ("_root.flame" + i).gotoAndPlay("poof");
} else if (_root.cart.cart.wall._currentframe < 6) {
if ((((_root.cart._x - 40) - 7) < eval ("_root.flame" + i)._x) && ((_root.cart._y - 46) < eval ("_root.flame" + i)._y)) {
_root.cart.cart.wall.nextFrame();
flame = DestroyWeapon("flame", i, flame);
}
} else if ((((_root.cart._x - 25) - 7) < eval ("_root.flame" + i)._x) && (((_root.cart._y - 30) - 15) < eval ("_root.flame" + i)._y)) {
if (0 < (--_root.cart.sheep.life)) {
_root.cart.sheep.gotoAndPlay("hit");
} else {
SheepLeaveCart();
}
flame = DestroyWeapon("flame", i, flame);
}
}
if ((balloon == 1) && (collide("_root.balloon", "flame" + i, 22, 0, -35))) {
if (0 < (--_root.balloon.life)) {
_root.balloon.basket.gotoAndPlay("hit");
} else {
_root.balloon.gotoAndPlay("fall");
}
flame = DestroyWeapon("flame", i, flame);
}
}
i++;
}
}
function collide(obj, weapon, x, y1, y2) {
return(((((!eval (obj).dead) && (eval ("_root." + weapon)._x < (eval (obj)._x + x))) && ((eval (obj)._x - x) < eval ("_root." + weapon)._x)) && (eval ("_root." + weapon)._y < (eval (obj)._y + y1))) && ((eval (obj)._y + y2) < eval ("_root." + weapon)._y));
}
Symbol 199 MovieClip Frame 7
function randEnemy() {
var enem;
if (timer < 125) {
timer++;
} else {
enem = NewEnemy(enem_arr[random(enem_arr.length)]);
if (((enem != 0) && (enem != _root.balloon)) && (String(enem).indexOf("angel") == -1)) {
if ((random(2) && (405 < _root.wall2._x)) || (50 < _root.wall._x)) {
eval (enem)._x = 405;
} else {
eval (enem)._x = 50;
}
eval (enem)._alpha = 0;
}
timer = 0;
}
}
function CleanUp() {
var i;
i = sheep;
while (0 < i) {
sheep = DestroyWeapon("sheep", i, sheep);
i--;
}
i = boss;
while (0 < i) {
boss = DestroyWeapon("boss", i, boss);
i--;
}
i = angel;
while (0 < i) {
angel = DestroyWeapon("angel", i, angel);
i--;
}
if (cart != 0) {
cart = 0;
_root.cart._x = 525;
_root.cart.gotoAndStop(1);
}
if (balloon != 0) {
balloon = 0;
_root.balloon._x = 500;
_root.balloon.gotoAndStop(1);
}
if (game_mode == 4) {
_root.goat._name = "balloon";
_root.goat_balloon._name = "goat";
_root.balloon.gotoAndStop(1);
_root.balloon._x = 500;
_root.balloon.basket.rider.gotoAndStop("sheep");
}
i = flame;
while (0 < i) {
flame = DestroyWeapon("flame", i, flame);
i--;
}
i = axe;
while (0 < i) {
axe = DestroyWeapon("axe", i, axe);
i--;
}
i = light;
while (0 < i) {
light = DestroyWeapon("light", i, light);
i--;
}
i = bomb;
while (0 < i) {
bomb = DestroyWeapon("bomb", i, bomb);
i--;
}
i = rock;
while (0 < i) {
DestroyWeapon("rock", i, rock);
rock = DestroyWeapon("shadow", i, rock);
i--;
}
if (movethis != 0) {
if (movethis == "wall") {
eval ("_root." add movethis)._x = -50;
} else {
eval ("_root." add movethis)._x = 500;
}
}
}
timer = 100;
enem_arr = new Array("S", "S", "S", "S", "S", "S", "S", "H", "H", "B", "A");
Symbol 199 MovieClip Frame 8
gotoAndPlay (12);
Symbol 199 MovieClip Frame 12
function sheep_AI() {
var state;
var move;
var i = 1;
while (sheep >= i) {
state = sheeper(i).state;
if (state == 0) {
sheeper(i).life = 5;
sheeper(i).dir = 1;
if (game_mode != 2) {
sheeper(i)._x = 490;
sheeper(i).state = 1;
sheeper(i).state_var = 14;
} else {
sheeper(i).state = 3;
sheeper(i).state_var = 0;
}
}
if (!sheeper(i).dead) {
if (sheeper(i)._x < _root.goat._x) {
flip("sheeper.sheep" + i, -1);
} else {
flip("sheeper.sheep" + i, 1);
}
}
if (sheeper(i)._alpha >= 100) {
sheeper(i).state_var++;
}
if ((!sheeper(i).dead) && (sheeper(i)._alpha < 100)) {
sheeper(i)._alpha = sheeper(i)._alpha + 10;
} else if (state == 4) {
sheeper(i)._y = sheeper(i)._y + sheeper(i).state_var;
if ((sheeper(i).state_var == 0) && (2 >= sheeper(i)._currentframe)) {
objshoot("sheeper.sheep" + i, "axe", ++axe, 15, -15);
eval ("_root.axe" + axe).gotoAndPlay(8);
eval ("_root.axe" + axe).fall = 0;
_root.sound.gotoAndPlay("axe_throw");
} else if ((sheeper(i).state_var >= 9) || (sheeper(i)._y >= 95)) {
sheeper(i)._y = 95;
sheeper(i).state = 5;
sheeper(i).state_var = 0;
}
} else if ((((game_mode == 2) && (sheeper(i).dead)) && (0 < sheeper(i)._alpha)) && (sheeper(i).blood._currentframe == 35)) {
sheeper(i)._alpha = sheeper(i)._alpha - 10;
} else if (2 < sheeper(i)._currentframe) {
move = sheeper(i)._x - (2 * sheeper(i).dir);
if (sheeper(i).dead && (sheeper(i)._currentframe == 15)) {
if (((sheeper(i)._x < -35) || (490 < sheeper(i)._x)) || (0 >= sheeper(i)._alpha)) {
sheep = DestroyWeapon("sheep", i, sheep);
} else if ((sheeper(i).blood._currentframe == 1) && (sheeper(i)._y == 95)) {
sheeper(i).blood.gotoAndPlay(2);
sheeper(i).soul.gotoAndPlay(2);
} else if (((((sheeper(i)._x - 20) < _root.goat._x) && (_root.goat._x < (sheeper(i)._x + 20))) && (30 < _root.goat._y)) && (sheeper(i).soul._currentframe < soul_speed)) {
sheeper(i).soul.gotoAndPlay(soul_speed);
FireDown(FD_flame * -7);
}
} else if ((_root.wall._x < move) && (move < _root.wall2._x)) {
sheeper(i)._x = sheeper(i)._x - (2 * sheeper(i).dir);
}
} else if (_root.goat.dead) {
sheeper(i).gotoAndStop(1);
} else if (2 >= state) {
move = sheeper(i)._x - (3 * sheeper(i).dir);
if (state == 2) {
if ((_root.wall._x < move) && (move < _root.wall2._x)) {
sheeper(i)._x = sheeper(i)._x - (3 * sheeper(i).dir);
}
} else {
sheeper(i)._x = sheeper(i)._x + (3 * sheeper(i).dir);
}
sheeper(i).gotoAndStop(2);
if ((sheeper(i).state_var >= 14) && (((430 >= sheeper(i)._x) && (sheeper(i)._x >= 25)) || (state == 2))) {
sheeper(i).state = 3;
sheeper(i).state_var = 0;
}
} else if ((state == 3) || (state == 5)) {
if (sheeper(i).state_var == 2) {
objshoot("sheeper.sheep" + i, "axe", ++axe, 15, -15);
eval ("_root.axe" + axe).gotoAndPlay(8);
eval ("_root.axe" + axe).fall = 0;
_root.sound.gotoAndPlay("axe_throw");
} else if (sheeper(i).state_var >= 4) {
if (state == 5) {
if (((Math.abs(sheeper(i)._x - _root.goat._x) < 150) && (sheeper(i)._x < 430)) && (25 < sheeper(i)._x)) {
sheeper(i).state = 2;
} else {
sheeper(i).state = 1;
}
sheeper(i).state_var = 0;
} else {
sheeper(i).state = 4;
sheeper(i).state_var = -10;
}
} else {
sheeper(i).gotoAndStop(1);
}
}
i++;
}
}
Symbol 199 MovieClip Frame 13
function boss_AI() {
var i = 1;
while (boss >= i) {
var state = sheeper(i, 1).state;
if (state == 0) {
sheeper(i, 1).life = 10;
if (game_mode != 2) {
sheeper(i, 1)._x = 520;
}
sheeper(i, 1).dir = 1;
sheeper(i, 1).state = 1;
}
if (((sheeper(i, 1)._alpha < 100) && (!sheeper(i, 1).dead)) || ((sheeper(i, 1)._currentframe == 2) && (_root.goat.dead))) {
sheeper(i, 1).gotoAndStop(1);
} else if ((sheeper(i, 1)._currentframe == 1) && (!_root.goat.dead)) {
sheeper(i, 1).gotoAndStop(2);
}
if (!sheeper(i, 1).dead) {
if (sheeper(i, 1)._x < _root.goat._x) {
flip("sheeper.boss" + i, -1);
} else {
flip("sheeper.boss" + i, 1);
}
} else if ((((((sheeper(i, 1)._x - 20) < _root.goat._x) && (_root.goat._x < (sheeper(i, 1)._x + 20))) && (30 < _root.goat._y)) && (sheeper(i, 1).soul._currentframe < soul_speed)) && (sheeper(i, 1).soul._currentframe != 1)) {
sheeper(i, 1).soul.gotoAndPlay(soul_speed);
FireDown(FD_flame * -14);
}
if ((sheeper(i, 1)._currentframe >= 17) && (21 >= sheeper(i, 1)._currentframe)) {
movebydir("sheeper.boss" + i, -2);
} else if (((sheeper(i, 1)._currentframe >= 3) && (5 >= sheeper(i, 1)._currentframe)) && (50 < Math.abs(sheeper(i, 1)._x - _root.goat._x))) {
movebydir("sheeper.boss" + i, 6);
}
if ((((game_mode == 2) && (sheeper(i, 1).dead)) && (0 < sheeper(i, 1)._alpha)) && (sheeper(i, 1)._currentframe >= 60)) {
sheeper(i, 1)._alpha = sheeper(i, 1)._alpha - 10;
} else if ((!sheeper(i, 1).dead) && (sheeper(i, 1)._alpha < 100)) {
sheeper(i, 1)._alpha = sheeper(i, 1)._alpha + 10;
} else if (_root.goat.dead || (2 < sheeper(i, 1)._currentframe)) {
} else if (state == 1) {
movebydir("sheeper.boss" + i, 3);
if ((Math.abs(sheeper(i, 1)._x - _root.goat._x) < 90) && (_root.goat._y >= 60)) {
sheeper(i, 1).state = 3;
sheeper(i, 1).gotoAndPlay("attack");
_root.sound.gotoAndPlay("bigaxe");
} else if (Math.abs(sheeper(i, 1)._x - _root.goat._x) < 60) {
sheeper(i, 1).state = 2;
}
} else if (state == 2) {
movebydir("sheeper.boss" + i, -3);
if ((Math.abs(sheeper(i, 1)._x - _root.goat._x) < 70) && (_root.goat._y >= 60)) {
sheeper(i, 1).state = 3;
sheeper(i, 1).gotoAndPlay("attack");
_root.sound.gotoAndPlay("bigaxe");
} else if (110 < Math.abs(sheeper(i, 1)._x - _root.goat._x)) {
sheeper(i, 1).state = 1;
}
} else if (state == 3) {
if (Math.abs(sheeper(i, 1)._x - _root.goat._x) < 90) {
sheeper(i, 1).state = 1;
} else {
sheeper(i, 1).state = 2;
}
}
if (sheeper(i, 1).dead && (((sheeper(i, 1)._x < -35) || (520 < sheeper(i, 1)._x)) || (0 >= sheeper(i, 1)._alpha))) {
boss = DestroyWeapon("boss", i, boss);
}
i++;
}
}
Symbol 199 MovieClip Frame 14
function cart_AI() {
if (cart == 1) {
if (_root.cart.state == 0) {
_root.cart.cart.gotoAndStop(1);
_root.cart.cart.wall.gotoAndStop(1);
_root.cart._x = 525;
_root.cart.sheep.life = 5;
_root.cart.rocks = 10;
flip("cart", 1);
_root.cart.state = 1;
}
if ((_root.cart.cart._currentframe == 28) && (0 >= _root.cart.rocks)) {
SheepLeaveCart();
return(undefined);
}
if (_root.cart.state == 1) {
_root.cart.cart.wheel1.stop();
_root.cart.cart.wheel2.stop();
} else {
_root.cart.cart.wheel1.play();
_root.cart.cart.wheel2.play();
}
var dif = (_root.cart._x - _root.goat._x);
if (_root.cart.state == 1) {
if (dif < 150) {
_root.cart.state = 2;
} else if (225 < dif) {
_root.cart.state = 3;
}
} else if (_root.cart.state == 2) {
movebydir("cart", -6);
if (175 < dif) {
_root.cart.state = 1;
}
} else if (_root.cart.state == 3) {
movebydir("cart", 4);
if (dif < 175) {
_root.cart.state = 1;
}
}
if (((410 >= _root.cart._x) && (_root.cart.cart._currentframe == 1)) && (_root.cart._currentframe == 1)) {
if (_root.cart.wait >= 10) {
_root.cart.cart.gotoAndPlay(2);
} else {
_root.cart.wait++;
}
}
} else if (cart == 2) {
if (((_root.cart._x < -70) || (525 < _root.cart._x)) || (_root.cart._currentframe == 15)) {
cart = 0;
_root.cart._x = 525;
_root.cart.gotoAndStop(1);
} else if (((_root.cart.cart._currentframe == 28) && (0 >= _root.cart.rocks)) && (_root.cart._currentframe == 2)) {
_root.cart.gotoAndPlay("disappear");
}
}
}
function BreakRock(i) {
eval ("_root.shadower.shadow" + i).gotoAndStop("wait");
eval ("_root.rock" + i).move = 0;
eval ("_root.rock" + i).gotoAndPlay("break");
}
function FireRock(target) {
if ((cart == 3) && (game_mode != 3)) {
_root.goat.rocks--;
} else if (((cart == 2) && (game_mode != 3)) || (cart == 1)) {
_root.cart.rocks--;
}
objshoot("", "shadow", ++rock, target, 95);
eval ("_root.shadower.shadow" + rock).gotoAndPlay(2);
objshoot("", "rock", rock, target, -15);
}
function GoatLeaveCart(die) {
_root.goat._name = "cart";
_root.goat_cart._name = "goat";
_root.goat._x = _root.cart._x;
_root.goat._y = _root.cart._y - 15;
flip("goat", _root.cart.dir * -1);
_root.goat.head.gotoAndStop(_root.cart.goat.head._currentframe);
_root.goat.wing1._visible = (_root.goat.wing2._visible = _root.cart.goat.wing1._visible);
if (_root.cart.goat.flame._currentframe != 1) {
_root.goat.flame.gotoAndPlay(_root.cart.goat.flame._currentframe);
}
if (_root.cart.goat.cloud._currentframe != 1) {
_root.goat.cloud.gotoAndPlay(_root.cart.goat.cloud._currentframe);
}
if (0 < _root.cart.rocks) {
_root.cart.gotoAndStop("empty");
} else {
_root.cart.gotoAndPlay("disappear");
}
cart = 2;
}
function SheepLeaveCart() {
duplicateMovieClip (_root.sheeper.sheep, "sheep" add (++sheep), copy);
copy++;
if (copy >= maxcopies) {
copy = copy - maxcopies;
}
sheeper(sheep).life = _root.cart.sheep.life;
if (sheeper(sheep).life == 0) {
sheeper(sheep).gotoAndPlay("die");
} else if (2 >= _root.cart.sheep._currentframe) {
sheeper(sheep).gotoAndStop(1);
} else {
sheeper(sheep).gotoAndPlay(_root.cart.sheep._currentframe);
}
sheeper(sheep)._x = _root.cart._x - 3;
sheeper(sheep)._y = _root.cart._y - 15;
sheeper(sheep).dir = -1;
sheeper(sheep)._xscale = sheeper(sheep)._xscale * -1;
sheeper(sheep).state = 4;
sheeper(sheep).state_var = 1;
if (0 < _root.cart.rocks) {
_root.cart.gotoAndStop("empty");
} else {
_root.cart.gotoAndPlay("disappear");
}
cart = 2;
}
Symbol 199 MovieClip Frame 15
function balloon_AI() {
if (balloon == 1) {
if (_root.balloon.state == 0) {
_root.balloon._y = 70;
_root.balloon._x = 490;
_root.balloon.state = 1;
flip("balloon", 1);
}
if (_root.balloon._x < -40) {
balloon = 0;
} else if ((_root.balloon._y < 95) && (!_root.goat.dead)) {
movebydir("balloon", 4);
}
if (_root.goat.dead) {
} else if (_root.balloon.dead) {
if (_root.balloon._y < 95) {
_root.balloon._y = _root.balloon._y + 3;
if (95 < _root.balloon._y) {
_root.balloon._y = 95;
}
} else if (_root.balloon._currentframe < 8) {
_root.balloon.gotoAndPlay("crash");
} else if ((((((_root.balloon._x - 20) < _root.goat._x) && (_root.goat._x < (_root.balloon._x + 20))) && (30 < _root.goat._y)) && (_root.balloon.soul._currentframe < soul_speed)) && (16 < _root.balloon._currentframe)) {
_root.balloon.soul.gotoAndPlay(soul_speed);
FireDown(FD_flame * -20);
} else if (_root.balloon._currentframe == _root.balloon._totalframes) {
balloon = 0;
_root.balloon._x = 500;
_root.balloon.gotoAndStop(1);
}
} else if (_root.balloon.state == 1) {
if ((_root.balloon._x - _root.goat._x) < 150) {
_root.balloon.state = 2;
}
} else if ((_root.balloon.state == 2) || (_root.balloon.state == 3)) {
if (15 < _root.balloon._y) {
_root.balloon._y = _root.balloon._y - 3;
}
if ((_root.balloon.state == 2) && ((_root.balloon._x - _root.goat._x) < 50)) {
objshoot("balloon", "bomb", ++bomb, 0, 0);
_root.balloon.state = 3;
}
}
}
}
_root.balloon.dir = 1;
Symbol 199 MovieClip Frame 16
function NewYSpot(index, amt) {
var slot = pat[sheeper(index, 2).pattern][sheeper(index, 2).slot];
sheeper(index, 2).new_spot = slots[slot - 1];
sheeper(index, 2).fly_amt = (sheeper(index, 2).new_spot - sheeper(index, 2)._y) / amt;
sheeper(index, 2).state = 1;
}
function NewXSpot(index, amt) {
sheeper(index, 2).new_spot = _root.goat._x + 200;
sheeper(index, 2).fly_amt = (sheeper(index, 2).new_spot - sheeper(index, 2)._x) / amt;
sheeper(index, 2).state = 3;
sheeper(index, 2).slot = 0;
}
function angel_AI() {
var wait_length = 10;
var wait_shoot = 10;
var i = 1;
while (angel >= i) {
if (sheeper(i, 2).dead) {
if (game_mode == 2) {
if (0 >= sheeper(i, 2)._alpha) {
angel = DestroyWeapon("angel", i, angel);
} else if (sheeper(i, 2).head._currentframe == 21) {
sheeper(i, 2)._alpha = sheeper(i, 2)._alpha - 10;
} else if ((((sheeper(i, 2).head._currentframe == 20) && (_root.goat._y == 95)) && ((sheeper(i, 2)._x - 60) < _root.goat._x)) && (_root.goat._x < (sheeper(i, 2)._x - 20))) {
_root.goat.flame.gotoAndPlay(2);
FireDown(FD_flame * -20);
sheeper(i, 2).head.gotoAndStop("halo_gone");
}
} else if ((((((!_root.goat.dead) && (sheeper(i, 2)._currentframe >= 13)) && (axe == 0)) && (light == 0)) && (rock == 0)) && (bomb == 0)) {
if (game_mode == 4) {
gotoAndPlay (116);
} else {
gotoAndPlay (110);
}
}
if ((sheeper(i, 2)._y == 70) && (sheeper(i, 2)._currentframe < 13)) {
sheeper(i, 2).gotoAndPlay("die");
if (game_mode != 2) {
_root.sound.gotoAndPlay("intro_bg2");
}
} else if ((sheeper(i, 2)._y + 5) >= 70) {
sheeper(i, 2)._y = 70;
} else {
sheeper(i, 2)._y = sheeper(i, 2)._y + 5;
}
} else if (sheeper(i, 2).state == 0) {
if (game_mode == 2) {
sheeper(i, 2).life = 10;
} else {
sheeper(i, 2).life = 20;
}
sheeper(i, 2).dead = 0;
sheeper(i, 2).dir = -1;
NewXSpot(i, wait_length);
} else if (_root.goat.dead) {
} else if (sheeper(i, 2).state == 1) {
if (Math.abs(sheeper(i, 2).fly_amt) >= Math.abs(sheeper(i, 2).new_spot - sheeper(i, 2)._y)) {
sheeper(i, 2).state = 2;
sheeper(i, 2)._y = sheeper(i, 2).new_spot;
} else {
sheeper(i, 2)._y = sheeper(i, 2)._y + sheeper(i, 2).fly_amt;
}
} else if (sheeper(i, 2).state == 2) {
objshoot("sheeper.angel" + i, "light", ++light, 30, 10);
_root.sound.gotoAndPlay("lightning");
if (sheeper(i, 2).pat_dir == 1) {
sheeper(i, 2).slot++;
} else {
sheeper(i, 2).slot--;
}
if ((sheeper(i, 2).slot < 0) || ((pat[sheeper(i, 2).pattern].length - 1) < sheeper(i, 2).slot)) {
NewXSpot(i, wait_length);
} else {
NewYSpot(i, wait_shoot);
}
} else if (sheeper(i, 2).state == 3) {
sheeper(i, 2).slot++;
if (sheeper(i, 2).slot >= wait_length) {
sheeper(i, 2).pattern = random(pat.length);
if (random(2) == 0) {
sheeper(i, 2).pat_dir = -1;
sheeper(i, 2).slot = pat[sheeper(i, 2).pattern].length - 1;
} else {
sheeper(i, 2).pat_dir = 1;
sheeper(i, 2).slot = 0;
}
NewYSpot(i, wait_shoot);
} else {
sheeper(i, 2)._x = sheeper(i, 2)._x + sheeper(i, 2).fly_amt;
}
}
i++;
}
}
pat = new Array();
pat[0] = new Array(1, 5);
pat[1] = new Array(2, 4);
pat[2] = new Array(1, 3, 5);
pat[3] = new Array(1, 2, 3, 4, 5);
pat[4] = new Array(1, 4, 2, 5, 3);
slots = new Array(25, 35, 45, 55, 65);
gotoAndStop (25);
Symbol 199 MovieClip Frame 19
stop();
Symbol 199 MovieClip Frame 25
_root.sound.gotoAndPlay("stop_all");
stop();
Symbol 199 MovieClip Frame 30
stop();
Symbol 199 MovieClip Frame 34
stop();
Symbol 199 MovieClip Frame 44
stop();
Symbol 199 MovieClip Frame 47
play();
Symbol 199 MovieClip Frame 99
stop();
Symbol 199 MovieClip Frame 100
_root.sound.gotoAndPlay("stop_all");
game_loop++;
if (mode < game_loop) {
mode = game_loop;
if (mode == 2) {
message = "Congratulations, you've unlocked Catapult Mode!";
} else if (mode == 3) {
message = "Great job! You've unlocked Balloon Mode!";
} else if (mode == 4) {
message = "Incredible!!! The last mode is yours: God mode!";
} else {
message = "You are on a roll! Try submitting some scores.";
}
} else if (mode < 4) {
message = "Good work. Keep going to unlock more modes!";
} else {
message = "Way to go. Have you submitted any scores yet?";
}
Symbol 199 MovieClip Frame 102
_root.sound.gotoAndPlay("stop_all");
if (0 < continues) {
message = "You died. Continue?";
} else {
gotoAndStop(_currentframe + 1);
}
stop();
Symbol 199 MovieClip Frame 103
message = "You died.";
Symbol 199 MovieClip Frame 106
if (Key.isDown(90)) {
if (game_mode == 4) {
if ((((bomb < maxflames) && (!holdCTRL)) && (_root.goat._currentframe == 1)) && ((angel == 0) || (sheeper(1, 2)._currentframe < 13))) {
objshoot("goat", "bomb", ++bomb, 0, -20);
}
} else if (cart == 3) {
if ((_root.goat.cart._currentframe == 1) && (_root.goat.goat._currentframe == 1)) {
_root.goat.cart.gotoAndPlay(2);
}
} else if ((((holdCTRL == 0) && (flame < maxflames)) && (_root.goat.head._currentframe == 1)) && (_root.goat._currentframe < 3)) {
objshoot("goat", "flame", ++flame, 30, -17);
FireDown(FD_flame);
_root.sound.gotoAndPlay("flame");
}
if (game_mode == 4) {
holdCTRL = 1;
} else {
holdCTRL++;
if (holdCTRL >= 5) {
holdCTRL = 0;
}
}
} else {
holdCTRL = 0;
}
if (Key.isDown(88)) {
if (game_mode == 4) {
if ((-2 < air) && (_root.goat._currentframe == 1)) {
air = air - 2;
}
} else if (cart == 3) {
if ((_root.goat.goat._currentframe == 1) && (holdALT == 0)) {
GoatLeaveCart();
air = -10;
holdALT = 1;
}
} else if ((_root.goat._currentframe < 3) && (holdALT == 0)) {
if ((air == 0) && (_root.goat._y == 95)) {
air = -10;
holdALT = 1;
} else if (((_root.goat.head._currentframe == 1) && (_root.goat.wing1._currentframe == 1)) && (65 < _root.goat._y)) {
_root.goat.wing1.gotoAndPlay(2);
_root.goat.wing2.gotoAndPlay(2);
air = -10;
FireDown(FD_wings);
_root.sound.gotoAndPlay("wings");
}
}
} else {
HoldALT = 0;
}
if ((game_mode == 4) && (1 < _root.goat._currentframe)) {
if ((_root.goat._y == 95) && (_root.goat._currentframe < 8)) {
_root.goat.gotoAndPlay("crash");
} else if (((((_root.goat._currentframe == _root.goat._totalframes) && (axe == 0)) && (light == 0)) && (rock == 0)) && (bomb == 0)) {
gotoAndPlay (116);
}
} else if ((2 < _root.goat._currentframe) && (cart != 3)) {
if (_root.goat.dead && (_root.goat._currentframe == 16)) {
if ((_root.goat.blood._currentframe == 1) && (_root.goat._y == 95)) {
_root.goat.blood.gotoAndPlay(2);
} else if (((((_root.goat.blood._currentframe == _root.goat.blood._totalframes) && (axe == 0)) && (light == 0)) && (rock == 0)) && (bomb == 0)) {
gotoAndPlay (116);
}
} else if ((_root.wall._x < _root.goat._x) && (_root.goat._currentframe < 17)) {
MoveBackground(_root.goat.hit_dir);
}
} else if (Key.isDown(Key.RIGHT)) {
flip("goat", -1);
if (cart != 3) {
if (_root.goat._x < _root.wall2._x) {
MoveBackground(5);
}
if (_root.goat._y == 95) {
_root.goat.gotoAndStop(2);
} else {
_root.goat.gotoAndStop(1);
}
} else {
MoveBackground(6);
_root.goat.cart.wheel1.play();
_root.goat.cart.wheel2.play();
}
} else if (Key.isDown(Key.LEFT)) {
flip("goat", 1);
if (cart != 3) {
if (_root.wall._x < _root.goat._x) {
MoveBackground(-5);
}
if (_root.goat._y == 95) {
_root.goat.gotoAndStop(2);
} else {
_root.goat.gotoAndStop(1);
}
} else {
if ((_root.wall._x + 35) < _root.goat._x) {
MoveBackground(-6);
}
_root.goat.cart.wheel1.play();
_root.goat.cart.wheel2.play();
}
} else if (cart == 3) {
_root.goat.cart.wheel1.stop();
_root.goat.cart.wheel2.stop();
} else {
_root.goat.gotoAndStop(1);
}
if (game_mode != 4) {
_root.goat._y = _root.goat._y + air;
}
if (game_mode == 4) {
if (1 < _root.goat._currentframe) {
_root.goat._y = _root.goat._y + air;
if (_root.goat._y >= 95) {
_root.goat._y = 95;
air = 0;
}
} else if ((_root.goat._y + air) < 10) {
_root.goat._y = 10;
} else if (70 < (_root.goat._y + air)) {
_root.goat._y = 70;
} else {
_root.goat._y = _root.goat._y + air;
}
if ((air < 2) && (_root.goat._y != 95)) {
air = air + 1;
}
} else if (((cart == 3) && (_root.goat.cart._currentframe == 28)) && (0 >= _root.goat.rocks)) {
GoatLeaveCart();
air = 1;
} else if (((((((cart == 2) && (_root.goat._currentframe == 1)) && (0 < air)) && (_root.goat._y >= (_root.cart._y - 15))) && ((_root.cart._x - 10) < _root.goat._x)) && (_root.goat._x < (_root.cart._x + 10))) && (_root.cart._currentframe == 2)) {
_root.cart._x = _root.goat._x;
_root.goat._x = -40;
_root.cart.gotoAndStop("goat");
_root.cart.dead = 0;
_root.cart.goat.head.gotoAndStop(_root.goat.head._currentframe);
_root.cart.goat.wing1._visible = _root.goat.wing1._visible;
_root.cart.goat.wing2._visible = _root.goat.wing1._visible;
if (_root.goat.flame._currentframe != 1) {
_root.cart.goat.flame.gotoAndPlay(_root.goat.flame._currentframe);
}
if (_root.goat.cloud._currentframe != 1) {
_root.cart.goat.cloud.gotoAndPlay(_root.goat.cloud._currentframe);
}
flip("cart", _root.goat.dir * -1);
_root.goat._name = "goat_cart";
_root.cart._name = "goat";
cart = 3;
} else if (_root.goat._y < 95) {
air = air + 2;
} else if (_root.goat._y >= 95) {
_root.goat._y = 95;
air = 0;
}
if ((game_mode == 2) && (!_root.goat.dead)) {
randEnemy();
}
sheep_AI();
boss_AI();
angel_AI();
cart_AI();
balloon_AI();
handle_weapons();
if ((((!_root.goat.dead) && (movethis == "torch")) && (_root.torch._x < _root.goat._x)) && (_root.torch._currentframe < 5)) {
FireDown(_root.fire._totalframes * -1);
if (((cart == 3) && (_root.goat.head._currentframe != 2)) || ((cart != 3) && (_root.cart.goat.head._currentframe != 2))) {
_root.sound.gotoAndPlay("fireout");
}
torch_far = loop;
_root.torch.gotoAndPlay("goingout");
} else if ((((!_root.goat.dead) && (movethis == "flag")) && (_root.flag._x < _root.goat._x)) && (!_root.flag.taken)) {
cont_far = loop;
}
Symbol 199 MovieClip Frame 107
gotoAndPlay(_currentframe - 1);
Symbol 199 MovieClip Frame 110
play();
Symbol 199 MovieClip Frame 111
_root.goat._y = _root.goat._y + air;
if (_root.goat._y < 95) {
air = air + 2;
} else if (95 < _root.goat._y) {
_root.goat._y = 95;
air = 0;
} else if (sheeper(1, 2).head._currentframe == 20) {
if (_root.goat.dead) {
gotoAndPlay (116);
} else if (cart == 3) {
GoatLeaveCart();
air = -10;
} else if (((sheeper(1, 2)._x - 60) < _root.goat._x) && (_root.goat._x < (sheeper(1, 2)._x - 20))) {
_root.goat.gotoAndStop("halo");
_root.goat.flame.gotoAndPlay(2);
sheeper(1, 2).head.gotoAndStop("halo_gone");
} else if ((sheeper(1, 2)._x - 60) >= _root.goat._x) {
flip("goat", -1);
MoveBackground(5);
_root.goat.gotoAndStop(2);
} else if (_root.goat._x >= (sheeper(1, 2)._x - 20)) {
flip("goat", 1);
MoveBackground(-5);
_root.goat.gotoAndStop(2);
}
} else if ((flame == 0) && (sheeper(1, 2).head._currentframe == 21)) {
gotoAndPlay (116);
}
handle_weapons();
Symbol 199 MovieClip Frame 112
gotoAndPlay(_currentframe - 1);
Symbol 199 MovieClip Frame 116
i = 0;
gotoAndPlay(_currentframe + 1);
Symbol 199 MovieClip Frame 117
play();
sheep_AI();
Symbol 199 MovieClip Frame 118
if ((++i) < 30) {
gotoAndPlay(_currentframe - 1);
}
Symbol 199 MovieClip Frame 142
CleanUp();
if (2 < game_mode) {
gotoAndStop (25);
} else if (_root.goat.dead) {
gotoAndStop (102);
} else if (game_loop == 1) {
gotoAndStop (44);
} else {
gotoAndPlay (47);
}
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 3
stop();
Symbol 210 MovieClip Frame 5
stop();
Symbol 210 MovieClip Frame 7
stop();
Symbol 210 MovieClip Frame 9
stop();
Symbol 210 MovieClip Frame 11
stop();
Symbol 210 MovieClip Frame 13
stop();
Symbol 210 MovieClip Frame 15
stop();
Symbol 210 MovieClip Frame 17
stop();
Symbol 210 MovieClip Frame 19
stop();
Symbol 210 MovieClip Frame 21
stop();
Symbol 210 MovieClip Frame 23
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
play();
Symbol 217 MovieClip Frame 14
stop();
Symbol 218 MovieClip Frame 1
move = 0;
stop();
Symbol 218 MovieClip Frame 2
play();
move == 0;
Symbol 218 MovieClip Frame 17
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 1
stop();
dead = 0;
Symbol 226 MovieClip Frame 3
play();
Symbol 226 MovieClip Frame 9
gotoAndStop (1);
Symbol 226 MovieClip Frame 10
play();
dead = 1;
Symbol 226 MovieClip Frame 16
stop();
Symbol 226 MovieClip Frame 17
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 2
play();
Symbol 230 MovieClip Frame 8
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
play();
Symbol 236 MovieClip Frame 30
play();
Symbol 236 MovieClip Frame 38
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 3
play();
Symbol 238 MovieClip Frame 11
gotoAndPlay (22);
Symbol 238 MovieClip Frame 17
play();
Symbol 238 MovieClip Frame 22
play();
Symbol 238 MovieClip Frame 24
gotoAndStop (1);
Symbol 238 MovieClip Frame 25
dead = 1;
play();
if (2 >= _root.code.game_mode) {
_root.code.score = _root.code.score + 30;
}
Symbol 238 MovieClip Frame 31
soul.gotoAndPlay(2);
Symbol 238 MovieClip Frame 61
stop();
Symbol 239 MovieClip Frame 1
play();
Symbol 239 MovieClip Frame 8
gotoAndPlay (1);
Symbol 239 MovieClip Frame 12
gotoAndPlay (1);
Symbol 239 MovieClip Frame 13
if (2 >= _root.code.game_mode) {
_root.code.score = _root.code.score + 100;
}
Symbol 239 MovieClip Frame 18
head.gotoAndPlay("die");
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 2
play();
Symbol 242 MovieClip Frame 30
play();
Symbol 242 MovieClip Frame 38
stop();
Symbol 243 MovieClip Frame 1
stop();
dead = 0;
Symbol 243 MovieClip Frame 3
play();
Symbol 243 MovieClip Frame 8
gotoAndStop (1);
Symbol 243 MovieClip Frame 9
play();
dead = 1;
if (2 >= _root.code.game_mode) {
_root.code.score = _root.code.score + 10;
}
Symbol 243 MovieClip Frame 15
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 2
play();
if (rider._currentframe < 7) {
rider.gotoAndPlay("sheep_hit");
} else {
rider.gotoAndPlay("goat_hit");
}
Symbol 248 MovieClip Frame 6
gotoAndStop (1);
Symbol 248 MovieClip Frame 7
play();
if (rider._currentframe < 7) {
rider.gotoAndPlay("sheep_hit");
} else {
rider.gotoAndPlay("goat_hit");
}
Symbol 248 MovieClip Frame 17
stop();
Symbol 252 MovieClip Frame 1
stop();
dead = 0;
Symbol 252 MovieClip Frame 2
play();
dead = 1;
basket.gotoAndPlay("burn");
Symbol 252 MovieClip Frame 7
stop();
Symbol 252 MovieClip Frame 8
play();
if (2 >= _root.code.game_mode) {
_root.code.score = _root.code.score + 50;
}
if (_root.code.game_mode != 4) {
_root.sound.gotoAndPlay("sheepdie");
}
Symbol 252 MovieClip Frame 16
if (_root.code.game_mode != 4) {
soul.gotoAndPlay(2);
}
Symbol 252 MovieClip Frame 47
stop();
Symbol 254 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip "wheel2" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 91 MovieClip "wheel1" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 254 MovieClip Frame 28
if (0 >= _parent.rocks) {
stop();
}
Symbol 254 MovieClip Frame 32
_parent.wait = 0;
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
cart.wheel1.stop();
cart.wheel2.stop();
goat._visible = 0;
Symbol 255 MovieClip Frame 3
goat._visible = 1;
Symbol 255 MovieClip Frame 4
play();
Symbol 255 MovieClip Frame 15
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
play();
Symbol 260 MovieClip Frame 21
eval ("_root.rock" + _root.code.rock).move = 1;
stop();
Symbol 260 MovieClip Frame 22
stop();