Frame 1
_global.StartLives = 3;
_global.StartHealth = 3;
_global.user_name = "";
_global.MouseMenus = false;
_global.URL_getScore = "http://robandbig.zodal.co.nz/get_hs.php";
_global.URL_sendScore = "http://robandbig.zodal.co.nz/send_score.php";
_global.ParTime = new Array();
_global.ParTime[1] = 60;
_global.ParTime[2] = 70;
_global.ParTime[3] = 80;
_global.Bosses = new Array();
_global.Bosses[1] = new Array();
_global.Bosses[1].name = "Old Man Murray";
_global.Bosses[1].taunt = "You can't skate here! You're gonna \nscratch up the pavement!";
_global.Bosses[1].bb_response = "Don't worry Rob, \nI'll take care of this guy.";
_global.Bosses[1].lose = "You win this time, but don't let me \ncatch you around here again.";
_global.Bosses[2] = new Array();
_global.Bosses[2].name = "Muscle-Head";
_global.Bosses[2].taunt = "There's no room for wimps like \nyou on Muscle Beach!";
_global.Bosses[2].bb_response = "Let's see you pick on someone \nyour own size!";
_global.Bosses[2].lose = "Wow, you're tough! Where do \nyou work out?";
_global.Bosses[3] = new Array();
_global.Bosses[3].name = "The Bouncer";
_global.Bosses[3].taunt = "You're not on the List.";
_global.Bosses[3].bb_response = "Watch out Rob. \nI'm about to bounce this guy.";
_global.Bosses[3].lose = "I made a mistake. Your names \nare on the List after all.";
_global.SoundOn = true;
_global.SoundVol = 100;
if (snd != undefined) {
if (snd == 0) {
_global.SoundOn = false;
} else {
_global.SoundOn = true;
}
}
if (mouse_menus != undefined) {
if (mouse_menus == 1) {
_global.MouseMenus = true;
} else {
_global.MouseMenus = false;
}
}
Frame 8
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
if (loadedbytes >= totalbytes) {
gotoAndPlay ("outro");
}
frame_num = int(loadedbytes / (totalbytes / 100));
preloader_mc.gotoAndStop(frame_num);
Frame 11
gotoAndPlay ("load");
Frame 12
if (_global.SoundOn) {
SoundFX_4 = new Sound();
SoundFX_4.attachSound("next_info_beep");
SoundFX_4.start();
}
Frame 22
gotoAndPlay (23);
Frame 23
function button_press() {
if (_global.SoundOn) {
SoundFX_2 = new Sound();
SoundFX_2.attachSound("press_x");
SoundFX_2.start();
}
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
gotoAndPlay (51);
}
var myListener = new Object();
myListener.onKeyUp = function () {
switch (Key.getCode()) {
case 32 :
case 13 :
case 88 :
_root.button_press();
}
};
Key.addListener(myListener);
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
_root.button_press();
};
Mouse.addListener(mouseListener);
Frame 49
stop();
Frame 50
stop();
_global.cur_score = 0;
_global.cur_diff = 0;
_global.cur_lives = _global.StartLives;
_global.cur_rob_health = _global.StartHealth;
play_btn.onPress = function () {
_global.cur_stg = 1;
gotoAndPlay (61);
};
highscores_btn.onPress = function () {
gotoAndPlay (50);
};
skate1_btn.onPress = function () {
_global.cur_stg = 1;
gotoAndPlay (61);
};
skate2_btn.onPress = function () {
_global.cur_stg = 2;
gotoAndPlay (61);
};
skate3_btn.onPress = function () {
_global.cur_stg = 3;
gotoAndPlay (61);
};
boss1_btn.onPress = function () {
_global.cur_stg = 1;
gotoAndPlay (63);
};
boss2_btn.onPress = function () {
_global.cur_stg = 2;
gotoAndPlay (63);
};
boss3_btn.onPress = function () {
_global.cur_stg = 3;
gotoAndPlay (63);
};
score_btn.onPress = function () {
_global.cur_stg = 3;
gotoAndPlay (65);
};
CONT_btn.onPress = function () {
gotoAndPlay (51);
};
Frame 51
stop();
_global.cur_score = 0;
_global.cur_diff = 0;
_global.cur_lives = _global.StartLives;
_global.cur_rob_health = _global.StartHealth;
function SND_pressX() {
if (_global.SoundOn) {
_root.SoundFX_1.start();
}
}
function SND_menu_change() {
if (_global.SoundOn) {
_root.SoundFX_2.start();
}
}
_root.SoundFX_1 = new Sound();
_root.SoundFX_1.attachSound("press_x");
_root.SoundFX_2 = new Sound();
_root.SoundFX_2.attachSound("menu_change");
function unselect_all() {
play_btn_mc.gotoAndStop("off");
score_btn_mc.gotoAndStop("off");
sound_btn_mc.gotoAndStop("off");
credits_btn_mc.gotoAndStop("off");
}
function select_play() {
unselect_all();
cur_selection = "play";
play_btn_mc.gotoAndStop("on");
}
function select_score() {
unselect_all();
cur_selection = "score";
score_btn_mc.gotoAndStop("on");
}
function select_sound() {
unselect_all();
cur_selection = "sound";
sound_btn_mc.gotoAndStop("on");
}
function select_credits() {
unselect_all();
cur_selection = "credits";
credits_btn_mc.gotoAndStop("on");
}
function drawSound() {
if (_global.SoundOn) {
sound_txt = "SOUND: ON";
} else {
sound_txt = "SOUND: OFF";
}
}
function button_press() {
var _local1 = _global;
_root.SND_pressX();
if (cur_selection == "play") {
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
_local1.cur_stg = 1;
gotoAndPlay (61);
} else if (cur_selection == "score") {
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
gotoAndPlay (52);
} else if (cur_selection == "sound") {
_local1.SoundOn = !_local1.SoundOn;
drawSound();
} else if (cur_selection == "credits") {
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
gotoAndPlay (60);
}
}
function Left() {
}
function Right() {
}
function Up() {
_root.SND_menu_change();
if (cur_selection == "play") {
select_credits();
} else if (cur_selection == "score") {
select_play();
} else if (cur_selection == "sound") {
select_score();
} else if (cur_selection == "credits") {
select_sound();
}
}
function Down() {
_root.SND_menu_change();
if (cur_selection == "play") {
select_score();
} else if (cur_selection == "score") {
select_sound();
} else if (cur_selection == "sound") {
select_credits();
} else if (cur_selection == "credits") {
select_play();
}
}
stop();
cur_selection = "";
drawSound();
select_play();
var myListener = new Object();
myListener.onKeyUp = function () {
var _local1 = _root;
switch (Key.getCode()) {
case 37 :
_local1.Left();
return;
case 39 :
_local1.Right();
return;
case 38 :
_local1.Up();
return;
case 40 :
_local1.Down();
return;
case 32 :
case 13 :
case 88 :
_local1.button_press();
}
};
Key.addListener(myListener);
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
_root.button_press();
};
Mouse.addListener(mouseListener);
if (_global.MouseMenus) {
play_btn._visible = true;
score_btn._visible = true;
sound_btn._visible = true;
credits_btn._visible = true;
play_btn.onRollOver = function () {
select_play();
};
score_btn.onRollOver = function () {
select_score();
};
sound_btn.onRollOver = function () {
select_sound();
};
credits_btn.onRollOver = function () {
select_credits();
};
} else {
play_btn._visible = false;
score_btn._visible = false;
sound_btn._visible = false;
credits_btn._visible = false;
}
Frame 52
function SND_pressX() {
if (_global.SoundOn) {
_root.SoundFX_1.start();
}
}
function SND_menu_change() {
if (_global.SoundOn) {
_root.SoundFX_2.start();
}
}
_root.SoundFX_1 = new Sound();
_root.SoundFX_1.attachSound("press_x");
_root.SoundFX_2 = new Sound();
_root.SoundFX_2.attachSound("menu_change");
function unselect_all() {
menu_btn_mc.gotoAndStop("off");
}
function select_menu() {
unselect_all();
cur_selection = "menu";
menu_btn_mc.gotoAndStop("on");
}
function button_press() {
if (cur_selection == "menu") {
SND_pressX();
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
gotoAndPlay (51);
}
}
stop();
cur_selection = "";
select_menu();
var myListener = new Object();
myListener.onKeyUp = function () {
switch (Key.getCode()) {
case 32 :
case 13 :
case 88 :
_root.button_press();
}
};
Key.addListener(myListener);
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
_root.button_press();
};
Mouse.addListener(mouseListener);
play();
Frame 53
function ShowScores(in_vars) {
var _local1 = _root;
var _local2 = in_vars;
score_count = parseInt(_local2.c);
i = 0;
while (i < score_count) {
_local1["r_" add (i + 1)] = i + 1;
_local1["n_" add (i + 1)] = _local2["n" add i];
_local1["s_" add (i + 1)] = _local2["s" add i];
i++;
}
}
var my_lv = new LoadVars();
my_lv.onLoad = function (success) {
if (success) {
ShowScores(this);
} else {
trace("Error loading/parsing LoadVars.");
}
};
i = 1;
while (i <= 10) {
_root["r_" add (i + 1)] = "";
_root["n_" add (i + 1)] = "";
_root["s_" add (i + 1)] = "";
i++;
}
n_1 = "Loading...";
garbage = "?a=" add getTimer();
my_lv.load(_global.URL_getScore add garbage);
Frame 59
stop();
Frame 60
function SND_pressX() {
if (_global.SoundOn) {
_root.SoundFX_1.start();
}
}
function SND_menu_change() {
if (_global.SoundOn) {
_root.SoundFX_2.start();
}
}
_root.SoundFX_1 = new Sound();
_root.SoundFX_1.attachSound("press_x");
_root.SoundFX_2 = new Sound();
_root.SoundFX_2.attachSound("menu_change");
function unselect_all() {
menu_btn_mc.gotoAndStop("off");
}
function select_menu() {
unselect_all();
cur_selection = "menu";
menu_btn_mc.gotoAndStop("on");
}
function button_press() {
if (cur_selection == "menu") {
SND_pressX();
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
gotoAndPlay (51);
}
}
stop();
cur_selection = "";
select_menu();
var myListener = new Object();
myListener.onKeyUp = function () {
switch (Key.getCode()) {
case 32 :
case 13 :
case 88 :
_root.button_press();
}
};
Key.addListener(myListener);
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
_root.button_press();
};
Mouse.addListener(mouseListener);
Frame 61
function Start() {
level_intro_mc._visible = false;
gameover_mc._visible = false;
BGMusicPlaying = false;
test_results = "running test: stg " add cur_stg;
score_txt = score;
Start_time = getTimer();
frames_played = 0;
cur_time = 0;
time_txt = cur_time;
help_shown_already = false;
StartStage();
}
function StartStage() {
if (cur_stg == 1) {
LoadStage1();
} else if (cur_stg == 2) {
LoadStage2();
} else {
LoadStage3();
}
InitStageGraphics();
cur_grid = -1;
cur_tic = 3;
StartPlaying();
}
function StartPlaying() {
ClearStageGraphics();
HideSprites();
reset_combo_array();
message_txt = "";
drawHealth();
speed_up();
if (((!help_shown_already) && (cur_stg == 1)) && (cur_diff == 0)) {
help_shown_already = true;
PlayHowToPlay();
} else {
this.onEnterFrame = function () {
animate();
};
PlayLevelIntro();
}
}
function StopAnimation() {
this.onEnterFrame = undefined;
}
function animate() {
UpdateSpeed();
if (invicible) {
frames_invincible--;
if (frames_invincible < 0) {
invicible = false;
rob._visible = true;
} else {
rob._visible = !rob._visible;
}
}
if (cur_grid >= stg_size) {
EndOfStage();
} else if (rob_mode == "animation") {
anim_frames_remaining--;
if (anim_frames_remaining < 0) {
anim_finish_func();
}
} else {
UpdateStage();
drawBG();
drawStage();
doGravity();
CheckCollisions();
drawScore();
}
if (timer_on) {
frames_played++;
if (frames_played == frame_rate) {
cur_time++;
time_txt = cur_time;
frames_played = 0;
}
}
}
function updateRob() {
if (rob_mode == "falling") {
fall();
}
}
function drawHealth() {
healthbar.gotoAndStop(health_remaining + 1);
lives_mc.gotoAndStop(lives_remaining);
}
function drawRob() {
if (changing_speed) {
percent = (gnd_speed - gnd_speed_s) / (gnd_speed_f - gnd_speed_s);
rob._x = (percent * (fast_position - slow_position)) + slow_position;
} else if (current_speed == "f") {
rob._x = fast_position;
} else if (current_speed == "s") {
rob._x = slow_position;
}
}
function crash() {
_root.SND_crash();
if (is_grinding) {
stopGrindSound();
}
health_remaining--;
drawHealth();
combo_count = 0;
reset_combo_array();
anim_finish_func = crash_restart;
anim_frames_remaining = 6;
rob_mode = "animation";
rob._y = 176 - (50 * rob_lvl);
rob.gotoAndPlay("crash");
}
function crash_restart() {
if (health_remaining <= 0) {
die();
} else {
invicible = true;
frames_invincible = 18;
rob_lvl = 0;
land();
speed_down();
}
}
function die() {
lives_remaining--;
if (lives_remaining <= 0) {
PlayGameOver();
} else {
health_remaining = 3;
die_restart();
}
}
function die_restart() {
last_restart = -1;
i = 0;
while (i < restart_points.length) {
if (restart_points[i] < cur_grid) {
last_restart = restart_points[i];
} else {
break;
}
i++;
}
trace("last_restart" add last_restart);
cur_grid = last_restart;
cur_tic = 3;
health_remaining = 3;
StartPlaying();
}
function PlayHowToPlay() {
rob._visible = false;
waiting_for_input = true;
on_input_func = HowToPlayDone;
How_to_play_mc.gotoAndPlay("play");
How_to_play_mc._visible = true;
}
function HowToPlayDone() {
waiting_for_input = false;
How_to_play_mc._visible = false;
How_to_play_mc.stop();
How_to_play_mc.example.stop();
this.onEnterFrame = function () {
animate();
};
PlayLevelIntro();
}
function PlayLevelIntro() {
timer_on = false;
rob._visible = false;
rob_mode = "animation";
anim_frames_remaining = 24;
anim_finish_func = LevelIntroDone;
level_intro_mc.gotoAndPlay("play");
level_intro_mc._visible = true;
}
function LevelIntroDone() {
timer_on = true;
level_intro_mc._visible = false;
PlayRobEnter();
if (BGMusicPlaying == false) {
BGMusicPlaying = true;
_root.SND_StartBG(0, 99);
}
}
function PlayRobEnter() {
rob._visible = true;
rob_mode = "animation";
anim_frames_remaining = 4;
anim_finish_func = RobEnterDone;
rob.gotoAndPlay("enter");
}
function RobEnterDone() {
rob_mode = "riding";
rob_lvl = 0;
riding_platform = false;
land();
}
function PlayBossIntro() {
rob_mode = "animation";
message_txt = "";
rob.gotoAndPlay("dismount");
boss_into_mc.gotoAndPlay("play");
boss_into_mc._visible = true;
}
function BossIntroDone() {
StopAnimation();
StartBoss();
}
function PlayGameOver() {
rob_mode = "animation";
anim_frames_remaining = 69;
anim_finish_func = GameOverDone;
game_over_mc.gotoAndPlay("play");
game_over_mc._visible = true;
}
function GameOverDone() {
StopAnimation();
game_over_mc._visible = false;
ToSubmitScore();
}
function doGravity() {
if (rob_mode == "falling") {
if (rob_lvl == 0) {
land();
} else {
rob_lvl--;
rob._y = 181 - (50 * rob_lvl);
check_for_platform();
}
} else if (riding_platform) {
ride_lvl = check_grid_for_landing(cur_grid - 1);
if (ride_lvl == undefined) {
ride_lvl = check_grid_for_landing(cur_grid);
}
if (ride_lvl != rob_lvl) {
riding_platform = false;
rob_lvl--;
rob._y = 176 - (50 * rob_lvl);
start_falling();
}
}
}
function jump() {
_root.SND_jump();
if (is_grinding) {
stopGrindSound();
}
riding_platform = false;
_root.rob_mode = "jump";
rob.gotoAndPlay("jump");
rob_lvl++;
}
function start_falling() {
if (is_grinding) {
stopGrindSound();
}
rob_mode = "falling";
rob.gotoAndStop("falling");
}
function land() {
var _local1 = _root;
_local1.rob_mode = "riding";
_local1.rob_ride_pos = 1;
_local1.rob_pos = 1;
is_grinding = false;
if (riding_platform) {
if (_local1.Down || (_local1.Up)) {
_local1.rob_ride_pos = 3;
is_grinding = true;
pulled_move("g1");
startGrindSound();
} else if (_local1.Left) {
_local1.rob_ride_pos = 4;
is_grinding = true;
pulled_move("g2");
startGrindSound();
} else if (_local1.Right) {
_local1.rob_ride_pos = 5;
is_grinding = true;
pulled_move("g3");
startGrindSound();
} else {
do_score();
}
} else {
do_score();
}
rob.gotoAndStop("riding");
drawRob();
rob._y = 176 - (50 * rob_lvl);
}
function startGrindSound() {
}
function stopGrindSound() {
}
function check_for_platform() {
new_lvl = check_grid_for_landing(cur_grid - 1);
if (new_lvl == undefined) {
new_lvl = check_grid_for_landing(cur_grid);
}
if (new_lvl > _root.rob_lvl) {
_root.rob_lvl = new_lvl;
riding_platform = true;
land();
}
}
function reset_combo_array() {
combo_array.j1 = false;
combo_array.j2 = false;
combo_array.j3 = false;
combo_array.j4 = false;
combo_array.g1 = false;
combo_array.g2 = false;
combo_array.g3 = false;
combo_array.g4 = false;
}
function pulled_move(in_mv) {
if (!combo_array[in_mv]) {
combo_count++;
}
combo_array[in_mv] = true;
}
function do_score() {
if (combo_count > 0) {
msg_time_left = 24;
msg = "";
pts = (combo_count * 100) * combo_count;
score = score + pts;
if (combo_count > 1) {
msg = combo_count add "X combo! ";
}
if (combo_count < 6) {
if (combo_array.j1) {
msg = msg + " Melon +";
}
if (combo_array.j2) {
msg = msg + " Nose Grab +";
}
if (combo_array.j3) {
msg = msg + " Stalefish +";
}
if (combo_array.j4) {
msg = msg + " Tail Grab +";
}
if (combo_array.g1) {
msg = msg + " Board Slide +";
}
if (combo_array.g2) {
msg = msg + " Manual +";
}
if (combo_array.g3) {
msg = msg + " Nose Grind +";
}
} else {
msg = msg + " +";
}
msg = msg + (pts add " pts");
message_txt = msg;
score_txt = score;
combo_count = 0;
reset_combo_array();
}
}
function item_collected(in_type) {
var _local1 = in_type;
_root.SND_bonus();
if (_local1 == "points") {
score = score + 2000;
score_txt = score;
msg = "Bonus +2000pts";
} else if (_local1 == "extralife") {
if (lives_remaining < 4) {
msg = "Extra Life!";
lives_remaining++;
drawHealth();
} else {
score = score + 5000;
score_txt = score;
msg = "Bonus +5000pts";
}
} else if (_local1 == "health") {
health_remaining = 3;
drawHealth();
msg = "Health Restored";
}
message_txt = msg;
msg_time_left = 24;
}
function EndOfStage() {
End_time = getTimer();
total_time = (End_time - Start_time) / 1000;
this.onEnterFrame = undefined;
PlayBossIntro();
}
function NextStage() {
cur_stg = cur_stg + 1;
if (cur_stg > 3) {
cur_stg = 1;
}
Start();
}
function DrawScore() {
time_to_update--;
if (time_to_update < 0) {
time_to_update = text_update_rate;
if (msg_time_left > 0) {
msg_time_left = msg_time_left - text_update_rate;
} else {
message_txt = "";
}
}
}
function UpdateSpeed() {
if (changing_speed) {
if (target_speed == "s") {
gnd_speed = gnd_speed - gnd_speed_delta_p_frame;
if (gnd_speed <= gnd_speed_s) {
gnd_speed = gnd_speed_s;
mid_speed = mid_speed_s;
far_speed = far_speed_s;
changing_speed = false;
current_speed = "s";
} else {
mid_speed = mid_speed - mid_speed_delta_p_frame;
far_speed = far_speed - far_speed_delta_p_frame;
}
} else if (target_speed == "f") {
gnd_speed = gnd_speed + gnd_speed_delta_p_frame;
if (gnd_speed >= gnd_speed_f) {
gnd_speed = gnd_speed_f;
mid_speed = mid_speed_f;
far_speed = far_speed_f;
changing_speed = false;
current_speed = "f";
} else {
mid_speed = mid_speed + mid_speed_delta_p_frame;
far_speed = far_speed + far_speed_delta_p_frame;
}
}
tics_per_frame = gnd_speed * (1 / tic_size);
drawRob();
}
}
function InitStageGraphics() {
mid_bg._x = mid_bg_start;
var _local1 = "stg" add cur_stg;
far_bg.gotoAndStop(_local1);
mid_bg.gotoAndStop(_local1);
gnd.gotoAndStop(_local1);
stg_bg.gotoAndStop(_local1);
}
function drawBG() {
new_x = gnd._x - gnd_speed;
if (new_x < -160) {
new_x = -gnd_speed;
}
gnd._x = new_x;
new_x = mid_bg._x - mid_speed;
if (new_x <= -100) {
new_x = mid_bg_start;
}
mid_bg._x = new_x;
new_x = far_bg._x - far_speed;
if (new_x < -34) {
new_x = -far_speed;
}
far_bg._x = new_x;
}
function UpdateStage() {
cur_tic = cur_tic + tics_per_frame;
if (cur_tic >= tics_per_grid) {
cur_tic = 0;
cur_grid++;
}
start_x = -180;
}
function HideSprites() {
var _local1 = _root;
_local1.obs1._visible = false;
_local1.obs2._visible = false;
_local1.obs3._visible = false;
_local1.obs4._visible = false;
_local1.obs_high._visible = false;
_local1.plat1._visible = false;
_local1.plat2._visible = false;
_local1.plat3._visible = false;
_local1.plat4._visible = false;
_local1.platobs1._visible = false;
_local1.platobs2._visible = false;
_local1.platobs3._visible = false;
_local1.platobs4._visible = false;
_local1.bonus1._visible = false;
_local1.bonus2._visible = false;
_local1.bonus3._visible = false;
_local1.fore1._visible = false;
_local1.fore2._visible = false;
_local1.flair1._visible = false;
_local1.flair2._visible = false;
}
function ClearStageGraphics() {
i = 0;
while (i <= 5) {
grid_mcs[i] = undefined;
i++;
}
mid_bg._x = mid_bg_start;
}
function DrawStage() {
var _local1 = _root;
if (cur_tic == 0) {
grid_0 = grid_mcs[0];
if (grid_0 != undefined) {
for (mc in grid_0) {
if (stg[cur_grid - 2][grid_0[mc]].continuation_bool) {
grid_mcs[1].push(grid_0[mc]);
} else {
remove_mc = _local1[grid_0[mc]];
remove_mc._visible = false;
}
}
}
i = 0;
while (i < 5) {
grid_mcs[i] = grid_mcs[i + 1];
i++;
}
new_grid = stg[cur_grid + 3];
if (new_grid == undefined) {
grid_mcs[5] = undefined;
} else {
grid_mcs[5] = new Array();
for (mc in new_grid) {
new_mc = _local1[mc];
if (new_grid[mc].continuation_bool) {
} else {
new_mc.gotoAndStop(new_grid[mc].type_str);
new_mc._x = (540 + (new_grid[mc].loc_num * tic_size)) + gnd_speed;
new_mc.land_target._visible = false;
new_mc.land_target._visible = false;
new_mc.hit_target._visible = false;
if (new_grid[mc].pos_y != undefined) {
new_mc._y = new_grid[mc].pos_y;
}
new_mc._visible = true;
grid_mcs[5].push(mc);
}
}
}
}
i = 0;
while (i <= 5) {
this_grid = grid_mcs[i];
if (this_grid != undefined) {
for (item in this_grid) {
this_mc = _local1[this_grid[item]];
this_mc._x = this_mc._x - gnd_speed;
}
}
i++;
}
}
function button_press() {
if (waiting_for_input) {
on_input_func();
} else if (_root.rob_mode == "riding") {
jump();
}
}
function CheckCollisions() {
check_grid_for_collectable(cur_grid - 1);
check_grid_for_collectable(cur_grid);
check_grid_for_collision(cur_grid - 1);
check_grid_for_collision(cur_grid);
}
function check_grid_for_collectable(in_cur_grid) {
var _local1 = in_cur_grid;
var _local2 = _root;
if (stg[_local1] != undefined) {
for (item in stg[_local1]) {
this_item = stg[_local1][item];
if (this_item.collectable_bool) {
if (rob.hit_target.hitTest(_local2[item].hit_target)) {
item_collected(this_item.type_str);
_local2[item].gotoAndPlay("collected");
}
}
}
}
}
function check_grid_for_collision(in_cur_grid) {
var _local1 = in_cur_grid;
var _local2 = _root;
if (!invicible) {
if (stg[_local1] != undefined) {
for (item in stg[_local1]) {
this_item = stg[_local1][item];
if (this_item.crashable_bool) {
if (rob.hit_target.hitTest(_local2[item].hit_target)) {
crash();
}
}
}
}
}
}
function check_grid_for_landing(in_cur_grid) {
var _local1 = in_cur_grid;
var _local2 = _root;
if (stg[_local1] != undefined) {
for (item in stg[_local1]) {
this_item = stg[_local1][item];
if (this_item.landable_bool) {
if (rob.land_target.hitTest(_local2[item].land_target)) {
new_lvl = _local2[item].land_target.lvl;
return(new_lvl);
}
}
}
}
return(undefined);
}
function InputUpdate() {
var _local1 = _root;
if (_local1.rob_mode == "jump") {
if (_local1.rob_pos == 1) {
if (_local1.Up) {
_local1.rob_pos = 2;
} else if (_local1.Right) {
_local1.rob_pos = 3;
} else if (_local1.Down) {
_local1.rob_pos = 4;
} else if (_local1.Left) {
_local1.rob_pos = 5;
}
}
} else if (_local1.rob_mode == "riding") {
if (_local1.Left) {
_local1.rob_pos = 5;
if (!is_grinding) {
speed_down();
}
} else if (_local1.Up) {
_local1.rob_pos = 2;
} else if (_local1.Down) {
_local1.rob_pos = 4;
} else if (_local1.Right) {
_local1.rob_pos = 3;
if (!is_grinding) {
speed_up();
}
} else {
_local1.rob_pos = 1;
}
}
}
function speed_up() {
changing_speed = true;
target_speed = "f";
}
function speed_down() {
changing_speed = true;
target_speed = "s";
}
function StartBoss() {
DoneScene();
SaveGlobals();
gotoAndPlay (63);
}
function ToMenu() {
DoneScene();
gotoAndPlay (51);
}
function ToSubmitScore() {
DoneScene();
gotoAndPlay (65);
}
function DoneScene() {
SaveGlobals();
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
}
function SaveGlobals() {
var _local1 = _global;
_local1.cur_stg = cur_stg;
_local1.cur_score = score;
_local1.cur_lives = lives_remaining;
_local1.cur_rob_health = health_remaining;
_local1.cur_time = cur_time;
_local1.cur_diff = cur_diff;
}
function LoadGlobals() {
var _local1 = _global;
cur_stg = _local1.cur_stg;
score = _local1.cur_score;
lives_remaining = _local1.cur_lives;
health_remaining = _local1.cur_rob_health;
cur_time = _local1.cur_time;
cur_diff = _local1.cur_diff;
}
_quality = "LOW";
frame_rate = 12;
frames_to_change_speed = 3;
gnd_speed_f = 300 / frame_rate;
gnd_speed_s = gnd_speed_f / 2;
gnd_speed_s = gnd_speed_f / 2;
gnd_speed_delta_p_frame = (gnd_speed_f - gnd_speed_s) / frames_to_change_speed;
gnd_speed = gnd_speed_s;
mid_speed_f = 40 / frame_rate;
mid_speed_s = mid_speed_f / 2;
mid_speed_delta_p_frame = (mid_speed_f - mid_speed_s) / frames_to_change_speed;
mid_speed = mid_speed_s;
far_speed_f = 30 / frame_rate;
far_speed_s = far_speed_f / 2;
far_speed_delta_p_frame = (far_speed_f - far_speed_s) / frames_to_change_speed;
far_speed = far_speed_s;
var changing_speed = true;
target_speed = "s";
current_speed = "stopped";
grid_size = 120;
tics_per_grid = 6;
tic_size = grid_size / tics_per_grid;
tics_per_frame = gnd_speed * (1 / tic_size);
cur_grid = 0;
cur_tic = 0;
grid_mcs = new Array();
grid_mcs[0] = undefined;
grid_mcs[1] = undefined;
grid_mcs[2] = undefined;
grid_mcs[3] = undefined;
grid_mcs[4] = undefined;
grid_mcs[5] = undefined;
mid_bg_start = 540;
last_frame = 0;
Start_time = undefined;
frames_played = undefined;
fast_position = 120;
slow_position = 60;
text_update_rate = 12;
time_to_update = text_update_rate;
rob_mode = "riding";
riding_platform = false;
rob_ride_pos = 1;
is_grinding = false;
health_remaining = 3;
lives_remaining = 3;
combo_array = new Array();
combo_count = 0;
score = 0;
msg_time_left = 24;
cur_stg = 1;
anim_frames_remaining = undefined;
anim_finish_func = undefined;
timer_on = false;
cur_time = 0;
waiting_for_input = false;
on_input_func = undefined;
var BGMusicPlaying = false;
_root.rob_pos = 1;
_root.rob_mode = "riding";
_root.rob_lvl = 0;
function SND_jump() {
if (_global.SoundOn) {
_root.SoundFX_1.start();
}
}
function SND_crash() {
if (_global.SoundOn) {
_root.SoundFX_2.start();
}
}
function SND_bonus() {
if (_global.SoundOn) {
_root.SoundFX_3.start();
}
}
function SND_setVolume(in_vol) {
if (_global.SoundOn) {
_root.BGMusic.setVolume(in_vol);
}
}
function SND_stop() {
if (_global.SoundOn) {
_root.BGMusic.stop();
}
}
function SND_StartBG() {
if (_global.SoundOn) {
_root.BGMusic.start(0, 99);
}
}
function SND_special(in_sound) {
if (_global.SoundOn) {
_root.SoundFX_special.attachSound(in_sound);
_root.SoundFX_special.start();
}
}
function SND_infoBeep() {
if (_global.SoundOn) {
_root.SoundFX_special.attachSound("next_info_beep");
_root.SoundFX_special.start();
}
}
function SND_ZapIn() {
if (_global.SoundOn) {
_root.SoundFX_special.attachSound("zap_in");
_root.SoundFX_special.start();
}
}
function SND_ZapOut() {
if (_global.SoundOn) {
_root.SoundFX_special.attachSound("zap_out");
_root.SoundFX_special.start();
}
}
if (_global.SoundOn) {
_root.BGMusic = new Sound();
_root.BGMusic.attachSound("skateLoop");
_root.SoundFX_1 = new Sound();
_root.SoundFX_1.attachSound("skate_jump");
_root.SoundFX_2 = new Sound();
_root.SoundFX_2.attachSound("boss_success");
_root.SoundFX_3 = new Sound();
_root.SoundFX_3.attachSound("skate_crash");
_root.SoundFX_special = new Sound();
}
_root.Left = 0;
_root.Up = 0;
_root.Down = 0;
_root.Right = 0;
var myListener = new Object();
myListener.onKeyDown = function () {
var _local1 = _root;
switch (Key.getCode()) {
case 37 :
_local1.Left = 1;
break;
case 39 :
_local1.Right = 1;
break;
case 38 :
_local1.Up = 1;
break;
case 40 :
_local1.Down = 1;
break;
case 32 :
case 88 :
_local1.button_press();
}
InputUpdate();
};
myListener.onKeyUp = function () {
var _local1 = _root;
switch (Key.getCode()) {
case 37 :
_local1.Left = 0;
break;
case 39 :
_local1.Right = 0;
break;
case 38 :
_local1.Up = 0;
break;
case 40 :
_local1.Down = 0;
}
InputUpdate();
};
Key.addListener(myListener);
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
_root.button_press();
};
Mouse.addListener(mouseListener);
function AddRestartPoint(in_grid) {
restart_points.push(in_grid);
}
function LoadStage1() {
delete stg;
stg = new Array();
restart_points = new Array();
i = 0;
AddRestartPoint(i);
i = i + 2;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("big_tree", 0);
stg[i].flair1.pos_y = 176;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("hydrant", 0);
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs2 = new classes.Obst("cone", 0);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].bonus1 = new classes.Bonus("points", 0);
stg[i].bonus1.pos_y = 90;
i = i + 2;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("letter_box", 2);
stg[i].plat1 = new classes.Platform("high_wall_1_long", 0);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("high_wall_1_long", 0);
stg[i].plat1.continuation_bool = true;
i = i + 1;
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("bench_1", 0);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].obs4 = new classes.Obst("post_box", 1);
stg[i].bonus1 = new classes.Bonus("points", 1);
stg[i].bonus1.pos_y = 85;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("manhole", 0);
stg[i].obs2 = new classes.Obst("barrier", 0);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("barrel_1", 3);
i++;
stg[i] = new Array();
stg[i].bonus2 = new classes.Bonus("points", 1);
stg[i].bonus2.pos_y = 70;
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("low_steps", 0);
stg[i].plat2 = new classes.Platform("high_wall_1", 0);
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("low_steps", 0);
stg[i].plat3.continuation_bool = true;
stg[i].plat2 = new classes.Platform("high_wall_1", 0);
stg[i].plat2.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].bonus3 = new classes.Bonus("points", 1);
stg[i].bonus3.pos_y = 50;
i++;
stg[i] = new Array();
stg[i].platobs4 = new classes.PlatObst("bench_1", 0);
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("letter_box", 4);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("long_fence", 0);
stg[i].bonus2 = new classes.Bonus("points", 5);
stg[i].bonus2.pos_y = 150;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("long_fence", 0);
stg[i].platobs3.continuation_bool = true;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].platobs4 = new classes.PlatObst("bench_1", 0);
i = i + 3;
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("long_rail", 0);
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("long_rail", 0);
stg[i].platobs2.continuation_bool = true;
stg[i].plat1 = new classes.Platform("med_wall_1_long", 0);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_1_long", 0);
stg[i].plat1.continuation_bool = true;
stg[i].bonus3 = new classes.Bonus("points", 2);
stg[i].bonus3.pos_y = 50;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_1_long", 0);
stg[i].plat1.continuation_bool = true;
stg[i].obs2 = new classes.Obst("hydrant", 1);
i = i + 3;
i++;
stg[i] = new Array();
stg[i].platobs4 = new classes.PlatObst("barrel_1", 2.5);
stg[i].platobs1 = new classes.PlatObst("barrel_1", 0);
i++;
stg[i] = new Array();
stg[i].bonus1 = new classes.Bonus("points", 0);
stg[i].bonus1.pos_y = 220;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("big_tree", 0);
stg[i].flair1.pos_y = 176;
i = i + 2;
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("bench_1", 2);
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("bench_1", 2);
stg[i].platobs2.continuation_bool = true;
stg[i].plat3 = new classes.Platform("med_wall_1", 0);
stg[i].bonus3 = new classes.Bonus("points", 0);
stg[i].bonus3.pos_y = 100;
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_1", 0);
stg[i].plat3.continuation_bool = true;
stg[i].plat2 = new classes.Platform("high_wall_1", 2);
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("high_wall_1", 2);
stg[i].plat2.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("rail", 0);
if (_root.cur_diff == 0) {
stg[i].bonus1 = new classes.Bonus("health", 1);
stg[i].bonus1.pos_y = 50;
}
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs2 = new classes.Obst("post_box_lady", 0);
i = i + 2;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("hydrant", 4);
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("street_light", 0);
stg[i].flair1.pos_y = 176;
i++;
AddRestartPoint(i);
i = i + 5;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("cone", 4);
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("cone", 0);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("high_wall_1_long", 0);
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("high_wall_1_long", 0);
stg[i].plat2.continuation_bool = true;
stg[i].platobs1 = new classes.PlatObst("barrel_1", 1);
i++;
stg[i] = new Array();
stg[i].obs2 = new classes.Obst("barrier", 2.5);
stg[i].platobs2 = new classes.PlatObst("barrel_1", 4);
i = i + 2;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("sign_1", 0);
stg[i].fore1 = new classes.Graphic("sign_fore", 0);
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("sign_1", 0);
stg[i].fore2 = new classes.Graphic("sign_fore", 0);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("hole_barrier", 3);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_1_long", 0);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_1_long", 0);
stg[i].plat1.continuation_bool = true;
stg[i].platobs1 = new classes.PlatObst("barrel_1", 0);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_1_long", 0);
stg[i].plat1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].bonus3 = new classes.Bonus("points", 2);
stg[i].bonus3.pos_y = 50;
stg[i].obs4 = new classes.Obst("cone", 3);
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("med_wall_1_long", 0);
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("med_wall_1_long", 0);
stg[i].plat2.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("med_wall_1_long", 0);
stg[i].plat2.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].bonus1 = new classes.Bonus("points", 2);
stg[i].bonus1.pos_y = 50;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_1_long", 0);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_1_long", 0);
stg[i].plat1.continuation_bool = true;
stg[i].platobs1 = new classes.PlatObst("barrel_1", 3);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_1_long", 0);
stg[i].plat1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].bonus2 = new classes.Bonus("points", 2);
stg[i].bonus2.pos_y = 50;
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_1", 0);
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_1", 0);
stg[i].plat3.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("sign_1", 0);
stg[i].fore1 = new classes.Graphic("sign_fore", 0);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("no_skating", 0);
stg[i].flair1.pos_y = 176;
_root.stg_size = stg.length + 0;
}
function LoadStage2() {
delete stg;
stg = new Array();
restart_points = new Array();
i = 0;
AddRestartPoint(i);
i = i + 2;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("venice_sign", 0);
stg[i].flair1.pos_y = 176;
i = i + 2;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("skateboard", 0);
stg[i].bonus1 = new classes.Bonus("points", 0);
stg[i].bonus1.pos_y = 90;
i = i + 2;
i++;
stg[i] = new Array();
stg[i].obs2 = new classes.Obst("post_box", 1);
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("barrier", 3);
i = i + 3;
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("long_rail", 0);
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("long_rail", 0);
stg[i].platobs1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("barrel_2", 2);
stg[i].obs_high = new classes.Obst("skateboard", 2.75);
stg[i].obs_high.pos_y = 125;
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("rail", 0);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_steps_long", 0);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_steps_long", 0);
stg[i].plat1.continuation_bool = true;
stg[i].bonus3 = new classes.Bonus("points", 2);
stg[i].bonus3.pos_y = 70;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_steps_long", 0);
stg[i].plat1.continuation_bool = true;
i = i + 1;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("letter_box", 3);
i++;
stg[i] = new Array();
stg[i].obs2 = new classes.Obst("barrier", 0);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("big_tree", 0);
stg[i].flair1.pos_y = 171;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("low_steps", 2);
stg[i].plat2 = new classes.Platform("high_wall_2", 2);
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("low_steps", 2);
stg[i].plat3.continuation_bool = true;
stg[i].plat2 = new classes.Platform("high_wall_2", 2);
stg[i].plat2.continuation_bool = true;
stg[i].bonus3 = new classes.Bonus("points", 0);
stg[i].bonus3.pos_y = 150;
i = i + 1;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("barrel_2", 2);
i++;
stg[i] = new Array();
stg[i].bonus1 = new classes.Bonus("points", 0);
stg[i].bonus1.pos_y = 80;
i++;
stg[i] = new Array();
stg[i].platobs4 = new classes.PlatObst("barrel_2", 1);
i++;
stg[i] = new Array();
if (_root.cur_diff == 0) {
stg[i].bonus2 = new classes.Bonus("health", 0);
stg[i].bonus2.pos_y = 80;
}
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("barrel_2", 0);
i = i + 3;
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("long_rail", 0);
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("long_rail", 0);
stg[i].platobs1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("barrel_2", 2);
stg[i].obs_high = new classes.Obst("double_skateboard", 2.75);
stg[i].obs_high.pos_y = 125;
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("rail", 0);
i = i + 1;
AddRestartPoint(i);
i = i + 2;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("big_tree", 0);
stg[i].flair1.pos_y = 171;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("sign_2", 0);
stg[i].fore1 = new classes.Graphic("sign_fore", 0);
i = i + 5;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_steps_long", 0);
stg[i].bonus3 = new classes.Bonus("points", 3);
stg[i].bonus3.pos_y = 150;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_steps_long", 0);
stg[i].plat1.continuation_bool = true;
stg[i].platobs1 = new classes.PlatObst("rail_2", 3);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_steps_long", 0);
stg[i].plat1.continuation_bool = true;
stg[i].platobs1 = new classes.PlatObst("rail_2", 3);
stg[i].platobs1.continuation_bool = true;
i = i + 1;
i++;
stg[i] = new Array();
stg[i].bonus1 = new classes.Bonus("points", 0);
stg[i].bonus1.pos_y = 45;
i = i + 2;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("barrier", 3);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].obs2 = new classes.Obst("double_skateboard", 1);
i++;
stg[i] = new Array();
stg[i].obs4 = new classes.Obst("skateboard", 1);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("sign_2", 0);
stg[i].fore1 = new classes.Graphic("sign_fore", 0);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("big_tree", 0);
stg[i].flair1.pos_y = 171;
i = i + 2;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("hippie", 0);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("long_rail", 0);
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("long_rail", 0);
stg[i].platobs1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("double_barrel_2", 2);
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("rail", 0);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].plat4 = new classes.Platform("low_steps_long", 0);
i++;
stg[i] = new Array();
stg[i].plat4 = new classes.Platform("low_steps_long", 0);
stg[i].plat4.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].plat4 = new classes.Platform("low_steps_long", 0);
stg[i].plat4.continuation_bool = true;
stg[i].bonus3 = new classes.Bonus("points", 4);
stg[i].bonus3.pos_y = 150;
stg[i].plat3 = new classes.Platform("med_wall_2_long", 0);
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_2_long", 0);
stg[i].plat3.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_2_long", 0);
stg[i].plat3.continuation_bool = true;
i = i + 1;
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("high_wall_2", 0);
i++;
stg[i] = new Array();
stg[i].bonus2 = new classes.Bonus("points", 5);
stg[i].bonus2.pos_y = 45;
i = i + 1;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("high_wall_2", 0);
i++;
stg[i] = new Array();
stg[i].bonus1 = new classes.Bonus("points", 5);
stg[i].bonus1.pos_y = 80;
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("long_rail", 0);
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("long_rail", 0);
stg[i].platobs1.continuation_bool = true;
i = i + 4;
i++;
stg[i] = new Array();
stg[i].obs4 = new classes.Obst("cone", 0);
stg[i].bonus3 = new classes.Bonus("points", 4);
stg[i].bonus3.pos_y = 220;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("barrier", 3);
i = i + 6;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_steps_long", 0);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_steps_long", 0);
stg[i].plat1.continuation_bool = true;
stg[i].platobs1 = new classes.PlatObst("rail_2", 4);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_steps_long", 0);
stg[i].plat1.continuation_bool = true;
stg[i].platobs1 = new classes.PlatObst("rail_2", 4);
stg[i].platobs1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("double_barrel_2", 0);
stg[i].platobs4 = new classes.PlatObst("double_barrel_2", 2);
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("low_steps_long", 0);
stg[i].platobs2 = new classes.PlatObst("rail_2", 1.5);
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("low_steps_long", 0);
stg[i].plat2.continuation_bool = true;
stg[i].platobs1 = new classes.PlatObst("rail_2", 1.5);
stg[i].platobs1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("low_steps_long", 0);
stg[i].plat2.continuation_bool = true;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("bikini_girl", 0);
stg[i].flair1.pos_y = 166;
_root.stg_size = stg.length + 0;
}
function LoadStage3() {
var _local1 = _root;
delete stg;
stg = new Array();
restart_points = new Array();
i = 0;
AddRestartPoint(i);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("high_wall_3", 0);
stg[i].flair1 = new classes.Graphic("posters_3", 0);
stg[i].flair1.pos_y = 180;
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("high_wall_3", 0);
stg[i].plat2.continuation_bool = true;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("hydrant", 0);
i = i + 2;
i++;
stg[i] = new Array();
stg[i].plat4 = new classes.Platform("low_steps_long", 0);
i++;
stg[i] = new Array();
stg[i].plat4 = new classes.Platform("low_steps_long", 0);
stg[i].plat4.continuation_bool = true;
stg[i].plat3 = new classes.Platform("med_wall_3_long", 0);
if (_local1.cur_diff == 0) {
stg[i].bonus1 = new classes.Bonus("health", 3);
stg[i].bonus1.pos_y = 150;
}
i++;
stg[i] = new Array();
stg[i].plat4 = new classes.Platform("low_steps_long", 0);
stg[i].plat4.continuation_bool = true;
stg[i].plat3 = new classes.Platform("med_wall_3_long", 0);
stg[i].plat3.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_3_long", 0);
stg[i].plat3.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].bonus3 = new classes.Bonus("points", 3);
stg[i].bonus3.pos_y = 50;
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("barrel_3", 3);
i = i + 2;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("street_sign", 0);
stg[i].flair1.pos_y = 176;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("letter_box", 0);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].obs2 = new classes.Obst("barrier", 4);
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("cone", 0);
i = i + 3;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("long_fence", 0);
stg[i].bonus3 = new classes.Bonus("points", 4);
stg[i].bonus3.pos_y = 70;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("long_fence", 0);
stg[i].platobs3.continuation_bool = true;
i = i + 4;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("street_light", 0);
stg[i].flair1.pos_y = 176;
i = i + 1;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("letter_box", 0);
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("barrel_3", 3);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_3_long", 0);
stg[i].bonus3 = new classes.Bonus("points", 4);
stg[i].bonus3.pos_y = 45;
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_3_long", 0);
stg[i].plat3.continuation_bool = true;
stg[i].obs4 = new classes.Obst("cone", 5);
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_3_long", 0);
stg[i].plat3.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("hole_barrier", 0);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("long_fence", 0);
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("long_fence", 0);
stg[i].platobs3.continuation_bool = true;
i = i + 1;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_3", 0);
stg[i].bonus1 = new classes.Bonus("points", 2);
stg[i].bonus1.pos_y = 50;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_3", 0);
stg[i].plat1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("sign_3", 0);
stg[i].fore1 = new classes.Graphic("sign_fore", 0);
i++;
stg[i] = new Array();
stg[i].obs2 = new classes.Obst("post_box", 0);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("barrel_3", 2);
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("cone", 2);
i++;
stg[i] = new Array();
stg[i].platobs4 = new classes.PlatObst("barrel_3", 1);
i++;
stg[i] = new Array();
stg[i].obs4 = new classes.Obst("cone", 1);
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("barrel_3", 0);
if (_local1.cur_diff == 0) {
stg[i].bonus1 = new classes.Bonus("extralife", 4);
stg[i].bonus1.pos_y = 50;
}
i = i + 1;
AddRestartPoint(i);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("sign_3", 0);
stg[i].fore1 = new classes.Graphic("sign_fore", 0);
i = i + 1;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("letter_box", 4);
i = i + 2;
i++;
stg[i] = new Array();
stg[i].obs4 = new classes.Obst("cone", 1);
i++;
stg[i] = new Array();
stg[i].obs2 = new classes.Obst("sign_3", 0);
stg[i].fore2 = new classes.Graphic("sign_fore", 0);
i = i + 4;
i++;
stg[i] = new Array();
stg[i].platobs1 = new classes.PlatObst("rail", 0);
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("med_wall_3_long", 0);
stg[i].obs4 = new classes.Obst("cone", 3);
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("med_wall_3_long", 0);
stg[i].plat2.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("med_wall_3_long", 0);
stg[i].plat2.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].bonus1 = new classes.Bonus("points", 2);
stg[i].bonus1.pos_y = 50;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_3_long", 0);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_3_long", 0);
stg[i].plat1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("med_wall_3_long", 0);
stg[i].plat1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].bonus3 = new classes.Bonus("points", 2);
stg[i].bonus3.pos_y = 50;
i++;
stg[i] = new Array();
stg[i].plat4 = new classes.Platform("med_wall_3_long", 0);
i++;
stg[i] = new Array();
stg[i].plat4 = new classes.Platform("med_wall_3_long", 0);
stg[i].plat4.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].plat4 = new classes.Platform("med_wall_3_long", 0);
stg[i].plat4.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].obs2 = new classes.Obst("hole_barrier_long", 0);
stg[i].bonus2 = new classes.Bonus("points", 2);
stg[i].bonus2.pos_y = 50;
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_3", 0);
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_3", 0);
stg[i].plat3.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("hole_barrier_long", 0);
stg[i].bonus1 = new classes.Bonus("points", 1);
stg[i].bonus1.pos_y = 45;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs4 = new classes.Obst("cone", 0);
i++;
stg[i] = new Array();
stg[i].platobs4 = new classes.PlatObst("barrel_3", 1);
stg[i].bonus3 = new classes.Bonus("points", 4);
stg[i].bonus3.pos_y = 220;
i = i + 1;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("barrier", 4);
i = i + 2;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("street_light", 0);
stg[i].flair1.pos_y = 176;
i = i + 2;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("barrel_3", 0);
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_3", 0);
i++;
stg[i] = new Array();
stg[i].plat3 = new classes.Platform("med_wall_3", 0);
stg[i].plat3.continuation_bool = true;
stg[i].bonus2 = new classes.Bonus("points", 5);
stg[i].bonus2.pos_y = 150;
stg[i].plat2 = new classes.Platform("high_wall_3", 0);
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("high_wall_3", 0);
stg[i].plat2.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_wall", 0);
i++;
stg[i] = new Array();
stg[i].plat1 = new classes.Platform("low_wall", 0);
stg[i].plat1.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("rail_long");
stg[i].bonus1 = new classes.Bonus("points", 0);
i++;
stg[i] = new Array();
stg[i].platobs2 = new classes.PlatObst("rail_long", 0);
stg[i].platobs2.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("hydrant", 4);
i = i + 2;
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("high_wall_3", 0);
i++;
stg[i] = new Array();
stg[i].plat2 = new classes.Platform("high_wall_3", 0);
stg[i].plat2.continuation_bool = true;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("street_sign", 0);
stg[i].flair1.pos_y = 176;
i = i + 3;
i++;
stg[i] = new Array();
stg[i].obs3 = new classes.Obst("barrier", 1.5);
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("long_rail", 0);
stg[i].bonus1 = new classes.Bonus("points", 1);
stg[i].bonus1.pos_y = 140;
stg[i].bonus2 = new classes.Bonus("points", 4);
stg[i].bonus2.pos_y = 140;
i++;
stg[i] = new Array();
stg[i].platobs3 = new classes.PlatObst("long_rail", 0);
stg[i].platobs3.continuation_bool = true;
stg[i].bonus3 = new classes.Bonus("points", 1);
stg[i].bonus3.pos_y = 140;
i++;
stg[i] = new Array();
stg[i].obs1 = new classes.Obst("barrier", 3);
i = i + 3;
i++;
stg[i] = new Array();
stg[i].flair1 = new classes.Graphic("velvet_rope", 0);
stg[i].flair1.pos_y = 170;
_local1.stg_size = stg.length - 1;
}
var stg = new Array();
var stg_size = undefined;
var restart_points = new Array();
Frame 62
LoadGlobals();
Start();
stop();
Frame 63
function InitComPositions() {
_root.com_positions = new Array();
i = 0;
while (i < max_commands) {
com_positions[i + 1] = new Array();
com_positions[i + 1][0] = screen_center - ((((i + 1) * com_width) + (i * com_spacing)) / 2);
j = 1;
while (j <= i) {
com_positions[i + 1][j] = (com_positions[i + 1][j - 1] + com_width) + com_spacing;
j++;
}
i++;
}
}
function Start() {
help_shown_already = false;
BGMusicPlaying = false;
StartPlaying();
}
function StartPlaying() {
InitComPositions();
cur_boss = "boss" add cur_stg;
match_over = false;
boss_txt = _global.Bosses[cur_stg].name;
battle.gotoAndStop(cur_boss);
BB_dam_multiplier = 1.25 + (cur_diff * 0.5);
Boss_dam_multiplier = 1.25;
bb_power = 100;
boss_power = 100;
cur_pos = "pos1";
DrawPower();
DrawScore();
ChangePosition(cur_pos);
ShowIdleAnimation();
level_complete._visible = false;
if (((!help_shown_already) && (cur_stg == 1)) && (cur_diff == 0)) {
help_shown_already = true;
PlayHowToPlay();
} else {
StartFighting();
}
}
function StartFighting() {
_root.SND_setVolume(100);
if (BGMusicPlaying == false) {
_root.SND_StartBG();
BGMusicPlaying = true;
}
this.onEnterFrame = function () {
update();
};
}
function StopAnimation() {
this.onEnterFrame = undefined;
}
function update() {
if (doing_command) {
time_remaining--;
if (time_remaining <= 0) {
time_remaining = 0;
CommandFail();
}
DrawTimer();
} else if (playing_position_trans) {
position_trans_time_remaining--;
if (position_trans_time_remaining < 0) {
playing_position_trans = false;
ChangePosition(cur_pos);
ShowIdleAnimation();
}
} else if (waiting_to_clear) {
time_until_clear--;
if (time_until_clear < 0) {
DoClear();
}
} else {
time_until_next_command--;
if (time_until_next_command < 0) {
if (match_over) {
StopAnimation();
MatchOverAnim();
} else {
StartCommand();
}
}
}
}
function com_input(in_com) {
var _local1 = _root;
if (doing_command) {
if (in_com == com_array[current_command]) {
_local1["com" add current_command].hint.gotoAndStop("right");
current_command++;
if (current_command >= total_commands) {
CommandSuccess();
} else {
_local1["com" add current_command].hint.gotoAndStop("current");
}
} else {
_local1["com" add current_command].hint.gotoAndStop("wrong");
CommandFail();
}
} else if (waiting_for_input) {
if (in_com) {
on_input_func();
}
}
}
function DoClear() {
var _local1 = _root;
i = 0;
while (i < max_commands) {
com_mc = _local1["com" add i];
com_mc._visible = false;
i++;
}
timer._visible = false;
win_lose._visible = false;
waiting_to_clear = false;
}
function CommandSuccess() {
_root.SND_success();
win_lose.gotoAndStop("win");
win_lose._visible = true;
time_until_clear = 12;
waiting_to_clear = true;
time_until_next_command = pause_until_next_command;
doing_command = false;
last_command_success = true;
score = score + 100;
DrawScore();
}
function CommandFail() {
_root.SND_fail();
win_lose.gotoAndStop("lose");
win_lose._visible = true;
time_until_clear = 12;
waiting_to_clear = true;
time_until_next_command = pause_until_next_command;
doing_command = false;
last_command_success = false;
}
function getRand(max_num) {
return(Math.floor(Math.random() * (max_num + 1)));
}
function Boss1Commands() {
if (debug_mode) {
next_action = cur_action;
} else {
if (previous_pos == cur_pos) {
rand_num = getRand(3) + 1;
next_action = "att" add rand_num;
if (next_action == cur_action) {
rand_num = getRand(3) + 1;
next_action = "att" add rand_num;
}
} else {
next_action = "att1";
}
previous_pos = cur_pos;
}
if (cur_pos == "pos1") {
if (next_action == "att1") {
cur_action = "att1";
com_array = new Array();
rand_num = getRand(1);
if (rand_num == 0) {
com_array[0] = 3;
com_array[1] = 2;
com_array[2] = 5;
} else {
com_array[0] = 3;
com_array[1] = 4;
com_array[2] = 5;
}
time_for_command = 18;
pause_until_next_command = 24;
} else if (next_action == "att2") {
cur_action = "att2";
com_array = new Array();
com_array[0] = 2;
com_array[1] = 2;
com_array[2] = 2;
time_for_command = 16;
pause_until_next_command = 24;
} else if (next_action == "att3") {
cur_action = "att3";
com_array = new Array();
rand_num = getRand(1);
if (rand_num == 0) {
com_array[0] = 4;
com_array[1] = 2;
com_array[2] = 3;
com_array[3] = 5;
} else {
com_array[0] = 4;
com_array[1] = 2;
com_array[2] = 3;
com_array[3] = 2;
}
time_for_command = 20;
pause_until_next_command = 30;
} else {
cur_action = "att4";
com_array = new Array();
rand_num = getRand(1);
if (rand_num == 0) {
com_array[0] = 3;
com_array[1] = 3;
com_array[2] = 1;
} else {
com_array[0] = 1;
com_array[1] = 1;
com_array[2] = 3;
}
time_for_command = 19;
pause_until_next_command = 30;
}
} else if (stomp_count <= 2) {
cur_action = "att1";
com_array = new Array();
rand_num = getRand(1);
if (rand_num == 0) {
com_array[0] = 3;
} else {
com_array[0] = 1;
}
time_for_command = 9;
pause_until_next_command = 6;
}
}
function Boss2Commands() {
if (debug_mode) {
next_action = cur_action;
} else {
if (previous_pos == cur_pos) {
rand_num = getRand(3) + 1;
next_action = "att" add rand_num;
if (next_action == cur_action) {
rand_num = getRand(3) + 1;
next_action = "att" add rand_num;
}
} else {
next_action = "att1";
}
previous_pos = cur_pos;
}
if (cur_pos == "pos1") {
if (next_action == "att1") {
cur_action = "att1";
com_array = new Array();
rand_num = getRand(1);
if (rand_num == 0) {
com_array[0] = 3;
com_array[1] = 2;
com_array[2] = 5;
} else {
com_array[0] = 3;
com_array[1] = 4;
com_array[2] = 4;
com_array[3] = 5;
}
time_for_command = 13;
pause_until_next_command = 36;
} else if (next_action == "att2") {
cur_action = "att2";
com_array = new Array();
rand_num = getRand(1);
if (rand_num == 0) {
com_array[0] = 2;
com_array[1] = 2;
com_array[2] = 2;
} else {
com_array[0] = 2;
com_array[1] = 4;
com_array[2] = 2;
}
time_for_command = 14;
pause_until_next_command = 24;
} else if (next_action == "att3") {
cur_action = "att3";
com_array = new Array();
rand_num = getRand(2);
if (rand_num == 0) {
com_array[0] = 1;
com_array[1] = 2;
com_array[2] = 3;
com_array[3] = 2;
com_array[4] = 1;
} else if (rand_num == 1) {
com_array[0] = 1;
com_array[1] = 4;
com_array[2] = 3;
com_array[3] = 4;
com_array[4] = 1;
} else {
com_array[0] = 1;
com_array[1] = 4;
com_array[2] = 3;
com_array[3] = 2;
com_array[4] = 1;
}
time_for_command = 23;
pause_until_next_command = 32;
} else {
cur_action = "att4";
com_array = new Array();
rand_num = getRand(1);
if (rand_num == 0) {
com_array[0] = 3;
com_array[1] = 3;
com_array[2] = 5;
com_array[3] = 5;
com_array[4] = 5;
} else {
com_array[0] = 3;
com_array[1] = 5;
com_array[2] = 3;
com_array[3] = 2;
com_array[4] = 2;
}
time_for_command = 18;
pause_until_next_command = 24;
}
} else if (stomp_count <= 2) {
cur_action = "att1";
com_array = new Array();
rand_num = getRand(2);
if (rand_num == 0) {
com_array[0] = 1;
com_array[1] = 3;
} else if (rand_num == 1) {
com_array[0] = 3;
com_array[1] = 3;
} else {
com_array[0] = 3;
com_array[1] = 1;
}
time_for_command = 10;
pause_until_next_command = 6;
}
}
function Boss3Commands() {
if (debug_mode) {
next_action = cur_action;
} else {
if (previous_pos == cur_pos) {
rand_num = getRand(3) + 1;
next_action = "att" add rand_num;
if (next_action == cur_action) {
rand_num = getRand(3) + 1;
next_action = "att" add rand_num;
}
} else {
next_action = "att1";
}
previous_pos = cur_pos;
}
if (cur_pos == "pos1") {
if (next_action == "att1") {
cur_action = "att1";
com_array = new Array();
rand_num = getRand(2);
if (rand_num == 0) {
com_array[0] = 1;
com_array[1] = 3;
com_array[2] = 5;
com_array[3] = 4;
com_array[4] = 2;
} else if (rand_num == 1) {
com_array[0] = 4;
com_array[1] = 3;
com_array[2] = 5;
com_array[3] = 1;
com_array[4] = 2;
} else {
com_array[0] = 2;
com_array[1] = 2;
com_array[2] = 5;
com_array[3] = 4;
com_array[4] = 2;
}
time_for_command = 22;
pause_until_next_command = 32;
} else if (next_action == "att2") {
cur_action = "att2";
com_array = new Array();
rand_num = getRand(1);
if (rand_num == 0) {
com_array[0] = 2;
com_array[1] = 2;
com_array[2] = 2;
} else {
com_array[0] = 2;
com_array[1] = 4;
com_array[2] = 2;
}
time_for_command = 12;
pause_until_next_command = 24;
} else if (next_action == "att3") {
cur_action = "att3";
com_array = new Array();
rand_num = getRand(2);
if (rand_num == 0) {
com_array[0] = 1;
com_array[1] = 2;
com_array[2] = 3;
com_array[3] = 2;
com_array[4] = 1;
} else if (rand_num == 1) {
com_array[0] = 4;
com_array[1] = 2;
com_array[2] = 4;
com_array[3] = 1;
com_array[4] = 3;
} else {
com_array[0] = 2;
com_array[1] = 5;
com_array[2] = 4;
com_array[3] = 5;
com_array[4] = 1;
}
time_for_command = 21;
pause_until_next_command = 24;
} else {
cur_action = "att4";
com_array = new Array();
rand_num = getRand(2);
if (rand_num == 0) {
com_array[0] = 3;
com_array[1] = 2;
com_array[2] = 5;
} else if (rand_num == 1) {
com_array[0] = 3;
com_array[1] = 4;
com_array[2] = 4;
} else {
com_array[0] = 3;
com_array[1] = 2;
com_array[2] = 4;
com_array[3] = 5;
}
time_for_command = 13;
pause_until_next_command = 28;
}
} else if (stomp_count <= 2) {
cur_action = "att1";
com_array = new Array();
rand_num = getRand(2);
if (rand_num == 0) {
com_array[0] = 4;
com_array[1] = 1;
} else if (rand_num == 1) {
com_array[0] = 2;
com_array[1] = 3;
com_array[2] = 2;
} else {
com_array[0] = 3;
com_array[1] = 1;
}
time_for_command = 12;
pause_until_next_command = 20;
}
}
function StartCommand() {
var _local1 = _root;
if (cur_boss == "boss1") {
Boss1Commands();
} else if (cur_boss == "boss2") {
Boss2Commands();
} else if (cur_boss == "boss3") {
Boss3Commands();
}
total_commands = com_array.length;
time_remaining = time_for_command * (1 - (cur_diff * 0.2));
i = 0;
while (i < max_commands) {
com_mc = _local1["com" add i];
command = com_array[i];
if (command == undefined) {
com_mc.gotoAndStop("off");
com_mc._visible = false;
} else {
com_mc.gotoAndStop(command);
com_mc.hint.gotoAndStop("off");
com_mc._x = com_positions[com_array.length][i];
com_mc._visible = true;
}
i++;
}
current_command = 0;
doing_command = true;
last_command_success = false;
_local1["com" add current_command].hint.gotoAndStop("current");
DrawTimer();
timer._visible = true;
StartAnimation();
}
function ChangePosition(in_pos) {
cur_pos = in_pos;
battle.anim.gotoAndStop(cur_pos);
DrawDebugInterface();
}
function TransToPosition(in_new_pos, animation_length) {
playing_position_trans = true;
position_trans_time_remaining = animation_length;
battle.anim[cur_pos].gotoAndPlay("trans_to_" add in_new_pos);
cur_pos = in_new_pos;
DrawDebugInterface();
}
function StartAnimation() {
battle.anim[cur_pos].gotoAndStop(cur_action);
battle.anim[cur_pos][cur_action].gotoAndPlay("go");
}
function ShowIdleAnimation() {
battle.anim[cur_pos].gotoAndPlay("idle");
}
function DrawTimer() {
percent = (time_remaining / time_for_command) * 100;
timer.time._xscale = percent;
}
function DrawPower() {
lives_mc.gotoAndStop(lives_remaining);
percent = boss_power;
boss_powerbar.bar._xscale = percent;
percent = bb_power;
bb_powerbar.bar._xscale = percent;
}
function DrawScore() {
score_txt = score;
}
function GroundShakeStart() {
_root.SND_crash();
ground_y = battle.bg._y;
battle.bg._y = battle.bg._y + 5;
}
function GroundShakeStop() {
battle.bg._y = ground_y;
}
function TakeDamage(in_char, in_ammount) {
var _local1 = in_ammount;
if (in_char == "BB") {
_root.SND_hit();
bb_power = bb_power - (BB_dam_multiplier * _local1);
} else if (in_char == "boss") {
_root.SND_hit();
boss_power = boss_power - (Boss_dam_multiplier * _local1);
score = score + (_local1 * 10);
DrawScore();
}
if (bb_power <= 0) {
bb_power = 0;
match_over = true;
} else if (boss_power <= 0) {
boss_power = 0;
match_over = true;
}
DrawPower();
}
function die() {
lives_remaining--;
if (lives_remaining <= 0) {
GameOverAnim();
} else {
DieAnim();
}
}
function PlayHowToPlay() {
waiting_for_input = true;
on_input_func = HowToPlayDone;
How_to_play_mc.gotoAndPlay("play");
How_to_play_mc._visible = true;
}
function HowToPlayDone() {
waiting_for_input = false;
How_to_play_mc._visible = false;
How_to_play_mc.stop();
How_to_play_mc.example.stop();
StartFighting();
}
function MatchOverAnim() {
if (bb_power <= 0) {
battle.anim[cur_pos].gotoAndPlay("bb_lose");
} else if (boss_power <= 0) {
battle.anim[cur_pos].gotoAndPlay("bb_win");
}
}
function MatchOverAnimDone() {
if (bb_power <= 0) {
die();
} else if (boss_power <= 0) {
LevelComplete();
}
}
function LevelComplete() {
var _local1 = _root;
StopAnimation();
_local1.SND_setVolume(40);
par_time = _global.ParTime[cur_stg];
_local1.time_bonus = (par_time - cur_time) * 1000;
if (_local1.time_bonus < 0) {
_local1.time_bonus = 0;
}
_local1.level_bonus = (cur_lvl + (cur_diff + 1)) * 5000;
_local1.score_before_bonus = score;
score = score + (time_bonus + level_bonus);
boss_outro_mc.gotoAndPlay("play");
boss_outro_mc._visible = true;
waiting_for_input = true;
on_input_func = LevelCompleteDone;
}
function LevelCompleteDone() {
waiting_for_input = false;
if (cur_stg == 3) {
GameWon();
} else {
_root.BGMusic.stop();
cur_stg++;
StartSkate();
}
}
function GameWon() {
_quality = "HIGH";
game_won_mc.gotoAndPlay("play");
waiting_for_input = true;
on_input_func = GameWonDone;
}
function GameWonDone() {
_quality = "LOW";
_root.SND_stop();
waiting_for_input = false;
cur_stg = 1;
cur_diff++;
StartSkate();
}
function DieAnim() {
StopAnimation();
die_anim.gotoAndPlay("play");
die_anim._visible = true;
}
function DieAnimDone() {
die_anim._visible = false;
time_until_next_command = 24;
StartPlaying();
}
function GameOverAnim() {
game_over_bb_mc.gotoAndPlay("play");
game_over_bb_mc._visible = true;
}
function GameOverAnimDone() {
_root.SND_stop();
game_over_bb_mc._visible = false;
ToSubmitScore();
}
function StartSkate() {
SaveGlobals();
DoneScene();
gotoAndPlay (61);
}
function ToMenu() {
DoneScene();
gotoAndPlay (51);
}
function ToSubmitScore() {
DoneScene();
gotoAndPlay (65);
}
function DoneScene() {
SaveGlobals();
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
}
function SaveGlobals() {
var _local1 = _global;
_local1.cur_stg = cur_stg;
_local1.cur_score = score;
_local1.cur_lives = lives_remaining;
_local1.cur_rob_health = health_remaining;
_local1.cur_time = cur_time;
_local1.cur_diff = cur_diff;
}
function LoadGlobals() {
var _local1 = _global;
cur_stg = _local1.cur_stg;
score = _local1.cur_score;
lives_remaining = _local1.cur_lives;
health_remaining = _local1.cur_rob_health;
cur_time = _local1.cur_time;
cur_diff = _local1.cur_diff;
}
_quality = "LOW";
var waiting_to_clear = false;
var time_until_clear = 24;
var time_until_next_command = 24;
var time_for_command = undefined;
var time_remaining = undefined;
var doing_command = false;
var com_array = undefined;
var current_command = undefined;
var total_commands = undefined;
var max_commands = 5;
var bb_power = 100;
var boss_power = 100;
var cur_stg = 1;
var cur_boss = "boss1";
var cur_pos = "pos1";
var cur_action = "att1";
var pause_until_next_command = 24;
var previous_pos = cur_pos;
var BB_dam_multiplier = undefined;
var Boss_dam_multiplier = undefined;
var playing_position_trans = false;
var position_trans_time_remaining = undefined;
var stomp_count = 0;
var debug_mode = true;
var lives_remaining = 0;
var score = 0;
var screen_center = 240;
var com_width = 26;
var com_spacing = 4;
var waiting_for_input = false;
var on_input_func = undefined;
var com_positions = new Array();
var BGMusicPlaying = false;
function SND_setVolume(in_vol) {
if (_global.SoundOn) {
_root.BGMusic.setVolume(in_vol);
}
}
function SND_stop() {
if (_global.SoundOn) {
_root.BGMusic.stop();
}
}
function SND_hit() {
if (_global.SoundOn) {
_root.SoundFX_2.start();
}
}
function SND_crash() {
if (_global.SoundOn) {
_root.SoundFX_3.start();
}
}
function SND_fail() {
if (_global.SoundOn) {
_root.SoundFX_4.start();
}
}
function SND_success() {
if (_global.SoundOn) {
_root.SoundFX_1.start();
}
}
function SND_StartBG() {
if (_global.SoundOn) {
_root.BGMusic.start(0, 99);
}
}
function SND_special(in_sound) {
if (_global.SoundOn) {
_root.SoundFX_special.attachSound(in_sound);
_root.SoundFX_special.start();
}
}
function SND_infoBeep() {
if (_global.SoundOn) {
_root.SoundFX_special.attachSound("next_info_beep");
_root.SoundFX_special.start();
}
}
function SND_ZapIn() {
if (_global.SoundOn) {
_root.SoundFX_special.attachSound("zap_in");
_root.SoundFX_special.start();
}
}
function SND_ZapOut() {
if (_global.SoundOn) {
_root.SoundFX_special.attachSound("zap_out");
_root.SoundFX_special.start();
}
}
if (_global.SoundOn) {
_root.BGMusic = new Sound();
_root.BGMusic.attachSound("fightLoop");
_root.SoundFX_2 = new Sound();
_root.SoundFX_2.attachSound("boss_hit2");
_root.SoundFX_3 = new Sound();
_root.SoundFX_3.attachSound("boss_ground_shake");
_root.SoundFX_4 = new Sound();
_root.SoundFX_4.attachSound("boss_fail");
_root.SoundFX_1 = new Sound();
_root.SoundFX_1.attachSound("boss_success");
_root.SoundFX_special = new Sound();
}
var myListener = new Object();
myListener.onKeyDown = function () {
switch (Key.getCode()) {
case 37 :
com_input(4);
return;
case 39 :
com_input(2);
return;
case 38 :
com_input(1);
return;
case 40 :
com_input(3);
return;
case 32 :
case 88 :
com_input(5);
}
};
Key.addListener(myListener);
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
com_input(5);
};
Mouse.addListener(mouseListener);
function RestartAnimation() {
Start();
}
function DrawDebugInterface() {
boss1_btn.gotoAndStop("off");
boss2_btn.gotoAndStop("off");
boss3_btn.gotoAndStop("off");
_root[cur_boss add "_btn"].gotoAndStop("on");
pos1_idle_btn.gotoAndStop("off");
pos1_att1_btn.gotoAndStop("off");
pos1_att2_btn.gotoAndStop("off");
pos1_att3_btn.gotoAndStop("off");
pos1_att4_btn.gotoAndStop("off");
pos2_idle_btn.gotoAndStop("off");
pos2_att1_btn.gotoAndStop("off");
pos2_trans_btn.gotoAndStop("off");
cycle_btn.gotoAndStop("off");
debug_btn.gotoAndStop("off");
if (debug_mode) {
debug_btn.gotoAndStop("on");
_root[((cur_pos add "_") add cur_action) add "_btn"].gotoAndStop("on");
pos1_idle_btn._visible = true;
pos1_att1_btn._visible = true;
pos1_att2_btn._visible = true;
pos1_att3_btn._visible = true;
pos1_att4_btn._visible = true;
pos2_idle_btn._visible = true;
pos2_att1_btn._visible = true;
pos2_trans_btn._visible = true;
} else {
cycle_btn.gotoAndStop("on");
pos1_idle_btn._visible = false;
pos1_att1_btn._visible = false;
pos1_att2_btn._visible = false;
pos1_att3_btn._visible = false;
pos1_att4_btn._visible = false;
pos2_idle_btn._visible = false;
pos2_att1_btn._visible = false;
pos2_trans_btn._visible = false;
}
}
pos1_att1_btn.onPress = function () {
cur_pos = "pos1";
cur_action = "att1";
RestartAnimation();
DrawDebugInterface();
};
pos1_att2_btn.onPress = function () {
cur_pos = "pos1";
cur_action = "att2";
RestartAnimation();
DrawDebugInterface();
};
pos1_att3_btn.onPress = function () {
cur_pos = "pos1";
cur_action = "att3";
RestartAnimation();
DrawDebugInterface();
};
pos1_att4_btn.onPress = function () {
cur_pos = "pos1";
cur_action = "att4";
RestartAnimation();
DrawDebugInterface();
};
pos2_att1_btn.onPress = function () {
cur_pos = "pos2";
cur_action = "att1";
RestartAnimation();
DrawDebugInterface();
};
pos2_trans_btn.onPress = function () {
cur_pos = "pos2";
cur_action = "trans";
RestartAnimation();
DrawDebugInterface();
};
debug_btn.onPress = function () {
debug_mode = true;
RestartAnimation();
DrawDebugInterface();
};
cycle_btn.onPress = function () {
debug_mode = false;
RestartAnimation();
DrawDebugInterface();
};
boss1_btn.onPress = function () {
cur_boss = "boss1";
RestartAnimation();
DrawDebugInterface();
};
boss2_btn.onPress = function () {
cur_boss = "boss2";
RestartAnimation();
DrawDebugInterface();
};
boss3_btn.onPress = function () {
cur_boss = "boss3";
RestartAnimation();
DrawDebugInterface();
};
DrawDebugInterface();
Frame 64
debug_mode = false;
LoadGlobals();
DoClear();
Start();
stop();
Frame 65
function SND_pressX() {
if (_global.SoundOn) {
_root.SoundFX_1.start();
}
}
function SND_menu_change() {
if (_global.SoundOn) {
_root.SoundFX_2.start();
}
}
_root.SoundFX_1 = new Sound();
_root.SoundFX_1.attachSound("press_x");
_root.SoundFX_2 = new Sound();
_root.SoundFX_2.attachSound("menu_change");
var myListener = new Object();
myListener.onKeyUp = function () {
var _local1 = _root;
switch (Key.getCode()) {
case 37 :
_local1.Left();
return;
case 39 :
_local1.Right();
return;
case 38 :
_local1.Up();
return;
case 40 :
_local1.Down();
return;
case 32 :
case 13 :
case 88 :
_local1.button_press();
}
};
Key.addListener(myListener);
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
_root.button_press();
};
Mouse.addListener(mouseListener);
function doSend() {
input_txt = name_input_txt.text;
if ((input_txt != undefined) && (input_txt != "")) {
_global.user_name = name_input_txt.text;
_root.in_name = _global.user_name;
doing_send = true;
gotoAndPlay ("send");
} else {
error_txt.text = "Please Enter Your Name";
}
}
function unselect_all() {
super_input._visible = false;
text_hilite._visible = false;
send_btn_mc.gotoAndStop("off");
menu_btn_mc.gotoAndStop("off");
error_txt.text = "";
}
function select_text() {
unselect_all();
cur_selection = "text";
super_input._visible = true;
text_hilite._visible = true;
super_input.text = name_input_txt.text;
Selection.setFocus("super_input");
current_text_len = super_input.text.length;
Selection.setSelection(current_text_len, current_text_len);
}
function select_send() {
unselect_all();
cur_selection = "send";
super_input._visible = false;
send_hilite._visible = true;
send_btn_mc.gotoAndStop("on");
}
function select_menu() {
unselect_all();
cur_selection = "menu";
super_input._visible = false;
menu_btn_mc.gotoAndStop("on");
}
function button_press() {
_root.SND_pressX();
if (cur_selection == "menu") {
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
gotoAndPlay (51);
} else if (cur_selection == "send") {
doSend();
}
}
function Left() {
if (!doing_send) {
_root.SND_menu_change();
select_text();
}
}
function Right() {
if (!doing_send) {
_root.SND_menu_change();
select_send();
}
}
function Up() {
if (!doing_send) {
_root.SND_menu_change();
select_text();
}
}
function Down() {
if (cur_selection != "menu") {
_root.SND_menu_change();
select_menu();
}
}
stop();
score_txt = _global.cur_score;
name_input_txt.text = _global.user_name;
cur_selection = "";
doing_send = false;
select_text();
super_input.onChanged = function (textfield_txt) {
name_input_txt.text = textfield_txt.text;
};
if (_global.MouseMenus) {
input_btn._visible = true;
send_btn._visible = true;
menu_btn._visible = true;
input_btn.onRollOver = function () {
select_text();
};
send_btn.onRollOver = function () {
select_send();
};
menu_btn.onRollOver = function () {
select_menu();
};
} else {
input_btn._visible = false;
send_btn._visible = false;
menu_btn._visible = false;
}
Frame 66
select_menu();
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
gotoAndPlay (52);
} else {
Key.removeListener(myListener);
Mouse.removeListener(mouseListener);
gotoAndPlay (52);
}
};
var send_lv = new LoadVars();
send_lv.n = _root.in_name;
send_lv.s = _global.cur_score;
send_lv.stg = _global.cur_stg;
send_lv.d = _global.cur_diff;
send_lv.ls = "0";
send_lv.sendAndLoad(_global.URL_sendScore, result_lv, "GET");
stop();
Symbol 748 MovieClip [__Packages.classes.Thing] Frame 0
class classes.Thing
{
function Thing (in_type_str, in_loc_num) {
var _local1 = this;
_local1.mc_str = undefined;
_local1.type_str = in_type_str;
_local1.loc_num = in_loc_num;
_local1.continuation_bool = false;
_local1.landable_bool = false;
_local1.crashable_bool = true;
_local1.collectable_bool = false;
}
}
Symbol 749 MovieClip [__Packages.classes.Obst] Frame 0
class classes.Obst extends classes.Thing
{
var landable_bool, crashable_bool;
function Obst (in_type_str, in_loc_num) {
super(in_type_str, in_loc_num);
landable_bool = false;
crashable_bool = true;
}
}
Symbol 750 MovieClip [__Packages.classes.PlatObst] Frame 0
class classes.PlatObst extends classes.Thing
{
var landable_bool, crashable_bool;
function PlatObst (in_type_str, in_loc_num) {
super(in_type_str, in_loc_num);
landable_bool = true;
crashable_bool = true;
}
}
Symbol 751 MovieClip [__Packages.classes.Graphic] Frame 0
class classes.Graphic extends classes.Thing
{
var landable_bool, crashable_bool;
function Graphic (in_type_str, in_loc_num) {
super(in_type_str, in_loc_num);
landable_bool = false;
crashable_bool = false;
}
}
Symbol 752 MovieClip [__Packages.classes.Bonus] Frame 0
class classes.Bonus extends classes.Thing
{
function Bonus (in_type_str, in_loc_num) {
var _local1 = this;
super(in_type_str, in_loc_num);
_local1.landable_bool = false;
_local1.crashable_bool = false;
_local1.collectable_bool = true;
_local1.pos_y = 87;
}
}
Symbol 753 MovieClip [__Packages.classes.Platform] Frame 0
class classes.Platform extends classes.Thing
{
function Platform (in_type_str, in_loc_num) {
var _local1 = this;
super(in_type_str, in_loc_num);
_local1.landable_bool = true;
_local1.crashable_bool = false;
_local1.collectable_bool = false;
}
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 3
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 3
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 3
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 3
stop();
Symbol 141 MovieClip Frame 1
land_target.lvl = 1;
stop();
Symbol 141 MovieClip Frame 2
land_target.lvl = 1;
stop();
Symbol 141 MovieClip Frame 3
land_target.lvl = 1;
stop();
Symbol 141 MovieClip Frame 7
land_target.lvl = 2;
stop();
Symbol 141 MovieClip Frame 8
land_target.lvl = 2;
stop();
Symbol 141 MovieClip Frame 9
land_target.lvl = 2;
stop();
Symbol 141 MovieClip Frame 10
land_target.lvl = 2;
stop();
Symbol 141 MovieClip Frame 11
land_target.lvl = 2;
stop();
Symbol 141 MovieClip Frame 12
land_target.lvl = 2;
stop();
Symbol 141 MovieClip Frame 16
land_target.lvl = 3;
stop();
Symbol 141 MovieClip Frame 17
land_target.lvl = 3;
stop();
Symbol 141 MovieClip Frame 18
land_target.lvl = 3;
stop();
Symbol 141 MovieClip Frame 19
land_target.lvl = 3;
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
stop();
Symbol 159 MovieClip Frame 3
stop();
Symbol 159 MovieClip Frame 8
stop();
Symbol 159 MovieClip Frame 9
stop();
Symbol 159 MovieClip Frame 10
stop();
Symbol 159 MovieClip Frame 11
stop();
Symbol 159 MovieClip Frame 12
stop();
Symbol 159 MovieClip Frame 13
stop();
Symbol 159 MovieClip Frame 14
stop();
Symbol 159 MovieClip Frame 15
stop();
Symbol 172 MovieClip Frame 1
land_target.lvl = 1;
stop();
Symbol 172 MovieClip Frame 2
land_target.lvl = 1;
stop();
Symbol 172 MovieClip Frame 3
land_target.lvl = 1;
stop();
Symbol 172 MovieClip Frame 4
land_target.lvl = 2;
stop();
Symbol 172 MovieClip Frame 7
land_target.lvl = 1;
stop();
Symbol 172 MovieClip Frame 8
land_target.lvl = 2;
stop();
Symbol 172 MovieClip Frame 9
land_target.lvl = 1;
stop();
Symbol 172 MovieClip Frame 10
land_target.lvl = 1;
stop();
Symbol 172 MovieClip Frame 13
land_target.lvl = 1;
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 198 MovieClip Frame 3
stop();
Symbol 198 MovieClip Frame 4
stop();
Symbol 198 MovieClip Frame 5
stop();
Symbol 198 MovieClip Frame 6
stop();
Symbol 198 MovieClip Frame 7
stop();
Symbol 198 MovieClip Frame 8
stop();
Symbol 198 MovieClip Frame 9
stop();
Symbol 198 MovieClip Frame 10
stop();
Symbol 198 MovieClip Frame 11
stop();
Symbol 198 MovieClip Frame 12
stop();
Symbol 198 MovieClip Frame 13
stop();
Symbol 198 MovieClip Frame 16
stop();
Symbol 198 MovieClip Frame 17
stop();
Symbol 198 MovieClip Frame 18
stop();
Symbol 207 MovieClip Frame 1
hit_target._visible = false;
stop();
Symbol 207 MovieClip Frame 2
hit_target._visible = false;
stop();
Symbol 207 MovieClip Frame 3
hit_target._visible = false;
stop();
Symbol 207 MovieClip Frame 4
play();
Symbol 207 MovieClip Frame 6
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
stop();
Symbol 216 MovieClip Frame 3
stop();
Symbol 216 MovieClip Frame 4
stop();
Symbol 216 MovieClip Frame 5
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
stop();
Symbol 227 MovieClip Frame 3
stop();
Symbol 227 MovieClip Frame 4
stop();
Symbol 227 MovieClip Frame 5
stop();
Symbol 240 MovieClip Frame 1
hit_target._visible = false;
land_target._visible = false;
pos.gotoAndPlay(_root.rob_ride_pos);
stop();
Symbol 240 MovieClip Frame 6
hit_target._visible = false;
Symbol 240 MovieClip Frame 7
hit_target._visible = false;
Symbol 240 MovieClip Frame 8
hit_target._visible = false;
pos.gotoAndPlay(_root.rob_pos);
Symbol 240 MovieClip Frame 9
hit_target._visible = false;
pos.gotoAndPlay(_root.rob_pos);
Symbol 240 MovieClip Frame 10
pos.gotoAndPlay(_root.rob_pos);
Symbol 240 MovieClip Frame 11
pos.gotoAndPlay(_root.rob_pos);
Symbol 240 MovieClip Frame 12
hit_target._visible = false;
land_target._visible = false;
pos.gotoAndPlay(_root.rob_pos);
if (_root.rob_pos > 1) {
_root.pulled_move("j" add (_root.rob_pos - 1));
}
Symbol 240 MovieClip Frame 13
stop();
_root.start_falling();
Symbol 240 MovieClip Frame 14
hit_target._visible = false;
land_target._visible = false;
stop();
Symbol 240 MovieClip Frame 20
hit_target._visible = false;
_root.land();
Symbol 240 MovieClip Frame 21
hit_target._visible = false;
gotoAndPlay ("riding");
Symbol 240 MovieClip Frame 25
play();
Symbol 240 MovieClip Frame 32
stop();
Symbol 240 MovieClip Frame 33
play();
Symbol 240 MovieClip Frame 39
stop();
Symbol 240 MovieClip Frame 46
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 2
stop();
Symbol 256 MovieClip Frame 3
stop();
Symbol 256 MovieClip Frame 4
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
stop();
Symbol 262 MovieClip Frame 3
stop();
Symbol 262 MovieClip Frame 4
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
stop();
Symbol 278 MovieClip Frame 3
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 2
play();
Symbol 279 MovieClip Frame 3
_root.SND_ZapIn();
Symbol 279 MovieClip Frame 5
stg_name_mc.gotoAndStop(_root.cur_stg);
Symbol 279 MovieClip Frame 24
_root.SND_ZapOut();
Symbol 279 MovieClip Frame 26
stop();
Symbol 283 MovieClip Frame 9
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 2
play();
Symbol 294 MovieClip Frame 3
_root.SND_setVolume(60);
Symbol 294 MovieClip Frame 11
_root.SND_setVolume(40);
Symbol 294 MovieClip Frame 19
_root.SND_setVolume(20);
Symbol 294 MovieClip Frame 26
_root.SND_setVolume(10);
Symbol 294 MovieClip Frame 33
_root.SND_setVolume(5);
Symbol 294 MovieClip Frame 40
_root.SND_setVolume(2);
Symbol 294 MovieClip Frame 45
_root.SND_setVolume(1);
Symbol 294 MovieClip Frame 48
_root.SND_stop();
Symbol 294 MovieClip Frame 66
_root.SND_setVolume(100);
Symbol 294 MovieClip Frame 73
_root.GameOverAnimDone();
stop();
Symbol 311 MovieClip Frame 30
stop();
Symbol 320 MovieClip Frame 33
stop();
Symbol 333 MovieClip Frame 31
stop();
Symbol 334 MovieClip Frame 1
boss_walkin.play();
stop();
Symbol 334 MovieClip Frame 2
boss_walkin.play();
stop();
Symbol 334 MovieClip Frame 3
boss_walkin.play();
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 2
stop();
Symbol 350 MovieClip Frame 3
stop();
Symbol 351 MovieClip Frame 1
boss_taunt.gotoAndStop(_root.cur_stg);
boss_name_txt = _global.Bosses[_root.cur_stg].name;
boss_taunt_txt = _global.Bosses[_root.cur_stg].taunt;
stop();
Symbol 359 MovieClip Frame 1
bb_taunt_txt = _global.Bosses[_root.cur_stg].bb_response;
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 2
play();
Symbol 360 MovieClip Frame 14
boss_entrance.gotoAndStop(_root.cur_stg);
_root.SND_setVolume(40);
Symbol 360 MovieClip Frame 22
_root.SND_setVolume(20);
Symbol 360 MovieClip Frame 29
_root.SND_setVolume(10);
Symbol 360 MovieClip Frame 36
_root.SND_setVolume(5);
Symbol 360 MovieClip Frame 43
_root.SND_setVolume(2);
Symbol 360 MovieClip Frame 48
_root.SND_setVolume(1);
Symbol 360 MovieClip Frame 51
_root.SND_stop();
Symbol 360 MovieClip Frame 58
_root.SND_setVolume(100);
_root.SND_infoBeep();
Symbol 360 MovieClip Frame 88
_root.SND_infoBeep();
bb_taunt.gotoAndStop(_root.cur_stg);
Symbol 360 MovieClip Frame 120
_root.BossIntroDone();
stop();
Symbol 389 MovieClip Frame 1
_root.SND_infoBeep();
Symbol 389 MovieClip Frame 11
_root.SND_infoBeep();
Symbol 389 MovieClip Frame 21
_root.SND_infoBeep();
Symbol 389 MovieClip Frame 30
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 6
_root.SND_ZapIn();
Symbol 392 MovieClip Frame 14
_root.SND_infoBeep();
Symbol 392 MovieClip Frame 61
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 3
play();
Symbol 427 MovieClip Frame 21
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 427 MovieClip Frame 22
play();
_root.SND_hit();
Symbol 427 MovieClip Frame 27
_root.TakeDamage("boss", 10);
Symbol 427 MovieClip Frame 34
_root.GroundShakeStart();
_root.TakeDamage("boss", 5);
Symbol 427 MovieClip Frame 35
_root.GroundShakeStop();
Symbol 427 MovieClip Frame 49
_root.ShowIdleAnimation();
stop();
_root.GroundShakeStop();
Symbol 427 MovieClip Frame 50
play();
_root.TakeDamage("BB", 5);
Symbol 427 MovieClip Frame 53
_root.TakeDamage("BB", 2);
Symbol 427 MovieClip Frame 55
_root.TakeDamage("BB", 2);
Symbol 427 MovieClip Frame 57
_root.TakeDamage("BB", 2);
Symbol 427 MovieClip Frame 77
_root.ShowIdleAnimation();
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 3
play();
Symbol 458 MovieClip Frame 19
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 458 MovieClip Frame 20
play();
Symbol 458 MovieClip Frame 25
_root.TakeDamage("boss", 15);
Symbol 458 MovieClip Frame 35
_root.GroundShakeStart();
_root.TakeDamage("boss", 5);
Symbol 458 MovieClip Frame 36
_root.GroundShakeStop();
Symbol 458 MovieClip Frame 51
_root.ShowIdleAnimation();
stop();
Symbol 458 MovieClip Frame 52
play();
Symbol 458 MovieClip Frame 53
_root.TakeDamage("BB", 5);
Symbol 458 MovieClip Frame 56
_root.TakeDamage("BB", 5);
Symbol 458 MovieClip Frame 59
_root.GroundShakeStart();
_root.TakeDamage("BB", 5);
Symbol 458 MovieClip Frame 60
_root.GroundShakeStop();
Symbol 458 MovieClip Frame 69
_root.GroundShakeStart();
_root.TakeDamage("BB", 5);
Symbol 458 MovieClip Frame 70
_root.GroundShakeStop();
Symbol 458 MovieClip Frame 83
_root.ShowIdleAnimation();
stop();
Symbol 465 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 3
play();
Symbol 465 MovieClip Frame 23
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 465 MovieClip Frame 24
play();
Symbol 465 MovieClip Frame 29
_root.GroundShakeStart();
_root.TakeDamage("boss", 20);
Symbol 465 MovieClip Frame 33
_root.GroundShakeStop();
Symbol 465 MovieClip Frame 39
_root.GroundShakeStart();
_root.TakeDamage("boss", 5);
Symbol 465 MovieClip Frame 40
_root.GroundShakeStop();
Symbol 465 MovieClip Frame 55
_root.ChangePosition("pos2");
_root.ShowIdleAnimation();
stop();
Symbol 465 MovieClip Frame 56
play();
_root.TakeDamage("BB", 10);
Symbol 465 MovieClip Frame 60
_root.GroundShakeStart();
_root.TakeDamage("BB", 5);
Symbol 465 MovieClip Frame 61
_root.GroundShakeStop();
Symbol 465 MovieClip Frame 70
_root.GroundShakeStart();
_root.TakeDamage("BB", 5);
Symbol 465 MovieClip Frame 71
_root.GroundShakeStop();
Symbol 465 MovieClip Frame 86
_root.ShowIdleAnimation();
stop();
Symbol 481 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 3
play();
Symbol 481 MovieClip Frame 19
_root.SND_hit();
Symbol 481 MovieClip Frame 22
_root.SND_hit();
Symbol 481 MovieClip Frame 23
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 481 MovieClip Frame 24
play();
Symbol 481 MovieClip Frame 26
_root.TakeDamage("boss", 5);
Symbol 481 MovieClip Frame 29
_root.TakeDamage("boss", 5);
Symbol 481 MovieClip Frame 39
_root.GroundShakeStart();
_root.TakeDamage("boss", 5);
Symbol 481 MovieClip Frame 40
_root.GroundShakeStop();
Symbol 481 MovieClip Frame 55
_root.ShowIdleAnimation();
stop();
Symbol 481 MovieClip Frame 56
play();
Symbol 481 MovieClip Frame 61
_root.TakeDamage("BB", 10);
Symbol 481 MovieClip Frame 71
_root.GroundShakeStart();
_root.TakeDamage("BB", 5);
Symbol 481 MovieClip Frame 72
_root.GroundShakeStop();
Symbol 481 MovieClip Frame 87
_root.ShowIdleAnimation();
stop();
Symbol 490 MovieClip Frame 16
_root.GroundShakeStart();
Symbol 490 MovieClip Frame 17
_root.GroundShakeStop();
Symbol 490 MovieClip Frame 32
_root.MatchOverAnimDone();
stop();
Symbol 491 MovieClip Frame 16
_root.GroundShakeStart();
Symbol 491 MovieClip Frame 17
_root.GroundShakeStop();
Symbol 491 MovieClip Frame 32
_root.MatchOverAnimDone();
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 7
stop();
Symbol 492 MovieClip Frame 13
stop();
Symbol 492 MovieClip Frame 19
stop();
Symbol 492 MovieClip Frame 25
stop();
Symbol 492 MovieClip Frame 31
stop();
Symbol 492 MovieClip Frame 37
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 3
play();
Symbol 494 MovieClip Frame 12
if (_root.last_command_success) {
gotoAndPlay ("success");
_root.stomp_count++;
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 494 MovieClip Frame 13
play();
Symbol 494 MovieClip Frame 21
_root.GroundShakeStart();
_root.TakeDamage("boss", 10);
Symbol 494 MovieClip Frame 22
_root.GroundShakeStop();
Symbol 494 MovieClip Frame 30
if (_root.stomp_count >= 2) {
_root.TransToPosition("pos1", 16);
}
Symbol 494 MovieClip Frame 31
stop();
Symbol 494 MovieClip Frame 32
play();
Symbol 494 MovieClip Frame 44
_root.TransToPosition("pos1", 16);
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 3
play();
Symbol 495 MovieClip Frame 26
stop();
Symbol 496 MovieClip Frame 32
_root.MatchOverAnimDone();
stop();
Symbol 497 MovieClip Frame 1
_root.stomp_count = 0;
idle.gotoAndPlay(1);
stop();
Symbol 497 MovieClip Frame 7
stop();
Symbol 497 MovieClip Frame 13
trans_to_pos1.gotoAndPlay("pos2_to_pos1");
stop();
Symbol 497 MovieClip Frame 25
stop();
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 7
stop();
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 3
play();
Symbol 521 MovieClip Frame 16
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 521 MovieClip Frame 17
play();
Symbol 521 MovieClip Frame 22
_root.TakeDamage("boss", 15);
Symbol 521 MovieClip Frame 32
_root.GroundShakeStart();
_root.TakeDamage("boss", 5);
Symbol 521 MovieClip Frame 33
_root.GroundShakeStop();
Symbol 521 MovieClip Frame 48
_root.ShowIdleAnimation();
stop();
Symbol 521 MovieClip Frame 49
play();
_root.TakeDamage("BB", 2);
Symbol 521 MovieClip Frame 52
_root.TakeDamage("BB", 3);
Symbol 521 MovieClip Frame 55
_root.TakeDamage("BB", 5);
Symbol 521 MovieClip Frame 58
_root.TakeDamage("BB", 5);
Symbol 521 MovieClip Frame 70
_root.GroundShakeStart();
_root.TakeDamage("BB", 5);
Symbol 521 MovieClip Frame 71
_root.GroundShakeStop();
Symbol 521 MovieClip Frame 87
_root.ShowIdleAnimation();
stop();
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 3
play();
Symbol 539 MovieClip Frame 17
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 539 MovieClip Frame 18
play();
Symbol 539 MovieClip Frame 26
_root.TakeDamage("boss", 10);
Symbol 539 MovieClip Frame 30
_root.GroundShakeStart();
_root.TakeDamage("boss", 5);
Symbol 539 MovieClip Frame 31
_root.GroundShakeStop();
Symbol 539 MovieClip Frame 38
_root.GroundShakeStart();
_root.TakeDamage("boss", 5);
Symbol 539 MovieClip Frame 39
_root.GroundShakeStop();
Symbol 539 MovieClip Frame 54
_root.ShowIdleAnimation();
stop();
Symbol 539 MovieClip Frame 55
play();
Symbol 539 MovieClip Frame 56
_root.TakeDamage("BB", 20);
Symbol 539 MovieClip Frame 66
_root.GroundShakeStart();
_root.TakeDamage("BB", 5);
Symbol 539 MovieClip Frame 67
_root.GroundShakeStop();
Symbol 539 MovieClip Frame 86
_root.ShowIdleAnimation();
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 3
play();
Symbol 544 MovieClip Frame 27
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 544 MovieClip Frame 28
play();
Symbol 544 MovieClip Frame 37
_root.GroundShakeStart();
_root.TakeDamage("boss", 20);
Symbol 544 MovieClip Frame 40
_root.GroundShakeStop();
Symbol 544 MovieClip Frame 54
_root.ChangePosition("pos2");
_root.ShowIdleAnimation();
stop();
Symbol 544 MovieClip Frame 55
play();
Symbol 544 MovieClip Frame 64
_root.GroundShakeStart();
_root.TakeDamage("BB", 25);
Symbol 544 MovieClip Frame 67
_root.GroundShakeStop();
Symbol 544 MovieClip Frame 90
_root.ShowIdleAnimation();
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 3
play();
Symbol 553 MovieClip Frame 17
_root.SND_hit();
Symbol 553 MovieClip Frame 20
_root.SND_hit();
Symbol 553 MovieClip Frame 22
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 553 MovieClip Frame 23
play();
_root.SND_hit();
Symbol 553 MovieClip Frame 26
_root.SND_hit();
Symbol 553 MovieClip Frame 28
_root.TakeDamage("boss", 25);
Symbol 553 MovieClip Frame 38
_root.GroundShakeStart();
_root.TakeDamage("boss", 5);
Symbol 553 MovieClip Frame 39
_root.GroundShakeStop();
Symbol 553 MovieClip Frame 54
_root.ShowIdleAnimation();
stop();
Symbol 553 MovieClip Frame 55
play();
_root.SND_hit();
Symbol 553 MovieClip Frame 58
_root.SND_hit();
Symbol 553 MovieClip Frame 60
_root.TakeDamage("BB", 15);
Symbol 553 MovieClip Frame 70
_root.GroundShakeStart();
_root.TakeDamage("BB", 5);
Symbol 553 MovieClip Frame 71
_root.GroundShakeStop();
Symbol 553 MovieClip Frame 86
_root.ShowIdleAnimation();
stop();
Symbol 554 MovieClip Frame 16
_root.GroundShakeStart();
Symbol 554 MovieClip Frame 17
_root.GroundShakeStop();
Symbol 554 MovieClip Frame 32
_root.MatchOverAnimDone();
stop();
Symbol 562 MovieClip Frame 16
_root.GroundShakeStart();
Symbol 562 MovieClip Frame 17
_root.GroundShakeStop();
Symbol 562 MovieClip Frame 32
_root.MatchOverAnimDone();
stop();
Symbol 563 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 7
stop();
Symbol 563 MovieClip Frame 13
stop();
Symbol 563 MovieClip Frame 19
stop();
Symbol 563 MovieClip Frame 31
stop();
Symbol 563 MovieClip Frame 37
stop();
Symbol 565 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 3
play();
Symbol 565 MovieClip Frame 13
if (_root.last_command_success) {
gotoAndPlay ("success");
_root.stomp_count++;
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 565 MovieClip Frame 14
play();
Symbol 565 MovieClip Frame 22
_root.GroundShakeStart();
_root.TakeDamage("boss", 10);
Symbol 565 MovieClip Frame 23
_root.GroundShakeStop();
Symbol 565 MovieClip Frame 31
if (_root.stomp_count >= 2) {
_root.TransToPosition("pos1", 16);
}
Symbol 565 MovieClip Frame 32
stop();
Symbol 565 MovieClip Frame 33
play();
Symbol 565 MovieClip Frame 45
_root.TransToPosition("pos1", 16);
stop();
Symbol 566 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 3
play();
Symbol 566 MovieClip Frame 20
stop();
Symbol 567 MovieClip Frame 32
_root.MatchOverAnimDone();
stop();
Symbol 568 MovieClip Frame 1
_root.stomp_count = 0;
idle.gotoAndPlay(1);
stop();
Symbol 568 MovieClip Frame 7
stop();
Symbol 568 MovieClip Frame 13
trans_to_pos1.gotoAndPlay("pos2_to_pos1");
stop();
Symbol 568 MovieClip Frame 25
stop();
Symbol 569 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 7
stop();
Symbol 592 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 3
play();
Symbol 592 MovieClip Frame 27
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 592 MovieClip Frame 28
play();
Symbol 592 MovieClip Frame 37
_root.TakeDamage("boss", 20);
Symbol 592 MovieClip Frame 47
_root.GroundShakeStart();
_root.TakeDamage("boss", 5);
Symbol 592 MovieClip Frame 48
_root.GroundShakeStop();
Symbol 592 MovieClip Frame 63
_root.ShowIdleAnimation();
stop();
Symbol 592 MovieClip Frame 64
play();
Symbol 592 MovieClip Frame 76
_root.TakeDamage("BB", 5);
Symbol 592 MovieClip Frame 78
_root.TakeDamage("BB", 5);
Symbol 592 MovieClip Frame 80
_root.TakeDamage("BB", 5);
Symbol 592 MovieClip Frame 82
_root.TakeDamage("BB", 10);
Symbol 592 MovieClip Frame 89
_root.GroundShakeStart();
_root.TakeDamage("BB", 5);
Symbol 592 MovieClip Frame 90
_root.GroundShakeStop();
Symbol 592 MovieClip Frame 103
_root.ShowIdleAnimation();
stop();
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 3
play();
Symbol 607 MovieClip Frame 16
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 607 MovieClip Frame 17
play();
_root.SND_hit();
Symbol 607 MovieClip Frame 19
_root.SND_hit();
Symbol 607 MovieClip Frame 22
_root.TakeDamage("boss", 10);
Symbol 607 MovieClip Frame 32
_root.GroundShakeStart();
_root.TakeDamage("boss", 5);
Symbol 607 MovieClip Frame 33
_root.GroundShakeStop();
Symbol 607 MovieClip Frame 48
_root.ShowIdleAnimation();
stop();
Symbol 607 MovieClip Frame 49
play();
_root.SND_hit();
Symbol 607 MovieClip Frame 51
_root.SND_hit();
Symbol 607 MovieClip Frame 54
_root.TakeDamage("BB", 10);
Symbol 607 MovieClip Frame 64
_root.GroundShakeStart();
_root.TakeDamage("BB", 5);
Symbol 607 MovieClip Frame 65
_root.GroundShakeStop();
Symbol 607 MovieClip Frame 80
_root.ShowIdleAnimation();
stop();
Symbol 614 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 3
play();
Symbol 614 MovieClip Frame 18
_root.SND_hit();
Symbol 614 MovieClip Frame 20
_root.SND_hit();
Symbol 614 MovieClip Frame 22
_root.SND_hit();
Symbol 614 MovieClip Frame 24
_root.SND_hit();
Symbol 614 MovieClip Frame 25
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 614 MovieClip Frame 26
play();
_root.TakeDamage("boss", 20);
Symbol 614 MovieClip Frame 34
_root.GroundShakeStart();
Symbol 614 MovieClip Frame 35
_root.GroundShakeStop();
Symbol 614 MovieClip Frame 48
_root.ChangePosition("pos2");
_root.ShowIdleAnimation();
stop();
Symbol 614 MovieClip Frame 49
play();
_root.TakeDamage("BB", 15);
Symbol 614 MovieClip Frame 53
_root.TakeDamage("BB", 10);
_root.GroundShakeStart();
Symbol 614 MovieClip Frame 54
_root.GroundShakeStop();
Symbol 614 MovieClip Frame 63
_root.TakeDamage("BB", 5);
_root.GroundShakeStart();
Symbol 614 MovieClip Frame 64
_root.GroundShakeStop();
Symbol 614 MovieClip Frame 75
_root.ShowIdleAnimation();
stop();
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 3
play();
Symbol 633 MovieClip Frame 17
if (_root.last_command_success) {
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 633 MovieClip Frame 18
play();
_root.TakeDamage("boss", 5);
Symbol 633 MovieClip Frame 22
_root.TakeDamage("boss", 5);
Symbol 633 MovieClip Frame 26
_root.TakeDamage("boss", 5);
Symbol 633 MovieClip Frame 30
_root.TakeDamage("boss", 5);
Symbol 633 MovieClip Frame 34
_root.TakeDamage("boss", 5);
_root.GroundShakeStart();
Symbol 633 MovieClip Frame 35
_root.GroundShakeStop();
Symbol 633 MovieClip Frame 40
_root.TakeDamage("boss", 5);
_root.GroundShakeStart();
Symbol 633 MovieClip Frame 41
_root.GroundShakeStop();
Symbol 633 MovieClip Frame 56
_root.ShowIdleAnimation();
stop();
Symbol 633 MovieClip Frame 57
play();
Symbol 633 MovieClip Frame 62
_root.TakeDamage("BB", 15);
Symbol 633 MovieClip Frame 66
_root.TakeDamage("BB", 5);
_root.GroundShakeStart();
Symbol 633 MovieClip Frame 67
_root.GroundShakeStop();
Symbol 633 MovieClip Frame 72
_root.TakeDamage("BB", 5);
_root.GroundShakeStart();
Symbol 633 MovieClip Frame 73
_root.GroundShakeStop();
Symbol 633 MovieClip Frame 88
_root.ShowIdleAnimation();
stop();
Symbol 634 MovieClip Frame 16
_root.GroundShakeStart();
Symbol 634 MovieClip Frame 17
_root.GroundShakeStop();
Symbol 634 MovieClip Frame 32
_root.MatchOverAnimDone();
stop();
Symbol 635 MovieClip Frame 16
_root.GroundShakeStart();
Symbol 635 MovieClip Frame 17
_root.GroundShakeStop();
Symbol 635 MovieClip Frame 32
_root.MatchOverAnimDone();
stop();
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 7
stop();
Symbol 636 MovieClip Frame 13
stop();
Symbol 636 MovieClip Frame 19
stop();
Symbol 636 MovieClip Frame 25
stop();
Symbol 636 MovieClip Frame 31
stop();
Symbol 636 MovieClip Frame 37
stop();
Symbol 639 MovieClip Frame 1
stop();
Symbol 639 MovieClip Frame 4
play();
Symbol 639 MovieClip Frame 16
if (_root.last_command_success) {
_root.stomp_count++;
gotoAndPlay ("success");
} else {
gotoAndPlay ("fail");
}
stop();
Symbol 639 MovieClip Frame 17
play();
Symbol 639 MovieClip Frame 25
_root.TakeDamage("boss", 20);
_root.GroundShakeStart();
Symbol 639 MovieClip Frame 26
_root.GroundShakeStop();
Symbol 639 MovieClip Frame 36
if (_root.stomp_count >= 1) {
_root.TransToPosition("pos1", 16);
}
Symbol 639 MovieClip Frame 37
stop();
Symbol 639 MovieClip Frame 38
play();
Symbol 639 MovieClip Frame 45
_root.TransToPosition("pos1", 16);
stop();
Symbol 640 MovieClip Frame 10
_root.GroundShakeStart();
Symbol 640 MovieClip Frame 11
_root.GroundShakeStop();
Symbol 640 MovieClip Frame 21
stop();
Symbol 641 MovieClip Frame 18
_root.GroundShakeStart();
Symbol 641 MovieClip Frame 19
_root.GroundShakeStop();
Symbol 641 MovieClip Frame 31
_root.MatchOverAnimDone();
stop();
Symbol 642 MovieClip Frame 1
_root.stomp_count = 0;
idle.gotoAndPlay(1);
stop();
Symbol 642 MovieClip Frame 7
stop();
Symbol 642 MovieClip Frame 13
trans_to_pos1.gotoAndPlay("pos2_to_pos1");
stop();
Symbol 642 MovieClip Frame 25
stop();
Symbol 643 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 7
stop();
Symbol 644 MovieClip Frame 1
stop();
Symbol 644 MovieClip Frame 8
stop();
Symbol 644 MovieClip Frame 15
stop();
Symbol 656 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 2
stop();
Symbol 665 MovieClip Frame 1
stop();
Symbol 665 MovieClip Frame 2
stop();
Symbol 665 MovieClip Frame 3
stop();
Symbol 665 MovieClip Frame 4
stop();
Symbol 674 MovieClip Frame 1
stop();
Symbol 674 MovieClip Frame 2
stop();
Symbol 674 MovieClip Frame 3
stop();
Symbol 674 MovieClip Frame 4
stop();
Symbol 675 MovieClip Frame 1
stop();
Symbol 675 MovieClip Frame 2
stop();
Symbol 675 MovieClip Frame 3
stop();
Symbol 675 MovieClip Frame 4
stop();
Symbol 675 MovieClip Frame 5
stop();
Symbol 675 MovieClip Frame 6
stop();
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 2
stop();
Symbol 698 MovieClip Frame 3
stop();
Symbol 699 MovieClip Frame 1
boss_lost.gotoAndStop(_root.cur_stg);
boss_name_txt = _global.Bosses[_root.cur_stg].name;
boss_taunt_txt = _global.Bosses[_root.cur_stg].lose;
stop();
Symbol 708 MovieClip Frame 1
stop();
Symbol 708 MovieClip Frame 2
boss_entrance.gotoAndStop(_root.cur_stg);
play();
Symbol 708 MovieClip Frame 3
_root.SND_setVolume(40);
Symbol 708 MovieClip Frame 7
_root.SND_setVolume(20);
Symbol 708 MovieClip Frame 11
_root.SND_setVolume(10);
Symbol 708 MovieClip Frame 15
_root.SND_setVolume(5);
Symbol 708 MovieClip Frame 19
_root.SND_setVolume(2);
Symbol 708 MovieClip Frame 23
_root.SND_setVolume(1);
Symbol 708 MovieClip Frame 27
_root.SND_stop();
Symbol 708 MovieClip Frame 35
_root.SND_setVolume(100);
_root.SND_special("zap_in");
Symbol 708 MovieClip Frame 44
_root.SND_special("next_info_beep");
score_txt = " " add _root.score_before_bonus;
Symbol 708 MovieClip Frame 58
_root.SND_infoBeep();
time_txt = _root.cur_time add " secs";
Symbol 708 MovieClip Frame 66
_root.SND_infoBeep();
time_bonus_txt = " + " add _root.time_bonus;
score_txt = " " add (_root.score_before_bonus + _root.time_bonus);
Symbol 708 MovieClip Frame 74
_root.SND_infoBeep();
level_bonus_txt = " + " add _root.level_bonus;
score_txt = " " add _root.score;
Symbol 708 MovieClip Frame 91
stop();
Symbol 721 MovieClip Frame 21
hint_1.gotoAndStop("current");
Symbol 721 MovieClip Frame 28
_root.SND_hit();
hint_1.gotoAndStop("right");
hint_2.gotoAndStop("current");
Symbol 721 MovieClip Frame 38
_root.SND_hit();
hint_2.gotoAndStop("right");
hint_3.gotoAndStop("current");
Symbol 721 MovieClip Frame 48
_root.SND_success();
hint_3.gotoAndStop("right");
Symbol 722 MovieClip Frame 1
stop();
Symbol 722 MovieClip Frame 4
_root.SND_ZapIn();
Symbol 722 MovieClip Frame 12
_root.SND_infoBeep();
Symbol 722 MovieClip Frame 30
_root.SND_infoBeep();
Symbol 722 MovieClip Frame 95
stop();
Symbol 724 MovieClip Frame 10
stop();
Symbol 725 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 39
_root.DieAnimDone();
stop();
Symbol 730 MovieClip Frame 1
stop();
Symbol 730 MovieClip Frame 2
play();
Symbol 730 MovieClip Frame 3
Symbol 730 MovieClip Frame 8
stop();