Frame 1
if ((System.capabilities.playerType == "ActiveX") || (System.capabilities.playerType == "PlugIn")) {
movie_loaded = 0;
System.security.allowDomain(domainToAllow);
Stage.scaleMode = "noScale";
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 100;
this.loadText = ("Loading " + Math.round(getPercent * 100)) + "%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
movie_loaded = 1;
}
}
this.onEnterFrame = function () {
if (movie_loaded == 0) {
enemy_health._visible = false;
ship_alarm_active = false;
ship_start_view._visible = false;
}
};
Frame 2
this.gotoAndPlay(1);
Frame 3
stop();
function callback1() {
ship_engine_sound_playing = false;
ship_takeoff_animation = false;
}
function turn_next_view_visible() {
hand._visible = true;
}
function clear_sub_battle_menus() {
mouse_info_active = false;
target_green_flash_active = false;
ease_target_parts = false;
enemy_button_1._visible = false;
enemy_button_2._visible = false;
enemy_1_target_1._visible = false;
enemy_1_target_2._visible = false;
enemy_1_target_3._visible = false;
enemy_2_target_1._visible = false;
enemy_2_target_2._visible = false;
enemy_2_target_3._visible = false;
tech_button_2._visible = false;
tech_button_3._visible = false;
tech_button_4._visible = false;
single_enemy_target_1._visible = false;
single_enemy_target_2._visible = false;
single_enemy_target_3._visible = false;
target_part_top_left._visible = false;
target_part_top_right._visible = false;
target_part_bottom_left._visible = false;
target_part_bottom_right._visible = false;
}
function hideAttackButtons() {
mouse_info_active = false;
target_green_flash_active = false;
ease_target_parts = false;
target_part_top_left._visible = false;
target_part_top_right._visible = false;
target_part_bottom_left._visible = false;
target_part_bottom_right._visible = false;
gun_charge_box._visible = false;
attack_button._visible = false;
tech_button._visible = false;
enemy_button_1._visible = false;
enemy_button_2._visible = false;
enemy_1_target_1._visible = false;
enemy_1_target_2._visible = false;
enemy_1_target_3._visible = false;
enemy_2_target_1._visible = false;
enemy_2_target_2._visible = false;
enemy_2_target_3._visible = false;
tech_button_2._visible = false;
tech_button_3._visible = false;
tech_button_4._visible = false;
single_enemy_target_1._visible = false;
single_enemy_target_2._visible = false;
single_enemy_target_3._visible = false;
}
function updateFPS() {
fps_text_mc.fps_text.text = frame_count;
frameRateDiff = targetFrameRate / frame_count;
frame_count = 0;
frameCount = 0;
}
function timestep_1() {
function nudgeCharacterSmallRoom() {
cha_y_offset = 100;
if ((cha_x_offset >= -400) && (cha_x_offset < 0)) {
cha_x_offset = 380;
} else if ((cha_x_offset >= 0) && (cha_x_offset < 220)) {
cha_x_offset = (view_1._width - cha_x_offset) - 325;
} else if (cha_x_offset >= 220) {
cha_x_offset = (view_1._width - cha_x_offset) - 245;
}
character_stand_n._xscale = 160;
character_stand_n._yscale = 160;
character_shadow._xscale = 160;
character_shadow._yscale = 160;
character_collision_point._xscale = 160;
character_collision_point._yscale = 160;
}
function moveCharacterTop() {
cha_y_offset = 148;
cha_x_offset = 252;
character_stand_n._xscale = 86;
character_stand_n._yscale = 86;
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = true;
character_stand_w._visible = false;
}
function moveCharacterCentre() {
cha_y_offset = 139;
cha_x_offset = 213;
}
function moveCharacterBottom() {
cha_y_offset = 114;
cha_x_offset = 193;
character_stand_n._xscale = 154;
character_stand_n._yscale = 154;
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = true;
character_stand_w._visible = false;
}
function moveCharacterBottomRight() {
cha_y_offset = 129;
cha_x_offset = 421;
character_stand_n._xscale = 124;
character_stand_n._yscale = 124;
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = true;
character_stand_w._visible = false;
}
function moveCharacterMidLeftSmallRoom() {
cha_y_offset = 133;
cha_x_offset = 18;
character_stand_n._xscale = 140;
character_stand_n._yscale = 140;
character_shadow._xscale = 140;
character_shadow._yscale = 140;
character_collision_point._xscale = 140;
character_collision_point._yscale = 140;
}
function moveCharacter() {
cha_y_offset = 140;
cha_x_offset = 287;
character_stand_n._xscale = 100;
character_stand_n._yscale = 100;
}
function checkKeys() {
if (cha_collision_point_n_hit == true) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
cha_y_offset = cha_y_offset - characterYOffset;
cha_x_offset = cha_x_offset - characterXOffsetWalkAdjust;
}
if (cha_collision_point_s_hit == true) {
left_key_move_active = false;
right_key_move_active = false;
up_key_move_active = false;
if (moveHitTrigger == 0) {
if (view_1._visible == true) {
if (_root.view_1_turn_cam_180_trigger._visible == true) {
cha_y_offset = cha_y_offset + 0.01;
} else if (_root.view_1_turn_cam_180_trigger._visible == false) {
cha_y_offset = cha_y_offset + characterYOffset;
cha_x_offset = cha_x_offset + characterXOffsetWalkAdjust;
}
} else if (view_2._visible == true) {
if (_root.view_2_turn_cam_180_trigger._visible == true) {
cha_y_offset = cha_y_offset + 0.01;
} else if (_root.view_2_turn_cam_180_trigger._visible == false) {
cha_y_offset = cha_y_offset + characterYOffset;
cha_x_offset = cha_x_offset + characterXOffsetWalkAdjust;
}
} else if (view_3._visible == true) {
if (_root.view_3_turn_cam_180_trigger._visible == true) {
cha_y_offset = cha_y_offset + 0.01;
} else if (_root.view_3_turn_cam_180_trigger._visible == false) {
cha_y_offset = cha_y_offset + characterYOffset;
cha_x_offset = cha_x_offset + characterXOffsetWalkAdjust;
}
} else if (view_4._visible == true) {
if (_root.view_4_turn_cam_180_trigger._visible == true) {
cha_y_offset = cha_y_offset + 0.01;
} else if (_root.view_4_turn_cam_180_trigger._visible == false) {
cha_y_offset = cha_y_offset + characterYOffset;
cha_x_offset = cha_x_offset + characterXOffsetWalkAdjust;
}
} else if (view_5._visible == true) {
if (_root.view_5_turn_cam_180_trigger._visible == true) {
cha_y_offset = cha_y_offset + 0.01;
} else if (_root.view_5_turn_cam_180_trigger._visible == false) {
cha_y_offset = cha_y_offset + characterYOffset;
cha_x_offset = cha_x_offset + characterXOffsetWalkAdjust;
}
} else if (view_6._visible == true) {
if (_root.view_6_turn_cam_180_trigger._visible == true) {
cha_y_offset = cha_y_offset + 0.01;
} else if (_root.view_6_turn_cam_180_trigger._visible == false) {
cha_y_offset = cha_y_offset + characterYOffset;
cha_x_offset = cha_x_offset + characterXOffsetWalkAdjust;
}
}
}
if (moveHitTrigger == 1) {
cha_y_offset = cha_y_offset - characterYOffset;
cha_x_offset = cha_x_offset - characterXOffsetWalkAdjust;
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
}
}
if (cha_collision_point_w_hit == true) {
right_key_move_active = false;
up_key_move_active = false;
down_key_move_active = false;
cha_x_offset = cha_x_offset + characterXOffset;
}
if (cha_collision_point_e_hit == true) {
left_key_move_active = false;
up_key_move_active = false;
down_key_move_active = false;
cha_x_offset = cha_x_offset - characterXOffset;
}
}
_root._quality = "Best";
frame_count = frame_count + 1;
if (frameRateDiff > 2) {
frameRateDiff = 2;
}
if (targeted_icon._visible == true) {
white_targeted_icon._visible = true;
} else if (targeted_icon._visible == false) {
white_targeted_icon._visible = false;
}
difference = 175 - cha_y_offset;
character_stand_n._xscale = (20 + (difference * 2)) * 1.5;
character_stand_n._yscale = (20 + (difference * 2)) * 1.5;
if (animation_running == true) {
characterXOffset = ((character_stand_n._xscale / 37) * frameRateDiff) * 1.2;
} else if (animation_running == false) {
characterXOffset = (3 * frameRateDiff) * 1.2;
}
panel_colour_1.setTransform(panel_colour);
panel_colour_2.setTransform(panel_colour);
panel_colour_3.setTransform(panel_colour);
panel_colour_4.setTransform(panel_colour);
baddie_colour_1.setTransform(baddie_colour);
baddie_colour_2.setTransform(baddie_colour);
baddie_colour_3.setTransform(baddie_colour);
baddie_colour_4.setTransform(baddie_colour);
baddie_b_colour_1.setTransform(baddie_b_colour);
baddie_b_colour_2.setTransform(baddie_b_colour);
baddie_b_colour_3.setTransform(baddie_b_colour);
baddie_b_colour_4.setTransform(baddie_b_colour);
if (end_message_fade_up == true) {
if (attack_button._visible == true) {
hideAttackButtons();
}
if (f18309233_flag == 0) {
view_5._x = 0;
view_5._y = 0;
f18309233_flag = 1;
}
top_right_disks._visible = false;
health_green._visible = false;
health_amber._visible = false;
health_red._visible = false;
health_cyborg._visible = false;
HP_cy10._visible = false;
cyborg_shield_bar._visible = false;
cyborg_shield_info_box._visible = false;
view_6_turn_cam_180_trigger._alpha = 0;
keys_active = false;
end_message._alpha = end_message._alpha + 10;
if (end_message._alpha > 100) {
end_message._alpha = 100;
}
end_message._y = end_message._y - 0.2;
if (end_message._y <= 80) {
end_message._y = 80;
end_ok_button._visible = true;
end_message_fade_up = false;
}
}
end_ok_button.onRelease = function () {
end_message_fade_down = true;
end_ok_button._visible = false;
};
if (end_message_fade_down == true) {
if (attack_button._visible == true) {
hideAttackButtons();
}
top_right_disks._visible = false;
keys_active = false;
end_message._alpha = end_message._alpha - 5;
if (end_message._alpha < 0) {
credits_fade = true;
end_message._alpha = 0;
}
}
if (credits_fade == true) {
if (attack_button._visible == true) {
hideAttackButtons();
}
top_right_disks._visible = false;
if (credits_fade_flag == 0) {
credits_a._alpha = 0;
credits_b._alpha = 0;
credits_a._visible = true;
credits_b._visible = true;
credits_fade_flag = 1;
} else if (credits_fade_flag == 1) {
credits_a._alpha = credits_a._alpha + 1;
if (credits_a._alpha >= 150) {
credits_fade_flag = 2;
}
} else if (credits_fade_flag == 2) {
credits_a._alpha = credits_a._alpha - 1;
if (credits_a._alpha < 0) {
credits_fade_flag = 3;
}
} else if (credits_fade_flag == 3) {
credits_b._alpha = credits_b._alpha + 1;
if (credits_b._alpha >= 150) {
credits_fade_flag = 4;
}
} else if (credits_fade_flag == 4) {
credits_b._alpha = credits_b._alpha - 1;
if (credits_b._alpha < 0) {
credits_fade_flag = 5;
}
} else if (credits_fade_flag == 5) {
large_restart_label._visible = true;
credits_fade_flag = 6;
}
}
if (start_message_fade_up == true) {
start_message._alpha = start_message._alpha + 2;
if (start_message._alpha >= 220) {
start_message._alpha = 220;
blackboard_fade_down = true;
start_message_fade_up = false;
}
}
if (start_message_fade_down == true) {
start_message._alpha = start_message._alpha - 5;
if (start_message._alpha <= 0) {
start_message._alpha = 0;
showMessage = false;
fade_in_near_cam_message = true;
start_message_fade_down = false;
}
}
if (blackboard_fade_up == true) {
if (blackboard_fade_up_flag == 0) {
blackboard._alpha = -250;
blackboard_fade_up_flag = 1;
}
blackboard._alpha = blackboard._alpha + 2;
if (blackboard._alpha >= 100) {
blackboard._alpha = 100;
thor_game_fin = true;
blackboard_fade_up = false;
}
}
if (blackboard_fade_down == true) {
blackboard._alpha = blackboard._alpha - 2;
if (blackboard._alpha <= 0) {
blackboard._alpha = 0;
start_message_fade_down = true;
blackboard_fade_down = false;
}
}
if (collect_object_view_used._visible == true) {
object_view._visible = true;
} else {
object_view._visible = false;
}
if (view_2._visible == true) {
view_2_object._visible = false;
} else {
view_2_object._visible = false;
}
if (view_3._visible == false) {
view_3_ahead_cha._visible = false;
} else if (view_3._visible == true) {
view_3_ahead_cha._visible = true;
}
if (view_4._visible == false) {
dynamic_blood_active = false;
} else if (view_4._visible == true) {
dynamic_blood_active = true;
}
if (view_5._visible == false) {
view_5_ahead_cha._visible = false;
} else if (view_5._visible == true) {
view_5_ahead_cha._visible = true;
}
if (view_6._visible == false) {
dynamic_blood_active_b = false;
} else if (view_6._visible == true) {
dynamic_blood_active_b = true;
}
if (view_6._visible == false) {
view_6_ahead_cha._visible = false;
view_6_behind_cha._visible = false;
} else if (view_6._visible == true) {
}
if (character_stand_n._xscale < 40) {
moveCharacterCentre();
}
if (view_1._visible == true) {
if (spoken_to_cy21 == true) {
}
} else if (view_1._visible == false) {
cy_standing_animation_active = false;
}
if (character_damaged_fade == true) {
if (view_3._visible == true) {
cha_x_offset = view3EntryAPosX - (character_stand_n._width / 2);
diff = 316 - view3EntryAPosY;
cha_y_offset = 140 + (diff / 2);
} else if (view_5._visible == true) {
cha_x_offset = view5EntryAPosX - (character_stand_n._width / 2);
diff = 316 - view5EntryAPosY;
cha_y_offset = 140 + (diff / 2);
}
stopTheAnimation = 1;
if ((trans.rb >= 180) and (trans.rb < 210)) {
} else if ((trans.rb >= 0) and (trans.rb < 180)) {
}
if (trans.rb <= 0) {
trans.rb = 0;
character_damaged_fade = false;
}
}
if (mc_wind_sound_fade_down._visible == true) {
windSoundVolume = windSoundVolume - 4;
if (windSoundVolume <= 35) {
windSoundVolume = 35;
mc_wind_sound_fade_down._visible = false;
}
}
if (mc_wind_sound_fade_up._visible == true) {
windSoundVolume = windSoundVolume + 4;
if (windSoundVolume >= 100) {
windSoundVolume = 100;
mc_wind_sound_fade_up._visible = false;
}
}
if (wind_sound_pan_centre_to_right == true) {
windSoundPan = windSoundPan + 4;
if (windSoundPan >= 100) {
windSoundPan = 100;
wind_sound_pan_centre_to_right = false;
}
}
if (wind_sound_pan_right_to_centre == true) {
windSoundPan = windSoundPan - 4;
if (windSoundPan <= 0) {
windSoundPan = 0;
wind_sound_pan_right_to_centre = false;
}
}
cyborgFootstepVolume = Math.pow(character_stand_n._xscale, 2) / 500;
s_wind_sound.setVolume(windSoundVolume);
s_wind_sound.setPan(windSoundPan);
s_shot_sound.setVolume(shotSoundVolume);
s_cyborg_footstep.setVolume(cyborgFootstepVolume);
character_ray_n._x = _root._xmouse;
character_ray_n._y = _root._ymouse;
character_ray_e._x = _root._xmouse;
character_ray_e._y = _root._ymouse;
character_ray_s._x = _root._xmouse;
character_ray_s._y = _root._ymouse;
character_ray_w._x = _root._xmouse;
character_ray_w._y = _root._ymouse;
crosshair._x = _root._xmouse;
crosshair._y = _root._ymouse;
white_targeted_icon._x = _root._xmouse;
white_targeted_icon._y = _root._ymouse;
character_shadow._xscale = character_stand_n._xscale;
character_shadow._yscale = character_stand_n._yscale;
character_collision_point._xscale = character_stand_n._xscale;
character_collision_point._yscale = character_stand_n._yscale;
if (gun_fireing == false) {
gun_fireing_flag = 0;
plasma_ball._visible = false;
plasma_ball.position = character_stand_n.position;
if (forward_animation == false) {
if (character_facing == "n") {
plasmaball_is_following_baddie = false;
plasma_ball_position = "n";
}
}
if (backward_animation == false) {
if (character_facing == "s") {
plasmaball_is_following_baddie = false;
plasma_ball_position = "s";
}
}
if (left_animation == false) {
if (character_facing == "w") {
plasmaball_is_following_baddie = false;
plasma_ball_position = "e";
}
}
if (right_animation == false) {
if (character_facing == "e") {
plasmaball_is_following_baddie = false;
plasma_ball_position = "w";
}
}
if (forward_animation == true) {
plasma_ball_position = "n";
} else if (backward_animation == true) {
plasma_ball_position = "s";
} else if (left_animation == true) {
plasma_ball_position = "e";
} else if (right_animation == true) {
plasma_ball_position = "w";
}
} else if (gun_fireing == true) {
if (plasma_gun_charge >= plasma_gun_charge_time) {
if (thor_baddie_killed == false) {
if (gamePaused == false) {
} else if (gamePaused == true) {
plasma_ball._visible = false;
}
} else if (thor_baddie_killed == true) {
if (gamePaused == false) {
} else if (gamePaused == true) {
plasma_ball._visible = false;
}
}
if (baddie_targeted == true) {
if (fireing_timer_2 <= fireing_timer_2_amount) {
plasma_ball._visible = false;
start_plasma_ball._visible = false;
plasma_anisotropic_reflection._visible = false;
} else if (fireing_timer_2 > fireing_timer_2_amount) {
if (gun_fireing_flag == 0) {
plasmashot_text_mc.plasmashot_text = plasmashot_text_mc.plasmashot_text - 1;
gun_fireing_flag = 1;
}
plasma_anisotropic_reflection._visible = false;
start_plasma_ball._visible = false;
plasma_ball_position = "fireing";
plasmaball_is_following_baddie = true;
}
} else if (baddie_targeted == false) {
if (gun_fireing_flag == 0) {
plasmaball_targeter._x = _root._xmouse;
plasmaball_targeter._y = _root._ymouse;
dist_plasmaball_targeter_to_view_1_x = plasmaball_targeter._x - view_1._x;
dist_plasmaball_targeter_to_view_1_y = plasmaball_targeter._y - view_1._y;
plasmashot_text_mc.plasmashot_text = plasmashot_text_mc.plasmashot_text - 1;
start_plasma_ball_timer_active = true;
if (view_4._visible == true) {
} else if (view_6._visible == true) {
_root.s_shot_sound.start(0, 1);
} else if (view_1._visible == true) {
_root.s_shot_sound.start(0, 1);
}
hit_cam_shake = true;
gun_fireing_flag = 1;
}
fireing_timer_2 = 0;
if (reset_plasmaball_position == true) {
plasma_ball_x_offset = start_plasma_ball._x - view_1._x;
plasma_ball_y_offset = 266;
plasma_ball._xscale = 100;
plasma_ball._yscale = 100;
reset_plasmaball_position = false;
}
plasma_ball._x = view_1._x + plasma_ball_x_offset;
plasma_ball._y = view_1._y + plasma_ball_y_offset;
plasma_ball_speed = 1.9;
if (plasma_ball._x > plasmaball_targeter._x) {
plasma_ball_x_offset = plasma_ball_x_offset - (((plasma_ball._x - plasmaball_targeter._x) / plasma_ball_speed) * frameRateDiff);
} else if (plasma_ball._x < plasmaball_targeter._x) {
plasma_ball_x_offset = plasma_ball_x_offset + (((plasmaball_targeter._x - plasma_ball._x) / plasma_ball_speed) * frameRateDiff);
}
if (plasma_ball._y > plasmaball_targeter._y) {
plasma_ball_y_offset = plasma_ball_y_offset - (((plasma_ball._y - plasmaball_targeter._y) / plasma_ball_speed) * frameRateDiff);
} else if (plasma_ball._y < plasmaball_targeter._y) {
plasma_ball_y_offset = plasma_ball_y_offset + (((plasmaball_targeter._y - plasma_ball._y) / plasma_ball_speed) * frameRateDiff);
}
plasma_ball._xscale = plasma_ball._xscale - 10.8;
plasma_ball._yscale = plasma_ball._yscale - 10.8;
if (_root.plasmaball_targeter.hitTest(plasma_ball._x, plasma_ball._y, true)) {
plasma_gun_charge = 0;
if (plasmashot_text_mc.plasmashot_text <= 0) {
out_of_bullets = true;
}
plasma_ball._x = 1000;
plasma_ball._y = 1000;
if (character_hit_ready_counter > 10) {
if (view_4_ahead_cha.bullet_hole_hit_area.hitTest(_xmouse, _ymouse, true)) {
if (render_displacement_active == false) {
view_4_ahead_view_bitmap.copyPixels(melt_hole_bitmap, new flash.geom.Rectangle(0, 0, 64, 64), new flash.geom.Point((crosshair._x - view_4_ahead_cha._x) - 32, (crosshair._y - view_4_ahead_cha._y) - 32), melt_hole_alpha_bitmap, new flash.geom.Point(0, 0), true);
} else if (render_displacement_active == true) {
view_4_ahead_view_bitmap.copyPixels(melt_hole_bitmap, new flash.geom.Rectangle(0, 0, 64, 64), new flash.geom.Point((crosshair._x - view_4_ahead_cha._x) - (32 + (crosshair._y / 33)), (crosshair._y - view_4_ahead_cha._y) - (32 + (crosshair._y / 33))), melt_hole_alpha_bitmap, new flash.geom.Point(0, 0), true);
}
}
}
reset_plasmaball_position = true;
plasmaball_hits_targeter = true;
gun_fireing_flag = 0;
} else {
plasmaball_hits_targeter = false;
}
}
}
}
if (gun_fireing == false) {
start_plasma_ball._x = 355;
start_plasma_ball._y = start_plasma_ball._y + (((dummy_1._y - start_plasma_ball._y) + 264) / interpolate_speed);
plasma_ball._xscale = 100;
plasma_ball._yscale = 100;
}
if (view_3_baddie_active == true) {
if (baddie_shot == 4) {
baddie_1_killed = true;
if (shot_4_reset_flag == 0) {
baddie_alpha_0_flag = 0;
baddie_shot_flag_2 = 0;
shot_4_reset_flag = 1;
}
baddie_move_timer = -30;
baddie_walk_direction = "stop";
baddie_targeted = false;
if (baddie_shot_flag_2 == 0) {
baddie_fade = true;
view_3_baddies_scanned = view_3_baddies_scanned - 1;
baddie_shot_flag_2 = 1;
}
} else if (baddie_used >= 4) {
all_baddies_killed = true;
baddie_x_offset = -50000;
}
if (baddie_fade == true) {
baddie_targeted = false;
gun_fireing_flag = 1;
baddie_n_walk_1._alpha = baddie_n_walk_1._alpha - 40;
baddie_e_walk_1._alpha = baddie_e_walk_1._alpha - 40;
baddie_s_walk_1._alpha = baddie_s_walk_1._alpha - 40;
baddie_w_walk_1._alpha = baddie_w_walk_1._alpha - 40;
if (baddie_n_walk_1._alpha <= 0) {
baddie_n_walk_1._alpha = 0;
if (all_baddies_killed == false) {
if (baddie_alpha_0_flag == 0) {
gun_fireing_flag = 0;
baddie_visible = true;
baddie_fade = false;
baddie_shot = 0;
baddie_shot_flag_2 = 0;
shot_4_reset_flag = 0;
baddie_x_offset = 33340;
baddie_y_offset = 33320;
baddie_1_killed = false;
baddie_used = baddie_used + 1;
baddie_alpha_0_flag = 1;
}
} else if (all_baddies_killed == true) {
baddie_visible = false;
baddie_fade = false;
}
}
}
if (baddie_fade == false) {
if (baddie_used < 4) {
baddie_n_walk_1._alpha = 100;
baddie_e_walk_1._alpha = 100;
baddie_s_walk_1._alpha = 100;
baddie_w_walk_1._alpha = 100;
}
}
} else if (view_5_baddie_active == true) {
if (view_5_baddie_shot == 4) {
view_5_baddie_1_killed = true;
if (view_5_shot_4_reset_flag == 0) {
view_5_baddie_alpha_0_flag = 0;
view_5_baddie_shot_flag_2 = 0;
view_5_shot_4_reset_flag = 1;
}
baddie_move_timer = -30;
baddie_walk_direction = "stop";
baddie_targeted = false;
if (view_5_baddie_shot_flag_2 == 0) {
view_5_baddie_fade = true;
view_5_baddies_scanned = view_5_baddies_scanned - 1;
view_5_baddie_shot_flag_2 = 1;
}
} else if (view_5_baddie_used >= 4) {
view_5_all_baddies_killed = true;
baddie_x_offset = -50000;
}
if (view_5_baddie_fade == true) {
baddie_targeted = false;
gun_fireing_flag = 1;
baddie_n_walk_1._alpha = baddie_n_walk_1._alpha - 40;
baddie_e_walk_1._alpha = baddie_e_walk_1._alpha - 40;
baddie_s_walk_1._alpha = baddie_s_walk_1._alpha - 40;
baddie_w_walk_1._alpha = baddie_w_walk_1._alpha - 40;
if (baddie_n_walk_1._alpha <= 0) {
baddie_n_walk_1._alpha = 0;
if (view_5_all_baddies_killed == false) {
if (view_5_baddie_alpha_0_flag == 0) {
gun_fireing_flag = 0;
baddie_visible = true;
view_5_baddie_fade = false;
view_5_baddie_shot = 0;
view_5_baddie_shot_flag_2 = 0;
view_5_shot_4_reset_flag = 0;
baddie_x_offset = 2340;
baddie_y_offset = 320;
view_5_baddie_1_killed = false;
view_5_baddie_used = view_5_baddie_used + 1;
view_5_baddie_alpha_0_flag = 1;
}
} else if (view_5_all_baddies_killed == true) {
baddie_visible = false;
targeted_text_mc._visible = false;
targeted_icon._visible = false;
}
}
}
if (view_5_baddie_fade == false) {
if (view_5_baddie_used < 4) {
baddie_n_walk_1._alpha = 100;
baddie_e_walk_1._alpha = 100;
baddie_s_walk_1._alpha = 100;
baddie_w_walk_1._alpha = 100;
}
}
}
if (object_fade == true) {
active_object_view._alpha = active_object_view._alpha - 8;
if (active_object_view._alpha <= 0) {
active_object_view._alpha = 0;
object_fade = false;
}
}
if (object_fade_up == true) {
active_object_view._alpha = active_object_view._alpha + 8;
if (active_object_view._alpha >= 100) {
active_object_view._alpha = 100;
object_fade_up = false;
}
}
dist_view_to_cha = plasma_ball._y - view_1._y;
dist_view_to_baddie = baddie_n_walk_1._y - view_1._y;
baddie_n_walk_1._xscale = Math.pow(dist_view_to_baddie, 2) / 2000;
baddie_n_walk_1._yscale = Math.pow(dist_view_to_baddie, 2) / 2000;
if (baddie_targeted == false) {
if (plasmaball_is_following_baddie == false) {
} else if (plasmaball_is_following_baddie == true) {
plasma_ball._visible = false;
}
} else if (baddie_targeted == true) {
if (baddie_n_walk_1._y > character_collision_point._y) {
} else if (baddie_n_walk_1._y < character_collision_point._y) {
}
}
if (plasma_ball._xscale < 0) {
plasma_ball._xscale = 0;
}
if (plasma_ball._yscale < 0) {
plasma_ball._yscale = 0;
}
cha_walk_1._xscale = character_stand_n._xscale;
cha_walk_1._yscale = character_stand_n._yscale;
cha_walk_2._xscale = character_stand_n._xscale;
cha_walk_2._yscale = character_stand_n._yscale;
cha_walk_3._xscale = character_stand_n._xscale;
cha_walk_3._yscale = character_stand_n._yscale;
cha_walk_4._xscale = character_stand_n._xscale;
cha_walk_4._yscale = character_stand_n._yscale;
cha_walk_5._xscale = character_stand_n._xscale;
cha_walk_5._yscale = character_stand_n._yscale;
cha_walk_6._xscale = character_stand_n._xscale;
cha_walk_6._yscale = character_stand_n._yscale;
cha_walk_7._xscale = character_stand_n._xscale;
cha_walk_7._yscale = character_stand_n._yscale;
cha_walk_8._xscale = character_stand_n._xscale;
cha_walk_8._yscale = character_stand_n._yscale;
cha_walk_9._xscale = character_stand_n._xscale;
cha_walk_9._yscale = character_stand_n._yscale;
cha_walk_10._xscale = character_stand_n._xscale;
cha_walk_10._yscale = character_stand_n._yscale;
cha_walk_11._xscale = character_stand_n._xscale;
cha_walk_11._yscale = character_stand_n._yscale;
cha_walk_12._xscale = character_stand_n._xscale;
cha_walk_12._yscale = character_stand_n._yscale;
cha_walk_13._xscale = character_stand_n._xscale;
cha_walk_13._yscale = character_stand_n._yscale;
cha_walk_14._xscale = character_stand_n._xscale;
cha_walk_14._yscale = character_stand_n._yscale;
cha_walk_15._xscale = character_stand_n._xscale;
cha_walk_15._yscale = character_stand_n._yscale;
cha_walk_16._xscale = character_stand_n._xscale;
cha_walk_16._yscale = character_stand_n._yscale;
cha_walk_17._xscale = character_stand_n._xscale;
cha_walk_17._yscale = character_stand_n._yscale;
cha_walk_18._xscale = character_stand_n._xscale;
cha_walk_18._yscale = character_stand_n._yscale;
facing_s_walk_1._xscale = character_stand_n._xscale;
facing_s_walk_1._yscale = character_stand_n._yscale;
facing_s_walk_2._xscale = character_stand_n._xscale;
facing_s_walk_2._yscale = character_stand_n._yscale;
facing_s_walk_3._xscale = character_stand_n._xscale;
facing_s_walk_3._yscale = character_stand_n._yscale;
facing_s_walk_4._xscale = character_stand_n._xscale;
facing_s_walk_4._yscale = character_stand_n._yscale;
facing_s_walk_5._xscale = character_stand_n._xscale;
facing_s_walk_5._yscale = character_stand_n._yscale;
facing_s_walk_6._xscale = character_stand_n._xscale;
facing_s_walk_6._yscale = character_stand_n._yscale;
facing_s_walk_7._xscale = character_stand_n._xscale;
facing_s_walk_7._yscale = character_stand_n._yscale;
facing_s_walk_8._xscale = character_stand_n._xscale;
facing_s_walk_8._yscale = character_stand_n._yscale;
facing_s_walk_9._xscale = character_stand_n._xscale;
facing_s_walk_9._yscale = character_stand_n._yscale;
facing_s_walk_10._xscale = character_stand_n._xscale;
facing_s_walk_10._yscale = character_stand_n._yscale;
facing_s_walk_11._xscale = character_stand_n._xscale;
facing_s_walk_11._yscale = character_stand_n._yscale;
facing_s_walk_12._xscale = character_stand_n._xscale;
facing_s_walk_12._yscale = character_stand_n._yscale;
facing_s_walk_13._xscale = character_stand_n._xscale;
facing_s_walk_13._yscale = character_stand_n._yscale;
facing_s_walk_14._xscale = character_stand_n._xscale;
facing_s_walk_14._yscale = character_stand_n._yscale;
facing_s_walk_15._xscale = character_stand_n._xscale;
facing_s_walk_15._yscale = character_stand_n._yscale;
facing_s_walk_16._xscale = character_stand_n._xscale;
facing_s_walk_16._yscale = character_stand_n._yscale;
facing_s_walk_17._xscale = character_stand_n._xscale;
facing_s_walk_17._yscale = character_stand_n._yscale;
facing_s_walk_18._xscale = character_stand_n._xscale;
facing_s_walk_18._yscale = character_stand_n._yscale;
facing_e_walk_1._xscale = character_stand_n._xscale;
facing_e_walk_1._yscale = character_stand_n._yscale;
facing_e_walk_2._xscale = character_stand_n._xscale;
facing_e_walk_2._yscale = character_stand_n._yscale;
facing_e_walk_3._xscale = character_stand_n._xscale;
facing_e_walk_3._yscale = character_stand_n._yscale;
facing_e_walk_4._xscale = character_stand_n._xscale;
facing_e_walk_4._yscale = character_stand_n._yscale;
facing_e_walk_5._xscale = character_stand_n._xscale;
facing_e_walk_5._yscale = character_stand_n._yscale;
facing_e_walk_6._xscale = character_stand_n._xscale;
facing_e_walk_6._yscale = character_stand_n._yscale;
facing_e_walk_7._xscale = character_stand_n._xscale;
facing_e_walk_7._yscale = character_stand_n._yscale;
facing_e_walk_8._xscale = character_stand_n._xscale;
facing_e_walk_8._yscale = character_stand_n._yscale;
facing_e_walk_9._xscale = character_stand_n._xscale;
facing_e_walk_9._yscale = character_stand_n._yscale;
facing_e_walk_10._xscale = character_stand_n._xscale;
facing_e_walk_10._yscale = character_stand_n._yscale;
facing_e_walk_11._xscale = character_stand_n._xscale;
facing_e_walk_11._yscale = character_stand_n._yscale;
facing_e_walk_12._xscale = character_stand_n._xscale;
facing_e_walk_12._yscale = character_stand_n._yscale;
facing_e_walk_13._xscale = character_stand_n._xscale;
facing_e_walk_13._yscale = character_stand_n._yscale;
facing_e_walk_14._xscale = character_stand_n._xscale;
facing_e_walk_14._yscale = character_stand_n._yscale;
facing_e_walk_15._xscale = character_stand_n._xscale;
facing_e_walk_15._yscale = character_stand_n._yscale;
facing_e_walk_16._xscale = character_stand_n._xscale;
facing_e_walk_16._yscale = character_stand_n._yscale;
facing_e_walk_17._xscale = character_stand_n._xscale;
facing_e_walk_17._yscale = character_stand_n._yscale;
facing_e_walk_18._xscale = character_stand_n._xscale;
facing_e_walk_18._yscale = character_stand_n._yscale;
facing_w_walk_1._xscale = character_stand_n._xscale;
facing_w_walk_1._yscale = character_stand_n._yscale;
facing_w_walk_2._xscale = character_stand_n._xscale;
facing_w_walk_2._yscale = character_stand_n._yscale;
facing_w_walk_3._xscale = character_stand_n._xscale;
facing_w_walk_3._yscale = character_stand_n._yscale;
facing_w_walk_4._xscale = character_stand_n._xscale;
facing_w_walk_4._yscale = character_stand_n._yscale;
facing_w_walk_5._xscale = character_stand_n._xscale;
facing_w_walk_5._yscale = character_stand_n._yscale;
facing_w_walk_6._xscale = character_stand_n._xscale;
facing_w_walk_6._yscale = character_stand_n._yscale;
facing_w_walk_7._xscale = character_stand_n._xscale;
facing_w_walk_7._yscale = character_stand_n._yscale;
facing_w_walk_8._xscale = character_stand_n._xscale;
facing_w_walk_8._yscale = character_stand_n._yscale;
facing_w_walk_9._xscale = character_stand_n._xscale;
facing_w_walk_9._yscale = character_stand_n._yscale;
facing_w_walk_10._xscale = character_stand_n._xscale;
facing_w_walk_10._yscale = character_stand_n._yscale;
facing_w_walk_11._xscale = character_stand_n._xscale;
facing_w_walk_11._yscale = character_stand_n._yscale;
facing_w_walk_12._xscale = character_stand_n._xscale;
facing_w_walk_12._yscale = character_stand_n._yscale;
facing_w_walk_13._xscale = character_stand_n._xscale;
facing_w_walk_13._yscale = character_stand_n._yscale;
facing_w_walk_14._xscale = character_stand_n._xscale;
facing_w_walk_14._yscale = character_stand_n._yscale;
facing_w_walk_15._xscale = character_stand_n._xscale;
facing_w_walk_15._yscale = character_stand_n._yscale;
facing_w_walk_16._xscale = character_stand_n._xscale;
facing_w_walk_16._yscale = character_stand_n._yscale;
facing_w_walk_17._xscale = character_stand_n._xscale;
facing_w_walk_17._yscale = character_stand_n._yscale;
facing_w_walk_18._xscale = character_stand_n._xscale;
facing_w_walk_18._yscale = character_stand_n._yscale;
character_stand_e._xscale = character_stand_n._xscale;
character_stand_e._yscale = character_stand_n._yscale;
character_stand_s._xscale = character_stand_n._xscale;
character_stand_s._yscale = character_stand_n._yscale;
character_stand_w._xscale = character_stand_n._xscale;
character_stand_w._yscale = character_stand_n._yscale;
if (view_1._visible == true) {
if (show_view_1_once_flag == 0) {
plasma_ball_explosion._alpha = 0;
plasma_ball_explosion._x = 200000 /* 0x030D40 */;
plasma_ball_explosion._y = 200000 /* 0x030D40 */;
show_view_1_once_flag = 1;
}
i_am_near_view_2_trigger_a = false;
rain_particles_active = view_1_rain_particles_active;
wind = -30;
smoke_bit_particles_active = view_1_smoke_bit_particles_active;
steam_particles_active = view_1_steam_particles_active;
water_particles_active = view_1_water_particles_active;
collide_object_active = view_1_collision_object_active;
air_bar_active = view_1_air_bar_active;
if (view_1_rain_particles_active == true) {
mist._visible = true;
} else {
mist._visible = false;
}
if (_root.view_1_turn_cam_180_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_1_turn_cam_180_trigger._visible = true;
left_key_active = false;
right_key_active = false;
if (targeted_text_mc._visible == false) {
camera_icon_180._visible = true;
turn_cam_text_180._visible = true;
} else if (targeted_text_mc._visible == true) {
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
}
i_am_near_view_1_turn_cam_180_trigger = true;
} else {
view_1_turn_cam_180_trigger._visible = false;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_1_turn_cam_180_trigger = false;
}
if (_root.view_1_trigger_a.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_1_trigger_a._visible = true;
set_label = view_1_tr_a_label;
set_label_flag_v1ta = 0;
trigger_used = "top";
setLabel = true;
i_am_near_view_1_trigger_a = true;
} else {
if (set_label_flag_v1ta == 0) {
setLabel = false;
set_label_flag_v1ta = 1;
}
view_1_trigger_a._visible = false;
camera_icon_t._visible = false;
turn_cam_text_t._visible = false;
use_hand_t._visible = false;
use_text_t._visible = false;
i_am_near_view_1_trigger_a = false;
}
if (_root.view_1_trigger_b.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_1_trigger_b._visible = true;
set_label = view_1_tr_b_label;
set_label_flag_v1tb = 0;
trigger_used = "bottom";
setLabel = true;
i_am_near_view_1_trigger_b = true;
} else {
if (set_label_flag_v1tb == 0) {
setLabel = false;
set_label_flag_v1tb = 1;
}
view_1_trigger_b._visible = false;
camera_icon_b._visible = false;
turn_cam_text_b._visible = false;
use_hand_b._visible = false;
use_text_b._visible = false;
i_am_near_view_1_trigger_b = false;
}
if (_root.view_1_trigger_c.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_1_trigger_c._visible = true;
set_label = view_1_tr_c_label;
set_label_flag_v1tc = 0;
trigger_used = "left";
setLabel = true;
i_am_near_view_1_trigger_c = true;
} else {
if (set_label_flag_v1tc == 0) {
setLabel = false;
set_label_flag_v1tc = 1;
}
view_1_trigger_c._visible = false;
camera_icon_l._visible = false;
turn_cam_text_l._visible = false;
use_hand_l._visible = false;
use_text_l._visible = false;
i_am_near_view_1_trigger_c = false;
}
if (_root.view_1_trigger_d.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_1_trigger_d._visible = true;
set_label = view_1_tr_d_label;
set_label_flag_v1td = 0;
trigger_used = "right";
setLabel = true;
i_am_near_view_1_trigger_d = true;
} else {
if (set_label_flag_v1td == 0) {
setLabel = false;
set_label_flag_v1td = 1;
}
view_1_trigger_d._visible = false;
camera_icon_r._visible = false;
turn_cam_text_r._visible = false;
use_hand_r._visible = false;
use_text_r._visible = false;
i_am_near_view_1_trigger_d = false;
}
if (_root.view_1_depth_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_1_ahead_cha._visible = true;
} else {
view_1_ahead_cha._visible = false;
}
if (_root.view_1_collision.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_n_hit = true;
checkKeys();
} else {
cha_collision_point_n_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_1_collision.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_e_hit = true;
checkKeys();
} else {
cha_collision_point_e_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_1_collision.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
if (view_1_turn_cam_180_trigger._visible == true) {
stopTheAnimation = 1;
cha_walk_active = false;
}
cha_collision_point_s_hit = true;
checkKeys();
} else {
cha_collision_point_s_hit = false;
}
if (_root.view_1_collision.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
cha_collision_point_w_hit = true;
checkKeys();
} else {
cha_collision_point_w_hit = false;
}
} else {
view_1_ahead_cha._visible = false;
}
if (view_2._visible == true) {
rain_particles_active = view_2_rain_particles_active;
wind = 30;
view_1_turn_cam_180_trigger._visible = false;
smoke_bit_particles_active = view_2_smoke_bit_particles_active;
steam_particles_active = view_2_steam_particles_active;
water_particles_active = view_2_water_particles_active;
collide_object_active = view_2_collision_object_active;
air_bar_active = view_2_air_bar_active;
particle_overlay_active = true;
if (view_2_rain_particles_active == true) {
mist._visible = true;
} else {
mist._visible = false;
}
if (_root.view_2_turn_cam_180_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_2_turn_cam_180_trigger._visible = true;
left_key_active = false;
right_key_active = false;
if (targeted_text_mc._visible == false) {
camera_icon_180._visible = true;
turn_cam_text_180._visible = true;
} else if (targeted_text_mc._visible == true) {
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
}
i_am_near_view_2_turn_cam_180_trigger = true;
} else {
view_2_turn_cam_180_trigger._visible = false;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_2_turn_cam_180_trigger = false;
}
i_am_near_3_show_2_trigger = false;
if (_root.view_2_collision.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_n_hit = true;
checkKeys();
} else {
cha_collision_point_n_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_2_collision.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_e_hit = true;
checkKeys();
} else {
cha_collision_point_e_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_2_collision.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
if (view_2_turn_cam_180_trigger._visible == true) {
stopTheAnimation = 1;
cha_walk_active = false;
}
cha_collision_point_s_hit = true;
checkKeys();
} else {
cha_collision_point_s_hit = false;
}
if (_root.view_2_collision.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
cha_collision_point_w_hit = true;
checkKeys();
} else {
cha_collision_point_w_hit = false;
}
if (_root.view_2_trigger_a.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (f312081214_flag == 0) {
view_2_trigger_a._visible = true;
set_label = view_2_tr_a_label;
set_label_flag_v2ta = 0;
trigger_used = "top";
setLabel = true;
i_am_near_view_2_trigger_a = true;
f312081214_flag = 1;
}
} else {
if (set_label_flag_v2ta == 0) {
setLabel = false;
set_label_flag_v2ta = 1;
}
view_2_trigger_a._visible = false;
camera_icon_t._visible = false;
turn_cam_text_t._visible = false;
use_hand_t._visible = false;
use_text_t._visible = false;
if (map_active == false) {
f312081214_flag = 0;
}
i_am_near_view_2_trigger_a = false;
}
if (_root.view_2_trigger_b.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_2_trigger_b._visible = true;
set_label = view_2_tr_b_label;
set_label_flag_v2tb = 0;
trigger_used = "bottom";
setLabel = true;
i_am_near_view_2_trigger_b = true;
} else {
if (set_label_flag_v2tb == 0) {
setLabel = false;
set_label_flag_v2tb = 1;
}
view_2_trigger_b._visible = false;
camera_icon_b._visible = false;
turn_cam_text_b._visible = false;
use_hand_b._visible = false;
use_text_b._visible = false;
i_am_near_view_2_trigger_b = false;
}
if (_root.view_2_trigger_c.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_2_trigger_c._visible = true;
set_label = view_2_tr_c_label;
set_label_flag_v2tc = 0;
trigger_used = "left";
setLabel = true;
i_am_near_view_2_trigger_c = true;
} else {
if (set_label_flag_v2tc == 0) {
setLabel = false;
set_label_flag_v2tc = 1;
}
view_2_trigger_c._visible = false;
camera_icon_l._visible = false;
turn_cam_text_l._visible = false;
use_hand_l._visible = false;
use_text_l._visible = false;
i_am_near_view_2_trigger_c = false;
}
if (_root.view_2_trigger_d.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_2_trigger_d._visible = true;
set_label = view_2_tr_d_label;
set_label_flag_v2td = 0;
trigger_used = "right";
setLabel = true;
i_am_near_view_2_trigger_d = true;
} else {
if (set_label_flag_v2td == 0) {
setLabel = false;
set_label_flag_v2td = 1;
}
view_2_trigger_d._visible = false;
camera_icon_r._visible = false;
turn_cam_text_r._visible = false;
use_hand_r._visible = false;
use_text_r._visible = false;
i_am_near_view_2_trigger_d = false;
}
}
if (collect_object_view_used._visible == true) {
if (_root.get_object_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (objectCollected == 0) {
iAmNearObject = 1;
}
} else {
iAmNearObject = 0;
}
if (hideUseFlag == 1) {
use_hand._visible = false;
use_text_mc._visible = false;
iAmNearKeyHole = "no";
hideUseFlag = 0;
}
}
if (door_view_used._visible == true) {
if (_root.open_door_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
open_door_trigger._visible = true;
if (doorUnlocked == "no") {
use_hand._visible = true;
use_text_mc._visible = true;
iAmNearKeyHole = "yes";
i_am_near_use_door_trigger = true;
} else if (doorUnlocked == "yes") {
use_hand._visible = true;
use_text_mc._visible = true;
iAmNearKeyHole = "yes";
i_am_near_use_door_trigger = true;
}
} else {
open_door_trigger._visible = false;
use_hand._visible = false;
use_text_mc._visible = false;
iAmNearKeyHole = "no";
i_am_near_use_door_trigger = false;
}
}
if (view_3._visible == true) {
rain_particles_active = view_3_rain_particles_active;
wind = 30;
smoke_bit_particles_active = view_3_smoke_bit_particles_active;
steam_particles_active = view_3_steam_particles_active;
water_particles_active = view_3_water_particles_active;
collide_object_active = view_3_collision_object_active;
air_bar_active = view_3_air_bar_active;
if (view_3_rain_particles_active == true) {
mist._visible = true;
} else {
mist._visible = false;
}
if (_root.view_3_turn_cam_180_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_3_turn_cam_180_trigger._visible = true;
left_key_active = false;
right_key_active = false;
if (targeted_text_mc._visible == false) {
camera_icon_180._visible = true;
turn_cam_text_180._visible = true;
} else if (targeted_text_mc._visible == true) {
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
}
i_am_near_view_3_turn_cam_180_trigger = true;
} else {
view_3_turn_cam_180_trigger._visible = false;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_3_turn_cam_180_trigger = false;
}
if (_root.view_3_trigger_a.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (f211208901_flag == 0) {
view_3_trigger_a._visible = true;
set_label = view_3_tr_a_label;
set_label_flag_v3ta = 0;
trigger_used = "top";
setLabel = true;
i_am_near_view_3_trigger_a = true;
f211208901_flag = 1;
}
} else {
if (set_label_flag_v3ta == 0) {
setLabel = false;
set_label_flag_v3ta = 1;
}
view_3_trigger_a._visible = false;
camera_icon_t._visible = false;
turn_cam_text_t._visible = false;
use_hand_t._visible = false;
use_text_t._visible = false;
if (map_active == false) {
f211208901_flag = 0;
}
i_am_near_view_3_trigger_a = false;
}
if (_root.view_3_trigger_b.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_3_trigger_b._visible = true;
set_label = view_3_tr_b_label;
set_label_flag_v3tb = 0;
trigger_used = "bottom";
setLabel = true;
i_am_near_view_3_trigger_b = true;
} else {
if (set_label_flag_v3tb == 0) {
setLabel = false;
set_label_flag_v3tb = 1;
}
view_3_trigger_b._visible = false;
camera_icon_b._visible = false;
turn_cam_text_b._visible = false;
use_hand_b._visible = false;
use_text_b._visible = false;
i_am_near_view_3_trigger_b = false;
}
if (_root.view_3_trigger_c.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_3_trigger_c._visible = true;
set_label = view_3_tr_c_label;
set_label_flag_v3tc = 0;
trigger_used = "left";
setLabel = true;
i_am_near_view_3_trigger_c = true;
} else {
if (set_label_flag_v3tc == 0) {
setLabel = false;
set_label_flag_v3tc = 1;
}
view_3_trigger_c._visible = false;
camera_icon_l._visible = false;
turn_cam_text_l._visible = false;
use_hand_l._visible = false;
use_text_l._visible = false;
i_am_near_view_3_trigger_c = false;
}
if (_root.view_3_trigger_d.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_3_trigger_d._visible = true;
set_label = view_3_tr_d_label;
set_label_flag_v3td = 0;
trigger_used = "right";
setLabel = true;
i_am_near_view_3_trigger_d = true;
} else {
if (set_label_flag_v3td == 0) {
setLabel = false;
set_label_flag_v3td = 1;
}
view_3_trigger_d._visible = false;
camera_icon_r._visible = false;
turn_cam_text_r._visible = false;
use_hand_r._visible = false;
use_text_r._visible = false;
i_am_near_view_3_trigger_d = false;
}
if (_root.view_3_collision.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_n_hit = true;
checkKeys();
} else {
cha_collision_point_n_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_3_collision.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_e_hit = true;
checkKeys();
} else {
cha_collision_point_e_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_3_collision.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
if (view_3_turn_cam_180_trigger._visible == true) {
stopTheAnimation = 1;
cha_walk_active = false;
}
cha_collision_point_s_hit = true;
checkKeys();
} else {
cha_collision_point_s_hit = false;
}
if (_root.view_3_collision.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
cha_collision_point_w_hit = true;
checkKeys();
} else {
cha_collision_point_w_hit = false;
}
}
if (view_4._visible == true) {
if (show_view_4_once_flag == 0) {
plasma_ball_explosion._alpha = 0;
show_view_4_once_flag = 1;
}
view_3_turn_cam_180_trigger._visible = false;
if (f261208734_flag == 0) {
f261208734_flag = 1;
}
if (render_displacement_active == true) {
}
visited_view_4 = true;
if (view_4_message_flag == 0) {
} else if (view_4_message_flag == 2) {
} else if (view_4_message_flag == 4) {
}
if ((showMessage == false) && (messageNo == 9.2)) {
if (thor_baddie_killed == false) {
thor_baddie_ui_active = true;
}
}
if (thor_baddie_killed == true) {
thor_baddie_ui_active = false;
}
rain_particles_active = view_4_rain_particles_active;
wind = 30;
smoke_bit_particles_active = view_4_smoke_bit_particles_active;
steam_particles_active = view_4_steam_particles_active;
water_particles_active = view_4_water_particles_active;
collide_object_active = view_4_collision_object_active;
air_bar_active = view_4_air_bar_active;
if (view_4_rain_particles_active == true) {
mist._visible = true;
} else {
mist._visible = false;
}
if (_root.view_4_turn_cam_180_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_4_turn_cam_180_trigger._visible = true;
left_key_active = false;
right_key_active = false;
if (targeted_text_mc._visible == false) {
camera_icon_180._visible = true;
turn_cam_text_180._visible = true;
} else if (targeted_text_mc._visible == true) {
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
}
i_am_near_view_4_turn_cam_180_trigger = true;
} else {
view_4_turn_cam_180_trigger._visible = false;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_4_turn_cam_180_trigger = false;
}
if (_root.view_4_trigger_a.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (f2212081103_flag == 0) {
view_4_trigger_a._visible = true;
set_label = view_4_tr_a_label;
set_label_flag_v4ta = 0;
trigger_used = "top";
setLabel = true;
i_am_near_view_4_trigger_a = true;
f2212081103_flag = 1;
}
} else {
if (set_label_flag_v4ta == 0) {
setLabel = false;
set_label_flag_v4ta = 1;
}
view_4_trigger_a._visible = false;
camera_icon_t._visible = false;
turn_cam_text_t._visible = false;
use_hand_t._visible = false;
use_text_t._visible = false;
if (map_active == false) {
f2212081103_flag = 0;
}
i_am_near_view_4_trigger_a = false;
aaa = 0;
}
if (_root.view_4_trigger_b.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_4_trigger_b._visible = true;
set_label = view_4_tr_b_label;
set_label_flag_v4tb = 0;
trigger_used = "bottom";
setLabel = true;
i_am_near_view_4_trigger_b = true;
} else {
if (set_label_flag_v4tb == 0) {
setLabel = false;
set_label_flag_v4tb = 1;
}
view_4_trigger_b._visible = false;
camera_icon_b._visible = false;
turn_cam_text_b._visible = false;
use_hand_b._visible = false;
use_text_b._visible = false;
i_am_near_view_4_trigger_b = false;
}
if (_root.view_4_trigger_c.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_4_trigger_c._visible = true;
set_label = view_4_tr_c_label;
set_label_flag_v4tc = 0;
trigger_used = "left";
setLabel = true;
i_am_near_view_4_trigger_c = true;
} else {
if (set_label_flag_v4tc == 0) {
setLabel = false;
set_label_flag_v4tc = 1;
}
view_4_trigger_c._visible = false;
camera_icon_l._visible = false;
turn_cam_text_l._visible = false;
use_hand_l._visible = false;
use_text_l._visible = false;
i_am_near_view_4_trigger_c = false;
}
if (_root.view_4_trigger_d.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_4_trigger_d._visible = true;
set_label = view_4_tr_d_label;
set_label_flag_v4td = 0;
trigger_used = "right";
setLabel = true;
i_am_near_view_4_trigger_d = true;
} else {
if (set_label_flag_v4td == 0) {
setLabel = false;
set_label_flag_v4td = 1;
}
view_4_trigger_d._visible = false;
camera_icon_r._visible = false;
turn_cam_text_r._visible = false;
use_hand_r._visible = false;
use_text_r._visible = false;
i_am_near_view_4_trigger_d = false;
}
if (_root.view_4_collision.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_n_hit = true;
checkKeys();
} else {
cha_collision_point_n_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_4_collision.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_e_hit = true;
checkKeys();
} else {
cha_collision_point_e_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_4_collision.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
if (view_4_turn_cam_180_trigger._visible == true) {
stopTheAnimation = 1;
cha_walk_active = false;
}
cha_collision_point_s_hit = true;
checkKeys();
} else {
cha_collision_point_s_hit = false;
}
if (_root.view_4_collision.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
cha_collision_point_w_hit = true;
checkKeys();
} else {
cha_collision_point_w_hit = false;
}
} else if (view_4._visible == false) {
}
if (view_5._visible == true) {
if (view_5_once_flag == 0) {
view_5_once_flag = 1;
}
if (show_view_5_flag == 0) {
if (boss_dead == true) {
end_message_fade_up = true;
}
baddie_2_move_timer = 0;
show_view_5_flag = 1;
}
if ((show_robot_damage == true) && (tbua_timer_b >= 700)) {
baddie_2_active = false;
}
rain_particles_active = view_5_rain_particles_active;
wind = 30;
smoke_bit_particles_active = view_5_smoke_bit_particles_active;
steam_particles_active = view_5_steam_particles_active;
water_particles_active = view_5_water_particles_active;
collide_object_active = view_5_collision_object_active;
air_bar_active = view_5_air_bar_active;
if (view_5_rain_particles_active == true) {
mist._visible = true;
} else {
mist._visible = false;
}
if (_root.view_5_turn_cam_180_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_5_turn_cam_180_trigger._visible = true;
left_key_active = false;
right_key_active = false;
if (targeted_text_mc._visible == false) {
camera_icon_180._visible = true;
turn_cam_text_180._visible = true;
} else if (targeted_text_mc._visible == true) {
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
}
i_am_near_view_5_turn_cam_180_trigger = true;
} else {
view_5_turn_cam_180_trigger._visible = false;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_5_turn_cam_180_trigger = false;
}
if (_root.view_5_trigger_a.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (f2212081108_flag == 0) {
view_5_trigger_a._visible = true;
set_label = view_5_tr_a_label;
set_label_flag_v5ta = 0;
trigger_used = "top";
setLabel = true;
i_am_near_view_5_trigger_a = true;
f2212081108_flag = 1;
}
} else {
if (set_label_flag_v5ta == 0) {
setLabel = false;
set_label_flag_v5ta = 1;
}
view_5_trigger_a._visible = false;
camera_icon_t._visible = false;
turn_cam_text_t._visible = false;
use_hand_t._visible = false;
use_text_t._visible = false;
if (map_active == false) {
f2212081108_flag = 0;
}
i_am_near_view_5_trigger_a = false;
}
if (_root.view_5_trigger_b.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_5_trigger_b._visible = true;
set_label = view_5_tr_b_label;
set_label_flag_v5tb = 0;
trigger_used = "bottom";
setLabel = true;
i_am_near_view_5_trigger_b = true;
} else {
if (set_label_flag_v5tb == 0) {
setLabel = false;
set_label_flag_v5tb = 1;
}
view_5_trigger_b._visible = false;
camera_icon_b._visible = false;
turn_cam_text_b._visible = false;
use_hand_b._visible = false;
use_text_b._visible = false;
i_am_near_view_5_trigger_b = false;
}
if (_root.view_5_trigger_c.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_5_trigger_c._visible = true;
set_label = view_5_tr_c_label;
set_label_flag_v5tc = 0;
trigger_used = "left";
setLabel = true;
i_am_near_view_5_trigger_c = true;
} else {
if (set_label_flag_v5tc == 0) {
setLabel = false;
set_label_flag_v5tc = 1;
}
view_5_trigger_c._visible = false;
camera_icon_l._visible = false;
turn_cam_text_l._visible = false;
use_hand_l._visible = false;
use_text_l._visible = false;
i_am_near_view_5_trigger_c = false;
}
if (_root.view_5_trigger_d.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_5_trigger_d._visible = true;
set_label = view_5_tr_d_label;
set_label_flag_v5td = 0;
trigger_used = "right";
setLabel = true;
i_am_near_view_5_trigger_d = true;
} else {
if (set_label_flag_v5td == 0) {
setLabel = false;
set_label_flag_v5td = 1;
}
view_5_trigger_d._visible = false;
camera_icon_r._visible = false;
turn_cam_text_r._visible = false;
use_hand_r._visible = false;
use_text_r._visible = false;
i_am_near_view_5_trigger_d = false;
}
i_am_near_3_show_5_trigger = false;
if (_root.view_5_collision.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_n_hit = true;
checkKeys();
} else {
cha_collision_point_n_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_5_collision.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_e_hit = true;
checkKeys();
} else {
cha_collision_point_e_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_5_collision.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
if (view_5_turn_cam_180_trigger._visible == true) {
stopTheAnimation = 1;
cha_walk_active = false;
}
cha_collision_point_s_hit = true;
checkKeys();
} else {
cha_collision_point_s_hit = false;
}
if (_root.view_5_collision.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
cha_collision_point_w_hit = true;
checkKeys();
} else {
cha_collision_point_w_hit = false;
}
} else {
v5_bs_flag = 0;
show_view_5_flag = 0;
}
if (view_6._visible == true) {
if (show_view_6_once_flag == 0) {
plasma_ball_explosion._alpha = 0;
baddie_bitmap_mc._x = 10000;
baddie_bitmap_mc_f._x = 10000;
rpg_battle_system_active = true;
show_view_6_once_flag = 1;
}
view_5_turn_cam_180_trigger._visible = false;
if (thor_baddie_b_killed == true) {
thor_baddie_b_ui_active = false;
}
rain_particles_active = view_6_rain_particles_active;
wind = 30;
smoke_bit_particles_active = view_6_smoke_bit_particles_active;
steam_particles_active = view_6_steam_particles_active;
water_particles_active = view_6_water_particles_active;
collide_object_active = view_6_collision_object_active;
air_bar_active = view_6_air_bar_active;
if (view_6_rain_particles_active == true) {
mist._visible = true;
} else {
mist._visible = false;
}
if (character_view == "3rd_person") {
if (_root.view_6_depth_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_6_ahead_cha._visible = true;
view_6_behind_cha._visible = false;
} else {
view_6_ahead_cha._visible = false;
view_6_behind_cha._visible = true;
}
} else {
view_6_ahead_cha._visible = false;
if (boss._alpha == 100) {
view_6_behind_cha._visible = false;
} else {
view_6_behind_cha._x = view_6._x;
view_6_behind_cha._y = view_6._y;
view_6_behind_cha._visible = true;
}
}
if (_root.view_6_turn_cam_180_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_6_turn_cam_180_trigger._visible = true;
left_key_active = false;
right_key_active = false;
if (targeted_text_mc._visible == false) {
camera_icon_180._visible = true;
turn_cam_text_180._visible = true;
} else if (targeted_text_mc._visible == true) {
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
}
i_am_near_view_6_turn_cam_180_trigger = true;
} else {
view_6_turn_cam_180_trigger._visible = false;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_6_turn_cam_180_trigger = false;
}
if (_root.view_6_trigger_a.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_6_trigger_a._visible = true;
if (baddie_2_active == false) {
}
set_label = view_6_tr_a_label;
set_label_flag_v6ta = 0;
trigger_used = "top";
setLabel = true;
i_am_near_view_6_trigger_a = true;
} else {
if (set_label_flag_v6ta == 0) {
setLabel = false;
set_label_flag_v6ta = 1;
}
view_6_trigger_a_message_flag = 0;
view_6_trigger_a._visible = false;
load_next_area._visible = false;
camera_icon_t._visible = false;
turn_cam_text_t._visible = false;
use_hand_t._visible = false;
use_text_t._visible = false;
i_am_near_view_6_trigger_a = false;
show_message_6_flag = 0;
}
if (character_view == "3rd_person") {
if (_root.view_6_trigger_b.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_6_trigger_b._visible = true;
set_label = view_6_tr_b_label;
set_label_flag_v6tb = 0;
trigger_used = "bottom";
setLabel = true;
i_am_near_view_6_trigger_b = true;
} else {
if (set_label_flag_v6tb == 0) {
setLabel = false;
set_label_flag_v6tb = 1;
}
view_6_trigger_b_message_flag = 0;
view_6_trigger_b._visible = false;
camera_icon_b._visible = false;
turn_cam_text_b._visible = false;
use_hand_b._visible = false;
use_text_b._visible = false;
i_am_near_view_6_trigger_b = false;
}
}
if (_root.view_6_trigger_c.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_6_trigger_c._visible = true;
set_label = view_6_tr_c_label;
set_label_flag_v6tc = 0;
trigger_used = "left";
setLabel = true;
i_am_near_view_6_trigger_c = true;
} else {
if (set_label_flag_v6tc == 0) {
setLabel = false;
set_label_flag_v6tc = 1;
}
view_6_trigger_c._visible = false;
camera_icon_l._visible = false;
turn_cam_text_l._visible = false;
use_hand_l._visible = false;
use_text_l._visible = false;
i_am_near_view_6_trigger_c = false;
}
if (_root.view_6_trigger_d.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_6_trigger_d._visible = true;
set_label = view_6_tr_d_label;
set_label_flag_v6td = 0;
trigger_used = "right";
setLabel = true;
i_am_near_view_6_trigger_d = true;
} else {
if (set_label_flag_v6td == 0) {
setLabel = false;
set_label_flag_v6td = 1;
}
view_6_trigger_d._visible = false;
camera_icon_r._visible = false;
turn_cam_text_r._visible = false;
use_hand_r._visible = false;
use_text_r._visible = false;
i_am_near_view_6_trigger_d = false;
}
if (_root.view_6_end_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (view_6_end_trigger_flag == 0) {
end_message_fade_up = true;
view_6_end_trigger_flag = 1;
}
}
if (_root.view_6_collision.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_n_hit = true;
checkKeys();
} else {
cha_collision_point_n_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_6_collision.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_e_hit = true;
checkKeys();
} else {
cha_collision_point_e_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_6_collision.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
if (view_6_turn_cam_180_trigger._visible == true) {
stopTheAnimation = 1;
cha_walk_active = false;
}
cha_collision_point_s_hit = true;
checkKeys();
} else {
cha_collision_point_s_hit = false;
}
if (_root.view_6_collision.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
cha_collision_point_w_hit = true;
checkKeys();
} else {
cha_collision_point_w_hit = false;
}
} else if (view_6._visible == false) {
thor_killed_b_message_flag = 0;
}
if (view_2._visible == false) {
particle_overlay_active = false;
}
if (baddie_visible == true) {
if (character_ray_w._visible == true) {
if (_root.character_ray_w.hitTest(baddie_n_walk_1._x, baddie_n_walk_1._y, true)) {
baddie_targeted_crosshair = true;
} else {
baddie_targeted_crosshair = false;
}
}
if (character_ray_n._visible == true) {
if (_root.character_ray_n.hitTest(baddie_n_walk_1._x, baddie_n_walk_1._y, true)) {
baddie_targeted_crosshair = true;
} else {
baddie_targeted_crosshair = false;
}
}
if (character_ray_e._visible == true) {
if (_root.character_ray_e.hitTest(baddie_n_walk_1._x, baddie_n_walk_1._y, true)) {
baddie_targeted_crosshair = true;
} else {
baddie_targeted_crosshair = false;
}
}
if (character_ray_s._visible == true) {
if (_root.character_ray_s.hitTest(baddie_n_walk_1._x, baddie_n_walk_1._y, true)) {
baddie_targeted_crosshair = true;
} else {
baddie_targeted_crosshair = false;
}
}
} else if (baddie_n_walk_1._visible == false) {
targeted_icon._visible = false;
targeted_text_mc._visible = false;
baddie_targeted = false;
}
plasma_collision_point._x = plasma_ball._x;
plasma_collision_point._y = plasma_ball._y + (plasma_collision_point._height * 9);
plasma_collision_point._xscale = character_collision_point._xscale;
plasma_collision_point._yscale = character_collision_point._yscale;
plasma_anisotropic_reflection._x = plasma_ball._x;
plasma_anisotropic_reflection._y = plasma_ball._y;
plasma_anisotropic_reflection._xscale = character_collision_point._xscale;
plasma_anisotropic_reflection._yscale = character_collision_point._yscale;
if (baddie_targeted == false) {
if (plasma_ball._visible == true) {
if (mist._visible == true) {
plasma_anisotropic_reflection._visible = true;
} else {
plasma_anisotropic_reflection._visible = false;
}
} else if (plasma_ball._visible == false) {
plasma_anisotropic_reflection._visible = false;
}
}
particle_1._x = 2000;
particle_2._x = 2000;
particle_3._x = 2000;
particle_4._x = 2000;
if (rain_particles_active == true) {
rainParticles = 20;
do {
duplicateMovieClip (particle_1, "particle_r" + r, -16220 + r);
r++;
} while (r < rainParticles);
}
if (smoke_bit_particles_active == true) {
smokeBitParticles = 60;
do {
duplicateMovieClip (particle_2, "particle_s" + s, smoke_particle_layer_1.getDepth() + s);
s++;
} while (s < smokeBitParticles);
}
if (steam_particles_active == true) {
steamParticles = 4;
do {
duplicateMovieClip (particle_3, "particle_st" + st, -16170 + st);
st++;
} while (st < steamParticles);
}
if (water_particles_active == true) {
waterParticles = 5;
do {
duplicateMovieClip (particle_4, "particle_w" + w, -16149 + w);
w++;
} while (w < waterParticles);
}
if (fps_particles_active == true) {
fpsParticles = 2400;
do {
duplicateMovieClip (particle_2, "particle_f" + f, -99916220 + f);
f++;
} while (f < fpsParticles);
}
rainParticleCount = new Array();
r = 0;
while (r < rainParticles) {
if (playing_game == 1) {
if (rain_particles_active == true) {
rain_particle_timer = rain_particle_timer + 1;
if (rain_place_UI_infront_flag == 0) {
large_restart_label.swapDepths(220);
rain_place_UI_infront_flag = 1;
}
_root["particle_r" + r]._rotation = (-wind) / 10;
if ((rain_particle_timer >= 0) and (rain_particle_timer < 5)) {
particle_max_x = 700;
particle_min_x = 0;
_root["particle_r" + r]._x = Math.round(Math.random() * ((particle_max_x - particle_min_x) + 1)) + particle_min_x;
particle_max_y = 0;
particle_min_y = -600;
_root["particle_r" + r]._y = Math.round(Math.random() * ((particle_max_y - particle_min_y) + 1)) + particle_min_y;
} else if ((rain_particle_timer >= 5) and (rain_particle_timer < 250)) {
_root["particle_r" + r]._y = _root["particle_r" + r]._y + 120;
_root["particle_r" + r]._x = _root["particle_r" + r]._x + (wind / 10);
} else if (rain_particle_timer >= 250) {
_root["particle_r" + r]._y = 0;
rain_particle_timer = 0;
}
} else if (rain_particles_active == false) {
_root["particle_r" + r]._x = 2000;
_root["particle_r" + r]._y = 2000;
}
} else if (playing_game == 0) {
_root["particle_r" + r]._x = 2000;
_root["particle_r" + r]._y = 2000;
}
r++;
}
smokeBitParticleCount = new Array();
s = 0;
while (s < smokeBitParticles) {
if (playing_game == 1) {
if (smoke_bit_particles_active == true) {
smoke_bit_particle_timer = smoke_bit_particle_timer + 1;
if ((smoke_bit_particle_timer >= 0) and (smoke_bit_particle_timer < 5)) {
particle_max_y = 360;
particle_min_y = 0;
_root["particle_s" + s]._rotation = Math.round(Math.random() * ((particle_max_x - particle_min_x) + 1)) + particle_min_x;
particle_max_x = 700;
particle_min_x = 0;
_root["particle_s" + s]._x = Math.round(Math.random() * ((particle_max_x - particle_min_x) + 1)) + particle_min_x;
particle_max_y = 0;
particle_min_y = -600;
_root["particle_s" + s]._y = Math.round(Math.random() * ((particle_max_y - particle_min_y) + 1)) + particle_min_y;
} else if ((smoke_bit_particle_timer >= 5) and (smoke_bit_particle_timer < 233)) {
_root["particle_s" + s]._y = _root["particle_s" + s]._y + 10;
_root["particle_s" + s]._x = _root["particle_s" + s]._x + (wind / 10);
} else if (smoke_bit_particle_timer >= 233) {
_root["particle_d" + s]._y = 0;
smoke_bit_particle_timer = 0;
}
} else if (smoke_bit_particles_active == false) {
_root["particle_s" + s]._x = 2000;
_root["particle_s" + s]._y = 2000;
}
} else if (playing_game == 0) {
_root["particle_s" + s]._x = 2000;
_root["particle_s" + s]._y = 2000;
}
s++;
}
steamParticleCount = new Array();
st = 0;
while (st < steamParticles) {
if (playing_game == 1) {
if (steam_particles_active == true) {
_root["particle_st" + st]._visible = true;
check_steam_dif_timer = check_steam_dif_timer + 1;
if (check_steam_dif_timer >= 4) {
view_1_old_position_y = view_1._y;
check_steam_dif_timer = 0;
}
if (view_1._y > view_1_old_position_y) {
amount_view_1_moved = view_1._y - view_1_old_position_y;
_root["particle_st" + st]._y = _root["particle_st" + st]._y + (amount_view_1_moved / 1.2);
}
if (view_1._y < view_1_old_position_y) {
amount_view_1_moved = view_1_old_position_y - view_1._y;
_root["particle_st" + st]._y = _root["particle_st" + st]._y - (amount_view_1_moved / 1.2);
}
_root["particle_st" + st]._x = _root["particle_st" + st]._x + (((dummy_1._x - _root["particle_st" + st]._x) + steam_offset_x) / interpolate_speed);
_root["particle_st" + st]._y = _root["particle_st" + st]._y - 0.5;
dist_steam_above_start = -(steam_offset_y - steam_start_y);
dist_steam_below_end = steam_offset_y - (steam_start_y - 120);
if ((_root["particle_st" + st]._y >= (view_1._y + 30)) and (_root["particle_st" + st]._y < (view_1._y + 200))) {
st_max = 330;
st_min = 270;
_root["particle_st" + st]._y = (view_1._y + Math.round(Math.random() * ((st_max - st_min) + 1))) + st_min;
st_max_r = 10;
st_min_r = -10;
_root["particle_st" + st]._rotation = Math.round(Math.random() * ((st_max_r - st_min_r) + 1)) + st_min_r;
st_max_sc = 75;
st_min_sc = 70;
_root["particle_st" + st]._xscale = (_root["particle_st" + st]._yscale = Math.round(Math.random() * ((st_max_sc - st_min_sc) + 1)) + st_min_sc);
}
if ((_root["particle_st" + st]._y >= (view_1._y + 200)) and (_root["particle_st" + st]._y < (view_1._y + 280))) {
_root["particle_st" + st]._alpha = _root["particle_st" + st]._alpha - 2;
_root["particle_st" + st]._xscale = (_root["particle_st" + st]._yscale = _root["particle_st" + st]._yscale + 0.4);
}
if ((_root["particle_st" + st]._y >= (view_1._y + 280)) and (_root["particle_st" + st]._y < (view_1._y + 290))) {
_root["particle_st" + st]._alpha = _root["particle_st" + st]._alpha + 10;
_root["particle_st" + st]._xscale = (_root["particle_st" + st]._yscale = _root["particle_st" + st]._yscale + 0.4);
}
if ((_root["particle_st" + st]._y >= (view_1._y + 290)) and (_root["particle_st" + st]._y < (view_1._y + 480))) {
_root["particle_st" + st]._alpha = 0;
}
} else if (steam_particles_active == false) {
_root["particle_st" + st]._visible = false;
_root["particle_st" + st]._x = 400;
_root["particle_st" + st]._y = 400;
}
} else if (playing_game == 0) {
_root["particle_st" + st]._x = 400;
_root["particle_st" + st]._y = 400;
}
st++;
}
waterParticleCount = new Array();
w = 0;
while (w < waterParticles) {
if (playing_game == 1) {
if (water_particles_active == true) {
_root["particle_w" + w]._visible = true;
check_water_dif_timer = check_water_dif_timer + 1;
if (check_water_dif_timer >= 4) {
view_1_old_position_y = view_1._y;
check_water_dif_timer = 0;
}
if (view_1._y > view_1_old_position_y) {
amount_view_1_moved = view_1._y - view_1_old_position_y;
_root["particle_w" + w]._y = _root["particle_w" + w]._y + (amount_view_1_moved / 1.2);
}
if (view_1._y < view_1_old_position_y) {
amount_view_1_moved = view_1_old_position_y - view_1._y;
_root["particle_w" + w]._y = _root["particle_w" + w]._y - (amount_view_1_moved / 1.2);
}
_root["particle_w" + w]._x = _root["particle_w" + w]._x + (((dummy_1._x - _root["particle_w" + w]._x) + water_offset_x) / interpolate_speed);
_root["particle_w" + w]._y = _root["particle_w" + w]._y + 0.5;
if ((_root["particle_w" + w]._y >= (view_1._y + 400)) and (_root["particle_w" + w]._y < (view_1._y + 500))) {
set_water_random_y = true;
}
if (set_water_random_y == true) {
set_water_random_y_timer = set_water_random_y_timer + 1;
if (set_water_random_y_timer < 10) {
w_max = 150;
w_min = 50;
_root["particle_w" + w]._y = (view_1._y + Math.round(Math.random() * ((w_max - w_min) + 1))) + w_min;
w_max_r = 10;
w_min_r = -10;
_root["particle_w" + w]._rotation = Math.round(Math.random() * ((w_max_r - w_min_r) + 1)) + w_min_r;
w_max_sc = 75;
w_min_sc = 70;
_root["particle_w" + w]._xscale = (_root["particle_w" + w]._yscale = Math.round(Math.random() * ((w_max_sc - w_min_sc) + 1)) + w_min_sc);
}
if (set_water_random_y_timer >= 10) {
set_water_random_y = false;
}
}
if (set_water_random_y == false) {
set_water_random_y_timer = 0;
}
if ((_root["particle_w" + w]._y >= (view_1._y + 160)) and (_root["particle_w" + w]._y < (view_1._y + 400))) {
_root["particle_w" + w]._alpha = _root["particle_w" + w]._alpha - 2;
_root["particle_w" + w]._xscale = (_root["particle_w" + w]._yscale = _root["particle_w" + w]._yscale + 0.4);
}
if ((_root["particle_w" + w]._y >= (view_1._y + 150)) and (_root["particle_w" + w]._y < (view_1._y + 160))) {
_root["particle_w" + w]._alpha = _root["particle_w" + w]._alpha + 10;
_root["particle_w" + w]._xscale = (_root["particle_w" + w]._yscale = _root["particle_w" + w]._yscale + 0.4);
}
if ((_root["particle_w" + w]._y >= (view_1._y + 1)) and (_root["particle_w" + w]._y < (view_1._y + 150))) {
_root["particle_w" + w]._alpha = 0;
}
} else if (water_particles_active == false) {
_root["particle_w" + w]._visible = false;
_root["particle_w" + w]._x = -50;
_root["particle_w" + w]._y = -50;
}
} else if (playing_game == 0) {
_root["particle_w" + w]._x = -50;
_root["particle_w" + w]._y = -50;
}
w++;
}
if (iAmNearKeyHole == "yes") {
}
if (doorUnlocked == "yes") {
runDoorAnimation = true;
if (doorPlayFlag == true) {
doorPlayFlag = false;
}
}
if (runDoorAnimation == true) {
doorTimer = doorTimer + 1;
if ((doorTimer >= 1) and (doorTimer < 5)) {
if (door_sound_flag == 0) {
_root.s_door_sound.start(0, 999);
door_sound_flag = 1;
}
door_y_offset = door_y_offset - 0.0888888888888889;
door_x_offset = door_x_offset - 1.55555555555556;
door._xscale = door._xscale - 0.0666666666666667;
door._yscale = door._yscale - 0.0666666666666667;
}
if (doorTimer >= 5) {
runDoorAnimation = false;
doorOpen = true;
if (door_sound_flag == 1) {
_root.s_door_sound.stop(["door_sound"]);
door_sound_flag = 2;
}
}
}
if (door_view_used._visible == true) {
if (doorOpen == false) {
door._visible = true;
}
} else {
door._visible = false;
}
if (showMessage == true) {
if (show_message_flag == 0) {
light_message_active = false;
light_message_active_flag = 0;
light_message_active = true;
show_message_flag = 1;
}
stopTheAnimation = 1;
if (messageNo == 1) {
message_text_mc.message_text.text = "The security remote key is needed.";
message_text_mc._visible = true;
} else if (messageNo == 2) {
message_text_mc.message_text.text = "More of them. They've made nests from their own dead.";
message_text_mc._visible = true;
} else if (messageNo == 3) {
message_text_mc.message_text.text = "Use your mouse to aim and fire.";
message_text_mc._visible = true;
} else if (messageNo == 4) {
message_text_mc.message_text.text = "Cy 21 has triggered the security system and the door has locked.";
message_text_mc._visible = true;
} else if (messageNo == 5) {
message_text_mc.message_text.text = "GAME PAUSED";
message_text_mc._visible = true;
} else if (messageNo == 6) {
message_text_mc.message_text.text = "You need one or more of the survival items top left";
message_text_mc._visible = true;
} else if (messageNo == 7) {
message_text_mc.message_text.text = "SKIP";
message_text_mc._visible = true;
} else if (messageNo == 8) {
message_text_mc.message_text.text = "Use the arrow keys to move, enter for actions when icons appear top right.";
message_text_mc._visible = true;
} else if (messageNo == 8.1) {
message_text_mc.message_text.text = "When 'go this way' is shown, releasing the arrow key will turn the camera.";
message_text_mc._visible = true;
} else if (messageNo == 9) {
message_text_mc.message_text.text = "The Thorenzithan ducks when cy10 fires at him. Keep his head down...";
message_text_mc._visible = true;
} else if (messageNo == 9.1) {
message_text_mc.message_text.text = "...while cy10 targets a week spot that doesn't safely earth the plasmas charge.";
message_text_mc._visible = true;
} else if (messageNo == 9.2) {
message_text_mc.message_text.text = "Get ready with your mouse.";
message_text_mc._visible = true;
} else if (messageNo == 10) {
message_text_mc.message_text.text = "There is a malfunction with the elevator power system.";
message_text_mc._visible = true;
} else if (messageNo == 11) {
message_text_mc.message_text.text = "Need to find the emergency bypass switch.";
message_text_mc._visible = true;
} else if (messageNo == 11.1) {
message_text_mc.message_text.text = "You have bypassed the power.";
message_text_mc._visible = true;
} else if (messageNo == 11.2) {
message_text_mc.message_text.text = "The pipe cuts into the air duct letting much needed oxygen into the room.";
message_text_mc._visible = true;
} else if (messageNo == 12) {
message_text_mc.message_text.text = "Cannot take off. The emergency overheat gravity engine valve has jammed.";
message_text_mc._visible = true;
} else if (messageNo == 13) {
message_text_mc.message_text.text = "Need to reset the lever in the engine room.";
message_text_mc._visible = true;
} else if (messageNo == 14) {
message_text_mc.message_text.text = "This area can be used to power an object.";
message_text_mc._visible = true;
} else if (messageNo == 14.09) {
message_text_mc.message_text.text = "Something is needed to climb up. There is a hole melted in the floor.";
message_text_mc._visible = true;
} else if (messageNo == 14.091) {
message_text_mc.message_text.text = "Air needs to be let into this room or the air above will escape.";
message_text_mc._visible = true;
} else if (messageNo == 14.1) {
message_text_mc.message_text.text = "An empty container is needed for the filtered chemical in the water.";
message_text_mc._visible = true;
} else if (messageNo == 14.2) {
message_text_mc.message_text.text = "It is flooded with contaminated water behind the emergency door.";
message_text_mc._visible = true;
} else if (messageNo == 30) {
message_text_mc.message_text.text = "Object will be placed in the inventory.";
message_text_mc._visible = true;
} else if (messageNo == 31) {
message_text_mc.message_text.text = "The ports air pocket has failed & oxygen is being vented into space.";
message_text_mc._visible = true;
} else if (messageNo == 32) {
message_text_mc.message_text.text = "Cannot get past the mine without a way of deactivating it.";
message_text_mc._visible = true;
} else if (messageNo == 33) {
message_text_mc.message_text.text = "There's an air supply escaping the docking bay. You need to divert it somehow.";
message_text_mc._visible = true;
} else if (messageNo == 34) {
message_text_mc.message_text.text = "The creatures have melted the floor into some kind of protective tube.";
message_text_mc._visible = true;
} else if (messageNo == 35) {
message_text_mc.message_text.text = "You need to find something to use against the robots.";
message_text_mc._visible = true;
} else if (messageNo == 36) {
message_text_mc.message_text.text = "This charging area is inactive.";
message_text_mc._visible = true;
} else if (messageNo == 37) {
message_text_mc.message_text.text = "You don't need repair right now.";
message_text_mc._visible = true;
} else if (messageNo == 38) {
message_text_mc.message_text.text = "The robots are sucking air out of the security area to stop the cyborgs.";
message_text_mc._visible = true;
} else if (messageNo == 39) {
message_text_mc.message_text.text = "Something is needed to activate the shape-shifting security door.";
message_text_mc._visible = true;
}
}
if (showMessage == false) {
show_message_flag = 0;
message_text_mc._visible = false;
}
if (iAmNearObject == 1) {
if (objectCollected == 0) {
hand._visible = true;
collect_text_mc._visible = true;
} else if (objectCollected == 1) {
hand._visible = false;
collect_text_mc._visible = false;
}
} else if (iAmNearObject == 0) {
hand._visible = false;
collect_text_mc._visible = false;
}
if (nudgeCharacter == true) {
if (cha_x_offset < -80) {
old_cha_x_offset_var_b = cha_x_offset;
cha_x_offset = (700 - old_cha_x_offset_var_b) - 350;
nudgeCharacter = false;
} else if (cha_x_offset > 475) {
old_cha_x_offset_var_b = cha_x_offset;
cha_x_offset = (700 - old_cha_x_offset_var_b) - 250;
nudgeCharacter = false;
} else {
old_cha_x_offset_var_b = cha_x_offset;
cha_x_offset = (700 - old_cha_x_offset_var_b) - 300;
nudgeCharacter = false;
}
}
baddie_n_walk_1._visible = false;
baddie_move_timer = baddie_move_timer + 1;
if (baddie_move_timer == 110) {
baddie_move_timer = Math.round(Math.random() * baddie_move_timer);
} else if (baddie_move_timer == 210) {
baddie_move_timer = Math.round(Math.random() * baddie_move_timer);
} else if (baddie_move_timer == 310) {
baddie_move_timer = Math.round(Math.random() * baddie_move_timer);
}
if ((baddie_move_timer >= 0) and (baddie_move_timer < 100)) {
} else if ((baddie_move_timer >= 100) and (baddie_move_timer < 200)) {
} else if ((baddie_move_timer >= 200) and (baddie_move_timer < 300)) {
} else if ((baddie_move_timer >= 300) and (baddie_move_timer < 400)) {
} else if (baddie_move_timer >= 400) {
baddie_move_timer = 0;
}
if (view_3._visible == true) {
view_5_baddie_active = false;
view_5_baddie_to_start_flag = 0;
if (baddie_1_killed == false) {
view_3_baddie_active = true;
baddie_visible = true;
if (baddie_to_start_flag == 0) {
baddie_x_offset = 2340;
baddie_y_offset = 320;
baddie_to_start_flag = 1;
}
} else if (baddie_1_killed == true) {
}
} else if (view_5._visible == true) {
view_3_baddie_active = false;
baddie_to_start_flag = 0;
if (baddie_2_killed == false) {
if (object_d_collected == true) {
view_5_baddie_active = true;
} else if (object_d_collected == false) {
view_5_baddie_active = false;
}
if (view_5_baddie_to_start_flag == 0) {
baddie_x_offset = 2330;
baddie_y_offset = 320;
view_5_baddie_to_start_flag = 1;
}
} else if (baddie_2_killed == true) {
}
} else {
baddie_to_start_flag = 0;
view_5_baddie_to_start_flag = 0;
baddie_visible = false;
}
if (baddie_visible == false) {
baddie_n_walk_1._visible = false;
baddie_e_walk_1._visible = false;
baddie_s_walk_1._visible = false;
baddie_w_walk_1._visible = false;
}
if (cam_targeter_active == true) {
if (cam_targeter_x == true) {
cam_targeter._x = ((character_stand_n._x + (character_stand_n._width / 2)) + (cha_x_offset * 0.8)) - 200;
}
if (cam_targeter_y == true) {
cam_targeter._y = ((character_stand_n._y + (character_stand_n._height / 2)) - (cha_y_offset * 5.4)) + 700;
}
}
if (cam_targeter._x < -165) {
cam_targeter._x = -165;
}
if (cam_targeter._x > 610) {
cam_targeter._x = 610;
}
if (cam_targeter_dummy._y > 225) {
cam_targeter_dummy._y = 225;
}
if (cam_movement == "mouse") {
if ((_root._xmouse >= 0) and (_root._xmouse < 500)) {
dummy_1._x = dummy_1._x + ((((-(_root._xmouse + x_mouse_offset)) / 3) - dummy_1._x) / 3);
dummy_1._y = dummy_1._y + ((((-(_root._ymouse + y_mouse_offset)) / 5) - dummy_1._y) / 3);
cam_targeter_dummy._x = _root._xmouse;
cam_targeter_dummy._y = _root._ymouse;
}
} else if (cam_movement == "follow_character") {
if (normal_interpolate == 1) {
cam_targeter_dummy._x = cam_targeter_dummy._x + ((cam_targeter._x - cam_targeter_dummy._x) / 12);
cam_targeter_dummy._y = cam_targeter_dummy._y + ((cam_targeter._y - cam_targeter_dummy._y) / 12);
}
dummy_1._x = -45 - (cam_targeter_dummy._x / 4);
dummy_1._y = -10 - (cam_targeter_dummy._y / 4);
}
if (setFaceing == true) {
if (set_facing == "north") {
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
character_stand_n._visible = true;
character_stand_e._visible = false;
character_stand_s._visible = false;
character_stand_w._visible = false;
character_ray_n._visible = true;
character_ray_s._visible = false;
character_ray_e._visible = false;
character_ray_w._visible = false;
} else if (set_facing == "east") {
last_key_pressed = "d";
plasma_ball_position = "e";
character_facing = "e";
character_stand_n._visible = false;
character_stand_e._visible = true;
character_stand_s._visible = false;
character_stand_w._visible = false;
character_ray_n._visible = false;
character_ray_s._visible = false;
character_ray_e._visible = true;
character_ray_w._visible = false;
} else if (set_facing == "south") {
last_key_pressed = "s";
plasma_ball_position = "s";
character_facing = "s";
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = true;
character_stand_w._visible = false;
character_ray_n._visible = false;
character_ray_s._visible = true;
character_ray_e._visible = false;
character_ray_w._visible = false;
} else if (set_facing == "west") {
last_key_pressed = "a";
plasma_ball_position = "w";
character_facing = "w";
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = false;
character_stand_w._visible = true;
character_ray_n._visible = false;
character_ray_s._visible = false;
character_ray_e._visible = false;
character_ray_w._visible = true;
}
setFaceing = false;
}
if (shiftCam == true) {
normal_interpolate = 0;
if ((cha_x_offset >= 120) and (cha_x_offset < 320)) {
cam_targeter_dummy._x = Math.round(Math.random() * ((max - min) + 1)) + min;
}
normal_interpolate = 1;
shiftCam = false;
}
if (view_1._visible == true) {
view_1_orange_arrows._visible = true;
} else if (view_1._visible == false) {
view_1_orange_arrows._visible = false;
}
if (view_2._visible == true) {
view_2_orange_arrows._visible = true;
} else if (view_2._visible == false) {
view_2_orange_arrows._visible = false;
}
if (view_3._visible == true) {
view_3_orange_arrows._visible = true;
} else if (view_3._visible == false) {
view_3_orange_arrows._visible = false;
}
if (view_4._visible == true) {
view_4_orange_arrows._visible = true;
} else if (view_4._visible == false) {
view_4_orange_arrows._visible = false;
}
if (view_5._visible == true) {
view_5_orange_arrows._visible = true;
} else if (view_5._visible == false) {
view_5_orange_arrows._visible = false;
}
if (view_6._visible == true) {
view_6_orange_arrows._visible = true;
} else if (view_6._visible == false) {
view_6_orange_arrows._visible = false;
}
if (view_7._visible == true) {
view_7_orange_arrows._visible = true;
} else if (view_7._visible == false) {
view_7_orange_arrows._visible = false;
}
if (view_8._visible == true) {
view_8_orange_arrows._visible = true;
} else if (view_8._visible == false) {
view_8_orange_arrows._visible = false;
}
view_1_orange_arrows._x = view_1_orange_arrows._x + ((dummy_1._x - view_1_orange_arrows._x) / interpolate_speed);
view_1_orange_arrows._y = view_1_orange_arrows._y + ((dummy_1._y - view_1_orange_arrows._y) / interpolate_speed);
view_2_orange_arrows._x = view_2_orange_arrows._x + ((dummy_1._x - view_2_orange_arrows._x) / interpolate_speed);
view_2_orange_arrows._y = view_2_orange_arrows._y + ((dummy_1._y - view_2_orange_arrows._y) / interpolate_speed);
view_3_orange_arrows._x = view_3_orange_arrows._x + ((dummy_1._x - view_3_orange_arrows._x) / interpolate_speed);
view_3_orange_arrows._y = view_3_orange_arrows._y + ((dummy_1._y - view_3_orange_arrows._y) / interpolate_speed);
view_4_orange_arrows._x = view_4_orange_arrows._x + ((dummy_1._x - view_4_orange_arrows._x) / interpolate_speed);
view_4_orange_arrows._y = view_4_orange_arrows._y + ((dummy_1._y - view_4_orange_arrows._y) / interpolate_speed);
view_5_orange_arrows._x = view_5_orange_arrows._x + ((dummy_1._x - view_5_orange_arrows._x) / interpolate_speed);
view_5_orange_arrows._y = view_5_orange_arrows._y + ((dummy_1._y - view_5_orange_arrows._y) / interpolate_speed);
view_6_orange_arrows._x = view_6_orange_arrows._x + ((dummy_1._x - view_6_orange_arrows._x) / interpolate_speed);
view_6_orange_arrows._y = view_6_orange_arrows._y + ((dummy_1._y - view_6_orange_arrows._y) / interpolate_speed);
view_7_orange_arrows._x = view_7_orange_arrows._x + ((dummy_1._x - view_7_orange_arrows._x) / interpolate_speed);
view_7_orange_arrows._y = view_7_orange_arrows._y + ((dummy_1._y - view_7_orange_arrows._y) / interpolate_speed);
view_8_orange_arrows._x = view_8_orange_arrows._x + ((dummy_1._x - view_8_orange_arrows._x) / interpolate_speed);
view_8_orange_arrows._y = view_8_orange_arrows._y + ((dummy_1._y - view_8_orange_arrows._y) / interpolate_speed);
view_1_ahead_cha._x = view_1_ahead_cha._x + ((dummy_1._x - view_1_ahead_cha._x) / interpolate_speed);
view_1_ahead_cha._y = view_1_ahead_cha._y + (((dummy_1._y - view_1_ahead_cha._y) + 1) / interpolate_speed);
view_2_ahead_cha._x = view_2_ahead_cha._x + ((dummy_1._x - view_2_ahead_cha._x) / interpolate_speed);
view_2_ahead_cha._y = view_2_ahead_cha._y + ((dummy_1._y - view_2_ahead_cha._y) / interpolate_speed);
view_3_ahead_cha._x = view_3_ahead_cha._x + ((dummy_1._x - view_3_ahead_cha._x) / interpolate_speed);
view_3_ahead_cha._y = view_3_ahead_cha._y + ((dummy_1._y - view_3_ahead_cha._y) / interpolate_speed);
if (view_2._visible == true) {
if ((character_view == "3rd_person") || (character_view == "1st_person_conference")) {
view_2._x = view_2._x + ((dummy_1._x - view_2._x) / interpolate_speed);
view_2._y = view_2._y + ((dummy_1._y - view_2._y) / interpolate_speed);
}
}
if (view_4._visible == true) {
if (character_view == "3rd_person") {
view_4._x = view_4._x + ((dummy_1._x - view_4._x) / interpolate_speed);
view_4._y = view_4._y + ((dummy_1._y - view_4._y) / interpolate_speed);
}
}
view_4_ahead_cha._x = view_4_ahead_cha._x + ((dummy_1._x - view_4_ahead_cha._x) / interpolate_speed);
view_4_ahead_cha._y = view_4_ahead_cha._y + ((dummy_1._y - view_4_ahead_cha._y) / interpolate_speed);
if (view_5._visible == true) {
view_5_ahead_cha._x = view_5_ahead_cha._x + ((dummy_1._x - view_5_ahead_cha._x) / interpolate_speed);
view_5_ahead_cha._y = view_5_ahead_cha._y + ((dummy_1._y - view_5_ahead_cha._y) / interpolate_speed);
}
if (view_7._visible == true) {
view_7_ahead_cha._x = view_7_ahead_cha._x + ((dummy_1._x - view_7_ahead_cha._x) / interpolate_speed);
view_7_ahead_cha._y = view_7_ahead_cha._y + ((dummy_1._y - view_7_ahead_cha._y) / interpolate_speed);
}
if (view_8._visible == true) {
view_8_ahead_cha._x = view_8_ahead_cha._x + ((dummy_1._x - view_8_ahead_cha._x) / interpolate_speed);
view_8_ahead_cha._y = view_8_ahead_cha._y + ((dummy_1._y - view_8_ahead_cha._y) / interpolate_speed);
}
if (view_5._visible == true) {
view_5._x = view_5._x + ((dummy_1._x - view_5._x) / interpolate_speed);
view_5._y = view_5._y + ((dummy_1._y - view_5._y) / interpolate_speed);
}
if (view_6._visible == true) {
if (character_view == "3rd_person") {
view_6._x = view_6._x + ((dummy_1._x - view_6._x) / interpolate_speed);
view_6._y = view_6._y + ((dummy_1._y - view_6._y) / interpolate_speed);
view_6_ahead_cha._x = view_6_ahead_cha._x + ((dummy_1._x - view_6_ahead_cha._x) / interpolate_speed);
view_6_ahead_cha._y = view_6_ahead_cha._y + ((dummy_1._y - view_6_ahead_cha._y) / interpolate_speed);
view_6_behind_cha._x = view_6_behind_cha._x + ((dummy_1._x - view_6_behind_cha._x) / interpolate_speed);
view_6_behind_cha._y = view_6_behind_cha._y + ((dummy_1._y - view_6_behind_cha._y) / interpolate_speed);
view_6_depth_trigger._x = view_6_depth_trigger._x + ((dummy_1._x - view_6_depth_trigger._x) / interpolate_speed);
view_6_depth_trigger._y = view_6_depth_trigger._y + ((dummy_1._y - view_6_depth_trigger._y) / interpolate_speed);
}
}
if (view_7._visible == true) {
view_7._x = view_7._x + ((dummy_1._x - view_7._x) / interpolate_speed);
view_7._y = view_7._y + ((dummy_1._y - view_7._y) / interpolate_speed);
}
if (view_8._visible == true) {
view_8._x = view_8._x + ((dummy_1._x - view_8._x) / interpolate_speed);
view_8._y = view_8._y + ((dummy_1._y - view_8._y) / interpolate_speed);
}
object_view._x = object_view._x + ((dummy_1._x - object_view._x) / interpolate_speed);
object_view._y = object_view._y + ((dummy_1._y - object_view._y) / interpolate_speed);
view_2_object._x = view_2_object._x + ((dummy_1._x - view_2_object._x) / interpolate_speed);
view_2_object._y = view_2_object._y + ((dummy_1._y - view_2_object._y) / interpolate_speed);
baddie_1_collision._x = baddie_1_collision._x + ((dummy_1._x - baddie_1_collision._x) / interpolate_speed);
baddie_1_collision._y = baddie_1_collision._y + ((dummy_1._y - baddie_1_collision._y) / interpolate_speed);
not_show_object_view._x = not_show_object_view._x + ((dummy_1._x - not_show_object_view._x) / interpolate_speed);
not_show_object_view._y = not_show_object_view._y + ((dummy_1._y - not_show_object_view._y) / interpolate_speed);
show_object_view._x = show_object_view._x + ((dummy_1._x - show_object_view._x) / interpolate_speed);
show_object_view._y = show_object_view._y + ((dummy_1._y - show_object_view._y) / interpolate_speed);
character_stand_n._x = character_stand_n._x + (((dummy_1._x - character_stand_n._x) + cha_x_offset) / interpolate_speed);
character_stand_n._y = character_stand_n._y + (((dummy_1._y - character_stand_n._y) + cha_y_offset) / interpolate_speed);
if (view_1._visible == true) {
view_1_entrypoint_a._x = view_1_entrypoint_a._x + (((dummy_1._x - view_1_entrypoint_a._x) + view1EntryAPosX) / interpolate_speed);
view_1_entrypoint_a._y = view_1_entrypoint_a._y + (((dummy_1._y - view_1_entrypoint_a._y) + view1EntryAPosY) / interpolate_speed);
view_1_entrypoint_b._x = view_1_entrypoint_b._x + (((dummy_1._x - view_1_entrypoint_b._x) + view1EntryBPosX) / interpolate_speed);
view_1_entrypoint_b._y = view_1_entrypoint_b._y + (((dummy_1._y - view_1_entrypoint_b._y) + view1EntryBPosY) / interpolate_speed);
view_1_entrypoint_c._x = view_1_entrypoint_c._x + (((dummy_1._x - view_1_entrypoint_c._x) + view1EntryCPosX) / interpolate_speed);
view_1_entrypoint_c._y = view_1_entrypoint_c._y + (((dummy_1._y - view_1_entrypoint_c._y) + view1EntryCPosY) / interpolate_speed);
view_1_entrypoint_d._x = view_1_entrypoint_d._x + (((dummy_1._x - view_1_entrypoint_d._x) + view1EntryDPosX) / interpolate_speed);
view_1_entrypoint_d._y = view_1_entrypoint_d._y + (((dummy_1._y - view_1_entrypoint_d._y) + view1EntryDPosY) / interpolate_speed);
}
if (view_2._visible == true) {
view_2_entrypoint_a._x = view_2_entrypoint_a._x + (((dummy_1._x - view_2_entrypoint_a._x) + view2EntryAPosX) / interpolate_speed);
view_2_entrypoint_a._y = view_2_entrypoint_a._y + (((dummy_1._y - view_2_entrypoint_a._y) + view2EntryAPosY) / interpolate_speed);
view_2_entrypoint_b._x = view_2_entrypoint_b._x + (((dummy_1._x - view_2_entrypoint_b._x) + view2EntryBPosX) / interpolate_speed);
view_2_entrypoint_b._y = view_2_entrypoint_b._y + (((dummy_1._y - view_2_entrypoint_b._y) + view2EntryBPosY) / interpolate_speed);
view_2_entrypoint_c._x = view_2_entrypoint_c._x + (((dummy_1._x - view_2_entrypoint_c._x) + view2EntryCPosX) / interpolate_speed);
view_2_entrypoint_c._y = view_2_entrypoint_c._y + (((dummy_1._y - view_2_entrypoint_c._y) + view2EntryCPosY) / interpolate_speed);
view_2_entrypoint_d._x = view_2_entrypoint_d._x + (((dummy_1._x - view_2_entrypoint_d._x) + view2EntryDPosX) / interpolate_speed);
view_2_entrypoint_d._y = view_2_entrypoint_d._y + (((dummy_1._y - view_2_entrypoint_d._y) + view2EntryDPosY) / interpolate_speed);
}
if (view_3._visible == true) {
view_3_entrypoint_a._x = view_3_entrypoint_a._x + (((dummy_1._x - view_3_entrypoint_a._x) + view3EntryAPosX) / interpolate_speed);
view_3_entrypoint_a._y = view_3_entrypoint_a._y + (((dummy_1._y - view_3_entrypoint_a._y) + view3EntryAPosY) / interpolate_speed);
view_3_entrypoint_b._x = view_3_entrypoint_b._x + (((dummy_1._x - view_3_entrypoint_b._x) + view3EntryBPosX) / interpolate_speed);
view_3_entrypoint_b._y = view_3_entrypoint_b._y + (((dummy_1._y - view_3_entrypoint_b._y) + view3EntryBPosY) / interpolate_speed);
view_3_entrypoint_c._x = view_3_entrypoint_c._x + (((dummy_1._x - view_3_entrypoint_c._x) + view3EntryCPosX) / interpolate_speed);
view_3_entrypoint_c._y = view_3_entrypoint_c._y + (((dummy_1._y - view_3_entrypoint_c._y) + view3EntryCPosY) / interpolate_speed);
view_3_entrypoint_d._x = view_3_entrypoint_d._x + (((dummy_1._x - view_3_entrypoint_d._x) + view3EntryDPosX) / interpolate_speed);
view_3_entrypoint_d._y = view_3_entrypoint_d._y + (((dummy_1._y - view_3_entrypoint_d._y) + view3EntryDPosY) / interpolate_speed);
}
view_4_entrypoint_a._x = view_4_entrypoint_a._x + (((dummy_1._x - view_4_entrypoint_a._x) + view4EntryAPosX) / interpolate_speed);
view_4_entrypoint_a._y = view_4_entrypoint_a._y + (((dummy_1._y - view_4_entrypoint_a._y) + view4EntryAPosY) / interpolate_speed);
view_4_entrypoint_b._x = view_4_entrypoint_b._x + (((dummy_1._x - view_4_entrypoint_b._x) + view4EntryBPosX) / interpolate_speed);
view_4_entrypoint_b._y = view_4_entrypoint_b._y + (((dummy_1._y - view_4_entrypoint_b._y) + view4EntryBPosY) / interpolate_speed);
view_4_entrypoint_c._x = view_4_entrypoint_c._x + (((dummy_1._x - view_4_entrypoint_c._x) + view4EntryCPosX) / interpolate_speed);
view_4_entrypoint_c._y = view_4_entrypoint_c._y + (((dummy_1._y - view_4_entrypoint_c._y) + view4EntryCPosY) / interpolate_speed);
view_4_entrypoint_d._x = view_4_entrypoint_d._x + (((dummy_1._x - view_4_entrypoint_d._x) + view4EntryDPosX) / interpolate_speed);
view_4_entrypoint_d._y = view_4_entrypoint_d._y + (((dummy_1._y - view_4_entrypoint_d._y) + view4EntryDPosY) / interpolate_speed);
view_5_entrypoint_a._x = view_5_entrypoint_a._x + (((dummy_1._x - view_5_entrypoint_a._x) + view5EntryAPosX) / interpolate_speed);
view_5_entrypoint_a._y = view_5_entrypoint_a._y + (((dummy_1._y - view_5_entrypoint_a._y) + view5EntryAPosY) / interpolate_speed);
view_5_entrypoint_b._x = view_5_entrypoint_b._x + (((dummy_1._x - view_5_entrypoint_b._x) + view5EntryBPosX) / interpolate_speed);
view_5_entrypoint_b._y = view_5_entrypoint_b._y + (((dummy_1._y - view_5_entrypoint_b._y) + view5EntryBPosY) / interpolate_speed);
view_5_entrypoint_c._x = view_5_entrypoint_c._x + (((dummy_1._x - view_5_entrypoint_c._x) + view5EntryCPosX) / interpolate_speed);
view_5_entrypoint_c._y = view_5_entrypoint_c._y + (((dummy_1._y - view_5_entrypoint_c._y) + view5EntryCPosY) / interpolate_speed);
view_5_entrypoint_d._x = view_5_entrypoint_d._x + (((dummy_1._x - view_5_entrypoint_d._x) + view5EntryDPosX) / interpolate_speed);
view_5_entrypoint_d._y = view_5_entrypoint_d._y + (((dummy_1._y - view_5_entrypoint_d._y) + view5EntryDPosY) / interpolate_speed);
view_6_entrypoint_a._x = view_6_entrypoint_a._x + (((dummy_1._x - view_6_entrypoint_a._x) + view6EntryAPosX) / interpolate_speed);
view_6_entrypoint_a._y = view_6_entrypoint_a._y + (((dummy_1._y - view_6_entrypoint_a._y) + view6EntryAPosY) / interpolate_speed);
view_6_entrypoint_b._x = view_6_entrypoint_b._x + (((dummy_1._x - view_6_entrypoint_b._x) + view6EntryBPosX) / interpolate_speed);
view_6_entrypoint_b._y = view_6_entrypoint_b._y + (((dummy_1._y - view_6_entrypoint_b._y) + view6EntryBPosY) / interpolate_speed);
view_6_entrypoint_c._x = view_6_entrypoint_c._x + (((dummy_1._x - view_6_entrypoint_c._x) + view6EntryCPosX) / interpolate_speed);
view_6_entrypoint_c._y = view_6_entrypoint_c._y + (((dummy_1._y - view_6_entrypoint_c._y) + view6EntryCPosY) / interpolate_speed);
view_6_entrypoint_d._x = view_6_entrypoint_d._x + (((dummy_1._x - view_6_entrypoint_d._x) + view6EntryDPosX) / interpolate_speed);
view_6_entrypoint_d._y = view_6_entrypoint_d._y + (((dummy_1._y - view_6_entrypoint_d._y) + view6EntryDPosY) / interpolate_speed);
view_7_entrypoint_a._x = view_7_entrypoint_a._x + (((dummy_1._x - view_7_entrypoint_a._x) + view7EntryAPosX) / interpolate_speed);
view_7_entrypoint_a._y = view_7_entrypoint_a._y + (((dummy_1._y - view_7_entrypoint_a._y) + view7EntryAPosY) / interpolate_speed);
view_7_entrypoint_b._x = view_7_entrypoint_b._x + (((dummy_1._x - view_7_entrypoint_b._x) + view7EntryBPosX) / interpolate_speed);
view_7_entrypoint_b._y = view_7_entrypoint_b._y + (((dummy_1._y - view_7_entrypoint_b._y) + view7EntryBPosY) / interpolate_speed);
view_7_entrypoint_c._x = view_7_entrypoint_c._x + (((dummy_1._x - view_7_entrypoint_c._x) + view7EntryCPosX) / interpolate_speed);
view_7_entrypoint_c._y = view_7_entrypoint_c._y + (((dummy_1._y - view_7_entrypoint_c._y) + view7EntryCPosY) / interpolate_speed);
view_7_entrypoint_d._x = view_7_entrypoint_d._x + (((dummy_1._x - view_7_entrypoint_d._x) + view7EntryDPosX) / interpolate_speed);
view_7_entrypoint_d._y = view_7_entrypoint_d._y + (((dummy_1._y - view_7_entrypoint_d._y) + view7EntryDPosY) / interpolate_speed);
view_8_entrypoint_a._x = view_8_entrypoint_a._x + (((dummy_1._x - view_8_entrypoint_a._x) + view8EntryAPosX) / interpolate_speed);
view_8_entrypoint_a._y = view_8_entrypoint_a._y + (((dummy_1._y - view_8_entrypoint_a._y) + view8EntryAPosY) / interpolate_speed);
view_8_entrypoint_b._x = view_8_entrypoint_b._x + (((dummy_1._x - view_8_entrypoint_b._x) + view8EntryBPosX) / interpolate_speed);
view_8_entrypoint_b._y = view_8_entrypoint_b._y + (((dummy_1._y - view_8_entrypoint_b._y) + view8EntryBPosY) / interpolate_speed);
view_8_entrypoint_c._x = view_8_entrypoint_c._x + (((dummy_1._x - view_8_entrypoint_c._x) + view8EntryCPosX) / interpolate_speed);
view_8_entrypoint_c._y = view_8_entrypoint_c._y + (((dummy_1._y - view_8_entrypoint_c._y) + view8EntryCPosY) / interpolate_speed);
view_8_entrypoint_d._x = view_8_entrypoint_d._x + (((dummy_1._x - view_8_entrypoint_d._x) + view8EntryDPosX) / interpolate_speed);
view_8_entrypoint_d._y = view_8_entrypoint_d._y + (((dummy_1._y - view_8_entrypoint_d._y) + view8EntryDPosY) / interpolate_speed);
cha_walk_1._x = cha_walk_1._x + (((dummy_1._x - cha_walk_1._x) + cha_x_offset) / interpolate_speed);
cha_walk_1._y = cha_walk_1._y + (((dummy_1._y - cha_walk_1._y) + cha_y_offset) / interpolate_speed);
cha_walk_2._x = character_stand_n._x;
cha_walk_2._y = character_stand_n._y;
cha_walk_3._x = character_stand_n._x;
cha_walk_3._y = character_stand_n._y;
cha_walk_4._x = character_stand_n._x;
cha_walk_4._y = character_stand_n._y;
cha_walk_5._x = character_stand_n._x;
cha_walk_5._y = character_stand_n._y;
cha_walk_6._x = character_stand_n._x;
cha_walk_6._y = character_stand_n._y;
cha_walk_7._x = character_stand_n._x;
cha_walk_7._y = character_stand_n._y;
cha_walk_8._x = character_stand_n._x;
cha_walk_8._y = character_stand_n._y;
cha_walk_9._x = character_stand_n._x;
cha_walk_9._y = character_stand_n._y;
cha_walk_10._x = character_stand_n._x;
cha_walk_10._y = character_stand_n._y;
cha_walk_11._x = character_stand_n._x;
cha_walk_11._y = character_stand_n._y;
cha_walk_12._x = character_stand_n._x;
cha_walk_12._y = character_stand_n._y;
cha_walk_13._x = character_stand_n._x;
cha_walk_13._y = character_stand_n._y;
cha_walk_14._x = character_stand_n._x;
cha_walk_14._y = character_stand_n._y;
cha_walk_15._x = character_stand_n._x;
cha_walk_15._y = character_stand_n._y;
cha_walk_16._x = character_stand_n._x;
cha_walk_16._y = character_stand_n._y;
cha_walk_17._x = character_stand_n._x;
cha_walk_17._y = character_stand_n._y;
cha_walk_18._x = character_stand_n._x;
cha_walk_18._y = character_stand_n._y;
facing_s_walk_1._x = character_stand_n._x;
facing_s_walk_1._y = character_stand_n._y;
facing_s_walk_2._x = character_stand_n._x;
facing_s_walk_2._y = character_stand_n._y;
facing_s_walk_3._x = character_stand_n._x;
facing_s_walk_3._y = character_stand_n._y;
facing_s_walk_4._x = character_stand_n._x;
facing_s_walk_4._y = character_stand_n._y;
facing_s_walk_5._x = character_stand_n._x;
facing_s_walk_5._y = character_stand_n._y;
facing_s_walk_6._x = character_stand_n._x;
facing_s_walk_6._y = character_stand_n._y;
facing_s_walk_7._x = character_stand_n._x;
facing_s_walk_7._y = character_stand_n._y;
facing_s_walk_8._x = character_stand_n._x;
facing_s_walk_8._y = character_stand_n._y;
facing_s_walk_9._x = character_stand_n._x;
facing_s_walk_9._y = character_stand_n._y;
facing_s_walk_10._x = character_stand_n._x;
facing_s_walk_10._y = character_stand_n._y;
facing_s_walk_11._x = character_stand_n._x;
facing_s_walk_11._y = character_stand_n._y;
facing_s_walk_12._x = character_stand_n._x;
facing_s_walk_12._y = character_stand_n._y;
facing_s_walk_13._x = character_stand_n._x;
facing_s_walk_13._y = character_stand_n._y;
facing_s_walk_14._x = character_stand_n._x;
facing_s_walk_14._y = character_stand_n._y;
facing_s_walk_15._x = character_stand_n._x;
facing_s_walk_15._y = character_stand_n._y;
facing_s_walk_16._x = character_stand_n._x;
facing_s_walk_16._y = character_stand_n._y;
facing_s_walk_17._x = character_stand_n._x;
facing_s_walk_17._y = character_stand_n._y;
facing_s_walk_18._x = character_stand_n._x;
facing_s_walk_18._y = character_stand_n._y;
facing_e_walk_1._x = character_stand_n._x;
facing_e_walk_1._y = character_stand_n._y;
facing_e_walk_2._x = character_stand_n._x;
facing_e_walk_2._y = character_stand_n._y;
facing_e_walk_3._x = character_stand_n._x;
facing_e_walk_3._y = character_stand_n._y;
facing_e_walk_4._x = character_stand_n._x;
facing_e_walk_4._y = character_stand_n._y;
facing_e_walk_5._x = character_stand_n._x;
facing_e_walk_5._y = character_stand_n._y;
facing_e_walk_6._x = character_stand_n._x;
facing_e_walk_6._y = character_stand_n._y;
facing_e_walk_7._x = character_stand_n._x;
facing_e_walk_7._y = character_stand_n._y;
facing_e_walk_8._x = character_stand_n._x;
facing_e_walk_8._y = character_stand_n._y;
facing_e_walk_9._x = character_stand_n._x;
facing_e_walk_9._y = character_stand_n._y;
facing_e_walk_10._x = character_stand_n._x;
facing_e_walk_10._y = character_stand_n._y;
facing_e_walk_11._x = character_stand_n._x;
facing_e_walk_11._y = character_stand_n._y;
facing_e_walk_12._x = character_stand_n._x;
facing_e_walk_12._y = character_stand_n._y;
facing_e_walk_13._x = character_stand_n._x;
facing_e_walk_13._y = character_stand_n._y;
facing_e_walk_14._x = character_stand_n._x;
facing_e_walk_14._y = character_stand_n._y;
facing_e_walk_15._x = character_stand_n._x;
facing_e_walk_15._y = character_stand_n._y;
facing_e_walk_16._x = character_stand_n._x;
facing_e_walk_16._y = character_stand_n._y;
facing_e_walk_17._x = character_stand_n._x;
facing_e_walk_17._y = character_stand_n._y;
facing_e_walk_18._x = character_stand_n._x;
facing_e_walk_18._y = character_stand_n._y;
facing_w_walk_1._x = character_stand_n._x;
facing_w_walk_1._y = character_stand_n._y;
facing_w_walk_2._x = character_stand_n._x;
facing_w_walk_2._y = character_stand_n._y;
facing_w_walk_3._x = character_stand_n._x;
facing_w_walk_3._y = character_stand_n._y;
facing_w_walk_4._x = character_stand_n._x;
facing_w_walk_4._y = character_stand_n._y;
facing_w_walk_5._x = character_stand_n._x;
facing_w_walk_5._y = character_stand_n._y;
facing_w_walk_6._x = character_stand_n._x;
facing_w_walk_6._y = character_stand_n._y;
facing_w_walk_7._x = character_stand_n._x;
facing_w_walk_7._y = character_stand_n._y;
facing_w_walk_8._x = character_stand_n._x;
facing_w_walk_8._y = character_stand_n._y;
facing_w_walk_9._x = character_stand_n._x;
facing_w_walk_9._y = character_stand_n._y;
facing_w_walk_10._x = character_stand_n._x;
facing_w_walk_10._y = character_stand_n._y;
facing_w_walk_11._x = character_stand_n._x;
facing_w_walk_11._y = character_stand_n._y;
facing_w_walk_12._x = character_stand_n._x;
facing_w_walk_12._y = character_stand_n._y;
facing_w_walk_13._x = character_stand_n._x;
facing_w_walk_13._y = character_stand_n._y;
facing_w_walk_14._x = character_stand_n._x;
facing_w_walk_14._y = character_stand_n._y;
facing_w_walk_15._x = character_stand_n._x;
facing_w_walk_15._y = character_stand_n._y;
facing_w_walk_16._x = character_stand_n._x;
facing_w_walk_16._y = character_stand_n._y;
facing_w_walk_17._x = character_stand_n._x;
facing_w_walk_17._y = character_stand_n._y;
facing_w_walk_18._x = character_stand_n._x;
facing_w_walk_18._y = character_stand_n._y;
character_stand_e._x = character_stand_n._x;
character_stand_e._y = character_stand_n._y;
character_stand_s._x = character_stand_n._x;
character_stand_s._y = character_stand_n._y;
character_stand_w._x = character_stand_n._x;
character_stand_w._y = character_stand_n._y;
character_collision_point._x = character_collision_point._x + ((((dummy_1._x - character_collision_point._x) + cha_x_offset) + (character_stand_n._width / 2.15)) / interpolate_speed);
character_collision_point._y = character_collision_point._y + ((((dummy_1._y - character_collision_point._y) + cha_y_offset) + (character_stand_n._height / 1.3)) / interpolate_speed);
if (cha_collision_bounding_active == true) {
cha_collision_point_n._x = character_collision_point._x;
cha_collision_point_n._y = character_collision_point._y - (character_stand_n._yscale / 14);
cha_collision_point_e._x = character_collision_point._x + (character_stand_n._yscale / 14);
cha_collision_point_e._y = character_collision_point._y;
cha_collision_point_s._x = character_collision_point._x;
cha_collision_point_s._y = character_collision_point._y + (character_stand_n._yscale / 14);
cha_collision_point_w._x = character_collision_point._x - (character_stand_n._yscale / 14);
cha_collision_point_w._y = character_collision_point._y;
} else if (cha_collision_bounding_active == false) {
cha_collision_point_n._x = character_collision_point._x;
cha_collision_point_n._y = character_collision_point._y - 5000;
cha_collision_point_e._x = character_collision_point._x + 5000;
cha_collision_point_e._y = character_collision_point._y;
cha_collision_point_s._x = character_collision_point._x;
cha_collision_point_s._y = character_collision_point._y + 5000;
cha_collision_point_w._x = character_collision_point._x - 5000;
cha_collision_point_w._y = character_collision_point._y;
}
character_shadow._x = character_shadow._x + ((((dummy_1._x - character_shadow._x) + cha_x_offset) + (character_stand_n._width / 3)) / interpolate_speed);
character_shadow._y = character_shadow._y + ((((dummy_1._y - character_shadow._y) + cha_y_offset) + (character_stand_n._height / 1.2)) / interpolate_speed);
door._x = door._x + (((dummy_1._x - door._x) + door_x_offset) / interpolate_speed);
door._y = door._y + (((dummy_1._y - door._y) + door_y_offset) / interpolate_speed);
door_mask._x = door_mask._x + (((dummy_1._x - door_mask._x) + door_mask_x_offset) / interpolate_speed);
door_mask._y = door_mask._y + (((dummy_1._y - door_mask._y) + door_mask_y_offset) / interpolate_speed);
character_frame_1._x = character_frame_1._x + (((dummy_1._x - character_frame_1._x) + cha_x_offset) / interpolate_speed);
character_frame_1._y = character_frame_1._y + (((dummy_1._y - character_frame_1._y) + cha_y_offset) / interpolate_speed);
character_frame_2._x = character_frame_2._x + (((dummy_1._x - character_frame_2._x) + cha_x_offset) / interpolate_speed);
character_frame_2._y = character_frame_2._y + (((dummy_1._y - character_frame_2._y) + cha_y_offset) / interpolate_speed);
character_frame_3._x = character_frame_3._x + (((dummy_1._x - character_frame_3._x) + cha_x_offset) / interpolate_speed);
character_frame_3._y = character_frame_3._y + (((dummy_1._y - character_frame_3._y) + cha_y_offset) / interpolate_speed);
character_frame_4._x = character_frame_4._x + (((dummy_1._x - character_frame_4._x) + cha_x_offset) / interpolate_speed);
character_frame_4._y = character_frame_4._y + (((dummy_1._y - character_frame_4._y) + cha_y_offset) / interpolate_speed);
character_frame_5._x = character_frame_5._x + (((dummy_1._x - character_frame_5._x) + cha_x_offset) / interpolate_speed);
character_frame_5._y = character_frame_5._y + (((dummy_1._y - character_frame_5._y) + cha_y_offset) / interpolate_speed);
character_frame_6._x = character_frame_6._x + (((dummy_1._x - character_frame_6._x) + cha_x_offset) / interpolate_speed);
character_frame_6._y = character_frame_6._y + (((dummy_1._y - character_frame_6._y) + cha_y_offset) / interpolate_speed);
character_frame_7._x = character_frame_7._x + (((dummy_1._x - character_frame_7._x) + cha_x_offset) / interpolate_speed);
character_frame_7._y = character_frame_7._y + (((dummy_1._y - character_frame_7._y) + cha_y_offset) / interpolate_speed);
character_frame_8._x = character_frame_8._x + (((dummy_1._x - character_frame_8._x) + cha_x_offset) / interpolate_speed);
character_frame_8._y = character_frame_8._y + (((dummy_1._y - character_frame_8._y) + cha_y_offset) / interpolate_speed);
object_2._x = object_2._x + (((dummy_1._x - object_2._x) + object_2_x_offset) / interpolate_speed);
object_2._y = object_2._y + (((dummy_1._y - object_2._y) + object_2_y_offset) / interpolate_speed);
view_1_collision._x = view_1_collision._x + ((dummy_1._x - view_1_collision._x) / interpolate_speed);
view_1_collision._y = view_1_collision._y + ((dummy_1._y - view_1_collision._y) / interpolate_speed);
view_2_collision._x = view_2_collision._x + ((dummy_1._x - view_2_collision._x) / interpolate_speed);
view_2_collision._y = view_2_collision._y + ((dummy_1._y - view_2_collision._y) / interpolate_speed);
view_3_collision._x = view_3_collision._x + ((dummy_1._x - view_3_collision._x) / interpolate_speed);
view_3_collision._y = view_3_collision._y + ((dummy_1._y - view_3_collision._y) / interpolate_speed);
view_4_collision._x = view_4_collision._x + ((dummy_1._x - view_4_collision._x) / interpolate_speed);
view_4_collision._y = view_4_collision._y + ((dummy_1._y - view_4_collision._y) / interpolate_speed);
view_5_collision._x = view_5_collision._x + ((dummy_1._x - view_5_collision._x) / interpolate_speed);
view_5_collision._y = view_5_collision._y + ((dummy_1._y - view_5_collision._y) / interpolate_speed);
view_6_collision._x = view_6_collision._x + ((dummy_1._x - view_6_collision._x) / interpolate_speed);
view_6_collision._y = view_6_collision._y + ((dummy_1._y - view_6_collision._y) / interpolate_speed);
view_7_collision._x = view_7_collision._x + ((dummy_1._x - view_7_collision._x) / interpolate_speed);
view_7_collision._y = view_7_collision._y + ((dummy_1._y - view_7_collision._y) / interpolate_speed);
view_8_collision._x = view_8_collision._x + ((dummy_1._x - view_8_collision._x) / interpolate_speed);
view_8_collision._y = view_8_collision._y + ((dummy_1._y - view_8_collision._y) / interpolate_speed);
view_4_show_view_3_trigger._x = view_4_show_view_3_trigger._x + ((dummy_1._x - view_4_show_view_3_trigger._x) / interpolate_speed);
view_4_show_view_3_trigger._y = view_4_show_view_3_trigger._y + ((dummy_1._y - view_4_show_view_3_trigger._y) / interpolate_speed);
view_2_show_view_1_trigger._x = view_2_show_view_1_trigger._x + ((dummy_1._x - view_2_show_view_1_trigger._x) / interpolate_speed);
view_2_show_view_1_trigger._y = view_2_show_view_1_trigger._y + ((dummy_1._y - view_2_show_view_1_trigger._y) / interpolate_speed);
view_1_show_view_2_trigger._x = view_1_show_view_2_trigger._x + ((dummy_1._x - view_1_show_view_2_trigger._x) / interpolate_speed);
view_1_show_view_2_trigger._y = view_1_show_view_2_trigger._y + ((dummy_1._y - view_1_show_view_2_trigger._y) / interpolate_speed);
view_5_show_view_6_trigger._x = view_5_show_view_6_trigger._x + ((dummy_1._x - view_5_show_view_6_trigger._x) / interpolate_speed);
view_5_show_view_6_trigger._y = view_5_show_view_6_trigger._y + ((dummy_1._y - view_5_show_view_6_trigger._y) / interpolate_speed);
_5_show_3_trigger._x = _5_show_3_trigger._x + ((dummy_1._x - _5_show_3_trigger._x) / interpolate_speed);
_5_show_3_trigger._y = _5_show_3_trigger._y + ((dummy_1._y - _5_show_3_trigger._y) / interpolate_speed);
_3_show_view_2._x = _3_show_view_2._x + ((dummy_1._x - _3_show_view_2._x) / interpolate_speed);
_3_show_view_2._y = _3_show_view_2._y + ((dummy_1._y - _3_show_view_2._y) / interpolate_speed);
_6_show_5._x = _6_show_5._x + ((dummy_1._x - _6_show_5._x) / interpolate_speed);
_6_show_5._y = _6_show_5._y + ((dummy_1._y - _6_show_5._y) / interpolate_speed);
show_view_6_trigger._x = show_view_6_trigger._x + ((dummy_1._x - show_view_6_trigger._x) / interpolate_speed);
show_view_6_trigger._y = show_view_6_trigger._y + ((dummy_1._y - show_view_6_trigger._y) / interpolate_speed);
show_view_3_trigger._x = show_view_3_trigger._x + ((dummy_1._x - show_view_3_trigger._x) / interpolate_speed);
show_view_3_trigger._y = show_view_3_trigger._y + ((dummy_1._y - show_view_3_trigger._y) / interpolate_speed);
show_view_2_trigger._x = show_view_2_trigger._x + ((dummy_1._x - show_view_2_trigger._x) / interpolate_speed);
show_view_2_trigger._y = show_view_2_trigger._y + ((dummy_1._y - show_view_2_trigger._y) / interpolate_speed);
get_object_trigger._x = get_object_trigger._x + ((dummy_1._x - get_object_trigger._x) / interpolate_speed);
get_object_trigger._y = get_object_trigger._y + ((dummy_1._y - get_object_trigger._y) / interpolate_speed);
if (doorTriggerInPosition == true) {
open_door_trigger._x = open_door_trigger._x + ((dummy_1._x - open_door_trigger._x) / interpolate_speed);
open_door_trigger._y = open_door_trigger._y + ((dummy_1._y - open_door_trigger._y) / interpolate_speed);
} else if (doorTriggerInPosition == false) {
open_door_trigger._x = -3000;
open_door_trigger._y = -3000;
}
test_variable = test_marker._x;
keyListenerTests.onKeyDown = function () {
if (Key.isDown(79)) {
if (Key.isDown(98)) {
o_and_numpad_two_key_down = true;
}
if (Key.isDown(100)) {
o_and_numpad_four_key_down = true;
}
if (Key.isDown(102)) {
o_and_numpad_six_key_down = true;
}
if (Key.isDown(104)) {
o_and_numpad_eight_key_down = true;
}
}
if (Key.isDown(84)) {
if (Key.isDown(103)) {
numpad_seven_key_down = true;
}
if (Key.isDown(104)) {
numpad_eight_key_down = true;
}
if (Key.isDown(105)) {
numpad_nine_key_down = true;
}
if (Key.isDown(76)) {
logo_animation = false;
}
}
};
keyListenerTestsUp.onKeyUp = function () {
if (Key.isDown(98) == false) {
o_and_numpad_two_key_down = false;
}
if (Key.isDown(100) == false) {
o_and_numpad_four_key_down = false;
}
if (Key.isDown(102) == false) {
o_and_numpad_six_key_down = false;
}
if (Key.isDown(104) == false) {
o_and_numpad_eight_key_down = false;
}
if (Key.isDown(103) == false) {
numpad_seven_key_down = false;
}
if (Key.isDown(104) == false) {
numpad_eight_key_down = false;
}
if (Key.isDown(105) == false) {
numpad_nine_key_down = false;
}
};
test.text._visible = false;
char_to_edge_of_view_dist = character_stand_n._y - view_1._y;
dummy_to_edge_of_view_dist = character_dummy._y - view_1._y;
if (keys_active == true) {
keyListenerDown.onKeyDown = function () {
if (Key.getCode() == 100) {
} else if (Key.getCode() == 80) {
} else if (Key.getCode() == 17) {
} else if (Key.getCode() == 13) {
enter_key_down = true;
} else if (Key.getCode() == 32) {
enter_key_down = true;
} else if (Key.getCode() == 37) {
if (view_1._visible == true) {
if (view_1_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_2._visible == true) {
if (view_2_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_3._visible == true) {
if (view_3_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_4._visible == true) {
if (view_4_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_5._visible == true) {
if (view_5_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_6._visible == true) {
if (view_6_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_7._visible == true) {
if (view_7_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_8._visible == true) {
if (view_8_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
}
} else if (Key.getCode() == 39) {
if (view_1._visible == true) {
if (view_1_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_2._visible == true) {
if (view_2_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_3._visible == true) {
if (view_3_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_4._visible == true) {
if (view_4_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_5._visible == true) {
if (view_5_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_6._visible == true) {
if (view_6_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_7._visible == true) {
if (view_7_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_8._visible == true) {
if (view_8_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
}
} else if (Key.getCode() == 38) {
up_arrow_key_down = true;
} else if (Key.getCode() == 40) {
down_arrow_key_down = true;
} else if (Key.getCode() == 87) {
up_arrow_key_down = true;
} else if (Key.getCode() == 83) {
down_arrow_key_down = true;
} else if (Key.getCode() == 65) {
if (view_1._visible == true) {
if (view_1_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_2._visible == true) {
if (view_2_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_3._visible == true) {
if (view_3_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_4._visible == true) {
if (view_4_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_5._visible == true) {
if (view_5_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_6._visible == true) {
if (view_6_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_7._visible == true) {
if (view_7_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
} else if (view_8._visible == true) {
if (view_8_turn_cam_180_trigger._visible == false) {
left_arrow_key_down = true;
}
}
} else if (Key.getCode() == 68) {
if (view_1._visible == true) {
if (view_1_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_2._visible == true) {
if (view_2_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_3._visible == true) {
if (view_3_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_4._visible == true) {
if (view_4_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_5._visible == true) {
if (view_5_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_6._visible == true) {
if (view_6_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_7._visible == true) {
if (view_7_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
} else if (view_8._visible == true) {
if (view_8_turn_cam_180_trigger._visible == false) {
right_arrow_key_down = true;
}
}
}
};
}
if (stopTheAnimation == 1) {
character_animation_timer = 5;
animation_running = false;
forward_animation = false;
backward_animation = false;
left_animation = false;
right_animation = false;
cha_walk_1._visible = false;
cha_walk_2._visible = false;
cha_walk_3._visible = false;
cha_walk_4._visible = false;
cha_walk_5._visible = false;
cha_walk_6._visible = false;
cha_walk_7._visible = false;
cha_walk_8._visible = false;
cha_walk_9._visible = false;
cha_walk_10._visible = false;
cha_walk_11._visible = false;
cha_walk_12._visible = false;
cha_walk_13._visible = false;
cha_walk_14._visible = false;
cha_walk_15._visible = false;
cha_walk_16._visible = false;
cha_walk_17._visible = false;
cha_walk_18._visible = false;
facing_s_walk_1._visible = false;
facing_s_walk_2._visible = false;
facing_s_walk_3._visible = false;
facing_s_walk_4._visible = false;
facing_s_walk_5._visible = false;
facing_s_walk_6._visible = false;
facing_s_walk_7._visible = false;
facing_s_walk_8._visible = false;
facing_s_walk_9._visible = false;
facing_s_walk_10._visible = false;
facing_s_walk_11._visible = false;
facing_s_walk_12._visible = false;
facing_s_walk_13._visible = false;
facing_s_walk_14._visible = false;
facing_s_walk_15._visible = false;
facing_s_walk_16._visible = false;
facing_s_walk_17._visible = false;
facing_s_walk_18._visible = false;
facing_e_walk_1._visible = false;
facing_e_walk_2._visible = false;
facing_e_walk_3._visible = false;
facing_e_walk_4._visible = false;
facing_e_walk_5._visible = false;
facing_e_walk_6._visible = false;
facing_e_walk_7._visible = false;
facing_e_walk_8._visible = false;
facing_e_walk_9._visible = false;
facing_e_walk_10._visible = false;
facing_e_walk_11._visible = false;
facing_e_walk_12._visible = false;
facing_e_walk_13._visible = false;
facing_e_walk_14._visible = false;
facing_e_walk_15._visible = false;
facing_e_walk_16._visible = false;
facing_e_walk_17._visible = false;
facing_e_walk_18._visible = false;
facing_w_walk_1._visible = false;
facing_w_walk_2._visible = false;
facing_w_walk_3._visible = false;
facing_w_walk_4._visible = false;
facing_w_walk_5._visible = false;
facing_w_walk_6._visible = false;
facing_w_walk_7._visible = false;
facing_w_walk_8._visible = false;
facing_w_walk_9._visible = false;
facing_w_walk_10._visible = false;
facing_w_walk_11._visible = false;
facing_w_walk_12._visible = false;
facing_w_walk_13._visible = false;
facing_w_walk_14._visible = false;
facing_w_walk_15._visible = false;
facing_w_walk_16._visible = false;
facing_w_walk_17._visible = false;
facing_w_walk_18._visible = false;
if (last_key_pressed == "w") {
character_stand_e._visible = false;
character_stand_w._visible = false;
if (w_key_animation == "north") {
character_stand_n._visible = true;
character_stand_s._visible = false;
} else if (w_key_animation == "south") {
character_stand_s._visible = true;
character_stand_n._visible = false;
w_key_animation = "north";
}
} else if (last_key_pressed == "s") {
character_stand_n._visible = false;
character_stand_e._visible = false;
if (moveHitTrigger == 0) {
character_stand_n._visible = false;
character_stand_s._visible = true;
} else if (moveHitTrigger == 1) {
character_stand_s._visible = false;
character_stand_n._visible = true;
}
character_stand_w._visible = false;
} else if (last_key_pressed == "d") {
if (keys_animation == "east") {
character_stand_n._visible = false;
character_stand_e._visible = true;
character_stand_s._visible = false;
character_stand_w._visible = false;
} else if (keys_animation == "west") {
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = false;
character_stand_w._visible = true;
keys_animation = "east";
}
} else if (last_key_pressed == "a") {
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = false;
character_stand_w._visible = true;
}
stopTheAnimation = 0;
}
col.setTransform(trans);
if (workaround == 1) {
character_stand_s._visible = false;
character_stand_n._visible = true;
workaround = 0;
}
if (start_plasma_ball_timer_active == true) {
start_plasma_ball_timer = start_plasma_ball_timer + 1;
if (start_plasma_ball_timer == 1) {
if (baddie_targeted == false) {
}
} else if (start_plasma_ball_timer == 2) {
start_plasma_ball._visible = false;
start_plasma_ball_timer = 0;
start_plasma_ball_timer_active = false;
}
} else if (start_plasma_ball_timer_active == false) {
start_plasma_ball._visible = false;
start_plasma_ball_timer = 0;
}
}
function timestep_2() {
if (timestep_2_once_flag == 0) {
logo_animation = true;
timestep_2_once_flag = 1;
}
if (air_bar_active == true) {
air_bar._visible = true;
air_bar_progress._visible = true;
if (air_bar._alpha < 100) {
air_bar._alpha = air_bar._alpha + 2;
air_bar_progress._alpha = air_bar_progress._alpha + 2;
}
if (gamePaused == false) {
if (intro_movie_active == false) {
if (show_inventory_active == false) {
if (showMessage == false) {
if (end_view._visible == false) {
air_bar_progress_timer = air_bar_progress_timer + (1 * frameRateDiff);
if (air_bar_progress_timer >= 300) {
air_bar_progress._y = air_bar_progress._y + 1;
if (air_bar_progress._y >= 20) {
air_alarm_active = true;
}
air_bar_progress_timer = 0;
}
}
}
}
}
}
if (air_bar_progress._y >= 27) {
character_view = "1st_person";
if (view_1._visible == true) {
view_1._visible = false;
view_2._visible = true;
}
if (view_2._visible == true) {
view_2._visible = false;
view_1._visible = true;
}
if (view_3._visible == true) {
view_3._visible = false;
view_4._visible = true;
}
if (view_4._visible == true) {
view_4._visible = false;
view_3._visible = true;
}
if (view_5._visible == true) {
view_5._visible = false;
view_6._visible = true;
}
if (view_6._visible == true) {
view_6._visible = false;
view_5._visible = true;
}
if (view_7._visible == true) {
view_7._visible = false;
view_8._visible = true;
}
if (view_8._visible == true) {
view_8._visible = false;
view_7._visible = true;
}
cha_Ist_person_damaged = true;
_root.s_damaged_alarm.stop();
_root.s_damaged_alarm.start(0, 1);
drop_health = true;
showMessage = true;
messageNo = 32;
}
} else if (air_bar_active == false) {
if (air_bar._alpha >= 0) {
air_bar._alpha = air_bar._alpha - 2;
air_bar_progress._alpha = air_bar_progress._alpha - 2;
}
if (air_bar._alpha <= 0) {
air_bar._visible = false;
air_bar_progress._visible = false;
}
}
if (collide_object_active == true) {
coFriction = 0.08;
coBounce = 1;
collide_object._visible = true;
left_collision_wall._x = left_collision_wall._x + ((dummy_1._x - left_collision_wall._x) / interpolate_speed);
left_collision_wall._y = left_collision_wall._y + ((dummy_1._y - left_collision_wall._y) / interpolate_speed);
right_collision_wall._x = right_collision_wall._x + ((dummy_1._x - right_collision_wall._x) / interpolate_speed);
right_collision_wall._y = right_collision_wall._y + ((dummy_1._y - right_collision_wall._y) / interpolate_speed);
top_collision_wall._x = top_collision_wall._x + ((dummy_1._x - top_collision_wall._x) / interpolate_speed);
top_collision_wall._y = top_collision_wall._y + ((dummy_1._y - top_collision_wall._y) / interpolate_speed);
bottom_collision_wall._x = bottom_collision_wall._x + ((dummy_1._x - bottom_collision_wall._x) / interpolate_speed);
bottom_collision_wall._y = bottom_collision_wall._y + ((dummy_1._y - bottom_collision_wall._y) / interpolate_speed);
collide_object._x = collide_object._x + (((dummy_1._x - collide_object._x) + co_x_offset) / interpolate_speed);
collide_object._y = collide_object._y + (((dummy_1._y - collide_object._y) + co_y_offset) / interpolate_speed);
collide_object_top_left._x = collide_object_top_left._x + (((dummy_1._x - collide_object_top_left._x) + co_x_offset) / interpolate_speed);
collide_object_top_left._y = collide_object_top_left._y + (((dummy_1._y - collide_object_top_left._y) + co_y_offset) / interpolate_speed);
collide_object_top_right._x = collide_object_top_right._x + (((dummy_1._x - collide_object_top_right._x) + co_x_offset) / interpolate_speed);
collide_object_top_right._y = collide_object_top_right._y + (((dummy_1._y - collide_object_top_right._y) + co_y_offset) / interpolate_speed);
collide_object_bottom_left._x = collide_object_bottom_left._x + (((dummy_1._x - collide_object_bottom_left._x) + co_x_offset) / interpolate_speed);
collide_object_bottom_left._y = collide_object_bottom_left._y + (((dummy_1._y - collide_object_bottom_left._y) + co_y_offset) / interpolate_speed);
collide_object_bottom_right._x = collide_object_bottom_right._x + (((dummy_1._x - collide_object_bottom_right._x) + co_x_offset) / interpolate_speed);
collide_object_bottom_right._y = collide_object_bottom_right._y + (((dummy_1._y - collide_object_bottom_right._y) + co_y_offset) / interpolate_speed);
if ((collide_object._rotation >= 0) and (collide_object._rotation < 90)) {
coDifference = collide_object._rotation / 1.636;
collide_object._xscale = ((100 - coDifference) / 2) * cDiffX;
}
if ((collide_object._rotation >= 90) and (collide_object._rotation < 180)) {
coDifference = (collide_object._rotation - 90) / 1.636;
collide_object._xscale = ((45.5 + coDifference) / 2) * cDiffX;
}
if ((collide_object._rotation >= -180) and (collide_object._rotation < -90)) {
coDifference = (collide_object._rotation + 180) / 1.636;
collide_object._xscale = ((100 - coDifference) / 2) * cDiffX;
}
if ((collide_object._rotation >= -90) and (collide_object._rotation < 0)) {
coDifference = (collide_object._rotation + 90) / 1.636;
collide_object._xscale = ((45.5 + coDifference) / 2) * cDiffX;
}
if ((collide_object._rotation >= 0) and (collide_object._rotation < 90)) {
coDifference = collide_object._rotation / 1.636;
collide_object._yscale = ((100 + coDifference) / 2) * cDiffY;
}
if ((collide_object._rotation >= 90) and (collide_object._rotation < 180)) {
coDifference = (collide_object._rotation - 270) / 1.636;
collide_object._yscale = ((45.5 - coDifference) / 2) * cDiffY;
}
if ((collide_object._rotation >= -180) and (collide_object._rotation < -90)) {
coDifference = (collide_object._rotation + 180) / 1.636;
collide_object._yscale = ((100 + coDifference) / 2) * cDiffY;
}
if ((collide_object._rotation >= -90) and (collide_object._rotation < 0)) {
coDifference = (collide_object._rotation - 90) / 1.636;
collide_object._yscale = ((45.5 - coDifference) / 2) * cDiffY;
}
coDifferenceD = 175 - co_y_offset;
cDiffX = ((20 + (coDifferenceD * 2)) * 1.5) / 180;
cDiffY = ((20 + (coDifferenceD * 2)) * 1.5) / 180;
co_x_offset = co_x_offset + covx;
co_y_offset = co_y_offset + covy;
collide_object._rotation = collide_object._rotation + cor;
collide_object_top_left._rotation = (collide_object_top_right._rotation = (collide_object_bottom_left._rotation = (collide_object_bottom_right._rotation = collide_object._rotation)));
if ((cor >= 0.2) and (cor < 2.2)) {
cor = cor - coFriction;
}
if ((cor >= 0.2) and (cor < 2.2)) {
cor = cor - coFriction;
}
if ((cor >= -2.2) and (cor < -0.2)) {
cor = cor + coFriction;
}
if ((cor >= -2.2) and (cor < -0.2)) {
cor = cor + coFriction;
}
if ((cor >= -0.2) and (cor < 0.2)) {
cor = 0;
}
if ((cor >= -0.2) and (cor < 0.2)) {
cor = 0;
}
if ((covx >= 0.2) and (covx < 2.2)) {
covx = covx - coFriction;
}
if ((covy >= 0.2) and (covy < 2.2)) {
covy = covy - coFriction;
}
if ((covx >= -2.2) and (covx < -0.2)) {
covx = covx + coFriction;
}
if ((covy >= -2.2) and (covy < -0.2)) {
covy = covy + coFriction;
}
if ((covx >= -0.2) and (covx < 0.2)) {
covx = 0;
}
if ((covy >= -0.2) and (covy < 0.2)) {
covy = 0;
}
coSide = 0.6;
if (_root.left_collision_wall.hitTest(collide_object_top_right._x, collide_object_top_right._y, true)) {
covx = coBounce;
}
if (_root.right_collision_wall.hitTest(collide_object_top_right._x, collide_object_top_right._y, true)) {
covx = -coBounce;
}
if (_root.top_collision_wall.hitTest(collide_object_top_right._x, collide_object_top_right._y, true)) {
covy = coBounce;
}
if (_root.bottom_collision_wall.hitTest(collide_object_top_right._x, collide_object_top_right._y, true)) {
covy = -coBounce;
}
if (_root.collide_object_top_right.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
covx = coSide;
covy = 2;
cor = -2;
}
if (_root.collide_object_top_right.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
covx = -coSide;
covy = -2;
cor = -2;
}
if (_root.collide_object_top_right.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
covx = -2;
covy = coSide;
cor = -2;
}
if (_root.collide_object_top_right.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
covx = 2;
covy = -2;
cor = -0.8;
}
if (_root.collide_object_top_left.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
covx = -coSide;
covy = 2;
cor = 2;
}
if (_root.collide_object_top_left.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
covx = coSide;
covy = -2;
cor = 2;
}
if (_root.collide_object_top_left.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
covx = -2;
covy = -coSide;
cor = 2;
}
if (_root.collide_object_top_left.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
covx = 2;
covy = coSide;
cor = 2;
}
if (_root.collide_object_bottom_left.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
covx = -coSide;
covy = 2;
cor = -2;
}
if (_root.collide_object_bottom_left.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
covx = -coSide;
covy = -2;
cor = -2;
}
if (_root.collide_object_bottom_left.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
covx = -2;
covy = -coSide;
cor = -2;
}
if (_root.collide_object_bottom_left.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
covx = 2;
covy = -coSide;
cor = -2;
}
if (_root.collide_object_bottom_right.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
covx = -coSide;
covy = 2;
cor = 2;
}
if (_root.collide_object_bottom_right.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
covx = coSide;
covy = -2;
cor = 2;
}
if (_root.collide_object_bottom_right.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
covx = -2;
covy = -coSide;
cor = 2;
}
if (_root.collide_object_bottom_right.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
covx = 2;
covy = coSide;
cor = 2;
}
} else if (collide_object_active == false) {
collide_object._visible = false;
}
if (switch_a_view_used._visible == true) {
switch_a_active = true;
} else if (switch_a_view_used._visible == false) {
switch_a_active = false;
}
if (switch_a_object_view_used._visible == true) {
switch_a_object_active = true;
} else if (switch_a_object_view_used._visible == false) {
switch_a_object_active = false;
}
if (switch_b_view_used._visible == true) {
switch_b_active = true;
} else if (switch_b_view_used._visible == false) {
switch_b_active = false;
}
if (collect_object_b_view_used._visible == true) {
if (times_visited_view_4 >= 2) {
collect_object_b_active = true;
}
} else if (collect_object_b_view_used._visible == false) {
collect_object_b_active = false;
}
if (switch_b_object_view_used._visible == true) {
switch_b_object_active = true;
} else if (switch_b_object_view_used._visible == false) {
switch_b_object_active = false;
}
if (switch_c_view_used._visible == true) {
switch_c_active = true;
} else if (switch_c_view_used._visible == false) {
switch_c_active = false;
}
if (switch_c_object_view_used._visible == true) {
switch_c_object_active = true;
} else if (switch_c_object_view_used._visible == false) {
switch_c_object_active = false;
}
if (collect_object_b_active == true) {
if (character_view == "3rd_person") {
collect_object_b_trigger._x = collect_object_b_trigger._x + ((dummy_1._x - collect_object_b_trigger._x) / interpolate_speed);
collect_object_b_trigger._y = collect_object_b_trigger._y + ((dummy_1._y - collect_object_b_trigger._y) / interpolate_speed);
object_b_view._x = object_b_view._x + ((dummy_1._x - object_b_view._x) / interpolate_speed);
object_b_view._y = object_b_view._y + ((dummy_1._y - object_b_view._y) / interpolate_speed);
}
if (object_b_collected == false) {
if (rpg_battle_system_active == false) {
if (show_object_b_once_flag == 0) {
object_b_view._visible = true;
object_b_view._alpha = 100;
show_object_b_once_flag = 1;
}
}
}
if (_root.collect_object_b_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (object_b_collected == false) {
hitting_collect_object_b_trigger = true;
use_hand_collect_obj_b._visible = true;
use_text_collect_obj_b._visible = true;
}
} else {
hitting_collect_object_b_trigger = false;
use_hand_collect_obj_b._visible = false;
use_text_collect_obj_b._visible = false;
}
} else if (collect_object_b_active == false) {
object_b_view._visible = false;
object_b_view._alpha = 0;
show_object_b_once_flag = 0;
hitting_collect_object_b_trigger = false;
use_hand_collect_obj_b._visible = false;
use_text_collect_obj_b._visible = false;
}
if (switch_a_active == true) {
switch_a_trigger._x = switch_a_trigger._x + ((dummy_1._x - switch_a_trigger._x) / interpolate_speed);
switch_a_trigger._y = switch_a_trigger._y + ((dummy_1._y - switch_a_trigger._y) / interpolate_speed);
if (_root.switch_a_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (switch_a_pressed == false) {
hitting_switch_a_trigger = true;
use_hand_switch_a._visible = true;
use_text_switch_a._visible = true;
}
} else {
hitting_switch_a_trigger = false;
use_hand_switch_a._visible = false;
use_text_switch_a._visible = false;
}
} else if (switch_a_active == false) {
hitting_switch_a_trigger = false;
use_hand_switch_a._visible = false;
use_text_switch_a._visible = false;
}
if (switch_c_active == true) {
switch_c_trigger._x = switch_c_trigger._x + ((dummy_1._x - switch_c_trigger._x) / interpolate_speed);
switch_c_trigger._y = switch_c_trigger._y + ((dummy_1._y - switch_c_trigger._y) / interpolate_speed);
if (_root.switch_c_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (switch_c_pressed == false) {
hitting_switch_c_trigger = true;
use_hand_switch_c._visible = true;
use_text_switch_c._visible = true;
}
} else {
hitting_switch_c_trigger = false;
hitting_switch_c_trigger_once_flag = 0;
use_hand_switch_c._visible = false;
use_text_switch_c._visible = false;
}
} else if (switch_c_active == false) {
hitting_switch_c_trigger = false;
use_hand_switch_c._visible = false;
use_text_switch_c._visible = false;
}
if (switch_a_object_active == true) {
switch_a_object_trigger._x = switch_a_object_trigger._x + ((dummy_1._x - switch_a_object_trigger._x) / interpolate_speed);
switch_a_object_trigger._y = switch_a_object_trigger._y + ((dummy_1._y - switch_a_object_trigger._y) / interpolate_speed);
if (_root.switch_a_object_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
hitting_switch_a_object_trigger = true;
use_hand_switch_a_object._visible = true;
use_text_switch_a_object._visible = true;
} else {
hitting_switch_a_object_trigger = false;
use_hand_switch_a_object._visible = false;
use_text_switch_a_object._visible = false;
show_switch_a_pressed_message_flag = 0;
}
} else if (switch_a_object_active == false) {
hitting_switch_a_object_trigger = false;
}
if (switch_b_object_active == true) {
switch_b_object_trigger._x = switch_b_object_trigger._x + ((dummy_1._x - switch_b_object_trigger._x) / interpolate_speed);
switch_b_object_trigger._y = switch_b_object_trigger._y + ((dummy_1._y - switch_b_object_trigger._y) / interpolate_speed);
if (_root.switch_b_object_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
hitting_switch_b_object_trigger = true;
use_hand_switch_b_object._visible = true;
use_text_switch_b_object._visible = true;
} else {
hitting_switch_b_object_trigger = false;
use_hand_switch_b_object._visible = false;
use_text_switch_b_object._visible = false;
show_switch_b_pressed_message_flag = 0;
}
} else if (switch_b_object_active == false) {
hitting_switch_b_object_trigger = false;
}
if (switch_c_object_active == true) {
switch_c_object_trigger._x = switch_c_object_trigger._x + ((dummy_1._x - switch_c_object_trigger._x) / interpolate_speed);
switch_c_object_trigger._y = switch_c_object_trigger._y + ((dummy_1._y - switch_c_object_trigger._y) / interpolate_speed);
if (_root.switch_c_object_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (object_c_collected == true) {
} else if (object_c_collected == false) {
mine_explosion_active = true;
}
} else {
show_switch_c_pressed_message_flag = 0;
}
} else if (switch_c_object_active == false) {
hitting_switch_c_object_trigger = false;
}
if (object_collected_animation_active == true) {
if (active_ani_object == object_e_collected_mc) {
object_b_collected_mc._visible = false;
}
if (active_ani_object == object_b_collected_mc) {
object_e_collected_mc._visible = false;
}
ocaTimer = ocaTimer + 1;
if ((ocaTimer >= 0) && (ocaTimer < 100)) {
active_ani_object._visible = true;
active_ani_object._alpha = 100;
inventory_folder_mc._visible = true;
inventory_folder_mc._alpha = 100;
} else if ((ocaTimer >= 100) && (active_ani_object._alpha > 0)) {
active_ani_object._visible = true;
active_ani_object._alpha = active_ani_object._alpha - (5 * frameRateDiff);
} else if ((ocaTimer >= 100) && (active_ani_object._alpha <= 0)) {
active_ani_object._visible = true;
active_ani_object._alpha = 0;
inventory_folder_mc_animation = true;
object_collected_animation_active = false;
}
} else if (object_collected_animation_active == false) {
ocaTimer = 0;
}
if (inventory_folder_mc_animation == true) {
ifiTimer = ifiTimer + 1;
if ((ifiTimer >= 0) && (ifiTimer < 50)) {
inventory_folder_mc._visible = true;
inventory_folder_mc._alpha = 100;
} else if ((ifiTimer >= 50) && (inventory_folder_mc._alpha > 0)) {
inventory_folder_mc._visible = true;
inventory_folder_mc._alpha = inventory_folder_mc._alpha - (5 * frameRateDiff);
if (start_folder_flash_ani_flag == 0) {
start_folder_flash_ani_active = true;
start_folder_flash_ani_flag = 1;
}
} else if ((ifiTimer >= 50) && (inventory_folder_mc._alpha <= 0)) {
inventory_folder_mc._visible = true;
inventory_folder_mc._alpha = 0;
inventory_folder_mc_animation = false;
}
} else if (inventory_folder_mc_animation == false) {
ifiTimer = 0;
start_folder_flash_ani_flag = 0;
}
if (start_folder_flash_ani_active == true) {
sfaTimer = sfaTimer + 1;
if ((sfaTimer >= 0) && (sfaTimer < 10)) {
inventory_flash_bottom._visible = true;
inventory_flash_bottom._alpha = 80;
inventory_flash_top._visible = true;
inventory_flash_top._alpha = 80;
} else if ((sfaTimer >= 10) && (inventory_flash_bottom._alpha > 0)) {
inventory_flash_bottom._visible = true;
inventory_flash_bottom._alpha = inventory_flash_bottom._alpha - (5 * frameRateDiff);
inventory_flash_bottom._xscale = (inventory_flash_bottom._yscale = inventory_flash_bottom._yscale + (5 * frameRateDiff));
inventory_flash_top._visible = true;
inventory_flash_top._alpha = inventory_flash_top._alpha - (5 * frameRateDiff);
inventory_flash_top._xscale = (inventory_flash_top._yscale = inventory_flash_top._yscale + (5 * frameRateDiff));
} else if ((sfaTimer >= 10) && (inventory_flash_bottom._alpha <= 0)) {
inventory_flash_bottom._visible = true;
inventory_flash_bottom._alpha = 0;
inventory_flash_top._visible = true;
inventory_flash_top._alpha = 0;
start_folder_flash_ani_active = false;
}
} else if (start_folder_flash_ani_active == false) {
sfaTimer = 0;
inventory_flash_bottom._xscale = (inventory_flash_bottom._yscale = 100);
inventory_flash_top._xscale = (inventory_flash_top._yscale = 100);
}
if (ship_takeoff_animation == true) {
if (ship_engine_sound_playing == false) {
_root.s_ship_engine_sound.start(0, 1);
ship_engine_sound_playing = true;
}
}
if (particle_overlay_active == true) {
if (particle_overlay_active_flag == 0) {
particle_overlay_active_flag = 1;
}
particle_overlay._visible = true;
if ((character_view == "3rd_person") || (character_view == "1st_person_conference")) {
particle_overlay._x = particle_overlay._x + ((dummy_1._x - particle_overlay._x) / interpolate_speed);
particle_overlay._y = particle_overlay._y + ((dummy_1._y - particle_overlay._y) / interpolate_speed);
}
} else if (particle_overlay_active == false) {
particle_overlay._visible = false;
}
if (mine_explosion_active == true) {
mine_timer = mine_timer + 1;
mine_explosion._x = mine_explosion._x + ((dummy_1._x - mine_explosion._x) / interpolate_speed);
mine_explosion._y = mine_explosion._y + ((dummy_1._y - mine_explosion._y) / interpolate_speed);
if ((mine_timer >= 2) && (mine_explosion._alpha > 0)) {
mine_explosion._visible = true;
if (mine_sound_flag == 0) {
_root.s_mine_sound.start(0, 1);
mine_sound_flag = 1;
}
mine_explosion._alpha = mine_explosion._alpha - 15;
}
if ((mine_timer >= 2) && (mine_explosion._alpha <= 0)) {
mine_explosion._visible = false;
view_2._visible = false;
view_1._visible = true;
character_view = "1st_person";
cha_Ist_person_damaged = true;
_root.s_damaged_alarm.stop();
_root.s_damaged_alarm.start(0, 1);
drop_health = true;
showMessage = true;
messageNo = 32;
mine_explosion_active = false;
}
} else if (mine_explosion_active == false) {
mine_explosion._alpha = 100;
mine_explosion._visible = false;
mine_sound_flag = 0;
mine_timer = 0;
}
if (plasmashot_text_mc.plasmashot_text < 0) {
plasmashot_text_mc.plasmashot_text = 0;
}
if (scanner_text_mc.scanner_text.text < 0) {
scanner_text_mc.scanner_text.text = 0;
}
if (show_help_info_active == true) {
sha_timer = sha_timer + 1;
help_info_box._visible = true;
help_info_box._alpha = 100;
if ((sha_timer >= 0) && (sha_timer < 10)) {
help_info_text._visible = true;
help_info_text._alpha = 0;
} else if ((sha_timer >= 10) && (help_info_text._alpha < 100)) {
help_info_text._visible = true;
help_info_text._alpha = help_info_text._alpha + 10;
} else if ((sha_timer >= 10) && (help_info_text._alpha >= 100)) {
help_info_text._visible = true;
help_info_text._alpha = 100;
}
} else if (show_help_info_active == false) {
sha_timer = 0;
help_info_box._visible = false;
help_info_box._alpha = 0;
help_info_text._visible = false;
help_info_text._alpha = 0;
}
if (collect_powerups_active == true) {
if (offer_power_flag == 0) {
power_icon._visible = true;
offer_power_flag = 1;
}
if (collect_power_view_used._visible == true) {
if (_root.get_power_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (powerCollected == 0) {
iAmNearPower = 1;
}
} else {
powerCollected = 0;
iAmNearPower = 0;
}
}
} else if (collect_powerups_active == false) {
power_icon._visible = false;
offer_power_flag = 0;
}
dist_view_height_to_cha = Math.pow((view_1._y + view_1._height) - character_stand_n._y, 6) / 750000000000000;
characterYOffset = (dist_view_height_to_cha * frameRateDiff) * 1.2;
characterXOffsetWalkAdjust = ((dist_view_height_to_cha * 3) * frameRateDiff) * 1.2;
if (baddie_2_shot == true) {
baddie_2_hit = baddie_2_hit + 1;
baddie_2_shot = false;
}
if (baddie_2_b_shot == true) {
baddie_2_b_hit = baddie_2_b_hit + 1;
baddie_2_b_shot = false;
}
if (baddie_2_hit > 2) {
if (character_hit_ready_counter > 10) {
baddie_explode_active = true;
}
baddie_2_fade = true;
baddie_2_movement_active = false;
baddie_2_used_again = baddie_2_used_again + 1;
scanner_text_mc.scanner_text.text = scanner_text_mc.scanner_text.text - 1;
baddie_2_hit = 0;
}
if (baddie_2_b_hit > 2) {
if (character_hit_ready_counter > 10) {
baddie_f_explode_active = true;
}
baddie_2_b_fade = true;
baddie_2_b_movement_active = false;
baddie_2_b_used_again = baddie_2_b_used_again + 1;
scanner_text_mc.scanner_text.text = scanner_text_mc.scanner_text.text - 1;
baddie_2_b_hit = 0;
}
if (baddie_2_fade == true) {
baddie_2._alpha = baddie_2._alpha - 16;
baddie_2f2._alpha = baddie_2f2._alpha - 16;
baddie_2f3._alpha = baddie_2f3._alpha - 16;
if (baddie_2._alpha < 0) {
baddie_2_is_killed = true;
baddie_2_fade = false;
}
}
if (baddie_2_b_fade == true) {
baddie_2_b._alpha = baddie_2_b._alpha - 16;
baddie_2_bf2._alpha = baddie_2_bf2._alpha - 16;
baddie_2_bf3._alpha = baddie_2_bf3._alpha - 16;
if (baddie_2_b._alpha < 0) {
baddie_2_b_is_killed = true;
baddie_2_b_fade = false;
}
}
if (baddie_2_is_killed == true) {
if (baddie_2_used_again < 5) {
baddie_2_movement_active = true;
baddie_2_move_timer = 0;
show_baddie_2 = true;
baddie_2_is_killed = false;
} else if (baddie_2_used_again >= 5) {
bIIxo = baddie_2_x_offset;
bIIxo = 1;
bIIyo = baddie_2_y_offset;
bIIyo = 1;
}
}
if (baddie_2_b_is_killed == true) {
if (baddie_2_b_used_again < 5) {
baddie_2_b_move_timer = 0;
show_baddie_2_b = true;
baddie_2_b_movement_active = true;
baddie_2_b_is_killed = false;
} else if (baddie_2_b_used_again >= 5) {
bIIbxo = baddie_2_b_x_offset;
bIIbxo = 1;
bIIbyo = baddie_2_b_y_offset;
bIIbyo = 1;
}
}
if ((baddie_2_used_again >= 5) and (baddie_2_b_used_again >= 5)) {
if (all_baddies_killed_flag == 0) {
cha_x_offset = 182;
cha_y_offset = 136;
all_baddies_killed_flag = 1;
}
collect_powerups_active = true;
if (show_keyboard_ins_flag == 0) {
messageNo = 8;
showMessage = true;
show_keyboard_ins_flag = 1;
}
baddie_2_active = false;
}
if (all_baddies_killed == false) {
if (view_3._visible == true) {
if (v3_bs_flag == 0) {
baddie_2_move_timer = 0;
v3_bs_flag = 1;
}
}
} else if (all_baddies_killed == true) {
if (view_3._visible == true) {
baddie_2_active = false;
}
}
if (view_5_all_baddies_killed2 == false) {
if (view_5._visible == true) {
if (v5_bs_flag == 0) {
if (object_d_collected == true) {
baddie_2_b_move_timer = 0;
} else if (object_d_collected == false) {
baddie_2_b_move_timer = 0;
baddie_2_active = false;
}
v5_bs_flag = 1;
}
}
} else if (view_5_all_baddies_killed2 == true) {
if (view_5._visible == true) {
character_view = "3rd_person";
}
}
if (character_view == "1st_person") {
show_hide_mouse._x = 0;
show_hide_mouse._y = 0;
if (view_ist_person_once_flag == 0) {
if ((view_4._visible == true) || (view_6._visible == true)) {
character_hit_ready_counter_active = true;
}
view_ist_person_once_flag = 1;
}
if (character_hit_ready_counter_active == true) {
character_hit_ready_counter = character_hit_ready_counter + 1;
}
keys_active = false;
play_text._visible = false;
controls_text._visible = false;
about_text._visible = false;
still_UI_conference._visible = false;
if (playing_game == 1) {
cyborg_gun._visible = true;
still_UI._visible = true;
if (_root.Ist_person_hit.hitTest(baddie_2._x, baddie_2._y, true)) {
if ((character_hit_ready_counter > 100) && (baddie_2_used_again < 5)) {
if (showMessage == false) {
if (baddie_2_hits_cha_flag == false) {
hit_cam_shake = true;
_root.s_damaged_alarm.stop();
_root.s_damaged_alarm.start(0, 1);
baddie_2_move_timer = 0;
cha_Ist_person_damaged = true;
cycle_cd = 0;
drop_health = true;
baddie_2_hits_cha_flag = true;
}
}
}
} else {
baddie_2_hits_cha_flag = false;
}
if (_root.Ist_person_hit.hitTest(baddie_2_b._x, baddie_2_b._y, true)) {
if ((character_hit_ready_counter > 100) && (baddie_2_b_used_again < 5)) {
if (showMessage == false) {
if (baddie_2_b_hits_cha_flag == false) {
_root.s_damaged_alarm.stop();
_root.s_damaged_alarm.start(0, 1);
baddie_2_b_move_timer = 0;
cha_Ist_person_damaged = true;
cycle_cd = 0;
drop_health = true;
baddie_2_b_hits_cha_flag = true;
}
}
}
} else {
baddie_2_b_hits_cha_flag = false;
}
}
if (cha_Ist_person_damaged == true) {
cIstPDTimer = cIstPDTimer + 1;
if (cycle_cd < 6) {
if ((cIstPDTimer >= 0) and (cIstPDTimer < 7)) {
damaged_HUD._visible = true;
} else if ((cIstPDTimer >= 7) and (cIstPDTimer < 8)) {
damaged_HUD._visible = false;
} else if (cIstPDTimer >= 8) {
cIstPDTimer = 0;
cycle_cd = cycle_cd + 1;
}
} else if (cycle_cd >= 6) {
cycle_cd = 0;
cha_Ist_person_damaged = false;
}
} else if (cha_Ist_person_damaged == false) {
damaged_HUD._visible = false;
}
crosshair._visible = true;
targeting_UI_active = true;
cam_movement = "mouse";
cha_x_offset = 24;
cha_y_offset = 139;
first_person_holding_flag = 1;
character_stand_n._alpha = 0;
character_stand_e._alpha = 0;
character_stand_s._alpha = 0;
character_stand_w._alpha = 0;
character_stand_n._xscale = 0.0001;
character_stand_n._yscale = 0.0001;
character_stand_e._xscale = 0.0001;
character_stand_e._yscale = 0.0001;
character_stand_s._xscale = 0.0001;
character_stand_s._yscale = 0.0001;
character_stand_w._xscale = 0.0001;
character_stand_w._yscale = 0.0001;
character_shadow._visible = false;
stopTheAnimation = 1;
} else if (character_view == "3rd_person") {
view_ist_person_once_flag = 0;
cy21_talking._visible = false;
baddie_explode_active = false;
baddie_f_explode_active = false;
damaged_HUD._visible = false;
show_hide_mouse._x = 50000;
show_hide_mouse._y = 50000;
character_hit_ready_counter = 0;
character_hit_ready_counter_active = false;
if (pre_battle_movie_1_active == false) {
if (keys_3rd_person_flag == 0) {
keys_active = true;
keys_3rd_person_flag = 1;
}
} else {
keys_active = false;
}
play_text._visible = false;
controls_text._visible = false;
about_text._visible = false;
next_button._visible = false;
skip_button._visible = false;
com_view._visible = false;
still_UI_conference._visible = false;
Mouse.show();
gun_fireing = false;
cyborg_gun._visible = false;
targeting_UI_active = false;
still_UI._visible = false;
if (first_person_holding_flag == 1) {
character_stand_n._alpha = 100;
character_stand_e._alpha = 100;
character_stand_s._alpha = 100;
character_stand_w._alpha = 100;
first_person_holding_flag = 0;
}
crosshair._visible = false;
if (playing_game == 1) {
}
cam_movement = "follow_character";
character_shadow._visible = true;
} else if (character_view == "1st_person_start") {
show_hide_mouse._x = 50000;
show_hide_mouse._y = 50000;
character_hit_ready_counter = 0;
character_hit_ready_counter_active = false;
crosshair._visible = true;
targeting_UI_active = true;
still_UI._visible = true;
cam_movement = "mouse";
play_text._visible = true;
controls_text._visible = true;
about_text._visible = true;
character_stand_n._xscale = 0.0001;
character_stand_n._yscale = 0.0001;
character_stand_e._xscale = 0.0001;
character_stand_e._yscale = 0.0001;
character_stand_s._xscale = 0.0001;
character_stand_s._yscale = 0.0001;
character_stand_w._xscale = 0.0001;
character_stand_w._yscale = 0.0001;
character_shadow._visible = false;
still_UI_conference._visible = false;
stopTheAnimation = 1;
} else if (character_view == "off") {
show_hide_mouse._x = 50000;
show_hide_mouse._y = 50000;
character_hit_ready_counter = 0;
character_hit_ready_counter_active = false;
play_text._visible = false;
controls_text._visible = false;
about_text._visible = false;
crosshair._visible = false;
still_UI_conference._visible = false;
character_stand_n._xscale = 0.0001;
character_stand_n._yscale = 0.0001;
character_stand_e._xscale = 0.0001;
character_stand_e._yscale = 0.0001;
character_stand_s._xscale = 0.0001;
character_stand_s._yscale = 0.0001;
character_stand_w._xscale = 0.0001;
character_stand_w._yscale = 0.0001;
character_shadow._visible = false;
stopTheAnimation = 1;
} else if (character_view == "object_1st_person") {
show_hide_mouse._x = 0;
show_hide_mouse._y = 0;
keys_active = false;
crosshair._visible = true;
targeting_UI_active = true;
cam_movement = "mouse";
} else if (character_view == "1st_person_conference") {
keys_active = false;
show_hide_mouse._x = 0;
show_hide_mouse._y = 0;
character_hit_ready_counter = 0;
character_hit_ready_counter_active = false;
view_2_trigger_a._visible = false;
com_view._x = com_view._x + ((com_view_targeter._x - com_view._x) / 20);
com_view._y = com_view._y + ((com_view_targeter._y - com_view._y) / 20);
if (com_view_targeter._x > 10) {
com_view_targeter._x = 10;
} else if (com_view_targeter._x < 0) {
com_view_targeter._x = 0;
}
if (com_view_targeter._y > 10) {
com_view_targeter._y = 10;
} else if (com_view_targeter._y < 0) {
com_view_targeter._y = 0;
}
com_view_targeter_timer = com_view_targeter_timer + 1;
if (com_view_targeter_timer == 10) {
cvt_max_x = 4;
cvt_min_x = 1;
com_view_targeter_move_type = Math.round(Math.random() * ((cvt_max_x - cvt_min_x) + 1)) + cvt_min_x;
com_view_targeter_timer = 0;
}
if (com_view_move_active == true) {
if (com_view_targeter_move_type == 1) {
com_view_targeter._x = com_view_targeter._x + (1 * frameRateDiff);
} else if (com_view_targeter_move_type == 2) {
com_view_targeter._x = com_view_targeter._x - (1 * frameRateDiff);
} else if (com_view_targeter_move_type == 3) {
com_view_targeter._y = com_view_targeter._y + (1 * frameRateDiff);
} else if (com_view_targeter_move_type == 4) {
com_view_targeter._y = com_view_targeter._y - (1 * frameRateDiff);
}
} else if (com_view_move_active == false) {
com_view_targeter._x = 0;
com_view_targeter._y = 0;
}
next_button._visible = true;
skip_button._visible = true;
play_text._visible = false;
controls_text._visible = false;
about_text._visible = false;
com_view._visible = true;
crosshair._visible = true;
targeting_UI_active = true;
still_UI._visible = true;
still_UI_conference._visible = true;
cam_movement = "mouse";
first_person_holding_flag = 1;
character_stand_n._alpha = 0;
character_stand_e._alpha = 0;
character_stand_s._alpha = 0;
character_stand_w._alpha = 0;
character_stand_n._xscale = 0.0001;
character_stand_n._yscale = 0.0001;
character_stand_e._xscale = 0.0001;
character_stand_e._yscale = 0.0001;
character_stand_s._xscale = 0.0001;
character_stand_s._yscale = 0.0001;
character_stand_w._xscale = 0.0001;
character_stand_w._yscale = 0.0001;
character_shadow._visible = false;
stopTheAnimation = 1;
}
if (mouse_button == "down") {
if (hand_power._visible == true) {
if (view_3_power_collected == false) {
_root.s_collect_power_sound.start(0, 1);
gain_gradual_power = true;
view_3_power_collected = true;
}
}
if (showMessage == false) {
if (out_of_bullets == false) {
if (fireing_timer_2 > fireing_timer_2_amount) {
if (hand_power._visible == true) {
hand_power_was_shown = true;
}
if (hand_power_was_shown == false) {
if (can_fire_gun == true) {
gun_fireing = true;
}
}
}
} else if (out_of_bullets == true) {
gun_fireing = false;
}
}
}
if (mouse_button == "up") {
hand_power_was_shown = false;
if (plasmaball_hits_targeter == true) {
gun_fireing = false;
plasma_ball._visible = false;
if (((mouse_over_menu_button == true) || (mouse_over_inv_button == true)) || (mouse_over_health_button == true)) {
can_fire_gun = false;
} else if (((mouse_over_menu_button == false) || (mouse_over_inv_button == false)) || (mouse_over_health_button == false)) {
can_fire_gun = true;
}
} else if (plasmaball_hits_targeter == false) {
if (can_fire_gun == true) {
gun_fireing = true;
}
}
}
if (baddie_damaged_fade_2 == true) {
if ((baddie_colour.rb > 0) and (baddie_colour.rb < 250)) {
baddie_colour.rb = baddie_colour.rb - 20;
}
if (baddie_colour.rb <= 0) {
baddie_colour.rb = 0;
baddie_damaged_fade_2 = false;
}
} else if (baddie_damaged_fade_2 == false) {
baddie_colour.rb = 0;
}
if (baddie_b_damaged_fade == true) {
if ((baddie_b_colour.rb > 0) and (baddie_b_colour.rb < 250)) {
baddie_b_colour.rb = baddie_b_colour.rb - 20;
}
if (baddie_b_colour.rb <= 0) {
baddie_b_colour.rb = 0;
baddie_b_damaged_fade = false;
}
} else if (baddie_b_damaged_fade == false) {
baddie_b_colour.rb = 0;
}
if ((cha_y_offset > 124) && (cha_y_offset < 180)) {
cam_targeter_y = true;
} else {
cam_targeter_y = false;
}
if (view_1._visible == true) {
v2_set_colour_flag = 0;
v3_set_colour_flag = 0;
v4_set_colour_flag = 0;
v5_set_colour_flag = 0;
v6_set_colour_flag = 0;
v7_set_colour_flag = 0;
v8_set_colour_flag = 0;
if (v1_set_colour_flag == 0) {
character_colour = "0_dark_orange_yellow";
transform_character_colour = true;
v1_set_colour_flag = 1;
}
} else if (view_2._visible == true) {
v1_set_colour_flag = 0;
v3_set_colour_flag = 0;
v4_set_colour_flag = 0;
v5_set_colour_flag = 0;
v6_set_colour_flag = 0;
v7_set_colour_flag = 0;
v8_set_colour_flag = 0;
if (v2_set_colour_flag == 0) {
character_colour = "0_dark_orange_yellow";
transform_character_colour = true;
v2_set_colour_flag = 1;
}
} else if (view_3._visible == true) {
v1_set_colour_flag = 0;
v2_set_colour_flag = 0;
v4_set_colour_flag = 0;
v5_set_colour_flag = 0;
v6_set_colour_flag = 0;
v7_set_colour_flag = 0;
v8_set_colour_flag = 0;
if (v3_set_colour_flag == 0) {
character_colour = "0_dark_orange_yellow";
transform_character_colour = true;
v3_set_colour_flag = 1;
}
} else if (view_4._visible == true) {
v1_set_colour_flag = 0;
v2_set_colour_flag = 0;
v3_set_colour_flag = 0;
v5_set_colour_flag = 0;
v6_set_colour_flag = 0;
if (v4_set_colour_flag == 0) {
character_colour = "0_dark_orange_yellow";
transform_character_colour = true;
v4_set_colour_flag = 1;
}
} else if (view_5._visible == true) {
v1_set_colour_flag = 0;
v2_set_colour_flag = 0;
v3_set_colour_flag = 0;
v4_set_colour_flag = 0;
v6_set_colour_flag = 0;
if (v5_set_colour_flag == 0) {
character_colour = "0_dark_white";
transform_character_colour = true;
v5_set_colour_flag = 1;
}
} else if (view_6._visible == true) {
v1_set_colour_flag = 0;
v2_set_colour_flag = 0;
v3_set_colour_flag = 0;
v4_set_colour_flag = 0;
v5_set_colour_flag = 0;
v7_set_colour_flag = 0;
v8_set_colour_flag = 0;
if (v6_set_colour_flag == 0) {
character_colour = "0_dark_white";
transform_character_colour = true;
v6_set_colour_flag = 1;
}
} else if (view_7._visible == true) {
v1_set_colour_flag = 0;
v2_set_colour_flag = 0;
v3_set_colour_flag = 0;
v4_set_colour_flag = 0;
v5_set_colour_flag = 0;
if (v7_set_colour_flag == 0) {
character_colour = "0_dark_orange_yellow";
transform_character_colour = true;
v7_set_colour_flag = 1;
}
} else if (view_8._visible == true) {
v1_set_colour_flag = 0;
v2_set_colour_flag = 0;
v3_set_colour_flag = 0;
v4_set_colour_flag = 0;
v5_set_colour_flag = 0;
if (v8_set_colour_flag == 0) {
character_colour = "0_dark_orange_yellow";
transform_character_colour = true;
v8_set_colour_flag = 1;
}
}
if (transform_character_colour == true) {
if (character_colour == "red") {
trans.rb = 100;
} else if (character_colour == "orange_yellow") {
trans.rb = 35;
trans.gb = 30;
} else if (character_colour == "0_dark_orange_yellow") {
trans.rb = 13;
trans.gb = 10;
trans.bb = -10;
} else if (character_colour == "white") {
trans.rb = 0;
trans.gb = 0;
trans.bb = 0;
} else if (character_colour == "0_dark_white") {
trans.rb = -10;
trans.gb = -10;
trans.bb = -10;
}
col1.setTransform(trans);
col2.setTransform(trans);
col3.setTransform(trans);
col4.setTransform(trans);
col5.setTransform(trans);
col6.setTransform(trans);
col7.setTransform(trans);
col8.setTransform(trans);
col9.setTransform(trans);
col10.setTransform(trans);
col11.setTransform(trans);
col12.setTransform(trans);
col13.setTransform(trans);
col14.setTransform(trans);
col15.setTransform(trans);
col16.setTransform(trans);
col17.setTransform(trans);
col18.setTransform(trans);
col19.setTransform(trans);
col20.setTransform(trans);
col21.setTransform(trans);
col22.setTransform(trans);
col23.setTransform(trans);
col24.setTransform(trans);
col25.setTransform(trans);
col26.setTransform(trans);
col27.setTransform(trans);
col28.setTransform(trans);
col29.setTransform(trans);
col30.setTransform(trans);
col31.setTransform(trans);
col32.setTransform(trans);
col33.setTransform(trans);
col34.setTransform(trans);
col35.setTransform(trans);
col36.setTransform(trans);
col37.setTransform(trans);
col38.setTransform(trans);
col39.setTransform(trans);
col40.setTransform(trans);
col41.setTransform(trans);
col42.setTransform(trans);
col43.setTransform(trans);
col44.setTransform(trans);
col45.setTransform(trans);
col46.setTransform(trans);
col47.setTransform(trans);
col48.setTransform(trans);
col49.setTransform(trans);
col50.setTransform(trans);
col51.setTransform(trans);
col52.setTransform(trans);
col53.setTransform(trans);
col54.setTransform(trans);
col55.setTransform(trans);
col56.setTransform(trans);
col57.setTransform(trans);
col58.setTransform(trans);
col59.setTransform(trans);
col60.setTransform(trans);
col61.setTransform(trans);
col62.setTransform(trans);
col63.setTransform(trans);
col64.setTransform(trans);
col65.setTransform(trans);
col66.setTransform(trans);
col67.setTransform(trans);
col68.setTransform(trans);
col69.setTransform(trans);
col70.setTransform(trans);
col71.setTransform(trans);
col72.setTransform(trans);
col73.setTransform(trans);
col74.setTransform(trans);
col75.setTransform(trans);
col76.setTransform(trans);
col77.setTransform(trans);
transform_character_colour = false;
}
if (light_message_active == true) {
if (light_message_active_flag == 0) {
message_colour.rb = 0;
message_colour.gb = -127;
message_colour.bb = -255;
light_message_active_flag = 1;
}
if (message_colour.gb < 0) {
message_colour.gb = message_colour.gb + (4 * frameRateDiff);
message_colour.bb = message_colour.bb + (8 * frameRateDiff);
}
if (message_colour.gb >= 0) {
message_colour.rb = 0;
message_colour.gb = 0;
message_colour.bb = 0;
light_message_active = false;
}
message_colour_1.setTransform(message_colour);
} else if (light_message_active == false) {
light_message_active_flag = 0;
}
if (ship_alarm_active == true) {
alarm_ticks = alarm_ticks + (0.1 * frameRateDiff);
panel_colour.rb = 50 * Math.sin(alarm_ticks);
if (panel_colour.rb > 40) {
panel_colour.rb = 40;
}
if (panel_colour.rb < 0) {
panel_colour.rb = 0;
}
}
if (intro_movie_active == true) {
character_view = "1st_person_conference";
next_button.onRelease = function () {
show_speech = show_speech + 1;
};
skip_button.onRelease = function () {
show_speech = 6;
};
if (show_speech == 1) {
speech_1._visible = true;
com_view_move_active = true;
} else if (show_speech == 2) {
speech_1._visible = false;
speech_2._visible = true;
com_view_move_active = true;
} else if (show_speech == 3) {
speech_2._visible = false;
speech_3._visible = true;
com_view_move_active = true;
} else if (show_speech == 4) {
show_speech = 6;
speech_3._visible = false;
} else if (show_speech == 5) {
speech_4._visible = false;
speech_5._visible = true;
} else if (show_speech == 6) {
spoken_to_cy21 = true;
speech_1._visible = false;
speech_2._visible = false;
speech_3._visible = false;
speech_4._visible = false;
speech_5._visible = false;
view_2._visible = false;
view_1._visible = true;
air_bar_active = true;
intro_movie_active = false;
pre_battle_movie_1_active = true;
}
} else if (intro_movie_active == false) {
if (character_view == "1st_person_conference") {
view_2._visible = false;
black_bars_2._visible = false;
character_view = "3rd_person";
}
}
if (show_speech == 6) {
if (show_start_message_flag == 0) {
show_start_message_flag = 1;
} else if (show_start_message_flag == 2) {
show_start_message_flag = 3;
} else if (show_start_message_flag == 4) {
show_start_message_flag = 5;
}
}
if (nutrientCollected == 0) {
} else if (nutrientCollected == 1) {
nutrient_icon._visible = false;
}
if (antiviralCollected == 0) {
} else if (antiviralCollected == 1) {
antiviral_icon._visible = false;
}
if (iAmNearPower == 1) {
if (powerCollected == 0) {
if (targeted_text_mc._visible == false) {
hand_power._visible = true;
collect_text_power._visible = true;
} else if (targeted_text_mc._visible == true) {
hand_power._visible = false;
collect_text_power._visible = false;
}
} else if (powerCollected == 1) {
hand_power._visible = false;
collect_text_power._visible = false;
}
} else if (iAmNearPower == 0) {
hand_power._visible = false;
collect_text_power._visible = false;
}
if (iAmNearNutrient == 1) {
if (nutrientCollected == 0) {
if (targeted_text_mc._visible == false) {
hand_nutrient._visible = true;
collect_text_nutrient._visible = true;
} else if (targeted_text_mc._visible == true) {
hand_nutrient._visible = false;
collect_text_nutrient._visible = false;
}
} else if (nutrientCollected == 1) {
hand_nutrient._visible = false;
collect_text_nutrient._visible = false;
}
} else if (iAmNearNutrient == 0) {
hand_nutrient._visible = false;
collect_text_nutrient._visible = false;
}
if (iAmNearAntiviral == 1) {
if (antiviralCollected == 0) {
if (targeted_text_mc._visible == false) {
hand_antiviral._visible = true;
collect_text_antiviral._visible = true;
} else if (targeted_text_mc._visible == true) {
hand_antiviral._visible = false;
collect_text_antiviral._visible = false;
}
} else if (antiviralCollected == 1) {
hand_antiviral._visible = false;
collect_text_antiviral._visible = false;
}
} else if (iAmNearAntiviral == 0) {
hand_antiviral._visible = false;
collect_text_antiviral._visible = false;
}
if (collect_power_view_used._visible == true) {
}
if (collect_nutrient_view_used._visible == true) {
if (_root.get_nutrient_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (nutrientCollected == 0) {
iAmNearNutrient = 1;
}
} else {
iAmNearNutrient = 0;
}
}
if (collect_antiviral_view_used._visible == true) {
if (_root.get_antiviral_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (antiviralCollected == 0) {
iAmNearAntiviral = 1;
}
} else {
iAmNearAntiviral = 0;
}
}
if (gamePaused == true) {
pause_flag = 1;
if (show_menu_active == false) {
} else if (show_menu_active == true) {
paused_info._visible = false;
}
gun_fireing = false;
baddie_2_movement_active = false;
baddie_2_b_movement_active = false;
keys_active = false;
stopTheAnimation = 1;
} else if (gamePaused == false) {
if (pause_flag == 1) {
keys_active = true;
paused_info._visible = false;
baddie_2_movement_active = true;
baddie_2_b_movement_active = true;
pause_flag = 0;
}
}
if (dead == true) {
rpg_enemy_gunfire_active = false;
rpg_enemy_shot._visible = false;
showMessage = false;
damaged_HUD._visible = false;
if (play_dead_sound_flag == 0) {
music_fade_down = true;
cyborg_dead_knocked_forward = true;
rpg_cyborg_shield._visible = false;
active_mc_2 = cyborg_shield_info_box;
fade_out_mc_active = true;
cyborg_shield_bar._visible = false;
play_dead_sound_flag = 1;
}
hideAttackButtons();
large_restart_label.swapDepths(50321);
crosshair.swapDepths(50320);
scanner_text_mc.swapDepths(50319);
plasmashot_text_mc.swapDepths(50318);
health_green.swapDepths(50317);
health_amber.swapDepths(50316);
health_red.swapDepths(50315);
health_cyborg.swapDepths(50314);
UI_disks.swapDepths(50313);
targeting_UI.swapDepths(50312);
top_right_disks.swapDepths(50311);
still_UI.swapDepths(50310);
game_over_enter_icon.swapDepths(50309);
game_over_mc.swapDepths(50308);
restart_button.swapDepths(50307);
the_madness_has_you_text.swapDepths(50306);
biohazard_icon.swapDepths(50301);
blackboard.swapDepths(50300);
stopTheAnimation = 1;
new_virus_detected_timer = new_virus_detected_timer + 1;
if ((new_virus_detected_timer >= 0) and (new_virus_detected_timer < 10)) {
} else if ((new_virus_detected_timer >= 10) and (new_virus_detected_timer < 12)) {
the_madness_has_you_text._visible = false;
} else if (new_virus_detected_timer > 12) {
new_virus_detected_timer = 0;
}
game_over_timer = game_over_timer + 1;
if ((game_over_timer >= 0) and (game_over_timer < 5)) {
game_over_mc.game_over.text = "G";
} else if ((game_over_timer >= 5) and (game_over_timer < 10)) {
game_over_mc.game_over.text = "Ga";
} else if ((game_over_timer >= 10) and (game_over_timer < 15)) {
game_over_mc.game_over.text = "Gam";
} else if ((game_over_timer >= 15) and (game_over_timer < 20)) {
game_over_mc.game_over.text = "Game";
} else if ((game_over_timer >= 20) and (game_over_timer < 25)) {
game_over_mc.game_over.text = "Game ";
} else if ((game_over_timer >= 25) and (game_over_timer < 30)) {
game_over_mc.game_over.text = "Game o";
} else if ((game_over_timer >= 30) and (game_over_timer < 35)) {
game_over_mc.game_over.text = "Game ov";
} else if ((game_over_timer >= 35) and (game_over_timer < 40)) {
game_over_mc.game_over.text = "Game ove";
} else if ((game_over_timer >= 40) and (game_over_timer < 45)) {
game_over_mc.game_over.text = "Game over";
} else if ((game_over_timer >= 45) and (game_over_timer < 50)) {
game_over_mc.game_over.text = "Game over";
power_loss_active = true;
} else if ((game_over_timer >= 50) && (s_dead_sound.position > 19790)) {
}
biohazard_icon._alpha = biohazard_icon._alpha + 1;
if (windSoundVolume < 200) {
windSoundVolume = windSoundVolume + 1;
}
biohazard_icon._visible = true;
if (biohazard_icon._alpha >= 100) {
biohazard_icon._alpha = 100;
}
}
if (power_loss_active == true) {
if (f_16209540_flag == 0) {
rpg_cyborg._alpha = 100;
f_16209540_flag = 1;
}
rpg_cyborg._alpha = rpg_cyborg._alpha - (5 * frameRateDiff);
if (rpg_cyborg._alpha <= 0) {
rpg_cyborg._visible = false;
large_restart_label._visible = true;
power_loss_active = false;
}
} else if (power_loss_active == false) {
f_16209540_flag = 0;
}
if (drop_health == true) {
if (health_green._visible == true) {
health_green._visible = false;
health_amber._visible = true;
} else if (health_amber._visible == true) {
health_amber._visible = false;
health_red._visible = true;
} else if (health_red._visible == true) {
}
drop_health = false;
}
health_ticks = health_ticks + (0.3 * frameRateDiff);
if (health_ticks > 1000) {
health_ticks = 0;
}
health_green._alpha = 100 * Math.sin(health_ticks);
health_amber._alpha = 100 * Math.sin(health_ticks);
health_red._alpha = 100 * Math.sin(health_ticks);
if (health_green._alpha < 70) {
health_green._alpha = 70;
}
if (health_green._alpha > 100) {
health_green._alpha = 100;
}
if (health_amber._alpha < 70) {
health_amber._alpha = 70;
}
if (health_amber._alpha > 100) {
health_amber._alpha = 100;
}
if (health_red._alpha < 70) {
health_red._alpha = 70;
}
if (health_red._alpha > 100) {
health_red._alpha = 100;
}
fireing_timer_2 = fireing_timer_2 + 1;
if (showMessage == true) {
if (key.isDown(39)) {
flash_message = true;
} else if (key.isDown(37)) {
flash_message = true;
} else if (key.isDown(38)) {
flash_message = true;
} else if (key.isDown(40)) {
flash_message = true;
} else if (key.isDown(17)) {
flash_message = true;
}
}
if (flash_message == true) {
flash_message_ticks = flash_message_ticks + 1;
if (flash_message_ticks < 9) {
if (message_text_mc._x == 181) {
message_text_mc._x = 2000;
message_text_mc._y = 2000;
} else if (message_text_mc._x == 2000) {
message_text_mc._x = 181;
message_text_mc._y = 335.45;
}
}
} else if (flash_message == false) {
flash_message_ticks = 0;
message_text_mc._x = 181;
message_text_mc._y = 335.45;
}
if (iAmNearKeyHole == "no") {
key_message_once_flag = 0;
}
if (thor_game_fin == true) {
stopTheAnimation = 1;
gun_fireing = false;
cha_x_offset = 0;
cha_y_offset = 0;
fade_wind_sound_off = true;
}
if (fade_wind_sound_off == true) {
windSoundVolume = windSoundVolume - 4;
if (windSoundVolume <= 0) {
windSoundVolume = 0;
fade_wind_sound_off = false;
}
}
cyborg_gun._y = cyborg_gun._y + ((dummy_1._y - cyborg_gun._y) / interpolate_speed);
get_power_trigger._x = get_power_trigger._x + ((dummy_1._x - get_power_trigger._x) / interpolate_speed);
get_power_trigger._y = get_power_trigger._y + ((dummy_1._y - get_power_trigger._y) / interpolate_speed);
get_nutrient_trigger._x = get_nutrient_trigger._x + ((dummy_1._x - get_nutrient_trigger._x) / interpolate_speed);
get_nutrient_trigger._y = get_nutrient_trigger._y + ((dummy_1._y - get_nutrient_trigger._y) / interpolate_speed);
get_antiviral_trigger._x = get_antiviral_trigger._x + ((dummy_1._x - get_antiviral_trigger._x) / interpolate_speed);
get_antiviral_trigger._y = get_antiviral_trigger._y + ((dummy_1._y - get_antiviral_trigger._y) / interpolate_speed);
view_1_trigger_a._x = view_1_trigger_a._x + ((dummy_1._x - view_1_trigger_a._x) / interpolate_speed);
view_1_trigger_a._y = view_1_trigger_a._y + ((dummy_1._y - view_1_trigger_a._y) / interpolate_speed);
view_1_trigger_b._x = view_1_trigger_b._x + ((dummy_1._x - view_1_trigger_b._x) / interpolate_speed);
view_1_trigger_b._y = view_1_trigger_b._y + ((dummy_1._y - view_1_trigger_b._y) / interpolate_speed);
view_1_trigger_c._x = view_1_trigger_c._x + ((dummy_1._x - view_1_trigger_c._x) / interpolate_speed);
view_1_trigger_c._y = view_1_trigger_c._y + ((dummy_1._y - view_1_trigger_c._y) / interpolate_speed);
view_1_trigger_d._x = view_1_trigger_d._x + ((dummy_1._x - view_1_trigger_d._x) / interpolate_speed);
view_1_trigger_d._y = view_1_trigger_d._y + ((dummy_1._y - view_1_trigger_d._y) / interpolate_speed);
view_2_trigger_a._x = view_2_trigger_a._x + (((dummy_1._x - view_2_trigger_a._x) + v2ta_offset) / interpolate_speed);
view_2_trigger_a._y = view_2_trigger_a._y + ((dummy_1._y - view_2_trigger_a._y) / interpolate_speed);
view_2_trigger_b._x = view_2_trigger_b._x + ((dummy_1._x - view_2_trigger_b._x) / interpolate_speed);
view_2_trigger_b._y = view_2_trigger_b._y + ((dummy_1._y - view_2_trigger_b._y) / interpolate_speed);
view_2_trigger_c._x = view_2_trigger_c._x + ((dummy_1._x - view_2_trigger_c._x) / interpolate_speed);
view_2_trigger_c._y = view_2_trigger_c._y + ((dummy_1._y - view_2_trigger_c._y) / interpolate_speed);
view_2_trigger_d._x = view_2_trigger_d._x + ((dummy_1._x - view_2_trigger_d._x) / interpolate_speed);
view_2_trigger_d._y = view_2_trigger_d._y + ((dummy_1._y - view_2_trigger_d._y) / interpolate_speed);
view_3_trigger_a._x = view_3_trigger_a._x + (((dummy_1._x - view_3_trigger_a._x) + v3ta_offset) / interpolate_speed);
view_3_trigger_a._y = view_3_trigger_a._y + ((dummy_1._y - view_3_trigger_a._y) / interpolate_speed);
view_3_trigger_b._x = view_3_trigger_b._x + ((dummy_1._x - view_3_trigger_b._x) / interpolate_speed);
view_3_trigger_b._y = view_3_trigger_b._y + ((dummy_1._y - view_3_trigger_b._y) / interpolate_speed);
view_3_trigger_c._x = view_3_trigger_c._x + ((dummy_1._x - view_3_trigger_c._x) / interpolate_speed);
view_3_trigger_c._y = view_3_trigger_c._y + ((dummy_1._y - view_3_trigger_c._y) / interpolate_speed);
view_3_trigger_d._x = view_3_trigger_d._x + ((dummy_1._x - view_3_trigger_d._x) / interpolate_speed);
view_3_trigger_d._y = view_3_trigger_d._y + ((dummy_1._y - view_3_trigger_d._y) / interpolate_speed);
view_4_trigger_a._x = view_4_trigger_a._x + ((dummy_1._x - view_4_trigger_a._x) / interpolate_speed);
view_4_trigger_a._y = view_4_trigger_a._y + ((dummy_1._y - view_4_trigger_a._y) / interpolate_speed);
view_4_trigger_b._x = view_4_trigger_b._x + ((dummy_1._x - view_4_trigger_b._x) / interpolate_speed);
view_4_trigger_b._y = view_4_trigger_b._y + ((dummy_1._y - view_4_trigger_b._y) / interpolate_speed);
view_4_trigger_c._x = view_4_trigger_c._x + ((dummy_1._x - view_4_trigger_c._x) / interpolate_speed);
view_4_trigger_c._y = view_4_trigger_c._y + ((dummy_1._y - view_4_trigger_c._y) / interpolate_speed);
view_4_trigger_d._x = view_4_trigger_d._x + ((dummy_1._x - view_4_trigger_d._x) / interpolate_speed);
view_4_trigger_d._y = view_4_trigger_d._y + ((dummy_1._y - view_4_trigger_d._y) / interpolate_speed);
view_5_trigger_a._x = view_5_trigger_a._x + (((dummy_1._x - view_5_trigger_a._x) + v5ta_offset) / interpolate_speed);
view_5_trigger_a._y = view_5_trigger_a._y + ((dummy_1._y - view_5_trigger_a._y) / interpolate_speed);
view_5_trigger_b._x = view_5_trigger_b._x + ((dummy_1._x - view_5_trigger_b._x) / interpolate_speed);
view_5_trigger_b._y = view_5_trigger_b._y + ((dummy_1._y - view_5_trigger_b._y) / interpolate_speed);
view_5_trigger_c._x = view_5_trigger_c._x + ((dummy_1._x - view_5_trigger_c._x) / interpolate_speed);
view_5_trigger_c._y = view_5_trigger_c._y + ((dummy_1._y - view_5_trigger_c._y) / interpolate_speed);
view_5_trigger_d._x = view_5_trigger_d._x + ((dummy_1._x - view_5_trigger_d._x) / interpolate_speed);
view_5_trigger_d._y = view_5_trigger_d._y + ((dummy_1._y - view_5_trigger_d._y) / interpolate_speed);
view_6_trigger_a._x = view_6_trigger_a._x + ((dummy_1._x - view_6_trigger_a._x) / interpolate_speed);
view_6_trigger_a._y = view_6_trigger_a._y + ((dummy_1._y - view_6_trigger_a._y) / interpolate_speed);
view_6_trigger_b._x = view_6_trigger_b._x + ((dummy_1._x - view_6_trigger_b._x) / interpolate_speed);
view_6_trigger_b._y = view_6_trigger_b._y + ((dummy_1._y - view_6_trigger_b._y) / interpolate_speed);
view_6_trigger_c._x = view_6_trigger_c._x + ((dummy_1._x - view_6_trigger_c._x) / interpolate_speed);
view_6_trigger_c._y = view_6_trigger_c._y + ((dummy_1._y - view_6_trigger_c._y) / interpolate_speed);
view_6_trigger_d._x = view_6_trigger_d._x + ((dummy_1._x - view_6_trigger_d._x) / interpolate_speed);
view_6_trigger_d._y = view_6_trigger_d._y + ((dummy_1._y - view_6_trigger_d._y) / interpolate_speed);
view_11_turn_cam_180_trigger._x = view_11_turn_cam_180_trigger._x + ((dummy_1._x - view_11_turn_cam_180_trigger._x) / interpolate_speed);
view_11_turn_cam_180_trigger._y = view_11_turn_cam_180_trigger._y + ((dummy_1._y - view_11_turn_cam_180_trigger._y) / interpolate_speed);
view_12_turn_cam_180_trigger._x = view_12_turn_cam_180_trigger._x + ((dummy_1._x - view_12_turn_cam_180_trigger._x) / interpolate_speed);
view_12_turn_cam_180_trigger._y = view_12_turn_cam_180_trigger._y + ((dummy_1._y - view_12_turn_cam_180_trigger._y) / interpolate_speed);
view_13_turn_cam_180_trigger._x = view_13_turn_cam_180_trigger._x + ((dummy_1._x - view_13_turn_cam_180_trigger._x) / interpolate_speed);
view_13_turn_cam_180_trigger._y = view_13_turn_cam_180_trigger._y + ((dummy_1._y - view_13_turn_cam_180_trigger._y) / interpolate_speed);
view_14_turn_cam_180_trigger._x = view_14_turn_cam_180_trigger._x + ((dummy_1._x - view_14_turn_cam_180_trigger._x) / interpolate_speed);
view_14_turn_cam_180_trigger._y = view_14_turn_cam_180_trigger._y + ((dummy_1._y - view_14_turn_cam_180_trigger._y) / interpolate_speed);
view_15_turn_cam_180_trigger._x = view_15_turn_cam_180_trigger._x + ((dummy_1._x - view_15_turn_cam_180_trigger._x) / interpolate_speed);
view_15_turn_cam_180_trigger._y = view_15_turn_cam_180_trigger._y + ((dummy_1._y - view_15_turn_cam_180_trigger._y) / interpolate_speed);
view_16_turn_cam_180_trigger._x = view_16_turn_cam_180_trigger._x + ((dummy_1._x - view_16_turn_cam_180_trigger._x) / interpolate_speed);
view_16_turn_cam_180_trigger._y = view_16_turn_cam_180_trigger._y + ((dummy_1._y - view_16_turn_cam_180_trigger._y) / interpolate_speed);
view_17_turn_cam_180_trigger._x = view_17_turn_cam_180_trigger._x + ((dummy_1._x - view_17_turn_cam_180_trigger._x) / interpolate_speed);
view_17_turn_cam_180_trigger._y = view_17_turn_cam_180_trigger._y + ((dummy_1._y - view_17_turn_cam_180_trigger._y) / interpolate_speed);
view_18_turn_cam_180_trigger._x = view_18_turn_cam_180_trigger._x + ((dummy_1._x - view_18_turn_cam_180_trigger._x) / interpolate_speed);
view_18_turn_cam_180_trigger._y = view_18_turn_cam_180_trigger._y + ((dummy_1._y - view_18_turn_cam_180_trigger._y) / interpolate_speed);
use_door_trigger._x = use_door_trigger._x + ((dummy_1._x - use_door_trigger._x) / interpolate_speed);
use_door_trigger._y = use_door_trigger._y + ((dummy_1._y - use_door_trigger._y) / interpolate_speed);
ship_start_view._x = ship_start_view._x + ((dummy_1._x - ship_start_view._x) / interpolate_speed);
ship_start_view._y = ship_start_view._y + ((dummy_1._y - ship_start_view._y) / interpolate_speed);
about_text._x = about_text._x + ((dummy_1._x - about_text._x) / interpolate_speed);
about_text._y = about_text._y + ((dummy_1._y - about_text._y) / interpolate_speed);
controls_text._x = controls_text._x + ((dummy_1._x - controls_text._x) / interpolate_speed);
controls_text._y = controls_text._y + ((dummy_1._y - controls_text._y) / interpolate_speed);
controls_icon._x = controls_icon._x + ((dummy_1._x - controls_icon._x) / interpolate_speed);
controls_icon._y = controls_icon._y + ((dummy_1._y - controls_icon._y) / interpolate_speed);
game_info_text._x = game_info_text._x + ((dummy_1._x - game_info_text._x) / interpolate_speed);
game_info_text._y = game_info_text._y + ((dummy_1._y - game_info_text._y) / interpolate_speed);
play_text._x = play_text._x + ((dummy_1._x - play_text._x) / interpolate_speed);
play_text._y = play_text._y + ((dummy_1._y - play_text._y) / interpolate_speed);
view_1._x = view_1._x + ((dummy_1._x - view_1._x) / interpolate_speed);
view_1._y = view_1._y + ((dummy_1._y - view_1._y) / interpolate_speed);
if (view_3._visible == true) {
view_3._x = view_3._x + ((dummy_1._x - view_3._x) / interpolate_speed);
view_3._y = view_3._y + ((dummy_1._y - view_3._y) / interpolate_speed);
}
if (test_positioner._visible == true) {
test_positioner._x = test_positioner._x + (((dummy_1._x - test_positioner._x) + test_positioner_x_offset) / interpolate_speed);
test_positioner._y = test_positioner._y + (((dummy_1._y - test_positioner._y) + test_positioner_y_offset) / interpolate_speed);
}
view_1_depth_trigger._x = view_1_depth_trigger._x + ((dummy_1._x - view_1_depth_trigger._x) / interpolate_speed);
view_1_depth_trigger._y = view_1_depth_trigger._y + ((dummy_1._y - view_1_depth_trigger._y) / interpolate_speed);
view_2_depth_trigger._x = view_2_depth_trigger._x + ((dummy_1._x - view_2_depth_trigger._x) / interpolate_speed);
view_2_depth_trigger._y = view_2_depth_trigger._y + ((dummy_1._y - view_2_depth_trigger._y) / interpolate_speed);
view_1_turn_cam_180_trigger._x = view_1_turn_cam_180_trigger._x + ((dummy_1._x - view_1_turn_cam_180_trigger._x) / interpolate_speed);
view_1_turn_cam_180_trigger._y = view_1_turn_cam_180_trigger._y + ((dummy_1._y - view_1_turn_cam_180_trigger._y) / interpolate_speed);
view_2_turn_cam_180_trigger._x = view_2_turn_cam_180_trigger._x + ((dummy_1._x - view_2_turn_cam_180_trigger._x) / interpolate_speed);
view_2_turn_cam_180_trigger._y = view_2_turn_cam_180_trigger._y + ((dummy_1._y - view_2_turn_cam_180_trigger._y) / interpolate_speed);
view_3_turn_cam_180_trigger._x = view_3_turn_cam_180_trigger._x + ((dummy_1._x - view_3_turn_cam_180_trigger._x) / interpolate_speed);
view_3_turn_cam_180_trigger._y = view_3_turn_cam_180_trigger._y + ((dummy_1._y - view_3_turn_cam_180_trigger._y) / interpolate_speed);
view_4_turn_cam_180_trigger._x = view_4_turn_cam_180_trigger._x + ((dummy_1._x - view_4_turn_cam_180_trigger._x) / interpolate_speed);
view_4_turn_cam_180_trigger._y = view_4_turn_cam_180_trigger._y + ((dummy_1._y - view_4_turn_cam_180_trigger._y) / interpolate_speed);
view_5_turn_cam_180_trigger._x = view_5_turn_cam_180_trigger._x + ((dummy_1._x - view_5_turn_cam_180_trigger._x) / interpolate_speed);
view_5_turn_cam_180_trigger._y = view_5_turn_cam_180_trigger._y + ((dummy_1._y - view_5_turn_cam_180_trigger._y) / interpolate_speed);
view_6_turn_cam_180_trigger._x = view_6_turn_cam_180_trigger._x + ((dummy_1._x - view_6_turn_cam_180_trigger._x) / interpolate_speed);
view_6_turn_cam_180_trigger._y = view_6_turn_cam_180_trigger._y + ((dummy_1._y - view_6_turn_cam_180_trigger._y) / interpolate_speed);
view_7_turn_cam_180_trigger._x = view_7_turn_cam_180_trigger._x + ((dummy_1._x - view_7_turn_cam_180_trigger._x) / interpolate_speed);
view_7_turn_cam_180_trigger._y = view_7_turn_cam_180_trigger._y + ((dummy_1._y - view_7_turn_cam_180_trigger._y) / interpolate_speed);
view_8_turn_cam_180_trigger._x = view_8_turn_cam_180_trigger._x + ((dummy_1._x - view_8_turn_cam_180_trigger._x) / interpolate_speed);
view_8_turn_cam_180_trigger._y = view_8_turn_cam_180_trigger._y + ((dummy_1._y - view_8_turn_cam_180_trigger._y) / interpolate_speed);
if (door_sound_lenght_timer == true) {
door_sound_lenght_time = door_sound_lenght_time + 1;
if (door_sound_lenght_time > 4) {
doorVolume = doorVolume - 10;
}
if (door_sound_lenght_time > 8) {
_root.s_door_sound.stop();
door_sound_lenght_time = 0;
doorVolume = 100;
door_sound_lenght_timer = false;
}
s_door_sound.setVolume(doorVolume);
}
keyListenerDown2.onKeyDown = function () {
if (Key.getCode() == 13) {
enter_key_down = true;
}
};
if (setLabel == true) {
if (set_label == "turn_cam") {
if (targeted_text_mc._visible == false) {
if (trigger_used == "top") {
camera_icon_t._visible = true;
turn_cam_text_t._visible = true;
} else if (trigger_used == "bottom") {
camera_icon_b._visible = true;
turn_cam_text_b._visible = true;
} else if (trigger_used == "left") {
camera_icon_l._visible = true;
turn_cam_text_l._visible = true;
} else if (trigger_used == "right") {
camera_icon_r._visible = true;
turn_cam_text_r._visible = true;
}
} else if (targeted_text_mc._visible == true) {
if (trigger_used == "top") {
camera_icon_t._visible = false;
turn_cam_text_t._visible = false;
} else if (trigger_used == "bottom") {
camera_icon_b._visible = false;
turn_cam_text_b._visible = false;
} else if (trigger_used == "left") {
camera_icon_l._visible = false;
turn_cam_text_l._visible = false;
} else if (trigger_used == "right") {
camera_icon_r._visible = false;
turn_cam_text_r._visible = false;
}
}
} else if (set_label == "use") {
if (targeted_text_mc._visible == false) {
if (trigger_used == "top") {
use_hand_t._visible = true;
use_text_t._visible = true;
} else if (trigger_used == "bottom") {
use_hand_b._visible = true;
use_text_b._visible = true;
} else if (trigger_used == "left") {
use_hand_l._visible = true;
use_text_l._visible = true;
} else if (trigger_used == "right") {
use_hand_r._visible = true;
use_text_r._visible = true;
}
} else if (targeted_text_mc._visible == true) {
if (trigger_used == "top") {
use_hand_t._visible = false;
use_text_t._visible = false;
} else if (trigger_used == "bottom") {
use_hand_b._visible = false;
use_text_b._visible = false;
} else if (trigger_used == "left") {
use_hand_l._visible = false;
use_text_l._visible = false;
} else if (trigger_used == "right") {
use_hand_r._visible = false;
use_text_r._visible = false;
}
}
}
}
if (music_fade_down == true) {
musicVolume = musicVolume - 1;
if (musicVolume < 0) {
musicVolume = 0;
music_fade_down = false;
}
s_music.setVolume(musicVolume);
}
if (music_fade_up == true) {
musicVolume = musicVolume + 1;
if (musicVolume > 56) {
musicVolume = 56;
music_fade_up = false;
}
s_music.setVolume(musicVolume);
}
if (targeting_UI_active == true) {
targeting_UI._x = targeting_UI._x + ((crosshair._x - targeting_UI._x) / 4);
targeting_UI._y = targeting_UI._y + ((crosshair._y - targeting_UI._y) / 4);
} else if (targeting_UI_active == false) {
targeting_UI._x = 10000;
targeting_UI._y = 10000;
}
if ((up_arrow_key_down == true) && (right_arrow_key_down == true)) {
up_and_right_arrows_down = true;
} else if ((up_arrow_key_down == true) && (right_arrow_key_down == false)) {
up_and_right_arrows_down = false;
}
if (up_and_right_arrows_down == true) {
}
if ((up_arrow_key_down == true) && (left_arrow_key_down == true)) {
up_and_left_arrows_down = true;
} else if ((up_arrow_key_down == true) && (left_arrow_key_down == false)) {
up_and_left_arrows_down = false;
}
if (up_and_left_arrows_down == true) {
}
if ((down_arrow_key_down == true) && (left_arrow_key_down == true)) {
down_and_left_arrows_down = true;
} else if ((down_arrow_key_down == true) && (left_arrow_key_down == false)) {
down_and_left_arrows_down = false;
}
if (down_and_left_arrows_down == true) {
}
if ((down_arrow_key_down == true) && (right_arrow_key_down == true)) {
down_and_right_arrows_down = true;
} else if ((down_arrow_key_down == true) && (right_arrow_key_down == false)) {
down_and_right_arrows_down = false;
}
if (down_and_right_arrows_down == true) {
}
if ((right_arrow_key_down == true) && (left_arrow_key_down == true)) {
right_and_left_arrows_down = true;
} else if ((right_arrow_key_down == true) && (left_arrow_key_down == false)) {
right_and_left_arrows_down = false;
}
if (right_and_left_arrows_down == true) {
}
if ((down_arrow_key_down == true) && (up_arrow_key_down == true)) {
down_and_up_arrows_down = true;
} else if ((down_arrow_key_down == true) && (up_arrow_key_down == false)) {
down_and_up_arrows_down = false;
}
if (down_and_up_arrows_down == true) {
}
if (up_arrow_key_down == false) {
flash_message = false;
up_arrow_key_down_flag = 0;
if (wKeyUpFlag == 0) {
move_cam = true;
if (((left_arrow_key_down == false) && (right_arrow_key_down == false)) && (down_arrow_key_down == false)) {
stopTheAnimation = 1;
}
wKeyUpFlag = 1;
}
}
if (down_arrow_key_down == false) {
down_arrow_key_down_flag = 0;
cha_walk_active = true;
if (sKeyUpFlag == 0) {
move_cam = true;
if (((right_arrow_key_down == false) && (left_arrow_key_down == false)) && (up_arrow_key_down == false)) {
stopTheAnimation = 1;
}
if (moveHitTrigger == 1) {
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
moveHitTrigger = 0;
}
sKeyUpFlag = 1;
}
}
if (left_arrow_key_down == false) {
left_key_active = true;
left_arrow_key_down_flag = 0;
if (aKeyUpFlag == 0) {
move_cam = true;
stopTheAnimation = 1;
aKeyUpFlag = 1;
}
}
if (right_arrow_key_down == false) {
right_key_active = true;
right_arrow_key_down_flag = 0;
if (dKeyUpFlag == 0) {
move_cam = true;
if (((down_arrow_key_down == false) && (left_arrow_key_down == false)) && (up_arrow_key_down == false)) {
stopTheAnimation = 1;
}
dKeyUpFlag = 1;
}
}
if (ctrl_key_down == false) {
ctrl_key_is_down = false;
baddie_shot_flag = 0;
view_5_baddie_shot_flag = 0;
}
if (enter_key_down == false) {
view_8_trigger_a_once_flag = 0;
switch_d_trigger_once_flag = 0;
enter_key_down_once_flag = 0;
enterKeyPressed = 0;
quick_close_sound_flag = 0;
if (view_6._visible == true) {
b2_key_up_flag = 1;
}
if (object_b_state == 1) {
if (showMessage == false) {
if (hitting_switch_b_trigger == true) {
show_object_1st_person_view_flag = 1;
}
}
}
if (object_d_placed == true) {
d_trigger_door_unlocked = true;
}
}
if (move_cam == true) {
if (i_am_near_view_1_turn_cam_180_trigger == true) {
if (render_displacement_active == true) {
}
times_visited_view_2 = times_visited_view_2 + 1;
view_1_turn_cam_180_trigger._visible = false;
near_cam_message._visible = false;
view_1._visible = false;
view_1_turn_cam_180_trigger_destination._visible = true;
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
shiftCam = true;
character_stand_n._visible = true;
character_stand_s._visible = false;
character_stand_e._visible = false;
character_stand_w._visible = false;
cha_y_offset = cha_y_offset + 9;
nudgeCharacter = true;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
if (times_visited_view_2 == 2) {
rpg_battle_system_active = true;
}
i_am_near_view_1_turn_cam_180_trigger = false;
}
if (view_2._visible == true) {
if (i_am_near_view_2_turn_cam_180_trigger == true) {
if (render_displacement_active == true) {
}
view_2_turn_cam_180_trigger._visible = false;
shiftCam = true;
view_2._visible = false;
view_2_turn_cam_180_trigger_destination._visible = true;
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
character_stand_n._visible = true;
character_stand_s._visible = false;
character_stand_e._visible = false;
character_stand_w._visible = false;
cha_y_offset = cha_y_offset + 9;
nudgeCharacter = true;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
view_2_turn_cam_180_trigger._visible = false;
i_am_near_view_2_turn_cam_180_trigger = false;
}
}
if (view_3._visible == true) {
if (i_am_near_view_3_turn_cam_180_trigger == true) {
if (render_displacement_active == true) {
}
times_visited_view_4 = times_visited_view_4 + 1;
view_3_turn_cam_180_trigger._visible = false;
shiftCam = true;
view_3._visible = false;
view_3_turn_cam_180_trigger_destination._visible = true;
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
character_stand_n._visible = true;
character_stand_s._visible = false;
character_stand_e._visible = false;
character_stand_w._visible = false;
cha_y_offset = cha_y_offset + 9;
nudgeCharacter = true;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
if (times_visited_view_4 == 1) {
rpg_battle_system_active = true;
} else if (times_visited_view_4 >= 2) {
if ((object_b_collected == true) && (object_e_collected == true)) {
if (f252091157_flag == 0) {
rpg_battle_system_active = true;
f252091157_flag = 1;
}
}
}
i_am_near_view_3_turn_cam_180_trigger = false;
}
}
if (view_4._visible == true) {
if (i_am_near_view_4_turn_cam_180_trigger == true) {
if (render_displacement_active == true) {
}
view_4_turn_cam_180_trigger._visible = false;
shiftCam = true;
view_4._visible = false;
view_4_turn_cam_180_trigger_destination._visible = true;
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
character_stand_n._visible = true;
character_stand_s._visible = false;
character_stand_e._visible = false;
character_stand_w._visible = false;
cha_y_offset = cha_y_offset + 9;
nudgeCharacter = true;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_4_turn_cam_180_trigger = false;
}
}
if (view_5._visible == true) {
if (i_am_near_view_5_turn_cam_180_trigger == true) {
if (render_displacement_active == true) {
}
view_5_turn_cam_180_trigger._visible = false;
shiftCam = true;
view_5._visible = false;
view_5_turn_cam_180_trigger_destination._visible = true;
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
character_stand_n._visible = true;
character_stand_s._visible = false;
character_stand_e._visible = false;
character_stand_w._visible = false;
cha_y_offset = cha_y_offset + 9;
nudgeCharacter = true;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_5_turn_cam_180_trigger = false;
}
}
if (view_6._visible == true) {
if (i_am_near_view_6_turn_cam_180_trigger == true) {
if (render_displacement_active == true) {
}
view_6_turn_cam_180_trigger._visible = false;
shiftCam = true;
view_6._visible = false;
view_6_turn_cam_180_trigger_destination._visible = true;
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
character_stand_n._visible = true;
character_stand_s._visible = false;
character_stand_e._visible = false;
character_stand_w._visible = false;
cha_y_offset = cha_y_offset + 9;
nudgeCharacter = true;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_6_turn_cam_180_trigger = false;
}
}
move_cam = false;
}
if (keys_active == true) {
if (Key.getCode() == 100) {
} else if (Key.getCode() == 99) {
} else if (Key.getCode() == 17) {
}
}
if (enter_key_down == true) {
if (enter_key_down_once_flag == 0) {
all_baddies_killed_flag = 0;
light_message_active = false;
light_message_active_flag = 0;
light_message_active = true;
if (character_view == "1st_person") {
if ((view_4._visible == true) || (view_6._visible == true)) {
character_hit_ready_counter_active = true;
}
}
enter_key_down_once_flag = 1;
}
if (messageNo == 32) {
character_view = "3rd_person";
view_1._visible = false;
view_2._visible = true;
cha_x_offset = 198;
cha_y_offset = 156;
}
if (enterKeyPressed == 0) {
showMessage = false;
if (view_4_message_flag == 1) {
view_4_message_flag = 2;
}
if (view_4_message_flag == 3) {
view_4_message_flag = 4;
}
if (show_switch_a_pressed_message_flag == 1) {
show_switch_a_pressed_message_flag = 2;
}
if (show_switch_b_pressed_message_flag == 1) {
show_switch_b_pressed_message_flag = 2;
}
if (show_switch_c_pressed_message_flag == 1) {
show_switch_c_pressed_message_flag = 2;
}
if (show_start_message_flag == 1) {
show_start_message_flag = 2;
}
if (show_start_message_flag == 3) {
show_start_message_flag = 4;
}
if (gamePaused == true) {
gamePaused = false;
}
if (i_am_near_view_1_trigger_a == true) {
if (view_1_trigger_a_once_flag == 0) {
view_1_trigger_a_once_flag = 1;
}
view_1_trigger_a._visible = false;
view_1_trigger_a_wind_fade._visible = true;
shiftCam = true;
view_1_trigger_a._x = 10000;
view_1_trigger_a._y = 10000;
view_1._visible = false;
view_1_trigger_a_destination._visible = true;
cha_x_offset = view_1_tr_a_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_1_tr_a_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_1_tr_a_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
i_am_near_view_1_trigger_a = false;
}
if (i_am_near_view_1_trigger_b == true) {
view_1_trigger_b._visible = false;
view_1_trigger_b_wind_fade._visible = true;
shiftCam = true;
view_1_trigger_b._x = 10000;
view_1_trigger_b._y = 10000;
view_1._visible = false;
view_1_trigger_b_destination._visible = true;
cha_x_offset = view_1_tr_b_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_1_tr_b_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_1_tr_b_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_1_trigger_b = false;
}
if (i_am_near_view_1_trigger_c == true) {
view_1_trigger_c._visible = false;
view_1_trigger_c_wind_fade._visible = true;
shiftCam = true;
view_1_trigger_c._x = 10000;
view_1_trigger_c._y = 10000;
view_1._visible = false;
view_1_trigger_c_destination._visible = true;
cha_x_offset = view_1_tr_c_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_1_tr_c_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_1_tr_c_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_1_trigger_c = false;
}
if (i_am_near_view_1_trigger_d == true) {
view_1_trigger_d._visible = false;
view_1_trigger_d_wind_fade._visible = true;
shiftCam = true;
view_1_trigger_d._x = 10000;
view_1_trigger_d._y = 10000;
view_1._visible = false;
view_1_trigger_d_destination._visible = true;
cha_x_offset = view_1_tr_d_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_1_tr_d_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_1_tr_d_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_1_trigger_d = false;
}
if (view_2._visible == true) {
if (i_am_near_view_2_trigger_a == true) {
view_2_trigger_a._visible = false;
view_2_trigger_a_wind_fade._visible = true;
view_2_trigger_a._x = 10000;
view_2_trigger_a._y = 10000;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
map_active = true;
i_am_near_view_2_trigger_a = false;
}
if (i_am_near_view_2_trigger_b == true) {
if (show_message_3_once_flag == 0) {
messageNo = 3;
showMessage = true;
show_message_3_once_flag = 1;
}
view_2_trigger_b._visible = false;
view_2_trigger_b_wind_fade._visible = true;
shiftCam = true;
view_2_trigger_b._x = 10000;
view_2_trigger_b._y = 10000;
view_2._visible = false;
view_2_trigger_b_destination._visible = true;
cha_x_offset = view_2_tr_b_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_2_tr_b_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_2_tr_b_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_2_trigger_b = false;
}
if (i_am_near_view_2_trigger_c == true) {
view_2_trigger_c._visible = false;
view_2_trigger_c_wind_fade._visible = true;
shiftCam = true;
view_2_trigger_c._x = 10000;
view_2_trigger_c._y = 10000;
view_2._visible = false;
view_2_trigger_c_destination._visible = true;
cha_x_offset = view_2_tr_c_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_2_tr_c_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_2_tr_c_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_2_trigger_c = false;
}
if (i_am_near_view_2_trigger_d == true) {
view_2_trigger_d._visible = false;
view_2_trigger_d_wind_fade._visible = true;
shiftCam = true;
view_2_trigger_d._x = 10000;
view_2_trigger_d._y = 10000;
view_2._visible = false;
view_2_trigger_d_destination._visible = true;
cha_x_offset = view_2_tr_d_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_2_tr_d_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_2_tr_d_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_2_trigger_d = false;
}
}
if (i_am_near_view_3_trigger_a == true) {
view_3_trigger_a._visible = false;
view_3_trigger_a_wind_fade._visible = true;
use_hand_t._visible = false;
use_text_t._visible = false;
view_3_trigger_a._x = 10000;
view_3_trigger_a._y = 10000;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
map_active = true;
i_am_near_view_3_trigger_a = false;
}
if (i_am_near_view_3_trigger_b == true) {
view_3_trigger_b._visible = false;
view_3_trigger_b_wind_fade._visible = true;
shiftCam = true;
view_3_trigger_b._x = 10000;
view_3_trigger_b._y = 10000;
view_3._visible = false;
view_3_trigger_b_destination._visible = true;
cha_x_offset = view_3_tr_b_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_3_tr_b_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_3_tr_b_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_3_trigger_b = false;
}
if (i_am_near_view_3_trigger_c == true) {
view_3_trigger_c._visible = false;
view_3_trigger_c_wind_fade._visible = true;
shiftCam = true;
view_3_trigger_c._x = 10000;
view_3_trigger_c._y = 10000;
view_3._visible = false;
view_3_trigger_c_destination._visible = true;
cha_x_offset = view_3_tr_c_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_3_tr_c_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_3_tr_c_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_3_trigger_c = false;
}
if (i_am_near_view_3_trigger_d == true) {
view_3_trigger_d._visible = false;
view_3_trigger_d_wind_fade._visible = true;
shiftCam = true;
view_3_trigger_d._x = 10000;
view_3_trigger_d._y = 10000;
view_3._visible = false;
view_3_trigger_d_destination._visible = true;
cha_x_offset = view_3_tr_d_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_3_tr_d_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_3_tr_d_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_3_trigger_d = false;
}
if (i_am_near_view_4_trigger_a == true) {
view_4_trigger_a._visible = false;
if (show_message_2_once_flag == 0) {
show_message_2_once_flag = 1;
}
view_4_trigger_a_wind_fade._visible = true;
view_4_trigger_a._x = 10000;
view_4_trigger_a._y = 10000;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
map_active = true;
i_am_near_view_4_trigger_a = false;
}
if (i_am_near_view_4_trigger_b == true) {
view_4_trigger_b._visible = false;
view_4_trigger_b_wind_fade._visible = true;
shiftCam = true;
view_4_trigger_b._x = 10000;
view_4_trigger_b._y = 10000;
view_4._visible = false;
view_4_trigger_b_destination._visible = true;
cha_x_offset = view_4_tr_b_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_4_tr_b_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_4_tr_b_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_4_trigger_b = false;
}
if (i_am_near_view_4_trigger_c == true) {
view_4_trigger_c._visible = false;
view_4_trigger_c_wind_fade._visible = true;
shiftCam = true;
view_4_trigger_c._x = 10000;
view_4_trigger_c._y = 10000;
view_4._visible = false;
view_4_trigger_c_destination._visible = true;
cha_x_offset = view_4_tr_c_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_4_tr_c_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_4_tr_c_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_4_trigger_c = false;
}
if (i_am_near_view_4_trigger_d == true) {
view_4_trigger_d._visible = false;
view_4_trigger_d_wind_fade._visible = true;
shiftCam = true;
view_4_trigger_d._x = 10000;
view_4_trigger_d._y = 10000;
view_4._visible = false;
view_4_trigger_d_destination._visible = true;
cha_x_offset = view_4_tr_d_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_4_tr_d_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_4_tr_d_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_4_trigger_d = false;
}
if (i_am_near_view_5_trigger_a == true) {
view_5_trigger_a._visible = false;
view_5_trigger_a_wind_fade._visible = true;
use_hand_t._visible = false;
use_text_t._visible = false;
view_5_trigger_a._x = 10000;
view_5_trigger_a._y = 10000;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
map_active = true;
i_am_near_view_5_trigger_a = false;
}
if (i_am_near_view_5_trigger_b == true) {
view_5_trigger_b._visible = false;
view_5_trigger_b_wind_fade._visible = true;
shiftCam = true;
if (visited_view_4 == true) {
if (object_b_placed == true) {
first_baddie_area_visit = 2;
}
}
view_5_trigger_b._x = 10000;
view_5_trigger_b._y = 10000;
view_5._visible = false;
view_5_trigger_b_destination._visible = true;
cha_x_offset = view_5_tr_b_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_5_tr_b_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_5_tr_b_facing;
setFaceing = true;
setLabel = false;
use_text_b._visible = false;
use_hand_b._visible = false;
i_am_near_view_5_trigger_b = false;
}
if (i_am_near_view_5_trigger_c == true) {
view_5_trigger_c._visible = false;
view_5_trigger_c_wind_fade._visible = true;
shiftCam = true;
view_5_trigger_c._x = 10000;
view_5_trigger_c._y = 10000;
view_5._visible = false;
view_5_trigger_c_destination._visible = true;
cha_x_offset = view_5_tr_c_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_5_tr_c_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_5_tr_c_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_5_trigger_c = false;
}
if (i_am_near_view_5_trigger_d == true) {
view_5_trigger_d._visible = false;
view_5_trigger_d_wind_fade._visible = true;
shiftCam = true;
view_5_trigger_d._x = 10000;
view_5_trigger_d._y = 10000;
view_5._visible = false;
view_5_trigger_d_destination._visible = true;
cha_x_offset = view_5_tr_d_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_5_tr_d_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_5_tr_d_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_5_trigger_d = false;
}
if (i_am_near_view_6_trigger_a == true) {
view_6_trigger_a._visible = false;
if (load_next_part_flag == 0) {
load_next_part_flag = 1;
}
shiftCam();
view_6_trigger_a._x = 10000;
view_6_trigger_a._y = 10000;
view_6._visible = false;
view_6_ahead_cha._visible = false;
view_6_behind_cha._visible = false;
cha_x_offset = view_6_tr_a_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_6_tr_a_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_6_tr_a_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
i_am_near_view_6_trigger_a = false;
}
if (iAmNearKeyHole == "yes") {
if (objectCollected == 0) {
if (key_message_once_flag == 0) {
messageNo = 1;
showMessage = true;
key_message_once_flag = 1;
}
}
if (objectCollected == 1) {
doorUnlocked = "yes";
object_icon._visible = false;
}
}
if (iAmNearObject == 1) {
if (objectCollected == 0) {
object_fade = true;
object_icon._visible = true;
objectCollected = 1;
}
}
if (i_am_near_show_view_3_trigger == true) {
if (doorOpen == true) {
view_2._visible = false;
view_3._visible = true;
view_3_ahead_cha._visible = true;
wind_sound_fade_down = true;
moveCharacterTopRight();
last_key_pressed = "a";
plasma_ball_position = "e";
character_facing = "w";
use_text_mc._visible = false;
use_hand._visible = false;
}
}
enterKeyPressed = 1;
}
}
if (keys_active == true) {
if (left_arrow_key_down == true) {
if (showMessage == false) {
if (left_key_active == true) {
if (left_key_move_active == true) {
last_key_pressed = "a";
character_facing = "w";
if (left_arrow_key_down_flag == 0) {
baddie_move_timer = Math.round(Math.random() * baddie_move_timer);
baddie_speed = Math.round(Math.random() * 5);
left_arrow_key_down_flag = 1;
}
keys_animation = "east";
aKeyUpFlag = 0;
forward_animation = false;
backward_animation = false;
left_animation = true;
right_animation = false;
character_ray_n._visible = false;
character_ray_s._visible = false;
character_ray_e._visible = false;
character_ray_w._visible = true;
cha_x_offset = cha_x_offset - characterXOffset;
}
}
}
} else if (right_arrow_key_down == true) {
if (right_and_left_arrows_down == false) {
if (showMessage == false) {
if (right_key_active == true) {
if (right_key_move_active == true) {
last_key_pressed = "d";
dKeyUpFlag = 0;
if (right_arrow_key_down_flag == 0) {
baddie_move_timer = Math.round(Math.random() * baddie_move_timer);
baddie_speed = Math.round(Math.random() * 4);
right_arrow_key_down_flag = 1;
}
if (keys_animation == "east") {
character_facing = "e";
forward_animation = false;
backward_animation = false;
left_animation = false;
right_animation = true;
character_ray_n._visible = false;
character_ray_s._visible = false;
character_ray_e._visible = true;
character_ray_w._visible = false;
cha_x_offset = cha_x_offset + characterXOffset;
} else if (keys_animation == "west") {
character_facing = "w";
hideNWalk();
hideSWalk();
hideEWalk();
forward_animation = false;
backward_animation = false;
left_animation = true;
right_animation = false;
character_ray_n._visible = false;
character_ray_s._visible = false;
character_ray_e._visible = false;
character_ray_w._visible = true;
cha_x_offset = cha_x_offset - characterXOffset;
}
}
}
}
}
} else if (up_arrow_key_down == true) {
if ((up_and_right_arrows_down == false) || (up_and_left_arrows_down == false)) {
if (showMessage == false) {
if (up_key_move_active == true) {
last_key_pressed = "w";
if (up_arrow_key_down_flag == 0) {
baddie_move_timer = 0;
baddie_speed = Math.round(Math.random() * 4);
up_arrow_key_down_flag = 1;
}
keys_animation = "east";
wKeyUpFlag = 0;
if (w_key_animation == "north") {
character_facing = "n";
forward_animation = true;
backward_animation = false;
left_animation = false;
right_animation = false;
character_ray_n._visible = true;
character_ray_s._visible = false;
character_ray_e._visible = false;
character_ray_w._visible = false;
cha_y_offset = cha_y_offset + characterYOffset;
cha_x_offset = cha_x_offset + characterXOffsetWalkAdjust;
}
}
}
}
} else if (down_arrow_key_down == true) {
if (((down_and_right_arrows_down == false) || (down_and_left_arrows_down == false)) || (down_and_up_arrows_down == false)) {
if (cha_walk_active == true) {
if (showMessage == false) {
if (down_key_move_active == true) {
last_key_pressed = "s";
keys_animation = "east";
if (down_arrow_key_down_flag == 0) {
baddie_move_timer = 300;
baddie_speed = Math.round(Math.random() * 6);
down_arrow_key_down_flag = 1;
}
sKeyUpFlag = 0;
if (moveHitTrigger == 0) {
character_facing = "s";
forward_animation = false;
backward_animation = true;
left_animation = false;
right_animation = false;
character_ray_n._visible = false;
character_ray_s._visible = true;
character_ray_e._visible = false;
character_ray_w._visible = false;
cha_y_offset = cha_y_offset - characterYOffset;
cha_x_offset = cha_x_offset - characterXOffsetWalkAdjust;
} else if (moveHitTrigger == 1) {
character_facing = "n";
backward_animation = false;
forward_animation = true;
left_animation = false;
right_animation = false;
character_ray_n._visible = true;
character_ray_s._visible = false;
character_ray_e._visible = false;
character_ray_w._visible = false;
cha_y_offset = cha_y_offset + characterYOffset;
cha_x_offset = cha_x_offset + characterXOffsetWalkAdjust;
}
}
}
}
}
}
}
if (enter_key_down == true) {
if (hitting_switch_a_trigger == true) {
if (switch_a_pressed == false) {
_root.s_switch_sound.start(0, 1);
showMessage = true;
messageNo = 11.1;
}
switch_a_pressed = true;
use_hand_switch_a._visible = false;
use_text_switch_a._visible = false;
}
if (hitting_inactive_trigger == true) {
if (hit_inactive_trig_mes_flag == 0) {
showMessage = true;
messageNo = 36;
hit_inactive_trig_mes_flag = 1;
}
}
if (hitting_switch_b_trigger == true) {
if (object_b_collected == true) {
if (object_b_state == 0) {
if (switch_b_pressed == false) {
_root.s_switch_sound.start(0, 1);
}
switch_b_pressed = true;
use_hand_switch_b._visible = false;
use_text_switch_b._visible = false;
use_head._visible = false;
use_text_switch_b_b._visible = false;
object_b_placed = true;
object_b._x = 10000;
check_free_slots = true;
if (hitting_switch_b_trigger_flag == 0) {
hitting_switch_b_trigger_flag = 1;
}
active_object_view = object_b_view_placed;
object_fade_up = true;
object_b_state = 1;
} else if (object_b_state == 1) {
if (entered_obj_b_1st_person_view == false) {
if (show_object_1st_person_view_flag == 1) {
_root.s_collect_object_sound.start(0, 1);
object_1st_person_view_active = true;
numpad_seven_key_down = true;
character_view = "object_1st_person";
use_head._visible = false;
use_text_switch_b_b._visible = false;
show_object_1st_person_view_flag = 2;
}
}
}
} else if (object_b_collected == false) {
if (hit_switch_b_trig_mes_flag == 0) {
showMessage = true;
messageNo = 14;
hit_switch_b_trig_mes_flag = 1;
}
use_hand_switch_b._visible = false;
use_text_switch_b._visible = false;
}
}
if (hitting_collect_object_b_trigger == true) {
if (object_b_collected == false) {
active_ani_object = object_b_collected_mc;
active_object_view = object_b_view;
object_fade = true;
ocaTimer = 0;
_root.s_collect_object_sound.start(0, 1);
if (f241091203_flag == 0) {
collect_object_text._text = "Shield bot collected";
active_collected_object_icon = shield_bot_collected_icon;
collect_object_screen_active = true;
tech_button_4._amount = 1;
f241091203_flag = 1;
}
object_b_collected = true;
slot_check_active = true;
check_free_slots = true;
use_hand_collect_obj_b._visible = false;
use_text_collect_obj_b._visible = false;
}
} else if (hitting_collect_object_b_trigger == false) {
f241091203_flag = 0;
}
if (hitting_switch_c_trigger == true) {
if (switch_c_pressed == false) {
_root.s_collect_object_sound.start(0, 1);
}
active_ani_object = object_c_collected_mc;
object_c_collected = true;
check_free_slots = true;
switch_c_pressed = true;
use_hand_switch_c._visible = false;
use_text_switch_c._visible = false;
}
if (hitting_switch_a_object_trigger == true) {
if (switch_a_pressed == true) {
if (hitting_switch_a_object_trigger_flag == 0) {
messageNo = 9;
showMessage = true;
hitting_switch_a_object_trigger_flag = 1;
}
use_hand_switch_a_object._visible = false;
use_text_switch_a_object._visible = false;
switch_a_object_view_used._visible = false;
switch_a_object_goes_to_view._visible = true;
cha_x_offset = switch_a_object_tr_entry_view_x - (character_stand_n._width / 2);
diff = 316 - switch_a_object_tr_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = switch_a_object_tr_facing;
setFaceing = true;
} else if (switch_a_pressed == false) {
if (show_switch_a_pressed_message_flag == 0) {
messageNo = 10;
showMessage = true;
show_switch_a_pressed_message_flag = 1;
} else if (show_switch_a_pressed_message_flag == 2) {
messageNo = 11;
showMessage = true;
show_switch_a_pressed_message_flag = 3;
}
}
}
if (hitting_switch_b_object_trigger == true) {
if (switch_b_pressed == true) {
end_message_fade_up = true;
use_hand_switch_b_object._visible = false;
use_text_switch_b_object._visible = false;
switch_b_object_view_used._visible = false;
switch_b_object_goes_to_view._visible = true;
cha_x_offset = switch_b_object_tr_entry_view_x - (character_stand_n._width / 2);
diff = 316 - switch_b_object_tr_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = switch_b_object_tr_facing;
setFaceing = true;
} else if (switch_b_pressed == false) {
if (show_switch_b_pressed_message_flag == 0) {
ship_takeoff_animation = true;
messageNo = 12;
showMessage = true;
show_switch_b_pressed_message_flag = 1;
} else if (show_switch_b_pressed_message_flag == 2) {
messageNo = 13;
showMessage = true;
show_switch_b_pressed_message_flag = 3;
}
}
}
if (hitting_switch_c_object_trigger == true) {
if (switch_c_pressed == true) {
use_hand_switch_c_object._visible = false;
use_text_switch_c_object._visible = false;
switch_c_object_view_used._visible = false;
switch_c_object_goes_to_view._visible = true;
cha_x_offset = switch_c_object_tr_entry_view_x - (character_stand_n._width / 2);
diff = 316 - switch_c_object_tr_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = switch_c_object_tr_facing;
setFaceing = true;
} else if (switch_c_pressed == false) {
if (show_switch_c_pressed_message_flag == 0) {
messageNo = 14;
showMessage = true;
show_switch_c_pressed_message_flag = 1;
} else if (show_switch_c_pressed_message_flag == 2) {
messageNo = 15;
showMessage = true;
show_switch_c_pressed_message_flag = 3;
}
}
}
if (gamePaused == true) {
gamePaused = false;
}
start_message_fade_up = false;
start_message._alpha = 0;
if (near_cam_message_flag == 0) {
fade_in_near_cam_message = true;
near_cam_message_flag = 1;
}
if (collect_power_view_used._visible == true) {
if (iAmNearPower == 1) {
if (powerCollected == 0) {
plasmashot_text_mc.plasmashot_text = plasmashot_text_mc.plasmashot_text + 30;
power_icon._visible = false;
collect_powerups_active = false;
powerCollected = 1;
}
}
}
if (collect_nutrient_view_used._visible == true) {
if (iAmNearNutrient == 1) {
if (nutrientCollected == 0) {
nutrient_icon._visible = false;
nutrientCollected = 1;
}
}
}
if (collect_antiviral_view_used._visible == true) {
if (iAmNearAntiviral == 1) {
if (antiviralCollected == 0) {
antiviral_icon._visible = false;
antiviralCollected = 1;
}
}
}
if (dead == true) {
}
if ((((use_text_t._visible == true) || (use_text_b._visible == true)) || (use_text_l._visible == true)) || (use_text_r._visible == true)) {
if (quick_close_sound_flag == 0) {
_root.s_door_sound.stop();
_root.s_door_sound.start(0, 1);
door_sound_lenght_timer = true;
quick_close_sound_flag = 1;
}
}
if (i_am_near_use_door_trigger == true) {
if (doorOpen == true) {
if (doorOpen_once_flag == 0) {
messageNo = 9;
showMessage = true;
doorOpen_once_flag = 1;
}
use_hand._visible = false;
use_text_mc._visible = false;
open_door_trigger._visible = false;
use_door_trigger_wind_fade._visible = true;
shiftCam = true;
door_view_used._visible = false;
use_door_trigger_destination._visible = true;
cha_x_offset = use_door_tr_entry_view_x - (character_stand_n._width / 2);
diff = 316 - use_door_tr_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = use_door_tr_facing;
setFaceing = true;
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_use_door_trigger = false;
}
}
}
}
function character_animation_timestep() {
if (forward_animation == true) {
hideEWalk = true;
hideSWalk = true;
hideWWalk = true;
animation_running = true;
character_animation_timer = character_animation_timer + 1;
backward_animation = false;
left_animation = false;
right_animation = false;
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = false;
character_stand_w._visible = false;
if (character_animation_timer == 1) {
cha_walk_18._visible = false;
cha_walk_1._visible = true;
} else if (character_animation_timer == 2) {
cha_walk_1._visible = false;
cha_walk_2._visible = true;
} else if (character_animation_timer == 3) {
cha_walk_2._visible = false;
cha_walk_3._visible = true;
_root.s_cyborg_footstep.start(0, 1);
} else if (character_animation_timer == 4) {
cha_walk_3._visible = false;
cha_walk_4._visible = true;
} else if (character_animation_timer == 5) {
cha_walk_4._visible = false;
cha_walk_5._visible = true;
} else if (character_animation_timer == 6) {
cha_walk_5._visible = false;
cha_walk_6._visible = true;
} else if (character_animation_timer == 7) {
cha_walk_6._visible = false;
cha_walk_7._visible = true;
} else if (character_animation_timer == 8) {
cha_walk_7._visible = false;
cha_walk_8._visible = true;
} else if (character_animation_timer == 9) {
cha_walk_8._visible = false;
cha_walk_9._visible = true;
} else if (character_animation_timer == 10) {
cha_walk_9._visible = false;
cha_walk_10._visible = true;
} else if (character_animation_timer == 11) {
cha_walk_10._visible = false;
cha_walk_11._visible = true;
_root.s_cyborg_footstep.start(0, 1);
} else if (character_animation_timer == 12) {
cha_walk_11._visible = false;
cha_walk_12._visible = true;
} else if (character_animation_timer == 13) {
cha_walk_12._visible = false;
cha_walk_13._visible = true;
} else if (character_animation_timer == 14) {
cha_walk_13._visible = false;
cha_walk_14._visible = true;
} else if (character_animation_timer == 15) {
cha_walk_14._visible = false;
cha_walk_15._visible = true;
} else if (character_animation_timer == 16) {
cha_walk_15._visible = false;
cha_walk_16._visible = true;
} else if (character_animation_timer == 17) {
cha_walk_16._visible = false;
cha_walk_17._visible = true;
} else if (character_animation_timer == 18) {
cha_walk_17._visible = false;
cha_walk_18._visible = true;
character_animation_timer = 0;
}
} else if (backward_animation == true) {
hideNWalk = true;
hideEWalk = true;
hideWWalk = true;
animation_running = true;
character_animation_timer = character_animation_timer + 1;
forward_animation = false;
left_animation = false;
right_animation = false;
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = false;
character_stand_w._visible = false;
if (character_animation_timer == 1) {
facing_s_walk_18._visible = false;
facing_s_walk_1._visible = true;
} else if (character_animation_timer == 2) {
facing_s_walk_1._visible = false;
facing_s_walk_2._visible = true;
} else if (character_animation_timer == 3) {
facing_s_walk_2._visible = false;
facing_s_walk_3._visible = true;
_root.s_cyborg_footstep.start(0, 1);
} else if (character_animation_timer == 4) {
facing_s_walk_3._visible = false;
facing_s_walk_4._visible = true;
} else if (character_animation_timer == 5) {
facing_s_walk_4._visible = false;
facing_s_walk_5._visible = true;
} else if (character_animation_timer == 6) {
facing_s_walk_5._visible = false;
facing_s_walk_6._visible = true;
} else if (character_animation_timer == 7) {
facing_s_walk_6._visible = false;
facing_s_walk_7._visible = true;
} else if (character_animation_timer == 8) {
facing_s_walk_7._visible = false;
facing_s_walk_8._visible = true;
} else if (character_animation_timer == 9) {
facing_s_walk_8._visible = false;
facing_s_walk_9._visible = true;
} else if (character_animation_timer == 10) {
facing_s_walk_9._visible = false;
facing_s_walk_10._visible = true;
} else if (character_animation_timer == 11) {
facing_s_walk_10._visible = false;
facing_s_walk_11._visible = true;
_root.s_cyborg_footstep.start(0, 1);
} else if (character_animation_timer == 12) {
facing_s_walk_11._visible = false;
facing_s_walk_12._visible = true;
} else if (character_animation_timer == 13) {
facing_s_walk_12._visible = false;
facing_s_walk_13._visible = true;
} else if (character_animation_timer == 14) {
facing_s_walk_13._visible = false;
facing_s_walk_14._visible = true;
} else if (character_animation_timer == 15) {
facing_s_walk_14._visible = false;
facing_s_walk_15._visible = true;
} else if (character_animation_timer == 16) {
facing_s_walk_15._visible = false;
facing_s_walk_16._visible = true;
} else if (character_animation_timer == 17) {
facing_s_walk_16._visible = false;
facing_s_walk_17._visible = true;
} else if (character_animation_timer == 18) {
facing_s_walk_17._visible = false;
facing_s_walk_18._visible = true;
character_animation_timer = 0;
}
} else if (left_animation == true) {
hideNWalk = true;
hideEWalk = true;
hideSWalk = true;
animation_running = true;
character_animation_timer = character_animation_timer + 1;
forward_animation = false;
backward_animation = false;
right_animation = false;
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = false;
character_stand_w._visible = false;
if (character_animation_timer == 1) {
facing_w_walk_18._visible = false;
facing_w_walk_1._visible = true;
} else if (character_animation_timer == 2) {
facing_w_walk_1._visible = false;
facing_w_walk_2._visible = true;
} else if (character_animation_timer == 3) {
facing_w_walk_2._visible = false;
facing_w_walk_3._visible = true;
_root.s_cyborg_footstep.start(0, 1);
} else if (character_animation_timer == 4) {
facing_w_walk_3._visible = false;
facing_w_walk_4._visible = true;
} else if (character_animation_timer == 5) {
facing_w_walk_4._visible = false;
facing_w_walk_5._visible = true;
} else if (character_animation_timer == 6) {
facing_w_walk_5._visible = false;
facing_w_walk_6._visible = true;
} else if (character_animation_timer == 7) {
facing_w_walk_6._visible = false;
facing_w_walk_7._visible = true;
} else if (character_animation_timer == 8) {
facing_w_walk_7._visible = false;
facing_w_walk_8._visible = true;
} else if (character_animation_timer == 9) {
facing_w_walk_8._visible = false;
facing_w_walk_9._visible = true;
} else if (character_animation_timer == 10) {
facing_w_walk_9._visible = false;
facing_w_walk_10._visible = true;
} else if (character_animation_timer == 11) {
facing_w_walk_10._visible = false;
facing_w_walk_11._visible = true;
_root.s_cyborg_footstep.start(0, 1);
} else if (character_animation_timer == 12) {
facing_w_walk_11._visible = false;
facing_w_walk_12._visible = true;
} else if (character_animation_timer == 13) {
facing_w_walk_12._visible = false;
facing_w_walk_13._visible = true;
} else if (character_animation_timer == 14) {
facing_w_walk_13._visible = false;
facing_w_walk_14._visible = true;
} else if (character_animation_timer == 15) {
facing_w_walk_14._visible = false;
facing_w_walk_15._visible = true;
} else if (character_animation_timer == 16) {
facing_w_walk_15._visible = false;
facing_w_walk_16._visible = true;
} else if (character_animation_timer == 17) {
facing_w_walk_16._visible = false;
facing_w_walk_17._visible = true;
} else if (character_animation_timer == 18) {
facing_w_walk_17._visible = false;
facing_w_walk_18._visible = true;
character_animation_timer = 0;
}
} else if (right_animation == true) {
hideNWalk = true;
hideSWalk = true;
hideWWalk = true;
animation_running = true;
character_animation_timer = character_animation_timer + 1;
forward_animation = false;
backward_animation = false;
left_animation = false;
character_stand_n._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = false;
character_stand_w._visible = false;
if (character_animation_timer == 1) {
facing_e_walk_18._visible = false;
facing_e_walk_1._visible = true;
} else if (character_animation_timer == 2) {
facing_e_walk_1._visible = false;
facing_e_walk_2._visible = true;
} else if (character_animation_timer == 3) {
facing_e_walk_2._visible = false;
facing_e_walk_3._visible = true;
_root.s_cyborg_footstep.start(0, 1);
} else if (character_animation_timer == 4) {
facing_e_walk_3._visible = false;
facing_e_walk_4._visible = true;
} else if (character_animation_timer == 5) {
facing_e_walk_4._visible = false;
facing_e_walk_5._visible = true;
} else if (character_animation_timer == 6) {
facing_e_walk_5._visible = false;
facing_e_walk_6._visible = true;
} else if (character_animation_timer == 7) {
facing_e_walk_6._visible = false;
facing_e_walk_7._visible = true;
} else if (character_animation_timer == 8) {
facing_e_walk_7._visible = false;
facing_e_walk_8._visible = true;
} else if (character_animation_timer == 9) {
facing_e_walk_8._visible = false;
facing_e_walk_9._visible = true;
} else if (character_animation_timer == 10) {
facing_e_walk_9._visible = false;
facing_e_walk_10._visible = true;
} else if (character_animation_timer == 11) {
facing_e_walk_10._visible = false;
facing_e_walk_11._visible = true;
_root.s_cyborg_footstep.start(0, 1);
} else if (character_animation_timer == 12) {
facing_e_walk_11._visible = false;
facing_e_walk_12._visible = true;
} else if (character_animation_timer == 13) {
facing_e_walk_12._visible = false;
facing_e_walk_13._visible = true;
} else if (character_animation_timer == 14) {
facing_e_walk_13._visible = false;
facing_e_walk_14._visible = true;
} else if (character_animation_timer == 15) {
facing_e_walk_14._visible = false;
facing_e_walk_15._visible = true;
} else if (character_animation_timer == 16) {
facing_e_walk_15._visible = false;
facing_e_walk_16._visible = true;
} else if (character_animation_timer == 17) {
facing_e_walk_16._visible = false;
facing_e_walk_17._visible = true;
} else if (character_animation_timer == 18) {
facing_e_walk_17._visible = false;
facing_e_walk_18._visible = true;
character_animation_timer = 0;
}
}
if (hideNWalk == true) {
cha_walk_1._visible = false;
cha_walk_2._visible = false;
cha_walk_3._visible = false;
cha_walk_4._visible = false;
cha_walk_5._visible = false;
cha_walk_6._visible = false;
cha_walk_7._visible = false;
cha_walk_8._visible = false;
cha_walk_9._visible = false;
cha_walk_10._visible = false;
cha_walk_11._visible = false;
cha_walk_12._visible = false;
cha_walk_13._visible = false;
cha_walk_14._visible = false;
cha_walk_15._visible = false;
cha_walk_16._visible = false;
cha_walk_17._visible = false;
cha_walk_18._visible = false;
hideNWalk = false;
}
if (hideEWalk == true) {
facing_e_walk_1._visible = false;
facing_e_walk_2._visible = false;
facing_e_walk_3._visible = false;
facing_e_walk_4._visible = false;
facing_e_walk_5._visible = false;
facing_e_walk_6._visible = false;
facing_e_walk_7._visible = false;
facing_e_walk_8._visible = false;
facing_e_walk_9._visible = false;
facing_e_walk_10._visible = false;
facing_e_walk_11._visible = false;
facing_e_walk_12._visible = false;
facing_e_walk_13._visible = false;
facing_e_walk_14._visible = false;
facing_e_walk_15._visible = false;
facing_e_walk_16._visible = false;
facing_e_walk_17._visible = false;
facing_e_walk_18._visible = false;
hideEWalk = false;
}
if (hideSWalk == true) {
facing_s_walk_1._visible = false;
facing_s_walk_2._visible = false;
facing_s_walk_3._visible = false;
facing_s_walk_4._visible = false;
facing_s_walk_5._visible = false;
facing_s_walk_6._visible = false;
facing_s_walk_7._visible = false;
facing_s_walk_8._visible = false;
facing_s_walk_9._visible = false;
facing_s_walk_10._visible = false;
facing_s_walk_11._visible = false;
facing_s_walk_12._visible = false;
facing_s_walk_13._visible = false;
facing_s_walk_14._visible = false;
facing_s_walk_15._visible = false;
facing_s_walk_16._visible = false;
facing_s_walk_17._visible = false;
facing_s_walk_18._visible = false;
hideSWalk = false;
}
if (hideWWalk == true) {
facing_w_walk_1._visible = false;
facing_w_walk_2._visible = false;
facing_w_walk_3._visible = false;
facing_w_walk_4._visible = false;
facing_w_walk_5._visible = false;
facing_w_walk_6._visible = false;
facing_w_walk_7._visible = false;
facing_w_walk_8._visible = false;
facing_w_walk_9._visible = false;
facing_w_walk_10._visible = false;
facing_w_walk_11._visible = false;
facing_w_walk_12._visible = false;
facing_w_walk_13._visible = false;
facing_w_walk_14._visible = false;
facing_w_walk_15._visible = false;
facing_w_walk_16._visible = false;
facing_w_walk_17._visible = false;
facing_w_walk_18._visible = false;
hideWWalk = false;
}
}
function timestep_3() {
function checkKeysB() {
if (cha_collision_point_n_hit_b == true) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
cha_y_offset = cha_y_offset - characterYOffset;
cha_x_offset = cha_x_offset - characterXOffsetWalkAdjust;
}
if (cha_collision_point_e_hit_b == true) {
left_key_move_active = false;
up_key_move_active = false;
down_key_move_active = false;
cha_x_offset = cha_x_offset - characterXOffset;
}
if (cha_collision_point_s_hit_b == true) {
left_key_move_active = false;
right_key_move_active = false;
up_key_move_active = false;
if (moveHitTrigger == 0) {
cha_y_offset = cha_y_offset + characterYOffset;
cha_x_offset = cha_x_offset + characterXOffsetWalkAdjust;
}
if (moveHitTrigger == 1) {
cha_y_offset = cha_y_offset - characterYOffset;
cha_x_offset = cha_x_offset - characterXOffsetWalkAdjust;
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
}
}
if (cha_collision_point_w_hit_b == true) {
right_key_move_active = false;
up_key_move_active = false;
down_key_move_active = false;
cha_x_offset = cha_x_offset + characterXOffset;
}
}
if (timestep_3_b_once_Flag == 0) {
timestep_3_b_once_Flag = 1;
}
if (HP_enemy_2_disk.HP_text <= 0) {
HP_enemy_2_disk.HP_text = 0;
}
if (enemy_gunfire_if_not_dead_active == true) {
if (allow_enemy_gunfire_if_not_dead == true) {
if ((HP_enemy_1_disk.HP_text > 0) && (HP_enemy_2_disk.HP_text > 0)) {
rpg_enemy_gunfire_active = true;
} else if ((HP_enemy_1_disk.HP_text <= 0) && (HP_enemy_2_disk.HP_text > 0)) {
rpg_enemy_gunfire_active = true;
} else if ((HP_enemy_1_disk.HP_text > 0) && (HP_enemy_2_disk.HP_text <= 0)) {
rpg_enemy_gunfire_active = true;
} else if ((HP_enemy_1_disk.HP_text <= 0) && (HP_enemy_2_disk.HP_text <= 0)) {
hideAttackButtons();
rpg_enemy_gunfire_active = false;
}
}
enemy_gunfire_if_not_dead_active = false;
}
if (rpg_gunfire_active == true) {
rpg_gunfire_active_timer = rpg_gunfire_active_timer + (1 * frameRateDiff);
if ((rpg_gunfire_active_timer >= 0) && (rpg_gunfire_active_timer < 20)) {
cyborg_point_weapon = true;
hideAttackButtons();
} else if (rpg_gunfire_active_timer >= 20) {
if (rpg_gunfire_active_once_flag == 0) {
set_rpg_cyborg_shot._x = test_marker_2._x;
set_rpg_cyborg_shot._y = test_marker_2._y;
if (rpg_cyborg.rpg_cyborg_weapon._visible == true) {
_root.s_shot_sound.start(0, 1);
} else if (rpg_cyborg.rpg_cyborg_weapon_2._visible == true) {
robotGunfireVolume = 30;
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
_root.s_robot_gunfire_sound.start(0, 1);
}
if (gun_charge_box.gun_charge_high._amount <= 0) {
gun_charge_factor = 1;
}
if (gun_charge_factor > 1) {
gun_charge_box.gun_charge_high._amount = gun_charge_box.gun_charge_high._amount - 1;
}
rpg_gunfire_active_once_flag = 1;
}
set_rpg_cyborg_shot._visible = true;
if (set_rpg_cyborg_shot == rpg_plasma_ball) {
set_rpg_cyborg_shot._x = set_rpg_cyborg_shot._x + (((rpg_target._x - set_rpg_cyborg_shot._x) / 2.5) * frameRateDiff);
set_rpg_cyborg_shot._y = set_rpg_cyborg_shot._y + (((rpg_target._y - set_rpg_cyborg_shot._y) / 2.5) * frameRateDiff);
set_rpg_cyborg_shot._xscale = set_rpg_cyborg_shot._xscale - (5 * frameRateDiff);
set_rpg_cyborg_shot._yscale = set_rpg_cyborg_shot._yscale - (5 * frameRateDiff);
} else if (set_rpg_cyborg_shot == rpg_cyborg_shot_2) {
set_rpg_cyborg_shot._x = set_rpg_cyborg_shot._x + (((rpg_target._x - set_rpg_cyborg_shot._x) / 2.2) * frameRateDiff);
set_rpg_cyborg_shot._y = set_rpg_cyborg_shot._y + (((rpg_target._y - set_rpg_cyborg_shot._y) / 2.2) * frameRateDiff);
set_rpg_cyborg_shot._xscale = set_rpg_cyborg_shot._xscale + (((25 - set_rpg_cyborg_shot._xscale) / 2.2) * frameRateDiff);
set_rpg_cyborg_shot._yscale = set_rpg_cyborg_shot._yscale + (((25 - set_rpg_cyborg_shot._yscale) / 2.2) * frameRateDiff);
}
var _local5 = rpg_target._x - set_rpg_cyborg_shot._x;
var _local3 = rpg_target._y - set_rpg_cyborg_shot._y;
var _local4 = (Math.atan2(_local3, _local5) * 180) / Math.PI;
set_rpg_cyborg_shot._rotation = _local4;
if (rpg_target_hit >= 3) {
rpg_debit_text_active = true;
enemy_gunfire_if_not_dead_active = true;
rpg_gunfire_active = false;
}
if (_root.rpg_target.hitTest(set_rpg_cyborg_shot._x, set_rpg_cyborg_shot._y, true)) {
if (rpg_target_hit < 2) {
if (set_rpg_cyborg_shot == rpg_plasma_ball) {
set_rpg_cyborg_shot._x = rpg_cyborg_shot_starting_x;
set_rpg_cyborg_shot._y = rpg_cyborg_shot_starting_y;
} else if (set_rpg_cyborg_shot == rpg_cyborg_shot_2) {
set_rpg_cyborg_shot._x = rpg_cyborg_shot_starting_x;
set_rpg_cyborg_shot._y = rpg_cyborg_shot_starting_y;
}
set_rpg_cyborg_shot._xscale = 100;
set_rpg_cyborg_shot._yscale = 100;
if (cyborg_fire_sound_flag == 0) {
if (rpg_cyborg.rpg_cyborg_weapon._visible == true) {
_root.s_shot_sound.start(0, 1);
} else if (rpg_cyborg.rpg_cyborg_weapon_2._visible == true) {
robotGunfireVolume = 30;
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
_root.s_robot_gunfire_sound.start(0, 1);
}
cyborg_fire_sound_flag = 1;
}
}
if (rpg_target_hit_flag == 0) {
rpg_target_hit = rpg_target_hit + 1;
plasma_ball_explosion = blue_plasma_explosion;
plasma_explosion_active = true;
if (enemy_attacked == 1) {
if (view_2._visible == true) {
if (enemy_part_attacked == 1) {
rpg_enemy_small_damage._inner._rotation = rpg_enemy_small_damage._inner._rotation + 22;
rpg_enemy_small_damage._inner._x = 452.95;
rpg_enemy_small_damage._inner._y = 189;
} else if (enemy_part_attacked == 2) {
rpg_enemy_small_damage._inner._rotation = rpg_enemy_small_damage._inner._rotation + 28;
rpg_enemy_small_damage._inner._x = 452;
rpg_enemy_small_damage._inner._y = 153;
}
enemy_1_bitmap.draw(rpg_enemy_small_damage);
} else if (view_4._visible == true) {
if (enemy_part_attacked == 1) {
rpg_enemy_small_damage._inner._rotation = rpg_enemy_small_damage._inner._rotation + 22;
rpg_enemy_small_damage._inner._x = 431.95;
rpg_enemy_small_damage._inner._y = 235.95;
} else if (enemy_part_attacked == 2) {
rpg_enemy_small_damage._inner._rotation = rpg_enemy_small_damage._inner._rotation + 28;
rpg_enemy_small_damage._inner._x = 433.95;
rpg_enemy_small_damage._inner._y = 204;
}
e2_e1_bitmap.draw(rpg_enemy_small_damage);
}
}
if (enemy_attacked == 2) {
if (view_2._visible == true) {
if (enemy_part_attacked == 1) {
rpg_enemy_small_damage._inner._rotation = rpg_enemy_small_damage._inner._rotation + 34;
rpg_enemy_small_damage._inner._x = 516.95;
rpg_enemy_small_damage._inner._y = 191;
} else if (enemy_part_attacked == 2) {
rpg_enemy_small_damage._inner._rotation = rpg_enemy_small_damage._inner._rotation + 26;
rpg_enemy_small_damage._inner._x = 516;
rpg_enemy_small_damage._inner._y = 150;
}
enemy_2_bitmap.draw(rpg_enemy_small_damage);
} else if (view_4._visible == true) {
if (enemy_part_attacked == 1) {
rpg_enemy_small_damage._inner._rotation = rpg_enemy_small_damage._inner._rotation + 34;
rpg_enemy_small_damage._inner._x = 520.95;
rpg_enemy_small_damage._inner._y = 239.95;
} else if (enemy_part_attacked == 2) {
rpg_enemy_small_damage._inner._rotation = rpg_enemy_small_damage._inner._rotation + 26;
rpg_enemy_small_damage._inner._x = 525.95;
rpg_enemy_small_damage._inner._y = 213;
}
e2_e2_bitmap.draw(rpg_enemy_small_damage);
} else if (view_6._visible == true) {
if (enemy_part_attacked == 1) {
rpg_enemy_small_damage._inner._rotation = rpg_enemy_small_damage._inner._rotation + 26;
rpg_enemy_small_damage._inner._x = 350.95;
rpg_enemy_small_damage._inner._y = 217;
} else if (enemy_part_attacked == 2) {
rpg_enemy_small_damage._inner._rotation = rpg_enemy_small_damage._inner._rotation + 34;
rpg_enemy_small_damage._inner._x = 351.95;
rpg_enemy_small_damage._inner._y = 165;
}
boss_bitmap.draw(rpg_enemy_small_damage);
}
}
rpg_target_hit_flag = 1;
}
} else {
cyborg_fire_sound_flag = 0;
rpg_target_hit_flag = 0;
}
}
} else if (rpg_gunfire_active == false) {
rpg_gunfire_active_timer = 0;
rpg_gunfire_active_once_flag = 0;
rpg_target_hit = 0;
if (set_rpg_cyborg_shot == rpg_plasma_ball) {
set_rpg_cyborg_shot._x = rpg_cyborg_shot_starting_x;
set_rpg_cyborg_shot._y = rpg_cyborg_shot_starting_y;
} else if (set_rpg_cyborg_shot == rpg_cyborg_shot_2) {
set_rpg_cyborg_shot._x = rpg_cyborg_shot_starting_x;
set_rpg_cyborg_shot._y = rpg_cyborg_shot_starting_y;
}
set_rpg_cyborg_shot._xscale = 100;
set_rpg_cyborg_shot._yscale = 100;
set_rpg_cyborg_shot._visible = false;
}
if (rpg_enemy_gunfire_active == true) {
rpg_enemy_main_gunfire_timer = rpg_enemy_main_gunfire_timer + (1 * frameRateDiff);
if (view_4._visible == true) {
if ((e2_shot._x >= 310) && (e2_shot._x < 330)) {
e2_shot._xscale = 82;
} else if ((e2_shot._x >= 400) && (e2_shot._x < 420)) {
e2_shot._xscale = 110;
}
}
f211081114_flag = 0;
if ((rpg_cyborg_target_hit >= 0) && (rpg_cyborg_target_hit < 3)) {
if (rpg_choose_cyborg_attack_part_flag == 0) {
rpg_enemy_target_cy_max = 100;
rpg_enemy_target_cy_min = 1;
rpg_enemy_target_cy_timer = Math.round(Math.random() * ((rpg_enemy_target_cy_max - rpg_enemy_target_cy_min) + 1)) + rpg_enemy_target_cy_min;
if ((rpg_enemy_target_cy_timer >= 1) && (rpg_enemy_target_cy_timer < 50)) {
if (view_2._visible == true) {
if (HP_enemy_1_part_2 > 0) {
if (enemy_1_eye_blisters._visible == false) {
cyborg_part_attacked = 3;
} else if (enemy_1_eye_blisters._visible == true) {
cyborg_part_attacked = 2;
}
} else if (HP_enemy_1_part_2 <= 0) {
cyborg_part_attacked = 2;
}
} else if (view_4._visible == true) {
cyborg_part_attacked = 3;
} else if (view_6._visible == true) {
if (HP_enemy_1_part_2 > 0) {
if (enemy_1_eye_blisters._visible == false) {
cyborg_part_attacked = 3;
} else if (enemy_1_eye_blisters._visible == true) {
cyborg_part_attacked = 2;
}
} else if (HP_enemy_1_part_2 <= 0) {
cyborg_part_attacked = 2;
}
}
} else if ((rpg_enemy_target_cy_timer >= 50) && (rpg_enemy_target_cy_timer < 75)) {
if (HP_enemy_1_part_2 > 0) {
if (enemy_1_eye_blisters._visible == false) {
cyborg_part_attacked = 2;
} else if (enemy_1_eye_blisters._visible == true) {
cyborg_part_attacked = 2;
}
} else if (HP_enemy_1_part_2 <= 0) {
cyborg_part_attacked = 2;
}
} else if ((rpg_enemy_target_cy_timer >= 75) && (rpg_enemy_target_cy_timer < 101)) {
cyborg_part_attacked = 2;
}
rpg_choose_cyborg_attack_part_flag = 1;
}
} else if ((rpg_cyborg_target_hit >= 3) && (rpg_cyborg_target_hit < 7)) {
if (rpg_choose_cyborg_attack_part_flag_2 == 0) {
rpg_enemy_target_cy_max_2 = 100;
rpg_enemy_target_cy_min_2 = 1;
rpg_enemy_target_cy_timer_2 = Math.round(Math.random() * ((rpg_enemy_target_cy_max_2 - rpg_enemy_target_cy_min_2) + 1)) + rpg_enemy_target_cy_min_2;
if ((rpg_enemy_target_cy_timer_2 >= 1) && (rpg_enemy_target_cy_timer_2 < 50)) {
if (view_2._visible == true) {
if (HP_enemy_2_part_2 > 0) {
if (enemy_2_eye_blisters._visible == false) {
cyborg_part_attacked = 3;
} else if (enemy_2_eye_blisters._visible == true) {
cyborg_part_attacked = 2;
}
} else if (HP_enemy_2_part_2 <= 0) {
cyborg_part_attacked = 2;
}
} else if (view_4._visible == true) {
cyborg_part_attacked = 3;
} else if (view_6._visible == true) {
if (HP_enemy_2_part_2 > 0) {
if (enemy_2_eye_blisters._visible == false) {
cyborg_part_attacked = 3;
} else if (enemy_2_eye_blisters._visible == true) {
cyborg_part_attacked = 2;
}
} else if (HP_enemy_2_part_2 <= 0) {
cyborg_part_attacked = 2;
}
}
} else if ((rpg_enemy_target_cy_timer_2 >= 50) && (rpg_enemy_target_cy_timer_2 < 75)) {
if (HP_enemy_2_part_2 > 0) {
if (enemy_2_eye_blisters._visible == false) {
cyborg_part_attacked = 2;
} else if (enemy_2_eye_blisters._visible == true) {
cyborg_part_attacked = 2;
}
} else if (HP_enemy_2_part_2 <= 0) {
cyborg_part_attacked = 2;
}
} else if ((rpg_enemy_target_cy_timer_2 >= 75) && (rpg_enemy_target_cy_timer_2 < 101)) {
cyborg_part_attacked = 2;
}
rpg_choose_cyborg_attack_part_flag_2 = 1;
}
}
if (cyborg_part_attacked == 1) {
rpg_cyborg_target._x = 195.4;
rpg_cyborg_target._y = 245.3;
} else if (cyborg_part_attacked == 2) {
rpg_cyborg_target._x = 57.4;
rpg_cyborg_target._y = 244.3;
} else if (cyborg_part_attacked == 3) {
rpg_cyborg_target._x = 69.4;
rpg_cyborg_target._y = 144.3;
}
if ((rpg_enemy_main_gunfire_timer >= 0) && (rpg_enemy_main_gunfire_timer < 20)) {
if (enemy_1_eye_blisters._visible == true) {
if (give_eye_health_flag == 0) {
if (HP_enemy_1_part_2 < 100) {
enemy_1_info_box.line_enemy_1_repair_turns = enemy_1_info_box.line_enemy_1_repair_turns - 1;
HP_enemy_1_part_2 = HP_enemy_1_part_2 + 34;
} else if (HP_enemy_1_part_2 >= 100) {
if (HP_enemy_1_part_3 > 0) {
if (enemy_1_info_box._visible == true) {
active_mc_2 = enemy_1_info_box;
fade_out_mc_active = true;
if (view_2._visible == true) {
show_v2_e1_prev_ready = false;
v2_e1_w1_c1_t3 = v2_e1_w1_c1_t3_non_repairing;
v2_e1_w1_c2_t3 = v2_e1_w1_c2_t3_non_repairing;
v2_e1_w2_c1_t3 = v2_e1_w2_c1_t3_non_repairing;
v2_e1_w2_c2_t3 = v2_e1_w2_c2_t3_non_repairing;
if ((e1_weapon_was_set_at == "weapon_1") && (e1_gun_charge_factor_was_set_at == 1)) {
v2_e1_w1_c1_t3_got = true;
} else if ((e1_weapon_was_set_at == "weapon_1") && (e1_gun_charge_factor_was_set_at == 3)) {
v2_e1_w1_c2_t3_got = true;
} else if ((e1_weapon_was_set_at == "weapon_2") && (e1_gun_charge_factor_was_set_at == 1)) {
v2_e1_w2_c1_t3_got = true;
} else if ((e1_weapon_was_set_at == "weapon_2") && (e1_gun_charge_factor_was_set_at == 3)) {
v2_e1_w2_c2_t3_got = true;
}
} else if (view_4._visible == true) {
show_v4_e1_prev_ready = false;
v4_e1_w1_c1_t3 = v4_e1_w1_c1_t3_non_repairing;
v4_e1_w1_c2_t3 = v4_e1_w1_c2_t3_non_repairing;
v4_e1_w2_c1_t3 = v4_e1_w2_c1_t3_non_repairing;
v4_e1_w2_c2_t3 = v4_e1_w2_c2_t3_non_repairing;
if ((e1_weapon_was_set_at == "weapon_1") && (e1_gun_charge_factor_was_set_at == 1)) {
v4_e1_w1_c1_t3_got = true;
} else if ((e1_weapon_was_set_at == "weapon_1") && (e1_gun_charge_factor_was_set_at == 3)) {
v4_e1_w1_c2_t3_got = true;
} else if ((e1_weapon_was_set_at == "weapon_2") && (e1_gun_charge_factor_was_set_at == 1)) {
v4_e1_w2_c1_t3_got = true;
} else if ((e1_weapon_was_set_at == "weapon_2") && (e1_gun_charge_factor_was_set_at == 3)) {
v4_e1_w2_c2_t3_got = true;
}
} else if (view_6._visible == true) {
show_v6_e1_prev_ready = false;
v6_e1_w1_c1_t3 = v6_e1_w1_c1_t3_non_repairing;
v6_e1_w1_c2_t3 = v6_e1_w1_c2_t3_non_repairing;
v6_e1_w2_c1_t3 = v6_e1_w2_c1_t3_non_repairing;
v6_e1_w2_c2_t3 = v6_e1_w2_c2_t3_non_repairing;
if ((e1_weapon_was_set_at == "weapon_1") && (e1_gun_charge_factor_was_set_at == 1)) {
v6_e1_w1_c1_t3_got = true;
} else if ((e1_weapon_was_set_at == "weapon_1") && (e1_gun_charge_factor_was_set_at == 3)) {
v6_e1_w1_c2_t3_got = true;
} else if ((e1_weapon_was_set_at == "weapon_2") && (e1_gun_charge_factor_was_set_at == 1)) {
v6_e1_w2_c1_t3_got = true;
} else if ((e1_weapon_was_set_at == "weapon_2") && (e1_gun_charge_factor_was_set_at == 3)) {
v6_e1_w2_c2_t3_got = true;
}
}
}
} else if (HP_enemy_1_part_3 <= 0) {
}
enemy_1_eye_blisters._visible = false;
}
give_eye_health_flag = 1;
}
}
if (enemy_2_eye_blisters._visible == true) {
if (give_eye_health_flag_2 == 0) {
if (HP_enemy_2_part_2 < 100) {
enemy_2_info_box.line_enemy_2_repair_turns = enemy_2_info_box.line_enemy_2_repair_turns - 1;
HP_enemy_2_part_2 = HP_enemy_2_part_2 + 34;
} else if (HP_enemy_2_part_2 >= 100) {
if (HP_enemy_2_part_3 > 0) {
if (enemy_2_info_box._visible == true) {
active_mc_2 = enemy_2_info_box;
fade_out_mc_active = true;
if (view_2._visible == true) {
show_v2_e2_prev_ready = false;
v2_e2_w1_c1_t3 = v2_e2_w1_c1_t3_non_repairing;
v2_e2_w1_c2_t3 = v2_e2_w1_c2_t3_non_repairing;
v2_e2_w2_c1_t3 = v2_e2_w2_c1_t3_non_repairing;
v2_e2_w2_c2_t3 = v2_e2_w2_c2_t3_non_repairing;
if ((e2_weapon_was_set_at == "weapon_1") && (e2_gun_charge_factor_was_set_at == 1)) {
v2_e2_w1_c1_t3_got = true;
} else if ((e2_weapon_was_set_at == "weapon_1") && (e2_gun_charge_factor_was_set_at == 3)) {
v2_e2_w1_c2_t3_got = true;
} else if ((e2_weapon_was_set_at == "weapon_2") && (e2_gun_charge_factor_was_set_at == 1)) {
v2_e2_w2_c1_t3_got = true;
} else if ((e2_weapon_was_set_at == "weapon_2") && (e2_gun_charge_factor_was_set_at == 3)) {
v2_e2_w2_c2_t3_got = true;
}
} else if (view_4._visible == true) {
show_v4_e2_prev_ready = false;
v4_e2_w1_c1_t3 = v4_e2_w1_c1_t3_non_repairing;
v4_e2_w1_c2_t3 = v4_e2_w1_c2_t3_non_repairing;
v4_e2_w2_c1_t3 = v4_e2_w2_c1_t3_non_repairing;
v4_e2_w2_c2_t3 = v4_e2_w2_c2_t3_non_repairing;
if ((e2_weapon_was_set_at == "weapon_1") && (e2_gun_charge_factor_was_set_at == 1)) {
v4_e2_w1_c1_t3_got = true;
} else if ((e2_weapon_was_set_at == "weapon_1") && (e2_gun_charge_factor_was_set_at == 3)) {
v4_e2_w1_c2_t3_got = true;
} else if ((e2_weapon_was_set_at == "weapon_2") && (e2_gun_charge_factor_was_set_at == 1)) {
v4_e2_w2_c1_t3_got = true;
} else if ((e2_weapon_was_set_at == "weapon_2") && (e2_gun_charge_factor_was_set_at == 3)) {
v4_e2_w2_c2_t3_got = true;
}
} else if (view_6._visible == true) {
show_v6_e2_prev_ready = false;
v6_e2_w1_c1_t3 = v6_e2_w1_c1_t3_non_repairing;
v6_e2_w1_c2_t3 = v6_e2_w1_c2_t3_non_repairing;
v6_e2_w2_c1_t3 = v6_e2_w2_c1_t3_non_repairing;
v6_e2_w2_c2_t3 = v6_e2_w2_c2_t3_non_repairing;
if ((e2_weapon_was_set_at == "weapon_1") && (e2_gun_charge_factor_was_set_at == 1)) {
v6_e2_w1_c1_t3_got = true;
} else if ((e2_weapon_was_set_at == "weapon_1") && (e2_gun_charge_factor_was_set_at == 3)) {
v6_e2_w1_c2_t3_got = true;
} else if ((e2_weapon_was_set_at == "weapon_2") && (e2_gun_charge_factor_was_set_at == 1)) {
v6_e2_w2_c1_t3_got = true;
} else if ((e2_weapon_was_set_at == "weapon_2") && (e2_gun_charge_factor_was_set_at == 3)) {
v6_e2_w2_c2_t3_got = true;
}
}
}
} else if (HP_enemy_2_part_3 <= 0) {
}
enemy_2_eye_blisters._visible = false;
}
give_eye_health_flag_2 = 1;
}
}
} else if (rpg_enemy_main_gunfire_timer >= 20) {
give_eye_health_flag = 0;
give_eye_health_flag_2 = 0;
if (rpg_enemy_gunfire_flag == 0) {
if (view_2._visible == true) {
rpg_enemy_shot._visible = true;
hideAttackButtons();
robotGunfireVolume = 30;
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
_root.s_robot_gunfire_sound.start(0, 1);
} else if (view_4._visible == true) {
cutter_fire_active_flag = 0;
cutter_fire_active = true;
} else if (view_6._visible == true) {
rpg_enemy_shot._visible = true;
hideAttackButtons();
robotGunfireVolume = 30;
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
_root.s_robot_gunfire_sound.start(0, 1);
}
rpg_enemy_gunfire_flag = 1;
}
rpg_enemy_shot_angle = Math.atan2(rpg_cyborg_target._y - rpg_enemy_shot._y, rpg_cyborg_target._x - rpg_enemy_shot._x);
rpg_enemy_shot._rotation = rpg_enemy_shot_angle;
var _local7 = rpg_cyborg_target._x - rpg_enemy_shot._x;
var _local6 = rpg_cyborg_target._y - rpg_enemy_shot._y;
var _local2 = (Math.atan2(_local6, _local7) * 180) / Math.PI;
rpg_enemy_shot._rotation = _local2;
if (view_4._visible == true) {
e2_shot._rotation = _local2;
}
if ((rpg_cyborg_target_hit >= 2) && (rpg_cyborg_target_hit < 7)) {
if (rpg_enemy_2_killed == false) {
enemy_fireing = 2;
} else if (rpg_enemy_2_killed == true) {
enemy_fireing = 1;
}
} else if (rpg_cyborg_target_hit >= 7) {
rpg_enemy_gunfire_active = false;
}
if (_root.rpg_cyborg_target.hitTest(rpg_enemy_shot._x, rpg_enemy_shot._y, true)) {
if (rpg_cyborg_target_hit_flag == 0) {
rpg_cyborg_target_hit = rpg_cyborg_target_hit + 1;
if (rpg_cyborg_target_hit < 7) {
if ((view_2._visible == true) || (view_6._visible == true)) {
plasma_ball_explosion = blue_plasma_explosion;
} else if (view_4._visible == true) {
plasma_ball_explosion = orange_plasma_explosion;
}
plasma_explosion_active = true;
if (cyborg_part_attacked == 3) {
cyborg_head_knocked_back = true;
cyborg_body_knocked_back = true;
cyborg_weapon_knocked_forward = true;
cyborg_head_rotation = "back";
cyborg_body_rotation = "back";
} else if (cyborg_part_attacked == 2) {
cyborg_body_knocked_back = true;
cyborg_weapon_knocked_forward = true;
cyborg_head_knocked_forward = true;
cyborg_head_rotation_f = "forward";
}
}
rpg_cyborg_target_hit_flag = 1;
}
if (rpg_cyborg_target_hit < 6) {
if (enemy_fireing == 1) {
if (HP_enemy_1_disk.HP_text > 0) {
if (HP_enemy_1_part_3 > 0) {
rpg_enemy_shot_speed = 18;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
if (enemy_fire_sound_flag == 0) {
if (view_2._visible == true) {
robotGunfireVolume = 40;
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
_root.s_robot_gunfire_sound.start(0, 1);
} else if (view_4._visible == true) {
cutter_fire_active_flag = 0;
cutter_fire_active = true;
} else if (view_6._visible == true) {
robotGunfireVolume = 40;
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
_root.s_robot_gunfire_sound.start(0, 1);
}
enemy_fire_sound_flag = 1;
}
} else if (HP_enemy_1_part_3 <= 0) {
enemy_fireing = 2;
}
} else if (HP_enemy_1_disk.HP_text <= 0) {
enemy_fireing = 2;
}
}
if (enemy_fireing == 2) {
if (HP_enemy_2_disk.HP_text > 0) {
if (rpg_cyborg_target_hit >= 4) {
if (enemy_fire_sound_flag_2 == 0) {
if (view_2._visible == true) {
robotGunfireVolume = 40;
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
_root.s_robot_gunfire_sound.start(0, 1);
} else if (view_4._visible == true) {
cutter_fire_active_flag = 0;
cutter_fire_active = true;
} else if (view_6._visible == true) {
robotGunfireVolume = 40;
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
_root.s_robot_gunfire_sound.start(0, 1);
}
enemy_fire_sound_flag_2 = 1;
}
}
if (HP_enemy_2_part_3 > 0) {
rpg_enemy_shot_speed = 24;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
}
if (HP_enemy_2_part_3 <= 0) {
rpg_enemy_shot_speed = 18;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
}
} else if (HP_enemy_2_disk.HP_text <= 0) {
enemy_fireing = 1;
}
}
rpg_enemy_shot._xscale = 40;
rpg_enemy_shot._yscale = 40;
if (rpg_cyborg_target_hit == 3) {
if (rpg_enemy_shot_pause_flag == 0) {
rpg_debit_text_active = true;
rpg_enemy_shot_pause = true;
rpg_enemy_shot_pause_flag = 1;
}
}
if (rpg_cyborg_target_hit == 6) {
}
} else if (rpg_cyborg_target_hit >= 6) {
if (f2811081255_flag == 0) {
rpg_debit_text_active = true;
f2811081255_flag = 1;
}
rpg_enemy_shot_pause_2 = true;
}
} else {
enemy_fire_sound_flag = 0;
enemy_fire_sound_flag_2 = 0;
rpg_cyborg_target_hit_flag = 0;
}
if (rpg_enemy_shot_pause == false) {
if (rpg_cyborg_target_hit < 6) {
if (view_2._visible == true) {
rpg_enemy_shot._visible = true;
hideAttackButtons();
} else if (view_4._visible == true) {
if (f1812081232_flag == 0) {
cutter_fire_active_flag = 0;
cutter_fire_active = true;
f1812081232_flag = 1;
}
}
if (view_6._visible == true) {
rpg_enemy_shot._visible = true;
hideAttackButtons();
}
} else if (rpg_cyborg_target_hit >= 6) {
rpg_enemy_shot._visible = false;
}
rpg_enemy_shot_speed = rpg_enemy_shot_speed + 2;
rpg_enemy_shot._x = rpg_enemy_shot._x + (Math.cos(rpg_enemy_shot_angle) * (rpg_enemy_shot_speed * frameRateDiff));
rpg_enemy_shot._y = rpg_enemy_shot._y + (Math.sin(rpg_enemy_shot_angle) * (rpg_enemy_shot_speed * frameRateDiff));
rpg_enemy_shot._xscale = rpg_enemy_shot._xscale + (18 * frameRateDiff);
rpg_enemy_shot._yscale = rpg_enemy_shot._yscale + (18 * frameRateDiff);
} else if (rpg_enemy_shot_pause == true) {
rpg_enemy_shot._visible = false;
f1812081232_flag = 0;
rpg_enemy_shot_pause_timer = rpg_enemy_shot_pause_timer + (1 * frameRateDiff);
if (rpg_enemy_shot_pause_timer >= 20) {
rpg_enemy_shot_pause = false;
if (rpg_enemy_gunfire_flag_2 == 0) {
if (view_2._visible == true) {
robotGunfireVolume = 40;
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
_root.s_robot_gunfire_sound.start(0, 1);
} else if (view_4._visible == true) {
cutter_fire_active_flag = 0;
cutter_fire_active = true;
} else if (view_6._visible == true) {
robotGunfireVolume = 40;
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
_root.s_robot_gunfire_sound.start(0, 1);
}
rpg_enemy_gunfire_flag_2 = 1;
}
}
}
}
} else if (rpg_enemy_gunfire_active == false) {
if (f211081114_flag == 0) {
if (no_enemies_alive == 2) {
rpg_cyborg_target_hit = 0;
} else if (no_enemies_alive == 1) {
rpg_cyborg_target_hit = 3;
}
f211081114_flag = 1;
}
f2811081255_flag = 0;
f291008240_flag = 0;
rpg_enemy_shot._xscale = 40;
rpg_enemy_shot._yscale = 40;
rpg_choose_cyborg_attack_part_flag = 0;
rpg_choose_cyborg_attack_part_flag_2 = 0;
rpg_enemy_main_gunfire_timer = 0;
rpg_cyborg_target_hit_flag = 0;
rpg_enemy_shot_pause_timer = 0;
rpg_enemy_gunfire_flag = 0;
rpg_enemy_gunfire_flag_2 = 0;
rpg_enemy_shot_pause_flag = 0;
rpg_enemy_shot_speed = 18;
if (HP_enemy_1_disk.HP_text > 0) {
if (HP_enemy_1_part_3 > 0) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
} else if (HP_enemy_1_part_3 <= 0) {
enemy_fireing = 2;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
}
} else if (HP_enemy_1_disk.HP_text <= 0) {
enemy_fireing = 2;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
}
rpg_enemy_shot._visible = false;
}
if (rpg_debit_HP_active == true) {
} else if (rpg_debit_HP_active == false) {
}
if (rpg_debit_text_active == true) {
if (rpg_debit_text_flag == 0) {
if (view_6._visible == true) {
HP_enemy_shield = HP_enemy_shield - 10;
}
if (enemy_attacked == 0) {
shield_debit_text_active = false;
cyborg_shield_debit_text_active = true;
if (view_2._visible == true) {
if (rpg_cyborg_shield_running == false) {
if (cyborg_part_attacked == 1) {
} else if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 4;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 10;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
}
} else if (rpg_cyborg_shield_running == true) {
if (cyborg_part_attacked == 1) {
} else if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 1;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 12;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 3;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 8;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
}
}
} else if (view_4._visible == true) {
if ((rpg_cyborg_target_hit >= 0) && (rpg_cyborg_target_hit < 4)) {
if (rpg_cyborg_shield_running == false) {
if (enemy_1_eye_blisters._visible == false) {
if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 8;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 17;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
}
} else if (enemy_1_eye_blisters._visible == true) {
if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 4;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 10;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
}
}
} else if (rpg_cyborg_shield_running == true) {
if (enemy_1_eye_blisters._visible == false) {
if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 4;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 18;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 8;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 12;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
}
} else if (enemy_1_eye_blisters._visible == true) {
if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 3;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 7;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 4;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 5;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
}
}
}
} else if ((rpg_cyborg_target_hit >= 4) && (rpg_cyborg_target_hit < 7)) {
if (HP_enemy_2_part_2 > 0) {
if (rpg_cyborg_shield_running == false) {
if (enemy_2_eye_blisters._visible == false) {
if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 8;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 17;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
}
} else if (enemy_2_eye_blisters._visible == true) {
if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 4;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 10;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
}
}
} else if (rpg_cyborg_shield_running == true) {
if (enemy_2_eye_blisters._visible == false) {
if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 4;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 18;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 8;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 12;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
}
} else if (enemy_2_eye_blisters._visible == true) {
if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 3;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 7;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 4;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 5;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
}
}
}
}
}
} else if (view_6._visible == true) {
if (rpg_cyborg_shield_running == false) {
if (cyborg_part_attacked == 1) {
} else if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 20;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 30;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
}
} else if (rpg_cyborg_shield_running == true) {
if (cyborg_part_attacked == 1) {
} else if (cyborg_part_attacked == 2) {
rpg_debit_text._text = 12;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 24;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
} else if (cyborg_part_attacked == 3) {
rpg_debit_text._text = 17;
HP_cy10.HP_text = HP_cy10.HP_text - rpg_debit_text._text;
rpg_cyborg_shield_text._text = 18;
cyborg_shield_bar.HP_text = cyborg_shield_bar.HP_text - rpg_cyborg_shield_text._text;
}
}
}
if ((HP_cy10.hero_inner_bar_mc._width >= 0) && (HP_cy10.hero_inner_bar_mc._width < 33)) {
HP_colour.rb = 179;
HP_colour.gb = 0;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_hero_colour.setTransform(HP_colour);
health_red._visible = true;
health_amber._visible = false;
health_green._visible = false;
} else if ((HP_cy10.hero_inner_bar_mc._width >= 33) && (HP_cy10.hero_inner_bar_mc._width < 66)) {
HP_colour.rb = 195;
HP_colour.gb = 100;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_hero_colour.setTransform(HP_colour);
health_red._visible = false;
health_amber._visible = true;
health_green._visible = false;
} else if ((HP_cy10.hero_inner_bar_mc._width >= 66) && (HP_cy10.hero_inner_bar_mc._width < 101)) {
HP_colour.rb = 0;
HP_colour.gb = 123;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_hero_colour.setTransform(HP_colour);
health_red._visible = false;
health_amber._visible = false;
health_green._visible = true;
}
rpg_debit_text._x = 60.5;
rpg_debit_text._y = 244.3;
}
if (enemy_attacked == 1) {
cyborg_shield_debit_text_active = false;
if (view_2._visible == true) {
if (enemy_part_attacked == 1) {
rpg_debit_text._text = (8 + weapon_2_damage) * gun_charge_factor;
} else if (enemy_part_attacked == 2) {
if (enemy_1_eye_blisters._visible == false) {
rpg_debit_text._text = (15 + weapon_2_damage) * gun_charge_factor;
HP_enemy_1_part_2 = HP_enemy_1_part_2 - 50;
} else if (enemy_1_eye_blisters._visible == true) {
rpg_debit_text._text = (3 + weapon_2_damage) * gun_charge_factor;
}
} else if (enemy_part_attacked == 3) {
rpg_debit_text._text = (4 + weapon_2_damage) * gun_charge_factor;
HP_enemy_1_part_3 = HP_enemy_1_part_3 - 34;
}
} else if (view_4._visible == true) {
if (enemy_part_attacked == 1) {
rpg_debit_text._text = (5 + weapon_2_damage) * gun_charge_factor;
} else if (enemy_part_attacked == 2) {
if (enemy_1_eye_blisters._visible == false) {
rpg_debit_text._text = (12 + weapon_2_damage) * gun_charge_factor;
HP_enemy_1_part_2 = HP_enemy_1_part_2 - 50;
} else if (enemy_1_eye_blisters._visible == true) {
rpg_debit_text._text = (2 + weapon_2_damage) * gun_charge_factor;
}
}
}
HP_enemy_1_disk.HP_text = HP_enemy_1_disk.HP_text - rpg_debit_text._text;
if (f2210081240_flag == 0) {
if ((HP_enemy_1_disk.HP_text > 0) && (HP_enemy_2_disk.HP_text > 0)) {
if ((HP_enemy_1_part_3 > 0) && (HP_enemy_2_part_3 > 0)) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
} else if ((HP_enemy_1_part_3 <= 0) && (HP_enemy_2_part_3 > 0)) {
enemy_fireing = 2;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if ((HP_enemy_1_part_3 > 0) && (HP_enemy_2_part_3 <= 0)) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if ((HP_enemy_1_part_3 <= 0) && (HP_enemy_2_part_3 <= 0)) {
rpg_active_flag = 0;
rpg_enemy_gunfire_active = false;
}
} else if ((HP_enemy_1_disk.HP_text <= 0) && (HP_enemy_2_disk.HP_text > 0)) {
if (HP_enemy_2_part_3 > 0) {
enemy_fireing = 2;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if (HP_enemy_2_part_3 <= 0) {
rpg_cyborg_target_hit = 6;
}
} else if ((HP_enemy_1_disk.HP_text > 0) && (HP_enemy_2_disk.HP_text <= 0)) {
if (HP_enemy_1_part_3 > 0) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if (HP_enemy_1_part_3 <= 0) {
rpg_cyborg_target_hit = 6;
}
}
f2210081240_flag = 1;
}
if ((HP_enemy_1_disk.enemy_1_inner_bar_mc._width >= 0) && (HP_enemy_1_disk.enemy_1_inner_bar_mc._width < 33)) {
HP_colour.rb = 179;
HP_colour.gb = 0;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_enemy_1_colour.setTransform(HP_colour);
} else if ((HP_enemy_1_disk.enemy_1_inner_bar_mc._width >= 33) && (HP_enemy_1_disk.enemy_1_inner_bar_mc._width < 66)) {
HP_colour.rb = 195;
HP_colour.gb = 100;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_enemy_1_colour.setTransform(HP_colour);
} else if ((HP_enemy_1_disk.enemy_1_inner_bar_mc._width >= 66) && (HP_enemy_1_disk.enemy_1_inner_bar_mc._width < 101)) {
HP_colour.rb = 0;
HP_colour.gb = 123;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_enemy_1_colour.setTransform(HP_colour);
}
if (view_2._visible == true) {
rpg_debit_text._x = 350.4;
rpg_debit_text._y = 165.3;
} else if (view_4._visible == true) {
rpg_debit_text._x = 326.45;
rpg_debit_text._y = 179.35;
}
enemy_attacked = 0;
}
if (enemy_attacked == 2) {
shield_debit_text_active = true;
cyborg_shield_debit_text_active = false;
if (view_2._visible == true) {
if (enemy_part_attacked == 1) {
rpg_debit_text._text = (8 + weapon_2_damage) * gun_charge_factor;
} else if (enemy_part_attacked == 2) {
if (enemy_2_eye_blisters._visible == false) {
rpg_debit_text._text = (15 + weapon_2_damage) * gun_charge_factor;
HP_enemy_2_part_2 = HP_enemy_2_part_2 - 50;
} else if (enemy_2_eye_blisters._visible == true) {
rpg_debit_text._text = (3 + weapon_2_damage) * gun_charge_factor;
}
}
} else if (view_4._visible == true) {
if (enemy_part_attacked == 1) {
rpg_debit_text._text = (5 + weapon_2_damage) * gun_charge_factor;
} else if (enemy_part_attacked == 2) {
if (enemy_2_eye_blisters._visible == false) {
rpg_debit_text._text = (12 + weapon_2_damage) * gun_charge_factor;
HP_enemy_2_part_2 = HP_enemy_2_part_2 - 50;
} else if (enemy_2_eye_blisters._visible == true) {
rpg_debit_text._text = (2 + weapon_2_damage) * gun_charge_factor;
}
}
} else if (view_6._visible == true) {
if (shield_bar.HP_text > 0) {
if (enemy_part_attacked == 1) {
rpg_debit_text._text = (1 + weapon_2_damage) * gun_charge_factor;
rpg_shield_text._text = (16 + weapon_2_damage) * gun_charge_factor;
} else if (enemy_part_attacked == 2) {
if (enemy_2_eye_blisters._visible == false) {
rpg_debit_text._text = (4 + weapon_2_damage) * gun_charge_factor;
rpg_shield_text._text = (5 + weapon_2_damage) * gun_charge_factor;
} else if (enemy_2_eye_blisters._visible == true) {
rpg_debit_text._text = (4 + weapon_2_damage) * gun_charge_factor;
rpg_shield_text._text = (5 + weapon_2_damage) * gun_charge_factor;
}
}
} else if (shield_bar.HP_text <= 0) {
if (enemy_part_attacked == 1) {
rpg_debit_text._text = (3 + weapon_2_damage) * gun_charge_factor;
} else if (enemy_part_attacked == 2) {
if (enemy_2_eye_blisters._visible == false) {
rpg_debit_text._text = (10 + weapon_2_damage) * gun_charge_factor;
} else if (enemy_2_eye_blisters._visible == true) {
rpg_debit_text._text = (3 + weapon_2_damage) * gun_charge_factor;
}
}
}
}
HP_enemy_2_disk.HP_text = HP_enemy_2_disk.HP_text - rpg_debit_text._text;
if (HP_enemy_2_disk.HP_text <= 0) {
HP_enemy_2_disk.HP_text = 0;
}
if (view_6._visible == true) {
if (shield_bar.HP_text > 0) {
shield_bar.HP_text = shield_bar.HP_text - rpg_shield_text._text;
}
}
if (f221008240_flag == 0) {
if ((HP_enemy_1_disk.HP_text > 0) && (HP_enemy_2_disk.HP_text > 0)) {
if ((HP_enemy_1_part_3 > 0) && (HP_enemy_2_part_3 > 0)) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
} else if ((HP_enemy_1_part_3 <= 0) && (HP_enemy_2_part_3 > 0)) {
enemy_fireing = 2;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if ((HP_enemy_1_part_3 > 0) && (HP_enemy_2_part_3 <= 0)) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if ((HP_enemy_1_part_3 <= 0) && (HP_enemy_2_part_3 <= 0)) {
rpg_active_flag = 0;
rpg_enemy_gunfire_active = false;
}
} else if ((HP_enemy_1_disk.HP_text <= 0) && (HP_enemy_2_disk.HP_text > 0)) {
if (HP_enemy_2_part_3 > 0) {
enemy_fireing = 2;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if (HP_enemy_2_part_3 <= 0) {
rpg_cyborg_target_hit = 6;
}
} else if ((HP_enemy_1_disk.HP_text > 0) && (HP_enemy_2_disk.HP_text <= 0)) {
if (HP_enemy_1_part_3 > 0) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if (HP_enemy_1_part_3 <= 0) {
rpg_cyborg_target_hit = 6;
}
}
f221008240_flag = 1;
}
if ((HP_enemy_2_disk.enemy_2_inner_bar_mc._width >= 0) && (HP_enemy_2_disk.enemy_2_inner_bar_mc._width < 33)) {
HP_colour.rb = 179;
HP_colour.gb = 0;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_enemy_2_colour.setTransform(HP_colour);
} else if ((HP_enemy_2_disk.enemy_2_inner_bar_mc._width >= 33) && (HP_enemy_2_disk.enemy_2_inner_bar_mc._width < 66)) {
HP_colour.rb = 195;
HP_colour.gb = 100;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_enemy_2_colour.setTransform(HP_colour);
} else if ((HP_enemy_2_disk.enemy_2_inner_bar_mc._width >= 66) && (HP_enemy_2_disk.enemy_2_inner_bar_mc._width < 101)) {
HP_colour.rb = 0;
HP_colour.gb = 123;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_enemy_2_colour.setTransform(HP_colour);
}
if (view_2._visible == true) {
rpg_debit_text._x = 415.4;
rpg_debit_text._y = 168.3;
} else if (view_4._visible == true) {
rpg_debit_text._x = 417.45;
rpg_debit_text._y = 184.35;
} else if (view_6._visible == true) {
rpg_debit_text._x = 292.45;
rpg_debit_text._y = 201.35;
}
enemy_attacked = 0;
}
rpg_debit_text_flag = 1;
}
if (HP_cy10.HP_text <= 0) {
HP_cy10.HP_text = 0;
} else if (HP_enemy_1_disk.HP_text <= 0) {
rpg_enemy_1_killed = true;
no_enemies_alive = 1;
HP_enemy_1_disk.HP_text = 0;
} else if (HP_enemy_2_disk.HP_text <= 0) {
rpg_enemy_2_killed = true;
no_enemies_alive = 1;
HP_enemy_2_disk.HP_text = 0;
}
if (HP_enemy_1_part_2 <= 0) {
if (HP_enemy_1_part_2_flag == 0) {
enemy_1_eye_blisters._visible = true;
if (HP_enemy_1_part_3 > 0) {
if (view_2._visible == true) {
enemy_1_info_box.line_1 = "Eyes repairing";
enemy_1_info_box.line_3 = "Cannot target";
enemy_1_info_box.line_4 = "heroes head";
} else if (view_4._visible == true) {
enemy_1_info_box.line_1 = "Chamber repairing";
enemy_1_info_box.line_3 = "Cannot fire at";
enemy_1_info_box.line_4 = "full power";
}
enemy_1_info_box.line_enemy_1_repair_turns = 4;
} else if (HP_enemy_1_part_3 <= 0) {
}
if (enemy_1_info_box._visible == false) {
active_mc = enemy_1_info_box;
fade_in_and_ease_mc_active = true;
if (view_2._visible == true) {
v2_e1_w1_c1_t3_got = false;
v2_e1_w1_c2_t3_got = false;
v2_e1_w2_c1_t3_got = false;
v2_e1_w2_c2_t3_got = false;
v2_e1_w1_c1_t3_non_repairing = v2_e1_w1_c1_t3;
v2_e1_w1_c2_t3_non_repairing = v2_e1_w1_c2_t3;
v2_e1_w2_c1_t3_non_repairing = v2_e1_w2_c1_t3;
v2_e1_w2_c2_t3_non_repairing = v2_e1_w2_c2_t3;
if (rpg_cyborg.rpg_cyborg_weapon._visible == true) {
e1_weapon_was_set_at = "weapon_1";
} else if (rpg_cyborg.rpg_cyborg_weapon_2._visible == true) {
e1_weapon_was_set_at = "weapon_2";
}
if (gun_charge_factor == 1) {
e1_gun_charge_factor_was_set_at = 1;
} else if (gun_charge_factor == 3) {
e1_gun_charge_factor_was_set_at = 3;
}
} else if (view_4._visible == true) {
v4_e1_w1_c1_t3_got = false;
v4_e1_w1_c2_t3_got = false;
v4_e1_w2_c1_t3_got = false;
v4_e1_w2_c2_t3_got = false;
v4_e1_w1_c1_t3_non_repairing = v4_e1_w1_c1_t3;
v4_e1_w1_c2_t3_non_repairing = v4_e1_w1_c2_t3;
v4_e1_w2_c1_t3_non_repairing = v4_e1_w2_c1_t3;
v4_e1_w2_c2_t3_non_repairing = v4_e1_w2_c2_t3;
if (rpg_cyborg.rpg_cyborg_weapon._visible == true) {
e1_weapon_was_set_at = "weapon_1";
} else if (rpg_cyborg.rpg_cyborg_weapon_2._visible == true) {
e1_weapon_was_set_at = "weapon_2";
}
if (gun_charge_factor == 1) {
e1_gun_charge_factor_was_set_at = 1;
} else if (gun_charge_factor == 3) {
e1_gun_charge_factor_was_set_at = 3;
}
} else if (view_6._visible == true) {
v6_e1_w1_c1_t3_got = false;
v6_e1_w1_c2_t3_got = false;
v6_e1_w2_c1_t3_got = false;
v6_e1_w2_c2_t3_got = false;
v6_e1_w1_c1_t3_non_repairing = v6_e1_w1_c1_t3;
v6_e1_w1_c2_t3_non_repairing = v6_e1_w1_c2_t3;
v6_e1_w2_c1_t3_non_repairing = v6_e1_w2_c1_t3;
v6_e1_w2_c2_t3_non_repairing = v6_e1_w2_c2_t3;
if (rpg_cyborg.rpg_cyborg_weapon._visible == true) {
e1_weapon_was_set_at = "weapon_1";
} else if (rpg_cyborg.rpg_cyborg_weapon_2._visible == true) {
e1_weapon_was_set_at = "weapon_2";
}
if (gun_charge_factor == 1) {
e1_gun_charge_factor_was_set_at = 1;
} else if (gun_charge_factor == 3) {
e1_gun_charge_factor_was_set_at = 3;
}
}
}
HP_enemy_1_part_2_flag = 1;
}
} else if (HP_enemy_1_part_2 > 0) {
if (HP_enemy_1_part_2_flag_2 == 0) {
if (HP_enemy_1_part_3 > 0) {
} else if (HP_enemy_1_part_3 <= 0) {
if (enemy_1_eye_blisters._visible == false) {
if (enemy_1_info_box._visible == false) {
active_mc = enemy_1_info_box;
fade_in_and_ease_mc_active = true;
}
} else if (enemy_1_eye_blisters._visible == true) {
}
}
HP_enemy_1_part_2_flag_2 = 1;
}
}
if (HP_enemy_2_part_2 <= 0) {
if (HP_enemy_2_part_2_flag == 0) {
enemy_2_eye_blisters._visible = true;
if (HP_enemy_2_part_3 > 0) {
if (view_2._visible == true) {
enemy_2_info_box.line_1 = "Eyes repairing";
enemy_2_info_box.line_3 = "Cannot target";
enemy_2_info_box.line_4 = "heroes head";
} else if (view_4._visible == true) {
enemy_2_info_box.line_1 = "Chamber repairing";
enemy_2_info_box.line_3 = "Cannot fire at";
enemy_2_info_box.line_4 = "full power";
}
enemy_2_info_box.line_enemy_2_repair_turns = 4;
} else if (HP_enemy_2_part_3 <= 0) {
}
if (enemy_2_info_box._visible == false) {
active_mc = enemy_2_info_box;
fade_in_and_ease_mc_active = true;
if (view_2._visible == true) {
v2_e2_w1_c1_t3_got = false;
v2_e2_w1_c2_t3_got = false;
v2_e2_w2_c1_t3_got = false;
v2_e2_w2_c2_t3_got = false;
v2_e2_w1_c1_t3_non_repairing = v2_e2_w1_c1_t3;
v2_e2_w1_c2_t3_non_repairing = v2_e2_w1_c2_t3;
v2_e2_w2_c1_t3_non_repairing = v2_e2_w2_c1_t3;
v2_e2_w2_c2_t3_non_repairing = v2_e2_w2_c2_t3;
if (rpg_cyborg.rpg_cyborg_weapon._visible == true) {
e2_weapon_was_set_at = "weapon_1";
} else if (rpg_cyborg.rpg_cyborg_weapon_2._visible == true) {
e2_weapon_was_set_at = "weapon_2";
}
if (gun_charge_factor == 1) {
e2_gun_charge_factor_was_set_at = 1;
} else if (gun_charge_factor == 3) {
e2_gun_charge_factor_was_set_at = 3;
}
} else if (view_4._visible == true) {
v4_e2_w1_c1_t3_got = false;
v4_e2_w1_c2_t3_got = false;
v4_e2_w2_c1_t3_got = false;
v4_e2_w2_c2_t3_got = false;
v4_e2_w1_c1_t3_non_repairing = v4_e2_w1_c1_t3;
v4_e2_w1_c2_t3_non_repairing = v4_e2_w1_c2_t3;
v4_e2_w2_c1_t3_non_repairing = v4_e2_w2_c1_t3;
v4_e2_w2_c2_t3_non_repairing = v4_e2_w2_c2_t3;
if (rpg_cyborg.rpg_cyborg_weapon._visible == true) {
e2_weapon_was_set_at = "weapon_1";
} else if (rpg_cyborg.rpg_cyborg_weapon_2._visible == true) {
e2_weapon_was_set_at = "weapon_2";
}
if (gun_charge_factor == 1) {
e2_gun_charge_factor_was_set_at = 1;
} else if (gun_charge_factor == 3) {
e2_gun_charge_factor_was_set_at = 3;
}
} else if (view_6._visible == true) {
v6_e2_w1_c1_t3_got = false;
v6_e2_w1_c2_t3_got = false;
v6_e2_w2_c1_t3_got = false;
v6_e2_w2_c2_t3_got = false;
v6_e2_w1_c1_t3_non_repairing = v6_e2_w1_c1_t3;
v6_e2_w1_c2_t3_non_repairing = v6_e2_w1_c2_t3;
v6_e2_w2_c1_t3_non_repairing = v6_e2_w2_c1_t3;
v6_e2_w2_c2_t3_non_repairing = v6_e2_w2_c2_t3;
if (rpg_cyborg.rpg_cyborg_weapon._visible == true) {
e2_weapon_was_set_at = "weapon_1";
} else if (rpg_cyborg.rpg_cyborg_weapon_2._visible == true) {
e2_weapon_was_set_at = "weapon_2";
}
if (gun_charge_factor == 1) {
e2_gun_charge_factor_was_set_at = 1;
} else if (gun_charge_factor == 3) {
e2_gun_charge_factor_was_set_at = 3;
}
}
}
HP_enemy_2_part_2_flag = 1;
}
} else if (HP_enemy_2_part_2 > 0) {
if (HP_enemy_2_part_2_flag_2 == 0) {
if (HP_enemy_2_part_3 > 0) {
} else if (HP_enemy_2_part_3 <= 0) {
if (enemy_2_eye_blisters._visible == false) {
if (enemy_2_info_box._visible == false) {
active_mc = enemy_2_info_box;
fade_in_and_ease_mc_active = true;
}
} else if (enemy_2_eye_blisters._visible == true) {
enemy_2_info_box.line_1 = "Eyes repairing";
enemy_2_info_box.line_2 = "Weapon repairing";
enemy_2_info_box.line_3 = "Cannot fire";
enemy_2_info_box.line_4 = "";
}
}
HP_enemy_2_part_2_flag_2 = 1;
}
}
HP_cy10.hero_inner_bar_mc._width = (HP_cy10.HP_text / HP_cy10.HP_text_total) * 100;
HP_enemy_1_disk.enemy_1_inner_bar_mc._width = (HP_enemy_1_disk.HP_text / HP_enemy_1_disk.HP_text_total) * 100;
HP_enemy_2_disk.enemy_2_inner_bar_mc._width = (HP_enemy_2_disk.HP_text / HP_enemy_2_disk.HP_text_total) * 100;
shield_bar.shield_inner_bar_mc._width = shield_bar.HP_text;
cyborg_shield_bar.cyborg_shield_inner_bar_mc._width = cyborg_shield_bar.HP_text;
rpg_debit_text._visible = true;
if (get_debit_text_active == true) {
get_debit_text_active_b = true;
get_debit_text_active = false;
}
rpg_debit_text_timer = rpg_debit_text_timer + (1 * frameRateDiff);
if ((rpg_debit_text_timer >= 0) && (rpg_debit_text_timer < 19)) {
rpg_debit_text._y = rpg_debit_text._y - (1 * frameRateDiff);
} else if ((rpg_debit_text_timer >= 19) && (rpg_debit_text_timer < 22)) {
rpg_debit_text._y = rpg_debit_text._y - (1 * frameRateDiff);
}
if ((rpg_debit_text_timer >= 22) && (rpg_debit_text_timer < 25)) {
rpg_debit_text._y = rpg_debit_text._y - (1 * frameRateDiff);
} else if (rpg_debit_text_timer >= 25) {
debit_dots_flash_active = true;
rpg_debit_text._visible = false;
rpg_debit_text_active = false;
}
if (shield_debit_text_active == true) {
if (view_6._visible == true) {
if (shield_bar.HP_text > 0) {
rpg_shield_text._y = rpg_debit_text._y;
rpg_shield_text._alpha = rpg_debit_text._alpha;
rpg_shield_text._visible = rpg_debit_text._visible;
} else if (shield_bar.HP_text <= 0) {
rpg_shield_text._visible = false;
}
}
}
if (cyborg_shield_debit_text_active == true) {
if (rpg_cyborg_shield_running == true) {
rpg_cyborg_shield_text._x = rpg_debit_text._x;
rpg_cyborg_shield_text._y = rpg_debit_text._y;
rpg_cyborg_shield_text._alpha = rpg_debit_text._alpha;
rpg_cyborg_shield_text._visible = rpg_debit_text._visible;
} else if (rpg_cyborg_shield_running == false) {
rpg_cyborg_shield_text._visible = false;
}
} else if (cyborg_shield_debit_text_active == false) {
rpg_cyborg_shield_text._visible = false;
}
allow_enemy_gunfire_if_not_dead = true;
} else if (rpg_debit_text_active == false) {
allow_enemy_gunfire_if_not_dead = false;
rpg_debit_text_flag = 0;
HP_enemy_1_part_2_flag = 0;
HP_enemy_2_part_2_flag = 0;
HP_enemy_1_part_2_flag_2 = 0;
HP_enemy_2_part_2_flag_2 = 0;
f2210081240_flag = 0;
f221008240_flag = 0;
rpg_debit_text_timer = 0;
rpg_debit_text._alpha = 100;
rpg_debit_text._visible = false;
rpg_shield_text._alpha = 100;
rpg_shield_text._visible = false;
}
if (shield_bar.HP_text <= 0) {
shield_bar.HP_text = 0;
}
if (HP_cy10.HP_text <= 0) {
HP_cy10.HP_text = 0;
} else if (HP_enemy_1_disk.HP_text <= 0) {
rpg_enemy_1_killed = true;
no_enemies_alive = 1;
HP_enemy_1_disk.HP_text = 0;
} else if (HP_enemy_2_disk.HP_text <= 0) {
rpg_enemy_2_killed = true;
no_enemies_alive = 1;
HP_enemy_2_disk.HP_text = 0;
}
if (pre_battle_movie_1_active == true) {
movie_black_bars._visible = true;
pre_battle_movie_1_timer = pre_battle_movie_1_timer + (1 * frameRateDiff);
if ((pre_battle_movie_1_timer >= 30) && (pre_battle_movie_1_timer < 70)) {
backward_animation = true;
cha_y_offset = cha_y_offset - characterYOffset;
cha_x_offset = cha_x_offset - characterXOffsetWalkAdjust;
} else if ((pre_battle_movie_1_timer >= 70) && (pre_battle_movie_1_timer < 80)) {
backward_animation = false;
stopTheAnimation = 1;
character_stand_s._visible = true;
} else if ((pre_battle_movie_1_timer >= 80) && (pre_battle_movie_1_timer < 90)) {
pre_battle_movie_1_timer = 80;
rpg_battle_system_active = true;
view_1._visible = false;
view_2._visible = true;
pre_battle_movie_1_active = false;
}
} else if (pre_battle_movie_1_active == false) {
movie_black_bars._visible = false;
}
if (first_enemy_animation_active == true) {
if (first_enemy_animation_flag == 0) {
rpg_cyborg._visible = true;
set_rpg_cyborg_weapon._visible = true;
first_enemy_animation_flag = 1;
}
character_view = undefined;
character_stand_n._alpha = 0;
character_stand_e._alpha = 0;
character_stand_s._alpha = 0;
character_stand_w._alpha = 0;
keys_active = false;
stopTheAnimation = 1;
first_enemy_animation_timer = first_enemy_animation_timer + 1;
if (first_enemy_animation_timer >= 100) {
rpg_battle_system_active = true;
first_enemy_animation_active = false;
}
}
if (flash_orange_battle_intro == true) {
flash_orange_battle_timer = flash_orange_battle_timer + (1 * frameRateDiff);
if ((flash_orange_battle_timer >= 0) && (flash_orange_battle_timer < 8)) {
large_orange_battle_flash._visible = true;
large_orange_battle_flash._alpha = 100;
} else if ((flash_orange_battle_timer >= 8) && (large_orange_battle_flash._alpha > 0)) {
large_orange_battle_flash._alpha = large_orange_battle_flash._alpha - (5 * frameRateDiff);
} else if ((flash_orange_battle_timer >= 10) && (large_orange_battle_flash._alpha <= 0)) {
large_orange_battle_flash._alpha = 0;
flash_orange_battle_intro = false;
}
} else if (flash_orange_battle_intro == false) {
flash_orange_battle_timer = 0;
large_orange_battle_flash._visible = false;
}
if (ambient_gun_sound_active == true) {
if ((((((view_1._visible == true) || (view_2._visible == true)) || (view_3._visible == true)) || (view_4._visible == true)) || (view_5._visible == true)) || (view_6._visible == true)) {
ags_max = 90;
ags_min = 1;
ambient_gun_sound_timer = Math.round(Math.random() * ((ags_max - ags_min) + 1)) + ags_min;
ags_max_b = 180;
ags_min_b = 1;
ambient_gun_sound_timer_b = Math.round(Math.random() * ((ags_max_b - ags_min_b) + 1)) + ags_min_b;
if (ambient_gun_sound_timer == 10) {
}
if (ambient_gun_sound_timer == 20) {
lightningGunfireVolume = 4;
s_lightning_gunfire_sound.setVolume(lightningGunfireVolume);
_root.s_lightning_gunfire_sound.start(0, 1);
}
if (ambient_gun_sound_timer_b == 20) {
_root.s_explosion_sound.start(0, 1);
}
}
}
if (logo_animation == true) {
logo_background._visible = true;
logo_cursor_timer = logo_cursor_timer + 1;
if ((logo_cursor_timer >= 0) && (logo_cursor_timer < 20)) {
logo.cursor_cover._alpha = 0;
} else if ((logo_cursor_timer >= 20) && (logo_cursor_timer < 40)) {
logo.cursor_cover._alpha = 100;
} else if (logo_cursor_timer >= 40) {
logo_cursor_timer = 0;
}
if (la_flag == 0) {
logo.render_line._alpha = 0;
created_by._alpha = 100;
logo._alpha = 0;
logo._visible = true;
la_flag = 1;
}
if (fade_logo == "in") {
logo._alpha = logo._alpha + (3 * frameRateDiff);
fade_in_ticks = fade_in_ticks + (2 * frameRateDiff);
created_by._alpha = 100;
if (logo.logo_cover._y < 70) {
logo.render_line._alpha = logo.render_line._alpha + (4 * frameRateDiff);
logo.render_line._y = logo.render_line._y + (3 * frameRateDiff);
logo.logo_cover._y = logo.logo_cover._y + (3 * frameRateDiff);
} else if (logo.logo_cover._y >= 70) {
logo.render_line._alpha = logo.render_line._alpha - (20 * frameRateDiff);
}
if (logo._alpha >= 100) {
logo._alpha = 100;
}
if (fade_in_ticks >= 190) {
fade_logo = "out";
}
}
if (fade_logo == "out") {
logo._alpha = logo._alpha - (4 * frameRateDiff);
created_by._alpha = created_by._alpha - (18 * frameRateDiff);
if (logo._alpha <= 0) {
logo_animation = false;
}
}
}
if (logo_animation == false) {
if (logo_ani_flag == 0) {
character_view = "1st_person_start";
logo_ani_flag = 1;
}
logo_background._visible = false;
logo._visible = false;
created_by._visible = false;
}
if (still_UI._visible == true) {
} else if (still_UI._visible == false) {
}
if (show_menu_active == true) {
sma_timer = sma_timer + (1 * frameRateDiff);
menu_box._visible = true;
close_menu._visible = true;
menu_box._alpha = 100;
if (disp_options_box._visible == true) {
if (disp_options_box.hitTest(_xmouse, _ymouse, true)) {
} else {
menu_tooltip._visible = false;
}
}
disp_options_box.off.onRollOver = function () {
disp_options_box.off._alpha = 100;
menu_tooltip._text.text = "Single-core PC only.";
};
disp_options_box.off.onRollOut = function () {
disp_options_box.off._alpha = 0;
};
disp_options_box.low.onRollOver = function () {
disp_options_box.low._alpha = 100;
menu_tooltip._text.text = "Dual-core PC recommended.";
};
disp_options_box.low.onRollOut = function () {
disp_options_box.low._alpha = 0;
};
disp_options_box.high.onRollOver = function () {
disp_options_box.high._alpha = 100;
menu_tooltip._text.text = "Quad-core PC required.";
};
disp_options_box.high.onRollOut = function () {
disp_options_box.high._alpha = 0;
};
disp_options_box.off.onRelease = function () {
menu_main_text.selected_disp_label._text.text = "Off";
render_displacement_active = false;
remove_disp_filters();
disp_options_box._visible = false;
};
disp_options_box.low.onRelease = function () {
menu_main_text.selected_disp_label._text.text = "Slow update";
render_displacement_active = true;
disp_throttle = 3;
disp_options_box._visible = false;
};
disp_options_box.high.onRelease = function () {
menu_main_text.selected_disp_label._text.text = "Fast update";
render_displacement_active = true;
disp_throttle = 1;
disp_options_box._visible = false;
};
if ((sma_timer >= 0) && (sma_timer < 10)) {
menu_text._visible = true;
menu_text._alpha = 0;
menu_main_text._visible = true;
menu_main_text._alpha = 0;
help_menu_text._visible = true;
help_menu_text._alpha = 0;
disp_checkbox._visible = true;
music_checkbox._visible = true;
disp_checkbox._alpha = 0;
music_checkbox._alpha = 0;
framerate_checkbox._visible = true;
framerate_checkbox._alpha = 0;
} else if ((sma_timer >= 10) && (menu_text._alpha < 100)) {
menu_text._visible = true;
disp_checkbox._visible = true;
music_checkbox._visible = true;
framerate_checkbox._visible = true;
menu_text._alpha = menu_text._alpha + (10 * frameRateDiff);
disp_checkbox._alpha = disp_checkbox._alpha + (10 * frameRateDiff);
music_checkbox._alpha = music_checkbox._alpha + (10 * frameRateDiff);
framerate_checkbox._alpha = framerate_checkbox._alpha + (10 * frameRateDiff);
menu_main_text._alpha = menu_main_text._alpha + (10 * frameRateDiff);
help_menu_text._alpha = help_menu_text._alpha + (10 * frameRateDiff);
if (dist_checkbox_tick_active == true) {
dist_checkbox_tick._visible = true;
dist_checkbox_tick._alpha = dist_checkbox_tick._alpha + (10 * frameRateDiff);
}
if (music_checkbox_tick_active == true) {
music_checkbox_tick._visible = true;
music_checkbox_tick._alpha = music_checkbox_tick._alpha + (10 * frameRateDiff);
}
if (framerate_checkbox_tick_active == true) {
framerate_checkbox_tick._visible = true;
framerate_checkbox_tick._alpha = framerate_checkbox_tick._alpha + (10 * frameRateDiff);
}
} else if ((sma_timer >= 10) && (menu_text._alpha >= 100)) {
menu_text._visible = true;
disp_checkbox._visible = true;
music_checkbox._visible = true;
framerate_checkbox._visible = true;
menu_text._alpha = 100;
disp_checkbox._alpha = 100;
music_checkbox._alpha = 100;
framerate_checkbox._alpha = 100;
menu_main_text._alpha = 100;
help_menu_text._alpha = 100;
if (dist_checkbox_tick_active == true) {
dist_checkbox_tick._visible = true;
dist_checkbox_tick._alpha = 100;
}
if (music_checkbox_tick_active == true) {
music_checkbox_tick._visible = true;
music_checkbox_tick._alpha = 100;
}
if (framerate_checkbox_tick_active == true) {
framerate_checkbox_tick._visible = true;
framerate_checkbox_tick._alpha = 100;
}
}
} else if (show_menu_active == false) {
disp_options_box._visible = false;
sma_timer = 0;
menu_box._visible = false;
menu_box._alpha = 0;
close_menu._visible = false;
menu_text._visible = false;
menu_text._alpha = 0;
menu_main_text._visible = false;
menu_main_text._alpha = 0;
help_menu_text._visible = false;
help_menu_text._alpha = 0;
disp_checkbox._visible = false;
music_checkbox._visible = false;
framerate_checkbox._visible = false;
framerate_checkbox._alpha = 0;
disp_checkbox._alpha = 0;
music_checkbox._alpha = 0;
dist_checkbox_tick._visible = false;
dist_checkbox_tick._alpha = 0;
music_checkbox_tick._visible = false;
music_checkbox_tick._alpha = 0;
framerate_checkbox_tick._visible = false;
framerate_checkbox_tick._alpha = 0;
}
if (o_and_numpad_two_key_down == true) {
test_positioner_y_offset = test_positioner_y_offset + 1;
}
if (o_and_numpad_four_key_down == true) {
test_positioner_x_offset = test_positioner_x_offset - 1;
test_marker._x = test_marker._x - 1;
}
if (o_and_numpad_six_key_down == true) {
test_positioner_x_offset = test_positioner_x_offset + 1;
test_marker._x = test_marker._x + 1;
}
if (o_and_numpad_eight_key_down == true) {
test_positioner_y_offset = test_positioner_y_offset - 1;
}
if (numpad_seven_key_down == true) {
HP_cy10.HP_text = 10;
}
if (numpad_eight_key_down == true) {
HP_enemy_1_disk.HP_text = 1;
HP_enemy_2_disk.HP_text = 1;
}
if (numpad_nine_key_down == true) {
fps_text_mc._visible = true;
}
if (l_key_down == true) {
logo_animation = false;
}
if (inactive_trigger_active == true) {
inactive_trigger._x = inactive_trigger._x + ((dummy_1._x - inactive_trigger._x) / interpolate_speed);
inactive_trigger._y = inactive_trigger._y + ((dummy_1._y - inactive_trigger._y) / interpolate_speed);
if (_root.inactive_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
hitting_inactive_trigger = true;
if (hit_inactive_trig_mes_flag == 0) {
use_hand_inactive._visible = true;
use_text_inactive._visible = true;
} else if (hit_inactive_trig_mes_flag == 1) {
use_hand_inactive._visible = false;
use_text_inactive._visible = false;
}
} else {
hitting_inactive_trigger = false;
use_hand_inactive._visible = false;
use_text_inactive._visible = false;
hit_inactive_trig_mes_flag = 0;
}
}
if (switch_b_active == true) {
switch_b_trigger._x = switch_b_trigger._x + ((dummy_1._x - switch_b_trigger._x) / interpolate_speed);
switch_b_trigger._y = switch_b_trigger._y + ((dummy_1._y - switch_b_trigger._y) / interpolate_speed);
object_b_view_placed._x = object_b_view_placed._x + ((dummy_1._x - object_b_view_placed._x) / interpolate_speed);
object_b_view_placed._y = object_b_view_placed._y + ((dummy_1._y - object_b_view_placed._y) / interpolate_speed);
if (object_b_collected == true) {
if (object_b_placed == true) {
if (show_object_b_placed_once_flag == 0) {
object_b_view_placed._visible = true;
object_b_state = 1;
show_object_b_placed_once_flag = 1;
}
}
}
if (_root.switch_b_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (object_d_state == 0) {
if (object_b_state == 0) {
hitting_switch_b_trigger = true;
if (hit_switch_b_trig_mes_flag == 0) {
use_hand_switch_b._visible = true;
use_text_switch_b._visible = true;
} else if (hit_switch_b_trig_mes_flag == 1) {
use_hand_switch_b._visible = false;
use_text_switch_b._visible = false;
}
} else if (object_b_state == 1) {
hitting_switch_b_trigger = true;
if (hit_switch_b_trig_mes_flag == 0) {
if (object_1st_person_view_active == false) {
use_head._visible = true;
use_text_switch_b_b._visible = true;
} else if (object_1st_person_view_active == true) {
use_head._visible = false;
use_text_switch_b_b._visible = false;
}
} else if (hit_switch_b_trig_mes_flag == 1) {
use_head._visible = false;
use_text_switch_b_b._visible = false;
}
use_hand_switch_b._visible = false;
use_text_switch_b._visible = false;
}
}
} else {
hitting_switch_b_trigger = false;
use_hand_switch_b._visible = false;
use_text_switch_b._visible = false;
use_text_switch_b_b._visible = false;
use_head._visible = false;
hit_switch_b_trig_mes_flag = 0;
}
} else if (switch_b_active == false) {
show_object_b_placed_once_flag = 0;
object_b_view_placed._visible = false;
hitting_switch_b_trigger = false;
use_hand_switch_b._visible = false;
use_text_switch_b._visible = false;
}
if (view_4._visible == true) {
if ((baddie_2_active == false) && (thor_baddie_killed == true)) {
if (draw_dead_thorn_flag == 0) {
draw_dead_thorn_flag = 1;
}
}
if (character_view == "3rd_person") {
view_4_depth_trigger._x = view_4_depth_trigger._x + ((dummy_1._x - view_4_depth_trigger._x) / interpolate_speed);
view_4_depth_trigger._y = view_4_depth_trigger._y + ((dummy_1._y - view_4_depth_trigger._y) / interpolate_speed);
if (_root.view_4_depth_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (view_4_depth_trigger_flag == 0) {
view_4_depth_trigger_flag_b = 0;
view_4_ahead_cha.swapDepths(behind_character.getDepth());
thor_baddie_bitmap_mc.swapDepths(thor_behind_character.getDepth());
view_4_depth_trigger_flag = 1;
}
} else if (view_4_depth_trigger_flag_b == 0) {
view_4_depth_trigger_flag = 0;
view_4_ahead_cha.swapDepths(behind_character.getDepth());
thor_baddie_bitmap_mc.swapDepths(thor_behind_character.getDepth());
view_4_depth_trigger_flag_b = 1;
}
} else if (character_view == "1st_person") {
}
} else if (view_4._visible == false) {
view_4_ahead_cha._visible = false;
}
if (thor_baddie_shot == true) {
thor_baddie_hit = thor_baddie_hit + 1;
thor_baddie_shot = false;
}
if (thor_baddie_hit > 12) {
if (thor_baddie_hit_once_flag == 0) {
thor_baddie_killed = true;
thor_baddie_hit_once_flag = 1;
}
}
if (cy_standing_animation_active == true) {
cySaaTimer = cySaaTimer + (1 * frameRateDiff);
if ((cySaaTimer >= 0) && (cySaaTimer < 100)) {
cy21_standing_0._visible = true;
cy21_standing_1._visible = false;
cy21_standing_2._visible = false;
cy21_standing_3._visible = false;
cySaa_max = 590;
cySaa_min = 110;
cySaaTimer = Math.round(Math.random() * ((cySaa_max - cySaa_min) + 1)) + cySaa_min;
} else if ((cySaaTimer >= 600) && (cySaaTimer < 605)) {
cy21_standing_0._visible = false;
cy21_standing_1._visible = true;
cy21_standing_2._visible = false;
cy21_standing_3._visible = false;
} else if ((cySaaTimer >= 605) && (cySaaTimer < 610)) {
cy21_standing_0._visible = false;
cy21_standing_1._visible = false;
cy21_standing_2._visible = true;
cy21_standing_3._visible = false;
} else if ((cySaaTimer >= 610) && (cySaaTimer < 615)) {
cy21_standing_0._visible = false;
cy21_standing_1._visible = false;
cy21_standing_2._visible = false;
cy21_standing_3._visible = true;
} else if ((cySaaTimer >= 615) && (cySaaTimer < 620)) {
cy21_standing_0._visible = false;
cy21_standing_1._visible = false;
cy21_standing_2._visible = true;
cy21_standing_3._visible = false;
} else if ((cySaaTimer >= 620) && (cySaaTimer < 625)) {
cy21_standing_0._visible = false;
cy21_standing_1._visible = true;
cy21_standing_2._visible = false;
cy21_standing_3._visible = false;
} else if (cySaaTimer >= 625) {
cy21_standing_1._visible = false;
cy21_standing_0._visible = true;
cySaaTimer = 0;
}
} else if (cy_standing_animation_active == false) {
cy21_standing_0._visible = false;
cy21_standing_1._visible = false;
cy21_standing_2._visible = false;
cy21_standing_3._visible = false;
cyborg_standing_mc._visible = false;
cySaaTimer = 0;
}
if (air_alarm_active == true) {
air_alarm_bar._visible = true;
if (air_alarm_message_flag == 0) {
if (character_view == "3rd_person") {
messageNo = 33;
showMessage = true;
air_alarm_message_flag = 1;
}
}
air_ticks = air_ticks + 0.6;
if (air_ticks > 100) {
air_ticks = 0;
air_alarm_active = false;
}
air_alarm_bar._alpha = 100 * Math.sin(air_ticks);
} else if (air_alarm_active == false) {
air_ticks = 0;
air_alarm_bar._alpha = 0;
air_alarm_bar._visible = false;
}
if (check_free_slots == true) {
check_free_slots_timer = check_free_slots_timer + 1;
if ((check_free_slots_timer >= 0) && (check_free_slots_timer < 4)) {
if ((object_b_collected == true) && (object_b_placed == false)) {
object_b._x = slotAPosX;
object_b._y = slotAPosY;
if (object_b.hitTest(object_d) || (object_b.hitTest(object_e))) {
} else {
check_free_slots_timer = 16;
}
}
} else if ((check_free_slots_timer >= 4) && (check_free_slots_timer < 8)) {
if ((object_b_collected == true) && (object_b_placed == false)) {
object_b._x = slotBPosX;
object_b._y = slotBPosY;
if (object_b.hitTest(object_d) || (object_b.hitTest(object_e))) {
} else {
check_free_slots_timer = 16;
}
}
} else if ((check_free_slots_timer >= 8) && (check_free_slots_timer < 12)) {
if ((object_b_collected == true) && (object_b_placed == false)) {
object_b._x = slotCPosX;
object_b._y = slotCPosY;
if (object_b.hitTest(object_d) || (object_b.hitTest(object_e))) {
} else {
check_free_slots_timer = 16;
}
}
} else if ((check_free_slots_timer >= 12) && (check_free_slots_timer < 16)) {
if ((object_b_collected == true) && (object_b_placed == false)) {
object_b._x = slotDPosX;
object_b._y = slotDPosY;
if (object_b.hitTest(object_d) || (object_b.hitTest(object_e))) {
} else {
check_free_slots_timer = 16;
}
}
} else if ((check_free_slots_timer >= 16) && (check_free_slots_timer < 20)) {
if ((object_d_collected == true) && (object_d_placed == false)) {
object_d._x = slotAPosX;
object_d._y = slotAPosY;
if (object_d.hitTest(object_b) || (object_d.hitTest(object_e))) {
} else {
check_free_slots_timer = 32;
}
}
} else if ((check_free_slots_timer >= 20) && (check_free_slots_timer < 24)) {
if ((object_d_collected == true) && (object_d_placed == false)) {
object_d._x = slotBPosX;
object_d._y = slotBPosY;
if (object_d.hitTest(object_b) || object_d.hitTest(object_e)) {
} else {
check_free_slots_timer = 32;
}
}
} else if ((check_free_slots_timer >= 24) && (check_free_slots_timer < 28)) {
if ((object_d_collected == true) && (object_d_placed == false)) {
object_d._x = slotCPosX;
object_d._y = slotCPosY;
if (object_d.hitTest(object_b) || object_d.hitTest(object_e)) {
} else {
check_free_slots_timer = 32;
}
}
} else if ((check_free_slots_timer >= 28) && (check_free_slots_timer < 32)) {
if ((object_d_collected == true) && (object_d_placed == false)) {
object_d._x = slotDPosX;
object_d._y = slotDPosY;
if (object_d.hitTest(object_b) || object_d.hitTest(object_e)) {
} else {
check_free_slots_timer = 32;
}
}
} else if ((check_free_slots_timer >= 32) && (check_free_slots_timer < 36)) {
if ((object_e_collected == true) && (object_e_placed == false)) {
object_e._x = slotAPosX;
object_e._y = slotAPosY;
if (object_e.hitTest(object_b) || object_e.hitTest(object_d)) {
} else {
check_free_slots = false;
}
}
} else if ((check_free_slots_timer >= 36) && (check_free_slots_timer < 40)) {
if ((object_e_collected == true) && (object_e_placed == false)) {
object_e._x = slotBPosX;
object_e._y = slotBPosY;
if (object_e.hitTest(object_b) || object_e.hitTest(object_d)) {
} else {
check_free_slots = false;
}
}
} else if ((check_free_slots_timer >= 40) && (check_free_slots_timer < 44)) {
if ((object_e_collected == true) && (object_e_placed == false)) {
object_e._x = slotCPosX;
object_e._y = slotCPosY;
if (object_e.hitTest(object_b) || object_e.hitTest(object_d)) {
} else {
check_free_slots = false;
}
}
} else if ((check_free_slots_timer >= 44) && (check_free_slots_timer < 48)) {
if ((object_e_collected == true) && (object_e_placed == false)) {
object_e._x = slotDPosX;
object_e._y = slotDPosY;
if (object_e.hitTest(object_b) || object_e.hitTest(object_d)) {
} else {
check_free_slots = false;
}
}
} else if (check_free_slots_timer > 48) {
check_free_slots = false;
}
} else if (check_free_slots == false) {
check_free_slots_timer = 0;
}
if (timestep_3_once_flag == 0) {
side_black_bars.swapDepths(60000);
menu_tooltip.swapDepths(326);
timestep_3_once_flag = 1;
}
if (dead == false) {
if (_root.baddie_2.hitTest(plasmaball_targeter._x, plasmaball_targeter._y, true)) {
if (_root.baddie_2.hitTest(plasma_ball._x, plasma_ball._y, true)) {
if (baddie_2_hit_flag == 0) {
if (baddie_2_fade == false) {
}
baddie_2_hit_flag = 1;
}
} else {
baddie_2_hit_flag = 0;
}
}
if (_root.baddie_2_b.hitTest(plasmaball_targeter._x, plasmaball_targeter._y, true)) {
if (_root.baddie_2_b.hitTest(plasma_ball._x, plasma_ball._y, true)) {
if (baddie_2_b_hit_flag == 0) {
if (baddie_2_b_fade == false) {
}
baddie_2_b_hit_flag = 1;
}
} else {
baddie_2_b_hit_flag = 0;
}
}
}
if (dynamic_blood_active == true) {
if (baddie_explode_active_timer_eight == true) {
fb_max = fresh_blood_rotation;
fb_min = -fresh_blood_rotation;
lying_blood.fresh_blood._rotation = Math.round(Math.random() * ((fb_max - fb_min) + 1)) + fb_min;
myBitmap.draw(lying_blood);
myBitmap2.copyPixels(myBitmap, new flash.geom.Rectangle(0, 0, 256, 86), new flash.geom.Point(baddie_m_ex_7._x, baddie_m_ex_7._y), alpha_bitmap, new flash.geom.Point(0, 0), true);
myBitmap.copyPixels(myBitmapErase, new flash.geom.Rectangle(0, 0, 256, 86), new flash.geom.Point(0, 0));
baddie_explode_active_timer_eight = false;
}
if (baddie_f_explode_active_timer_eight == true) {
fb_max = fresh_blood_rotation;
fb_min = -fresh_blood_rotation;
lying_blood.fresh_blood._rotation = Math.round(Math.random() * ((fb_max - fb_min) + 1)) + fb_min;
myBitmap.draw(lying_blood);
myBitmap2.copyPixels(myBitmap, new flash.geom.Rectangle(0, 0, 256, 86), new flash.geom.Point(baddie_f_ex_7._x, baddie_f_ex_7._y), alpha_bitmap, new flash.geom.Point(0, 0), true);
myBitmap.copyPixels(myBitmapErase, new flash.geom.Rectangle(0, 0, 256, 86), new flash.geom.Point(0, 0));
baddie_f_explode_active_timer_eight = false;
}
holder_mc._x = baddie_m_ex_7._x;
holder_mc._y = baddie_m_ex_7._y;
holder_mc2._x = holder_mc2._x + (((dummy_1._x - holder_mc2._x) - 50) / interpolate_speed);
holder_mc2._y = holder_mc2._y + (((dummy_1._y - holder_mc2._y) + 2) / interpolate_speed);
holder_mc2._visible = true;
if ((lying_blood.fresh_blood._rotation >= 0) and (lying_blood.fresh_blood._rotation < 90)) {
DifferenceFB = lying_blood.fresh_blood._rotation / 1.636;
lying_blood.fresh_blood._xscale = (((100 - DifferenceFB) / 2) * fbDiffX) / 1.5;
}
if ((lying_blood.fresh_blood._rotation >= 90) and (lying_blood.fresh_blood._rotation < 180)) {
DifferenceFB = (lying_blood.fresh_blood._rotation - 90) / 1.636;
lying_blood.fresh_blood._xscale = (((45.5 + DifferenceFB) / 2) * fbDiffX) / 1.5;
}
if ((lying_blood.fresh_blood._rotation >= -180) and (lying_blood.fresh_blood._rotation < -90)) {
DifferenceFB = (lying_blood.fresh_blood._rotation + 180) / 1.636;
lying_blood.fresh_blood._xscale = (((100 - DifferenceFB) / 2) * fbDiffX) / 1.5;
}
if ((lying_blood.fresh_blood._rotation >= -90) and (lying_blood.fresh_blood._rotation < 0)) {
DifferenceFB = (lying_blood.fresh_blood._rotation + 90) / 1.636;
lying_blood.fresh_blood._xscale = (((45.5 + DifferenceFB) / 2) * fbDiffX) / 1.5;
}
if ((lying_blood.fresh_blood._rotation >= 0) and (lying_blood.fresh_blood._rotation < 90)) {
DifferenceFB = lying_blood.fresh_blood._rotation / 1.636;
lying_blood.fresh_blood._yscale = (((100 + DifferenceFB) / 2) * fbDiffY) / 1.5;
}
if ((lying_blood.fresh_blood._rotation >= 90) and (lying_blood.fresh_blood._rotation < 180)) {
DifferenceFB = (lying_blood.fresh_blood._rotation - 270) / 1.636;
lying_blood.fresh_blood._yscale = (((45.5 - DifferenceFB) / 2) * fbDiffY) / 1.5;
}
if ((lying_blood.fresh_blood._rotation >= -180) and (lying_blood.fresh_blood._rotation < -90)) {
DifferenceFB = (lying_blood.fresh_blood._rotation + 180) / 1.636;
lying_blood.fresh_blood._yscale = (((100 + DifferenceFB) / 2) * fbDiffY) / 1.5;
}
if ((lying_blood.fresh_blood._rotation >= -90) and (lying_blood.fresh_blood._rotation < 0)) {
DifferenceFB = (lying_blood.fresh_blood._rotation - 90) / 1.636;
lying_blood.fresh_blood._yscale = (((45.5 - DifferenceFB) / 2) * fbDiffY) / 1.5;
}
DifferenceFB_b = 175 - holder_mc._y;
fbDiffX = ((20 + (DifferenceFB_b * 2)) * 1.5) / 300;
fbDiffY = ((20 + (DifferenceFB_b * 2)) * 1.5) / 300;
} else if (dynamic_blood_active == false) {
holder_mc2._visible = false;
}
if (move_cam == true) {
if (view_7._visible == true) {
if (i_am_near_view_7_turn_cam_180_trigger == true) {
view_7_turn_cam_180_trigger._visible = false;
shiftCam = true;
view_7._visible = false;
view_7_turn_cam_180_trigger_destination._visible = true;
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
character_stand_n._visible = true;
character_stand_s._visible = false;
character_stand_e._visible = false;
character_stand_w._visible = false;
cha_y_offset = cha_y_offset + 9;
nudgeCharacter = true;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_7_turn_cam_180_trigger = false;
}
}
if (view_8._visible == true) {
if (i_am_near_view_8_turn_cam_180_trigger == true) {
view_8_turn_cam_180_trigger._visible = false;
shiftCam = true;
view_8._visible = false;
view_8_turn_cam_180_trigger_destination._visible = true;
last_key_pressed = "w";
plasma_ball_position = "n";
character_facing = "n";
character_stand_n._visible = true;
character_stand_s._visible = false;
character_stand_e._visible = false;
character_stand_w._visible = false;
cha_y_offset = cha_y_offset + 9;
nudgeCharacter = true;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_8_turn_cam_180_trigger = false;
}
}
}
view_7_trigger_a._x = view_7_trigger_a._x + ((dummy_1._x - view_7_trigger_a._x) / interpolate_speed);
view_7_trigger_a._y = view_7_trigger_a._y + ((dummy_1._y - view_7_trigger_a._y) / interpolate_speed);
view_7_trigger_b._x = view_7_trigger_b._x + ((dummy_1._x - view_7_trigger_b._x) / interpolate_speed);
view_7_trigger_b._y = view_7_trigger_b._y + ((dummy_1._y - view_7_trigger_b._y) / interpolate_speed);
view_7_trigger_c._x = view_7_trigger_c._x + ((dummy_1._x - view_7_trigger_c._x) / interpolate_speed);
view_7_trigger_c._y = view_7_trigger_c._y + ((dummy_1._y - view_7_trigger_c._y) / interpolate_speed);
view_7_trigger_d._x = view_7_trigger_d._x + ((dummy_1._x - view_7_trigger_d._x) / interpolate_speed);
view_7_trigger_d._y = view_7_trigger_d._y + ((dummy_1._y - view_7_trigger_d._y) / interpolate_speed);
view_8_trigger_a._x = view_8_trigger_a._x + ((dummy_1._x - view_8_trigger_a._x) / interpolate_speed);
view_8_trigger_a._y = view_8_trigger_a._y + ((dummy_1._y - view_8_trigger_a._y) / interpolate_speed);
view_8_trigger_b._x = view_8_trigger_b._x + ((dummy_1._x - view_8_trigger_b._x) / interpolate_speed);
view_8_trigger_b._y = view_8_trigger_b._y + ((dummy_1._y - view_8_trigger_b._y) / interpolate_speed);
view_8_trigger_c._x = view_8_trigger_c._x + ((dummy_1._x - view_8_trigger_c._x) / interpolate_speed);
view_8_trigger_c._y = view_8_trigger_c._y + ((dummy_1._y - view_8_trigger_c._y) / interpolate_speed);
view_8_trigger_d._x = view_8_trigger_d._x + ((dummy_1._x - view_8_trigger_d._x) / interpolate_speed);
view_8_trigger_d._y = view_8_trigger_d._y + ((dummy_1._y - view_8_trigger_d._y) / interpolate_speed);
if (view_7._visible == true) {
if (show_view_7_once_flag == 0) {
plasma_ball_explosion._alpha = 0;
show_view_7_once_flag = 1;
}
rain_particles_active = view_7_rain_particles_active;
wind = 30;
smoke_bit_particles_active = view_7_smoke_bit_particles_active;
steam_particles_active = view_7_steam_particles_active;
water_particles_active = view_7_water_particles_active;
collide_object_active = view_7_collision_object_active;
if (view_7_rain_particles_active == true) {
mist._visible = true;
} else {
mist._visible = false;
}
if (_root.view_7_depth_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_7_ahead_cha._visible = true;
} else {
view_7_ahead_cha._visible = false;
}
if (_root.view_7_turn_cam_180_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_7_turn_cam_180_trigger._visible = true;
left_key_active = false;
right_key_active = false;
if (targeted_text_mc._visible == false) {
camera_icon_180._visible = true;
turn_cam_text_180._visible = true;
} else if (targeted_text_mc._visible == true) {
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
}
i_am_near_view_7_turn_cam_180_trigger = true;
} else {
view_7_turn_cam_180_trigger._visible = false;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_7_turn_cam_180_trigger = false;
}
if (_root.view_7_trigger_a.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_7_trigger_a._visible = true;
if (baddie_2_active == false) {
}
set_label = view_7_tr_a_label;
set_label_flag_v7ta = 0;
trigger_used = "top";
setLabel = true;
i_am_near_view_7_trigger_a = true;
} else {
if (set_label_flag_v7ta == 0) {
setLabel = false;
set_label_flag_v7ta = 1;
}
view_7_trigger_a._visible = false;
load_next_area._visible = false;
camera_icon_t._visible = false;
turn_cam_text_t._visible = false;
use_hand_t._visible = false;
use_text_t._visible = false;
i_am_near_view_7_trigger_a = false;
show_message_7_flag = 0;
}
if (_root.view_7_trigger_b.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_7_trigger_b._visible = true;
set_label = view_7_tr_b_label;
set_label_flag_v7tb = 0;
trigger_used = "bottom";
setLabel = true;
i_am_near_view_7_trigger_b = true;
} else {
if (set_label_flag_v7tb == 0) {
setLabel = false;
set_label_flag_v7tb = 1;
}
view_7_trigger_b._visible = false;
camera_icon_b._visible = false;
turn_cam_text_b._visible = false;
use_hand_b._visible = false;
use_text_b._visible = false;
i_am_near_view_7_trigger_b = false;
}
if (_root.view_7_trigger_c.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_7_trigger_c._visible = true;
set_label = view_7_tr_c_label;
set_label_flag_v7tc = 0;
trigger_used = "left";
setLabel = true;
i_am_near_view_7_trigger_c = true;
} else {
if (set_label_flag_v7tc == 0) {
setLabel = false;
set_label_flag_v7tc = 1;
}
view_7_trigger_c._visible = false;
camera_icon_l._visible = false;
turn_cam_text_l._visible = false;
use_hand_l._visible = false;
use_text_l._visible = false;
i_am_near_view_7_trigger_c = false;
}
if (_root.view_7_trigger_d.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_7_trigger_d._visible = true;
set_label = view_7_tr_d_label;
set_label_flag_v7td = 0;
trigger_used = "right";
setLabel = true;
i_am_near_view_7_trigger_d = true;
} else {
if (set_label_flag_v7td == 0) {
setLabel = false;
set_label_flag_v7td = 1;
}
view_7_trigger_d._visible = false;
camera_icon_r._visible = false;
turn_cam_text_r._visible = false;
use_hand_r._visible = false;
use_text_r._visible = false;
i_am_near_view_7_trigger_d = false;
}
if (_root.view_7_end_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (view_7_end_trigger_flag == 0) {
end_message_fade_up = true;
view_7_end_trigger_flag = 1;
}
}
if (_root.view_7_collision.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_n_hit = true;
checkKeys();
} else {
cha_collision_point_n_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_7_collision.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_e_hit = true;
checkKeys();
} else {
cha_collision_point_e_hit = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_7_collision.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
if (view_7_turn_cam_180_trigger._visible == true) {
stopTheAnimation = 1;
cha_walk_active = false;
}
cha_collision_point_s_hit = true;
checkKeys();
} else {
cha_collision_point_s_hit = false;
}
if (_root.view_7_collision.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
cha_collision_point_w_hit = true;
checkKeys();
} else {
cha_collision_point_w_hit = false;
}
}
if (view_8._visible == true) {
if (show_view_8_once_flag == 0) {
plasma_ball_explosion._alpha = 0;
show_view_8_once_flag = 1;
}
rain_particles_active = view_8_rain_particles_active;
wind = 30;
smoke_bit_particles_active = view_8_smoke_bit_particles_active;
steam_particles_active = view_8_steam_particles_active;
water_particles_active = view_8_water_particles_active;
collide_object_active = view_8_collision_object_active;
if (view_8_rain_particles_active == true) {
mist._visible = true;
} else {
mist._visible = false;
}
if (_root.view_8_depth_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_8_ahead_cha._visible = true;
} else {
view_8_ahead_cha._visible = false;
}
if (_root.view_8_turn_cam_180_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_8_turn_cam_180_trigger._visible = true;
left_key_active = false;
right_key_active = false;
if (targeted_text_mc._visible == false) {
camera_icon_180._visible = true;
turn_cam_text_180._visible = true;
} else if (targeted_text_mc._visible == true) {
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
}
i_am_near_view_8_turn_cam_180_trigger = true;
} else {
view_8_turn_cam_180_trigger._visible = false;
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
i_am_near_view_8_turn_cam_180_trigger = false;
}
if (_root.view_8_trigger_a.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_8_trigger_a._visible = true;
if (baddie_2_active == false) {
}
set_label = view_8_tr_a_label;
set_label_flag_v8ta = 0;
trigger_used = "top";
setLabel = true;
i_am_near_view_8_trigger_a = true;
} else {
if (set_label_flag_v8ta == 0) {
setLabel = false;
set_label_flag_v8ta = 1;
}
view_8_trigger_a._visible = false;
load_next_area._visible = false;
camera_icon_t._visible = false;
turn_cam_text_t._visible = false;
use_hand_t._visible = false;
use_text_t._visible = false;
i_am_near_view_8_trigger_a = false;
show_message_8_flag = 0;
}
if (_root.view_8_trigger_b.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_8_trigger_b._visible = true;
set_label = view_8_tr_b_label;
set_label_flag_v8tb = 0;
trigger_used = "bottom";
setLabel = true;
i_am_near_view_8_trigger_b = true;
} else {
if (set_label_flag_v8tb == 0) {
setLabel = false;
set_label_flag_v8tb = 1;
}
view_8_trigger_b._visible = false;
camera_icon_b._visible = false;
turn_cam_text_b._visible = false;
use_hand_b._visible = false;
use_text_b._visible = false;
i_am_near_view_8_trigger_b = false;
}
if (_root.view_8_trigger_c.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_8_trigger_c._visible = true;
set_label = view_8_tr_c_label;
set_label_flag_v8tc = 0;
trigger_used = "left";
setLabel = true;
i_am_near_view_8_trigger_c = true;
} else {
if (set_label_flag_v8tc == 0) {
setLabel = false;
set_label_flag_v8tc = 1;
}
view_8_trigger_c._visible = false;
camera_icon_l._visible = false;
turn_cam_text_l._visible = false;
use_hand_l._visible = false;
use_text_l._visible = false;
i_am_near_view_8_trigger_c = false;
}
if (_root.view_8_trigger_d.hitTest(character_collision_point._x, character_collision_point._y, true)) {
view_8_trigger_d._visible = true;
set_label = view_8_tr_d_label;
set_label_flag_v8td = 0;
trigger_used = "right";
setLabel = true;
i_am_near_view_8_trigger_d = true;
} else {
if (set_label_flag_v8td == 0) {
setLabel = false;
set_label_flag_v8td = 1;
}
view_8_trigger_d._visible = false;
camera_icon_r._visible = false;
turn_cam_text_r._visible = false;
use_hand_r._visible = false;
use_text_r._visible = false;
i_am_near_view_8_trigger_d = false;
}
if (_root.view_8_end_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (view_8_end_trigger_flag == 0) {
end_message_fade_up = true;
view_8_end_trigger_flag = 1;
}
}
if (_root.view_8_collision.hitTest(cha_collision_point_n._x, cha_collision_point_n._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_n_hit_b = true;
checkKeysB();
} else {
cha_collision_point_n_hit_b = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_8_collision.hitTest(cha_collision_point_e._x, cha_collision_point_e._y, true)) {
left_key_move_active = false;
right_key_move_active = false;
down_key_move_active = false;
up_key_move_active = false;
cha_collision_point_e_hit_b = true;
checkKeysB();
} else {
cha_collision_point_e_hit_b = false;
left_key_move_active = true;
right_key_move_active = true;
down_key_move_active = true;
up_key_move_active = true;
}
if (_root.view_8_collision.hitTest(cha_collision_point_s._x, cha_collision_point_s._y, true)) {
if (view_8_turn_cam_180_trigger._visible == true) {
stopTheAnimation = 1;
cha_walk_active = false;
}
cha_collision_point_s_hit_b = true;
checkKeysB();
} else {
cha_collision_point_s_hit_b = false;
}
if (_root.view_8_collision.hitTest(cha_collision_point_w._x, cha_collision_point_w._y, true)) {
cha_collision_point_w_hit_b = true;
checkKeysB();
} else {
cha_collision_point_w_hit_b = false;
}
}
keyListenerDown3.onKeyDown = function () {
if (Key.getCode() == 13) {
if (menu_box._visible == false) {
if ((character_view == "1st_person") || (character_view == "3rd_person")) {
enter_key_down = true;
} else if (character_view == "1st_person_conference") {
enter_key_down = false;
}
} else if (menu_box._visible == true) {
enter_key_down = false;
}
}
if (Key.getCode() == 32) {
if (menu_box._visible == false) {
if ((character_view == "1st_person") || (character_view == "3rd_person")) {
enter_key_down = true;
} else if (character_view == "1st_person_conference") {
enter_key_down = false;
}
} else if (menu_box._visible == true) {
enter_key_down = false;
}
}
};
if (enter_key_down == true) {
if ((messageNo == 35) && (b2_key_up_flag == 1)) {
baddie_2_active = false;
thor_baddie_b_ui_active = false;
character_view = "3rd_person";
view_6._visible = false;
view_5._visible = false;
view_4._visible = true;
cha_x_offset = view_5_tr_a_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_5_tr_a_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_5_tr_a_facing;
setFaceing = true;
messageNo = 900;
b2_key_up_flag = 0;
}
if (i_am_near_view_6_trigger_b == true) {
view_6_trigger_b_wind_fade._visible = true;
if (object_e_collected == true) {
end_message_fade_up = true;
} else if (object_e_collected == false) {
if (view_6_trigger_b_message_flag == 0) {
messageNo = 39;
showMessage = true;
view_6_trigger_b_message_flag = 1;
}
}
use_text_2_mc._visible = false;
use_hand_2._visible = false;
i_am_near_view_6_trigger_b = false;
}
if (i_am_near_health_trigger == true) {
if (health_trigger_flag == 0) {
health_fade_up = true;
got_health = true;
use_text_health._visible = false;
use_hand_health._visible = false;
_root.s_collect_object_sound.start(0, 1);
health_trigger_flag = 1;
}
}
if (i_am_near_view_7_trigger_a == true) {
if (view_7_trigger_a_once_flag == 0) {
view_7_trigger_a_once_flag = 1;
}
view_7_trigger_a._visible = false;
view_7_trigger_a_wind_fade._visible = true;
shiftCam = true;
view_7_trigger_a._x = 10000;
view_7_trigger_a._y = 10000;
view_7._visible = false;
view_7_trigger_a_destination._visible = true;
cha_x_offset = view_7_tr_a_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_7_tr_a_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_7_tr_a_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
i_am_near_view_7_trigger_a = false;
}
if (i_am_near_view_7_trigger_b == true) {
if (view_7_trigger_b_once_flag == 0) {
view_7_trigger_b_once_flag = 1;
}
view_7_trigger_b._visible = false;
view_7_trigger_b_wind_fade._visible = true;
shiftCam = true;
view_7_trigger_b._x = 10000;
view_7_trigger_b._y = 10000;
view_7._visible = false;
view_7_trigger_b_destination._visible = true;
cha_x_offset = view_7_tr_b_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_7_tr_b_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_7_tr_b_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
i_am_near_view_7_trigger_b = false;
}
if (i_am_near_view_7_trigger_c == true) {
if (view_7_trigger_c_once_flag == 0) {
view_7_trigger_c_once_flag = 1;
}
view_7_trigger_c._visible = false;
view_7_trigger_c_wind_fade._visible = true;
shiftCam = true;
view_7_trigger_c._x = 10000;
view_7_trigger_c._y = 10000;
view_7._visible = false;
view_7_trigger_c_destination._visible = true;
cha_x_offset = view_7_tr_c_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_7_tr_c_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_7_tr_c_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
i_am_near_view_7_trigger_c = false;
}
if (i_am_near_view_7_trigger_d == true) {
if (view_7_trigger_d_once_flag == 0) {
view_7_trigger_d_once_flag = 1;
}
view_7_trigger_d._visible = false;
view_7_trigger_d_wind_fade._visible = true;
shiftCam = true;
view_7_trigger_d._x = 10000;
view_7_trigger_d._y = 10000;
view_7._visible = false;
view_7_trigger_d_destination._visible = true;
cha_x_offset = view_7_tr_d_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_7_tr_d_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_7_tr_d_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
i_am_near_view_7_trigger_d = false;
}
if (i_am_near_view_8_trigger_a == true) {
if (view_8_trigger_a_once_flag == 0) {
view_8_trigger_a._visible = false;
view_8_trigger_a_wind_fade._visible = true;
shiftCam = true;
switch_d_trigger._x = 10000;
switch_d_trigger._y = 10000;
view_8._visible = false;
view_8_trigger_a_destination._visible = true;
cha_x_offset = view_8_tr_a_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_8_tr_a_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_8_tr_a_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
use_text_t._visible = false;
setLabel = false;
i_am_near_view_8_trigger_a = false;
view_8_trigger_a_once_flag = 1;
}
}
if (i_am_near_view_8_trigger_b == true) {
if (view_8_trigger_b_once_flag == 0) {
view_8_trigger_b_once_flag = 1;
}
view_8_trigger_b._visible = false;
view_8_trigger_b_wind_fade._visible = true;
shiftCam = true;
view_8_trigger_b._x = 10000;
view_8_trigger_b._y = 10000;
view_8._visible = false;
view_8_trigger_b_destination._visible = true;
cha_x_offset = view_8_tr_b_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_8_tr_b_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_8_tr_b_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
i_am_near_view_8_trigger_b = false;
}
if (i_am_near_view_8_trigger_c == true) {
if (view_8_trigger_c_once_flag == 0) {
view_8_trigger_c_once_flag = 1;
}
view_8_trigger_c._visible = false;
view_8_trigger_c_wind_fade._visible = true;
shiftCam = true;
view_8_trigger_c._x = 10000;
view_8_trigger_c._y = 10000;
view_8._visible = false;
view_8_trigger_c_destination._visible = true;
cha_x_offset = view_8_tr_c_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_8_tr_c_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_8_tr_c_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
i_am_near_view_8_trigger_c = false;
}
if (i_am_near_view_8_trigger_d == true) {
if (view_8_trigger_d_once_flag == 0) {
view_8_trigger_d_once_flag = 1;
}
view_8_trigger_d._visible = false;
view_8_trigger_d_wind_fade._visible = true;
shiftCam = true;
view_8_trigger_d._x = 10000;
view_8_trigger_d._y = 10000;
view_8._visible = false;
view_8_trigger_d_destination._visible = true;
cha_x_offset = view_8_tr_d_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_8_tr_d_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_8_tr_d_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
i_am_near_view_8_trigger_d = false;
}
if (hitting_switch_d_trigger == true) {
if (switch_d_trigger_once_flag == 0) {
if (d_trigger_door_unlocked == true) {
if (object_b_placed == true) {
switch_d_view_used._visible = false;
trigger_d_go_to_view._visible = true;
cha_x_offset = object_d_entry_view_x - (character_stand_n._width / 2);
diff = 316 - object_d_entry_view_y;
cha_y_offset = 140 + (diff / 2);
} else if (object_b_placed == false) {
if (d_b_not_placed_flag == 0) {
messageNo = 14.091;
showMessage = true;
d_b_not_placed_flag = 1;
}
}
}
switch_d_trigger._x = 10000;
switch_d_trigger._y = 10000;
if (object_d_collected == true) {
if (switch_d_pressed == false) {
_root.s_switch_sound.start(0, 1);
}
switch_d_pressed = true;
use_hand_switch_d._visible = false;
use_text_switch_d._visible = false;
object_d_placed = true;
object_d._x = 10000;
check_free_slots = true;
active_object_view = object_d_view_placed;
object_fade_up = true;
} else if (object_d_collected == false) {
if (hit_switch_d_trig_mes_flag == 0) {
hit_switch_d_trig_mes_flag = 1;
}
use_hand_switch_d._visible = false;
use_text_switch_d._visible = false;
}
switch_d_trigger_once_flag = 1;
}
}
if (hitting_switch_e_trigger == true) {
if (object_e_collected == true) {
if (switch_e_pressed == false) {
_root.s_switch_sound.start(0, 1);
}
switch_e_pressed = true;
use_hand_switch_e._visible = false;
use_text_switch_e._visible = false;
object_e_placed = true;
object_e._x = 10000;
check_free_slots = true;
active_object_view = object_e_view_placed;
object_fade_up = true;
} else if (object_e_collected == false) {
if (hit_switch_e_trig_mes_flag == 0) {
showMessage = true;
messageNo = 14.1;
hit_switch_e_trig_mes_flag = 1;
}
use_hand_switch_e._visible = false;
use_text_switch_e._visible = false;
}
}
if (hitting_collect_object_d_trigger == true) {
if (object_d_collected == false) {
active_ani_object = object_d_collected_mc;
active_object_view = object_d_view;
object_fade = true;
_root.s_collect_object_sound.start(0, 1);
if (f_10209542_flag == 0) {
collect_object_text._text = "Health bot collected";
active_collected_object_icon = health_bot_collected_icon;
collect_object_screen_active = true;
tech_button_3._amount = tech_button_3._amount - 1;
tech_button_3._amount = tech_button_3._amount + 2;
f_10209542_flag = 1;
}
object_d_collected = true;
slot_check_active = true;
check_free_slots = true;
use_hand_collect_obj_d._visible = false;
use_text_collect_obj_d._visible = false;
}
}
if (hitting_collect_object_e_trigger == true) {
if (object_e_collected == false) {
active_ani_object = object_e_collected_mc;
ocaTimer = 0;
active_object_view = object_e_view;
object_fade = true;
object_e_state = true;
_root.s_collect_object_sound.start(0, 1);
if (f252091251_flag == 0) {
collect_object_text._text = "Health bot collected";
active_collected_object_icon = health_bot_collected_icon;
collect_object_screen_active = true;
tech_button_3._amount = tech_button_3._amount - 1;
tech_button_3._amount = tech_button_3._amount + 2;
f252091251_flag = 1;
}
object_e_collected = true;
slot_check_active = true;
check_free_slots = true;
use_hand_collect_obj_e._visible = false;
use_text_collect_obj_e._visible = false;
}
}
if (hitting_collect_object_f_trigger == true) {
if (object_f_collected == false) {
_root.s_collect_object_sound.start(0, 1);
object_f_collected = true;
shield_fade_up = true;
got_shield = true;
use_hand_collect_obj_f._visible = false;
use_text_collect_obj_f._visible = false;
}
}
if (hitting_switch_e_object_trigger == true) {
if (switch_e_pressed == true) {
end_message_fade_up = true;
use_hand_switch_e_object._visible = false;
use_text_switch_e_object._visible = false;
switch_e_object_view_used._visible = false;
switch_e_object_goes_to_view._visible = true;
cha_x_offset = switch_e_object_tr_entry_view_x - (character_stand_n._width / 2);
diff = 316 - switch_e_object_tr_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = switch_e_object_tr_facing;
setFaceing = true;
} else if (switch_e_pressed == false) {
if (show_switch_e_pressed_message_flag == 0) {
ship_takeoff_animation = true;
messageNo = 12;
showMessage = true;
show_switch_e_pressed_message_flag = 1;
} else if (show_switch_e_pressed_message_flag == 2) {
messageNo = 13;
showMessage = true;
show_switch_e_pressed_message_flag = 3;
}
}
}
if (hitting_switch_d_object_trigger == true) {
if (switch_d_pressed == true) {
use_hand_switch_d_object._visible = false;
use_text_switch_d_object._visible = false;
switch_d_object_view_used._visible = false;
switch_d_object_goes_to_view._visible = true;
cha_x_offset = switch_d_object_tr_entry_view_x - (character_stand_n._width / 2);
diff = 316 - switch_d_object_tr_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = switch_d_object_tr_facing;
setFaceing = true;
} else if (switch_d_pressed == false) {
if (show_switch_d_pressed_message_flag == 0) {
ship_takeoff_animation = true;
messageNo = 12;
showMessage = true;
show_switch_d_pressed_message_flag = 1;
} else if (show_switch_d_pressed_message_flag == 2) {
messageNo = 13;
showMessage = true;
show_switch_d_pressed_message_flag = 3;
}
}
}
}
if (show_inventory_active == true) {
f9109243_flag = 0;
if (show_inventory_once_flag == 0) {
gun_charge_box.highlight_box_weapon_2.useHandCursor = true;
XP_bar._x = 15.35;
XP_bar._y = 63.35;
AIM_bar._x = 20.5;
AIM_bar._y = 127.5;
if (tech_button_4._amount == 0) {
protection_bar.protection_text = "0";
} else if (tech_button_4._amount == 1) {
protection_bar.protection_text = "10";
}
top_right_disks._visible = false;
HP_cy10_disk._visible = true;
rpg_level_label._visible = true;
inventory.right_back_hold_box._alpha = 0;
inventory.left_back_hold_box._alpha = 0;
inventory.right_hand_box._alpha = 0;
show_inventory_once_flag = 1;
}
sia_timer = sia_timer + 1;
inventory_box._visible = true;
inventory_box._alpha = 100;
if ((sia_timer >= 0) && (sia_timer < 10)) {
inventory._visible = true;
inventory._alpha = 0;
XP_bar._visible = true;
XP_bar._alpha = 0;
AIM_bar._visible = true;
AIM_bar._alpha = 0;
check_health_amounts();
} else if ((sia_timer >= 10) && (inventory._alpha < 100)) {
inventory._visible = true;
inventory._alpha = inventory._alpha + (10 * frameRateDiff);
XP_bar._visible = true;
XP_bar._alpha = XP_bar._alpha + (10 * frameRateDiff);
AIM_bar._visible = true;
AIM_bar._alpha = AIM_bar._alpha + (10 * frameRateDiff);
} else if ((sia_timer >= 10) && (inventory._alpha >= 100)) {
inventory._visible = true;
inventory._alpha = 100;
XP_bar._visible = true;
XP_bar._alpha = 100;
AIM_bar._visible = true;
AIM_bar._alpha = 100;
}
if (tech_button_3._amount == 1) {
inventory.rpg_health_bot_icon_1._alpha = inventory._alpha;
} else if (tech_button_3._amount == 2) {
inventory.rpg_health_bot_icon_1._alpha = inventory._alpha;
inventory.rpg_health_bot_icon_2._alpha = inventory._alpha;
} else if (tech_button_3._amount == 3) {
inventory.rpg_health_bot_icon_1._alpha = inventory._alpha;
inventory.rpg_health_bot_icon_2._alpha = inventory._alpha;
inventory.rpg_health_bot_icon_3._alpha = inventory._alpha;
} else if (tech_button_3._amount == 4) {
inventory.rpg_health_bot_icon_1._alpha = inventory._alpha;
inventory.rpg_health_bot_icon_2._alpha = inventory._alpha;
inventory.rpg_health_bot_icon_3._alpha = inventory._alpha;
inventory.rpg_health_bot_icon_4._alpha = inventory._alpha;
}
if (tech_button_4._amount == 1) {
inventory.inventory_shield_bot_icon._alpha = inventory._alpha;
}
inventory.inventory_plasmagun_icon.onRelease = function () {
if (right_hand_hit_box.hitTest(_root._xmouse, _root._ymouse, true)) {
rpg_slot_check_active_object = inventory.inventory_plasmagun_icon;
rpg_inventory_slot_check_active = true;
}
if (backpack_hit_box.hitTest(_root._xmouse, _root._ymouse, true)) {
if (inventory.inventory_weapon_2_icon._x == inventory.right_hand_box._x) {
inventory.inventory_weapon_2_icon._x = inventory.inventory_plasmagun_icon._x;
inventory.inventory_weapon_2_icon._y = inventory.inventory_plasmagun_icon._y;
}
inventory.inventory_plasmagun_icon._x = inventory.right_hand_box._x;
inventory.inventory_plasmagun_icon._y = inventory.right_hand_box._y;
}
};
inventory.inventory_weapon_2_icon.onRelease = function () {
if (right_hand_hit_box.hitTest(_root._xmouse, _root._ymouse, true)) {
rpg_slot_check_active_object = inventory.inventory_weapon_2_icon;
rpg_inventory_slot_check_active = true;
}
if (backpack_hit_box.hitTest(_root._xmouse, _root._ymouse, true)) {
if (inventory.inventory_plasmagun_icon._x == inventory.right_hand_box._x) {
inventory.inventory_plasmagun_icon._x = inventory.inventory_weapon_2_icon._x;
inventory.inventory_plasmagun_icon._y = inventory.inventory_weapon_2_icon._y;
}
inventory.inventory_weapon_2_icon._x = inventory.right_hand_box._x;
inventory.inventory_weapon_2_icon._y = inventory.right_hand_box._y;
}
};
damage_bar._visible = inventory._visible;
protection_bar._visible = inventory._visible;
damage_bar._alpha = inventory._alpha;
protection_bar._alpha = inventory._alpha;
} else if (show_inventory_active == false) {
if (f9109243_flag == 0) {
if (rpg_battle_system_active == false) {
HP_cy10_disk._visible = false;
rpg_level_label._visible = false;
top_right_disks._visible = true;
}
inventory._visible = false;
inventory._alpha = 0;
XP_bar._visible = false;
XP_bar._alpha = 0;
AIM_bar._visible = false;
AIM_bar._alpha = 0;
damage_bar._visible = inventory._visible;
protection_bar._visible = inventory._visible;
damage_bar._alpha = inventory._alpha;
protection_bar._alpha = inventory._alpha;
if (right_hand_hit_box.hitTest(inventory.inventory_weapon_2_icon)) {
set_rpg_cyborg_shot = rpg_cyborg_shot_2;
set_rpg_cyborg_weapon = rpg_cyborg.rpg_cyborg_weapon_2;
weapon_2_damage = 6;
gun_charge_box.white_selection_bracket_weapon._x = gun_charge_box.highlight_box_weapon_2._x;
gun_charge_box.white_selection_bracket_weapon._y = gun_charge_box.highlight_box_weapon_2._y;
} else if (right_hand_hit_box.hitTest(inventory.inventory_plasmagun_icon)) {
set_rpg_cyborg_shot = rpg_plasma_ball;
set_rpg_cyborg_weapon = rpg_cyborg.rpg_cyborg_weapon;
weapon_2_damage = 0;
gun_charge_box.white_selection_bracket_weapon._x = gun_charge_box.highlight_box_weapon_1._x;
gun_charge_box.white_selection_bracket_weapon._y = gun_charge_box.highlight_box_weapon_1._y;
} else {
inventory.inventory_plasmagun_icon._x = inventory.right_hand_box._x;
inventory.inventory_plasmagun_icon._y = inventory.right_hand_box._y;
set_rpg_cyborg_weapon = rpg_cyborg.rpg_cyborg_weapon;
set_rpg_cyborg_shot = rpg_plasma_ball;
weapon_2_damage = 0;
gun_charge_box.white_selection_bracket_weapon._x = gun_charge_box.highlight_box_weapon_1._x;
gun_charge_box.white_selection_bracket_weapon._y = gun_charge_box.highlight_box_weapon_1._y;
}
f9109243_flag = 1;
}
show_inventory_once_flag = 0;
sia_timer = 0;
inventory_box._visible = false;
inventory_box._alpha = 0;
object_c._visible = false;
object_c._alpha = 0;
object_b._visible = false;
object_b._alpha = 0;
object_d._visible = false;
object_d._alpha = 0;
object_e._visible = false;
object_e._alpha = 0;
}
if (switch_d_view_used._visible == true) {
switch_d_active = true;
} else if (switch_d_view_used._visible == false) {
switch_d_active = false;
}
if (collect_object_d_view_used._visible == true) {
collect_object_d_active = true;
} else if (collect_object_d_view_used._visible == false) {
collect_object_d_active = false;
}
if (switch_d_object_view_used._visible == true) {
switch_d_object_active = true;
} else if (switch_d_object_view_used._visible == false) {
switch_d_object_active = false;
}
if (switch_e_view_used._visible == true) {
switch_e_active = true;
} else if (switch_e_view_used._visible == false) {
switch_e_active = false;
}
if (collect_object_e_view_used._visible == true) {
collect_object_e_active = true;
} else if (collect_object_e_view_used._visible == false) {
collect_object_e_active = false;
}
if (collect_object_f_view_used._visible == true) {
collect_object_f_active = true;
} else if (collect_object_f_view_used._visible == false) {
collect_object_f_active = false;
}
if (switch_e_object_view_used._visible == true) {
switch_e_object_active = true;
} else if (switch_e_object_view_used._visible == false) {
switch_e_object_active = false;
}
if (collect_object_d_active == true) {
collect_object_d_trigger._x = collect_object_d_trigger._x + ((dummy_1._x - collect_object_d_trigger._x) / interpolate_speed);
collect_object_d_trigger._y = collect_object_d_trigger._y + ((dummy_1._y - collect_object_d_trigger._y) / interpolate_speed);
if ((character_view == "3rd_person") || (character_view == "1st_person_conference")) {
object_d_view._x = object_d_view._x + ((dummy_1._x - object_d_view._x) / interpolate_speed);
object_d_view._y = object_d_view._y + (((dummy_1._y - object_d_view._y) + odv) / interpolate_speed);
}
if (object_d_collected == false) {
if (show_object_d_once_flag == 0) {
if (object_d_state == 1) {
object_d_view._visible = true;
object_d_view._alpha = 100;
}
show_object_d_once_flag = 1;
}
}
if (_root.collect_object_d_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (object_d_collected == false) {
if (object_d_state == 1) {
hitting_collect_object_d_trigger = true;
use_hand_collect_obj_d._visible = true;
use_text_collect_obj_d._visible = true;
}
}
} else {
hitting_collect_object_d_trigger = false;
use_hand_collect_obj_d._visible = false;
use_text_collect_obj_d._visible = false;
}
} else if (collect_object_d_active == false) {
object_d_view._visible = false;
object_d_view._alpha = 0;
show_object_d_once_flag = 0;
hitting_collect_object_d_trigger = false;
use_hand_collect_obj_d._visible = false;
use_text_collect_obj_d._visible = false;
}
if (collect_object_e_active == true) {
collect_object_e_trigger._x = collect_object_e_trigger._x + ((dummy_1._x - collect_object_e_trigger._x) / interpolate_speed);
collect_object_e_trigger._y = collect_object_e_trigger._y + ((dummy_1._y - collect_object_e_trigger._y) / interpolate_speed);
object_e_view._x = object_e_view._x + ((dummy_1._x - object_e_view._x) / interpolate_speed);
object_e_view._y = object_e_view._y + ((dummy_1._y - object_e_view._y) / interpolate_speed);
if (object_e_collected == false) {
if (rpg_battle_system_active == false) {
if (show_object_e_once_flag == 0) {
object_e_view._visible = true;
object_e_view._alpha = 100;
show_object_e_once_flag = 1;
}
}
}
if (_root.collect_object_e_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (character_view == "3rd_person") {
if (object_e_collected == false) {
hitting_collect_object_e_trigger = true;
use_hand_collect_obj_e._visible = true;
use_text_collect_obj_e._visible = true;
}
}
} else {
hitting_collect_object_e_trigger = false;
use_hand_collect_obj_e._visible = false;
use_text_collect_obj_e._visible = false;
}
} else if (collect_object_e_active == false) {
object_e_view._visible = false;
object_e_view._alpha = 0;
show_object_e_once_flag = 0;
hitting_collect_object_e_trigger = false;
use_hand_collect_obj_e._visible = false;
use_text_collect_obj_e._visible = false;
}
if (collect_object_f_active == true) {
collect_object_f_trigger._x = collect_object_f_trigger._x + ((dummy_1._x - collect_object_f_trigger._x) / interpolate_speed);
collect_object_f_trigger._y = collect_object_f_trigger._y + ((dummy_1._y - collect_object_f_trigger._y) / interpolate_speed);
if (_root.collect_object_f_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (character_view == "3rd_person") {
if (object_f_collected == false) {
hitting_collect_object_f_trigger = true;
use_hand_collect_obj_f._visible = true;
use_text_collect_obj_f._visible = true;
}
}
} else {
hitting_collect_object_f_trigger = false;
use_hand_collect_obj_f._visible = false;
use_text_collect_obj_f._visible = false;
}
} else if (collect_object_f_active == false) {
hitting_collect_object_f_trigger = false;
use_hand_collect_obj_f._visible = false;
use_text_collect_obj_f._visible = false;
}
if (switch_d_active == true) {
switch_d_trigger._x = switch_d_trigger._x + ((dummy_1._x - switch_d_trigger._x) / interpolate_speed);
switch_d_trigger._y = switch_d_trigger._y + ((dummy_1._y - switch_d_trigger._y) / interpolate_speed);
object_d_view_placed._x = object_d_view_placed._x + ((dummy_1._x - object_d_view_placed._x) / interpolate_speed);
object_d_view_placed._y = object_d_view_placed._y + ((dummy_1._y - object_d_view_placed._y) / interpolate_speed);
if (object_d_collected == true) {
if (object_d_placed == true) {
if (show_object_d_placed_once_flag == 0) {
object_d_view_placed._visible = true;
show_object_d_placed_once_flag = 1;
}
}
}
if (_root.switch_d_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
hitting_switch_d_trigger = true;
if (hit_switch_d_trig_mes_flag == 0) {
use_hand_switch_d._visible = true;
use_text_switch_d._visible = true;
} else if (hit_switch_d_trig_mes_flag == 1) {
use_hand_switch_d._visible = false;
use_text_switch_d._visible = false;
}
} else {
d_b_not_placed_flag = 0;
hitting_switch_d_trigger = false;
use_hand_switch_d._visible = false;
use_text_switch_d._visible = false;
hit_switch_d_trig_mes_flag = 0;
}
} else if (switch_d_active == false) {
show_object_d_placed_once_flag = 0;
object_d_view_placed._visible = false;
hitting_switch_d_trigger = false;
use_hand_switch_d._visible = false;
use_text_switch_d._visible = false;
}
if (switch_e_active == true) {
switch_e_trigger._x = switch_e_trigger._x + ((dummy_1._x - switch_e_trigger._x) / interpolate_speed);
switch_e_trigger._y = switch_e_trigger._y + ((dummy_1._y - switch_e_trigger._y) / interpolate_speed);
object_e_view_placed._x = object_e_view_placed._x + ((dummy_1._x - object_e_view_placed._x) / interpolate_speed);
object_e_view_placed._y = object_e_view_placed._y + ((dummy_1._y - object_e_view_placed._y) / interpolate_speed);
if (object_e_collected == true) {
if (object_e_placed == true) {
if (show_object_e_placed_once_flag == 0) {
object_e_view_placed._visible = true;
show_object_e_placed_once_flag = 1;
}
}
}
if (_root.switch_e_trigger.hitTest(character_collision_point._x, character_collision_point._y, true)) {
if (switch_e_pressed == false) {
hitting_switch_e_trigger = true;
if (hit_switch_e_trig_mes_flag == 0) {
use_hand_switch_e._visible = true;
use_text_switch_e._visible = true;
} else if (hit_switch_e_trig_mes_flag == 1) {
use_hand_switch_e._visible = false;
use_text_switch_e._visible = false;
}
}
} else {
hitting_switch_e_trigger = false;
use_hand_switch_e._visible = false;
use_text_switch_e._visible = false;
hit_switch_e_trig_mes_flag = 0;
}
} else if (switch_e_active == false) {
show_object_e_placed_once_flag = 0;
object_e_view_placed._visible = false;
hitting_switch_e_trigger = false;
use_hand_switch_e._visible = false;
use_text_switch_e._visible = false;
}
}
function nanoflash_timestep() {
if (green_nanoflash_active == true) {
green_nanoflash._visible = true;
green_nanoflash_mask._visible = true;
if ((green_nanoflash_mask._xscale >= 100) && (green_nanoflash_mask._xscale < 130)) {
green_nanoflash._alpha = green_nanoflash._alpha - (2 * frameRateDiff);
green_nanoflash_mask._xscale = green_nanoflash_mask._xscale + (4 * frameRateDiff);
green_nanoflash_mask._yscale = green_nanoflash_mask._yscale + (4 * frameRateDiff);
} else if (green_nanoflash_mask._xscale >= 130) {
green_nanoflash._alpha = green_nanoflash._alpha - (8 * frameRateDiff);
green_nanoflash_mask._xscale = green_nanoflash_mask._xscale + (20 * frameRateDiff);
green_nanoflash_mask._yscale = green_nanoflash_mask._yscale + (20 * frameRateDiff);
}
if (green_nanoflash._alpha <= 0) {
green_nanoflash_active = false;
}
} else if (green_nanoflash_active == false) {
green_nanoflash._visible = false;
green_nanoflash_mask._visible = false;
green_nanoflash._alpha = 100;
green_nanoflash_mask._xscale = 100;
green_nanoflash_mask._yscale = 100;
}
}
function boss_shield_timestep() {
if (boss_shield_active == true) {
if (boss_shield_active_flag == 0) {
boss_shield_ease = "up";
boss_shield._visible = true;
boss_shield_mask._visible = true;
boss_shield._alpha = 40;
boss_shield_active_flag = 1;
}
if (boss_shield_ease == "up") {
boss_shield_mask._xscale = boss_shield_mask._xscale + (((400 - boss_shield_mask._xscale) / 4) * frameRateDiff);
boss_shield_mask._yscale = boss_shield_mask._yscale + (((450 - boss_shield_mask._yscale) / 4) * frameRateDiff);
boss_shield_mask._y = boss_shield_mask._y + (((168 - boss_shield_mask._y) / 4) * frameRateDiff);
boss_shield._alpha = boss_shield._alpha + (((100 - boss_shield._alpha) / 4) * frameRateDiff);
} else if (boss_shield_ease == "down") {
boss_shield_mask._xscale = boss_shield_mask._xscale + (((1 - boss_shield_mask._xscale) / 4) * frameRateDiff);
boss_shield_mask._yscale = boss_shield_mask._yscale + (((1 - boss_shield_mask._yscale) / 4) * frameRateDiff);
boss_shield_mask._y = boss_shield_mask._y + (((90 - boss_shield_mask._y) / 4) * frameRateDiff);
boss_shield._alpha = boss_shield._alpha + (((-5 - boss_shield._alpha) / 4) * frameRateDiff);
}
if (boss_shield_mask._xscale >= 395) {
boss_shield_ease = "down";
}
if (boss_shield._alpha <= 0) {
boss_shield_active = false;
}
} else if (boss_shield_active == false) {
boss_shield_active_flag = 0;
boss_shield._visible = false;
boss_shield_mask._visible = false;
boss_shield._alpha = 1;
boss_shield_mask._xscale = 100;
boss_shield_mask._yscale = 100;
boss_shield_mask._y = 340;
}
}
function rpg_battle_system_timestep() {
if (rpg_battle_system_active == true) {
f201108521_flag = 0;
first_person_holding_flag = 1;
keys_3rd_person_flag = 0;
rpg_cyborg_shot_starting_x = test_marker_2._x;
rpg_cyborg_shot_starting_y = test_marker_2._y;
if (rpg_cyborg.rpg_cyborg_weapon._visible == true) {
TMangle = set_rpg_cyborg_weapon._rotation + -15;
} else if (rpg_cyborg.rpg_cyborg_weapon_2._visible == true) {
TMangle = set_rpg_cyborg_weapon._rotation + -17;
}
TMdistance = distTargetTotest_marker_2 + 31;
test_marker_2._x = rpg_cyborg_arm_pivot_mc._x + (Math.cos(TMangle * (Math.PI/180)) * TMdistance);
test_marker_2._y = rpg_cyborg_arm_pivot_mc._y + (Math.sin(TMangle * (Math.PI/180)) * TMdistance);
if (HP_cy10.HP_text <= 0) {
if (f53091200_flag == 0) {
dead = true;
f53091200_flag = 1;
}
}
if (f84091201_flag == 0) {
health_cyborg._visible = true;
health_green._visible = true;
f84091201_flag = 1;
}
if (f1012081134_flag == 0) {
rpg_cyborg_target_hit = 0;
clear_prev_attacks_got();
HP_cy10._visible = true;
rpg_help_button._visible = false;
inventory_button._visible = false;
if (view_2._visible == true) {
HP_enemy_1_disk.enemy_name = "Sentry Robot";
HP_enemy_2_disk.enemy_name = "Sentry Robot";
enemy_1_eye_blisters = e1_e1_blister;
enemy_2_eye_blisters = e1_e2_blister;
_root.s_music.stop(["music"]);
_root.s_battle_music.start(0, 999);
first_enemy_1._alpha = 100;
first_enemy_2._alpha = 100;
rpg_enemy_shot = rpg_e1_shot;
e2_e1_icon._visible = false;
e2_e2_icon._visible = false;
robot_icon_1._visible = true;
robot_icon_2._visible = true;
robot_icon_1._alpha = 100;
robot_icon_2._alpha = 100;
view_2._x = -104.95;
view_2._y = -43.05;
particle_overlay._x = -104.95;
particle_overlay._y = -43.05;
} else if (view_4._visible == true) {
rpg_last_view = "view_4";
HP_enemy_1_disk.enemy_name = "Cutter Robot";
HP_enemy_2_disk.enemy_name = "Cutter Robot";
enemy_1_eye_blisters = e2_e1_blister;
enemy_2_eye_blisters = e2_e2_blister;
_root.s_music.stop(["music"]);
_root.s_battle_music.start(0, 999);
e2_e1._alpha = 100;
e2_e2._alpha = 100;
rpg_enemy_shot = rpg_e1_shot;
robot_icon_1._visible = false;
robot_icon_2._visible = false;
e2_e1_icon._visible = true;
e2_e2_icon._visible = true;
e2_e1_icon._alpha = 100;
e2_e2_icon._alpha = 100;
view_4._x = -108.05;
view_4._y = -22;
object_b_view._x = view_4._x;
object_b_view._y = view_4._y;
} else if (view_6._visible == true) {
rpg_last_view = "view_6";
HP_enemy_1_disk.enemy_name = "Security Robot";
HP_enemy_2_disk.enemy_name = "Security Robot";
enemy_2_eye_blisters = boss_blister;
rpg_enemy_shot = rpg_boss_shot;
_root.s_music.stop(["music"]);
_root.s_boss_battle_music.start(0, 999);
robot_icon_1._visible = false;
robot_icon_2._visible = false;
e2_e1_icon._visible = false;
e2_e2_icon._visible = false;
boss_icon._visible = true;
boss_icon._alpha = 100;
view_6._x = -58;
view_6._y = -22;
view_6_ahead_cha._x = -58;
view_6_ahead_cha._y = -22;
}
f1012081134_flag = 1;
}
if (ease_enemy_1_HP_active == true) {
ease_enemy_1_HP_timer = ease_enemy_1_HP_timer + (1 * frameRateDiff);
HP_enemy_1_disk._x = HP_enemy_1_disk._x + ((HP_enemy_2_disk._x - HP_enemy_1_disk._x) / 10);
HP_enemy_1_disk._y = HP_enemy_1_disk._y + ((HP_enemy_2_disk._y - HP_enemy_1_disk._y) / 10);
robot_icon_1._x = robot_icon_1._x + ((robot_icon_2._x - robot_icon_1._x) / 10);
robot_icon_1._y = robot_icon_1._y + ((robot_icon_2._y - robot_icon_1._y) / 10);
e2_e1_icon._x = e2_e1_icon._x + ((e2_e2_icon._x - e2_e1_icon._x) / 10);
e2_e1_icon._y = e2_e1_icon._y + ((e2_e2_icon._y - e2_e1_icon._y) / 10);
enemy_1_info_box._x = enemy_1_info_box._x + ((enemy_2_info_box._x - enemy_1_info_box._x) / 10);
enemy_1_info_box._y = enemy_1_info_box._y + ((enemy_2_info_box._y - enemy_1_info_box._y) / 10);
if (ease_enemy_1_HP_timer >= 100) {
ease_enemy_1_HP_active = false;
}
} else if (ease_enemy_1_HP_active == false) {
ease_enemy_1_HP_timer = 0;
}
if (view_2._visible == true) {
if ((first_enemy_1._alpha <= 0) && (first_enemy_2._alpha <= 0)) {
if (f201108258_flag == 0) {
rpg_battle_system_active = false;
battle_won_screen_active = true;
keys_active = false;
view_2._visible = false;
view_1._visible = true;
f201108258_flag = 1;
}
}
} else if (view_4._visible == true) {
if ((e2_e1._alpha <= 0) && (e2_e2._alpha <= 0)) {
if (f201108258_flag == 0) {
rpg_battle_system_active = false;
battle_won_screen_active = true;
keys_active = false;
view_4._visible = false;
view_3._visible = true;
set_facing = "south";
setFaceing = true;
zone_3_locked = false;
f201108258_flag = 1;
}
}
} else if (view_6._visible == true) {
if (boss._alpha <= 0) {
if (f3112081158_flag == 0) {
rpg_battle_system_active = false;
keys_active = false;
view_6._visible = false;
view_5._visible = true;
set_facing = "south";
setFaceing = true;
f3112081158_flag = 1;
}
}
}
if (rpg_battle_system_flag == 0) {
HP_colour.rb = 0;
HP_colour.gb = 123;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_enemy_1_colour.setTransform(HP_colour);
HP_colour.rb = 0;
HP_colour.gb = 123;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_enemy_2_colour.setTransform(HP_colour);
no_enemies_alive = 2;
flash_orange_battle_intro = true;
rpg_enemy_1_killed = false;
rpg_enemy_2_killed = false;
if (view_2._visible == true) {
HP_enemy_1_disk.HP_text = 65;
HP_enemy_2_disk.HP_text = 55;
HP_enemy_1_disk.HP_text_total = 65;
HP_enemy_2_disk.HP_text_total = 55;
} else if (view_4._visible == true) {
HP_enemy_1_disk.HP_text = 75;
HP_enemy_2_disk.HP_text = 85;
HP_enemy_1_disk.HP_text_total = 75;
HP_enemy_2_disk.HP_text_total = 85;
} else if (view_6._visible == true) {
HP_enemy_2_disk.HP_text = 120;
HP_enemy_2_disk.HP_text_total = 120;
}
HP_enemy_1_disk.enemy_1_inner_bar_mc._width = (HP_enemy_1_disk.HP_text / HP_enemy_1_disk.HP_text_total) * 100;
HP_enemy_2_disk.enemy_2_inner_bar_mc._width = (HP_enemy_2_disk.HP_text / HP_enemy_2_disk.HP_text_total) * 100;
HP_enemy_1_disk._alpha = 100;
HP_enemy_2_disk._alpha = 100;
first_enemy_1._alpha = 100;
first_enemy_2._alpha = 100;
e2_e1._alpha = 100;
e2_e2._alpha = 100;
enemy_1_eye_blisters._alpha = 100;
enemy_2_eye_blisters._alpha = 100;
if (enemy_bitmaps_made == true) {
enemy_1_bitmap.dispose();
enemy_2_bitmap.dispose();
e2_e1_bitmap.dispose();
e2_e2_bitmap.dispose();
boss_bitmap.dispose();
enemy_bitmaps_made = false;
}
enemy_1_bitmap = new flash.display.BitmapData(700, 400, true, 16777215);
first_enemy_1.attachBitmap(enemy_1_bitmap, 1, "never", true);
enemy_2_bitmap = new flash.display.BitmapData(700, 400, true, 16777215);
first_enemy_2.attachBitmap(enemy_2_bitmap, 1, "never", true);
e2_e1_bitmap = new flash.display.BitmapData(700, 400, true, 16777215);
e2_e1.attachBitmap(e2_e1_bitmap, 1, "never", true);
e2_e2_bitmap = new flash.display.BitmapData(700, 400, true, 16777215);
e2_e2.attachBitmap(e2_e2_bitmap, 1, "never", true);
boss_bitmap = new flash.display.BitmapData(700, 400, true, 16777215);
boss.attachBitmap(boss_bitmap, 1, "never", true);
enemy_bitmaps_made = true;
rpg_battle_system_flag = 1;
}
if ((view_2._visible == true) || (view_4._visible == true)) {
if (HP_enemy_1_disk.HP_text <= 0) {
if (f181108241_flag == 0) {
rpg_enemy_explosion_position = 1;
rpg_enemy_explosion_active = true;
f181108241_flag = 1;
}
}
}
if (HP_enemy_2_disk.HP_text <= 0) {
if (f181108245_flag == 0) {
rpg_enemy_explosion_position = 2;
rpg_enemy_explosion_active = true;
if (view_6._visible == true) {
boss_dead = true;
}
f181108245_flag = 1;
}
}
rpg_plasmaball_target._x = rpg_target._x;
rpg_plasmaball_target._y = rpg_target._y;
if (view_2._visible == true) {
first_enemy_1._visible = true;
first_enemy_2._visible = true;
} else if (view_4._visible == true) {
e2_e1._visible = true;
e2_e2._visible = true;
} else if (view_6._visible == true) {
boss._visible = true;
}
character_view = undefined;
character_stand_n._alpha = 0;
character_stand_e._alpha = 0;
character_stand_s._alpha = 0;
character_stand_w._alpha = 0;
keys_active = false;
stopTheAnimation = 1;
if (rpg_active_flag == 0) {
gun_charge_box.white_selection_bracket._x = gun_charge_box.highlight_box._x;
gun_charge_box.white_selection_bracket._y = gun_charge_box.highlight_box._y;
gun_charge_factor = 1;
rpg_cyborg._visible = true;
set_rpg_cyborg_weapon._visible = true;
cyborg_breathing = true;
if (dead == false) {
gun_charge_box._visible = true;
attack_button._visible = true;
tech_button._visible = true;
}
if (rpg_weapon_2_collected == true) {
gun_charge_box.weapon_select_icon_2._visible = true;
}
if (gun_charge_box.gun_charge_high._amount > 0) {
gun_charge_box.gun_charge_high._visible = true;
gun_charge_box.highlight_box_high.useHandCursor = true;
} else if (gun_charge_box.gun_charge_high._amount <= 0) {
gun_charge_box.white_selection_bracket._x = gun_charge_box.highlight_box._x;
gun_charge_box.white_selection_bracket._y = gun_charge_box.highlight_box._y;
gun_charge_box.gun_charge_high._alpha = 50;
gun_charge_box.highlight_box_high.useHandCursor = false;
}
HP_cy10_disk._visible = true;
rpg_active_flag = 1;
}
top_right_disks._visible = false;
if (view_2._visible == true) {
HP_enemy_1_disk._visible = true;
HP_enemy_2_disk._visible = true;
} else if (view_4._visible == true) {
HP_enemy_1_disk._visible = true;
HP_enemy_2_disk._visible = true;
} else if (view_6._visible == true) {
HP_enemy_2_disk._visible = true;
if (f21091130_flag == 0) {
shield_bar._visible = true;
active_mc = shield_info_box;
fade_in_and_ease_mc_active = true;
f21091130_flag = 1;
}
if (shield_bar.HP_text <= 0) {
if (f3109735_flag == 0) {
active_mc_2 = shield_info_box;
fade_out_mc_active = true;
active_increase_fade_mc = shield_bar;
increase_fade_active = true;
f3109735_flag = 1;
}
}
}
if (cyborg_shield_bar.HP_text <= 0) {
if (f192091217_flag == 0) {
tech_button_4._amount = 0;
rpg_cyborg_shield_running = false;
active_mc_2 = cyborg_shield_info_box;
fade_out_mc_active = true;
active_mc_4 = rpg_cyborg_shield;
fade_out_mc_4_active = true;
active_increase_fade_mc = cyborg_shield_bar;
increase_fade_active = true;
f192091217_flag = 1;
}
}
} else if (rpg_battle_system_active == false) {
if (f19109307_flag == 0) {
times_visited_view_2 = 0;
f19109307_flag = 1;
}
f192091239_flag = 0;
if (f201108521_flag == 0) {
main_music_flag = main_music_flag + 1;
HP_enemy_1_part_2 = 99;
HP_enemy_2_part_2 = 99;
HP_enemy_1_part_3 = 99;
HP_enemy_2_part_3 = 99;
rpg_cyborg_shield._visible = false;
cyborg_shield_bar._visible = false;
_root.s_battle_music.stop(["battle_music"]);
_root.s_boss_battle_music.stop(["boss_battle_music"]);
if (main_music_flag >= 2) {
_root.s_music.stop(["music"]);
_root.s_music.start(0, 999);
}
if (cyborg_shield_info_box._visible == true) {
active_mc_4 = cyborg_shield_info_box;
fade_out_mc_4_active = true;
}
enemy_1_info_box._visible = false;
enemy_2_info_box._visible = false;
e1_e1_blister._visible = false;
e1_e2_blister._visible = false;
e2_e1_blister._visible = false;
e2_e2_blister._visible = false;
boss_blister._visible = false;
f201108258_flag = 0;
f1012081134_flag = 0;
f3112081158_flag = 0;
HP_enemy_1_disk._x = 288.95;
HP_enemy_1_disk._y = 3.45;
robot_icon_1._x = 288.95;
robot_icon_1._y = 3;
e2_e1_icon._x = 288.95;
e2_e1_icon._y = 3;
enemy_1_info_box._x = 293.9;
enemy_1_info_box._y = 60;
f181108241_flag = 0;
f181108245_flag = 0;
cyborg_breathing = false;
first_enemy_1._visible = false;
first_enemy_2._visible = false;
e2_e1._visible = false;
e2_e2._visible = false;
boss._visible = false;
robot_icon_1._visible = false;
robot_icon_2._visible = false;
e2_e1_icon._visible = false;
e2_e2_icon._visible = false;
boss_icon._visible = false;
character_view = "3rd_person";
rpg_gunfire_active = false;
rpg_cyborg._visible = false;
set_rpg_cyborg_weapon._visible = false;
keys_active = true;
rpg_active_flag = 0;
rpg_battle_system_flag = 0;
top_right_disks._visible = true;
HP_cy10_disk._visible = false;
HP_enemy_1_disk._visible = false;
HP_enemy_2_disk._visible = false;
gun_charge_box._visible = false;
attack_button._visible = false;
tech_button._visible = false;
f201108521_flag = 1;
}
}
}
function timestep_4() {
rpg_cyborg.cacheAsBitmap = true;
inventory.cacheAsBitmap = true;
if (rpg_battle_system_active == true) {
if (set_rpg_cyborg_shot._visible == true) {
hideAttackButtons();
}
if (rpg_enemy_shot._visible == true) {
hideAttackButtons();
}
if ((HP_enemy_1_disk.HP_text <= 0) && (HP_enemy_2_disk.HP_text <= 0)) {
hideAttackButtons();
}
}
if (mouse_info_active == true) {
if (mouse_info_active_flag == 0) {
active_mouse_info_box._visible = true;
active_mouse_info_box._alpha = 0;
mouse_info_active_flag = 1;
}
if (active_mouse_info_box._alpha < 100) {
active_mouse_info_box._visible = true;
active_mouse_info_box._alpha = active_mouse_info_box._alpha + (10 * frameRateDiff);
} else if (active_mouse_info_box._alpha >= 100) {
active_mouse_info_box._visible = true;
active_mouse_info_box._alpha = 100;
}
} else if (mouse_info_active == false) {
mouse_info_active_flag = 0;
active_mouse_info_box._visible = false;
}
if (cyborg_dead_knocked_forward == true) {
rpg_cyborg._rotation = rpg_cyborg._rotation + (((35 - rpg_cyborg._rotation) / 16) * frameRateDiff);
rpg_cyborg.rpg_cyborg_head._rotation = rpg_cyborg.rpg_cyborg_head._rotation + (((6 - rpg_cyborg.rpg_cyborg_head._rotation) / 5) * frameRateDiff);
set_rpg_cyborg_weapon._rotation = set_rpg_cyborg_weapon._rotation + (((40 - set_rpg_cyborg_weapon._rotation) / 10) * frameRateDiff);
rpg_cyborg._x = rpg_cyborg._x + (((130 - rpg_cyborg._x) / 10) * frameRateDiff);
rpg_cyborg._y = rpg_cyborg._y + (((396 - rpg_cyborg._y) / 10) * frameRateDiff);
if (rpg_cyborg._y >= 405) {
cyborg_dead_knocked_forward = false;
}
}
if (rpg_inventory_slot_check_active == true) {
rpg_inventory_slot_timer = rpg_inventory_slot_timer + 1;
if (rpg_inventory_slot_timer == 1) {
if (((((oa._x == s1._x) && (oa._y == s1._y)) || ((ob._x == s1._x) && (ob._y == s1._y))) || ((oc._x == s1._x) && (oc._y == s1._y))) || ((od._x == s1._x) && (od._y == s1._y))) {
} else {
rpg_slot_check_active_object._x = s1._x;
rpg_slot_check_active_object._y = s1._y;
rpg_inventory_slot_timer = 50;
}
}
if (rpg_inventory_slot_timer == 2) {
if (((((oa._x == s2._x) && (oa._y == s2._y)) || ((ob._x == s2._x) && (ob._y == s2._y))) || ((oc._x == s2._x) && (oc._y == s2._y))) || ((od._x == s2._x) && (od._y == s2._y))) {
} else {
rpg_slot_check_active_object._x = s2._x;
rpg_slot_check_active_object._y = s2._y;
rpg_inventory_slot_timer = 50;
}
}
if (rpg_inventory_slot_timer == 3) {
if (((((oa._x == s3._x) && (oa._y == s3._y)) || ((ob._x == s3._x) && (ob._y == s3._y))) || ((oc._x == s3._x) && (oc._y == s3._y))) || ((od._x == s3._x) && (od._y == s3._y))) {
} else {
rpg_slot_check_active_object._x = s3._x;
rpg_slot_check_active_object._y = s3._y;
rpg_inventory_slot_timer = 50;
}
}
if (rpg_inventory_slot_timer == 4) {
if (((((oa._x == s4._x) && (oa._y == s4._y)) || ((ob._x == s4._x) && (ob._y == s4._y))) || ((oc._x == s4._x) && (oc._y == s4._y))) || ((od._x == s4._x) && (od._y == s4._y))) {
} else {
rpg_slot_check_active_object._x = s4._x;
rpg_slot_check_active_object._y = s4._y;
rpg_inventory_slot_timer = 50;
}
}
if (rpg_inventory_slot_timer > 4) {
rpg_inventory_slot_check_active = false;
}
} else if (rpg_inventory_slot_check_active == false) {
rpg_inventory_slot_timer = 0;
}
if (cyborg_point_weapon == true) {
hideAttackButtons();
if ((set_rpg_cyborg_weapon._rotation > (cyborg_arm_angle - 1)) && (set_rpg_cyborg_weapon._rotation < (cyborg_arm_angle + 1))) {
cyborg_point_weapon = false;
}
set_rpg_cyborg_weapon._rotation = set_rpg_cyborg_weapon._rotation + (((cyborg_arm_angle - set_rpg_cyborg_weapon._rotation) / 4) * frameRateDiff);
}
if (move_with_mouse_active == true) {
active_move_with_mouse_mc._x = _root._xmouse + 109;
active_move_with_mouse_mc._y = _root._ymouse - -6;
}
if (gun_charge_box._visible == true) {
if ((_root._xmouse < 140) && (_root._ymouse > 240)) {
gun_charge_box.highlight_box._visible = true;
gun_charge_box.highlight_box_high._visible = true;
gun_charge_box.highlight_box_weapon_1._visible = true;
gun_charge_box.highlight_box_weapon_2._visible = true;
if (gun_charge_once_flag == 0) {
gun_charge_box.highlight_box._alpha = 0;
gun_charge_box.highlight_box_high._alpha = 0;
gun_charge_box.highlight_box_weapon_1._alpha = 0;
gun_charge_box.highlight_box_weapon_2._alpha = 0;
gun_charge_once_flag = 1;
}
} else {
gun_charge_once_flag = 0;
gun_charge_box.highlight_box._visible = false;
gun_charge_box.highlight_box_high._visible = false;
gun_charge_box.highlight_box_weapon_1._visible = false;
gun_charge_box.highlight_box_weapon_2._visible = false;
}
}
if (view_2._visible == true) {
random_sbe_timer = random_sbe_timer + (1 * frameRateDiff);
if (random_sbe_timer >= 10) {
sbe_max = 100;
sbe_min = 1;
random_sbe_ticks = Math.round(Math.random() * ((sbe_max - sbe_min) + 1)) + sbe_min;
random_sbe_timer = 0;
}
if ((random_sbe_ticks >= 1) && (random_sbe_ticks < 10)) {
background_explosion_light_active = true;
}
} else if (view_2._visible == false) {
background_explosion_light_active = false;
background_explosion_light._visible = false;
}
if (increase_fade_active == true) {
increase_fade_alpha_power_2 = increase_fade_alpha_power_2 + (0.03 * frameRateDiff);
increase_fade_alpha_2 = Math.pow(increase_fade_alpha_power_2, 4);
active_increase_fade_mc._alpha = active_increase_fade_mc._alpha - increase_fade_alpha_2;
if (active_increase_fade_mc._alpha <= 0) {
active_increase_fade_mc._visible = false;
increase_fade_active = false;
}
}
if (cutter_fire_active == true) {
if (cutter_fire_active_flag == 0) {
e2_shot._visible = true;
e2_shot._alpha = 100;
_root.s_cutter_sound.start(0, 1);
cutter_fire_active_flag = 1;
}
e2_shot._alpha = e2_shot._alpha - (14 * frameRateDiff);
if (e2_shot._alpha <= 0) {
cutter_fire_active = false;
}
} else if (cutter_fire_active == false) {
e2_shot._visible = false;
cutter_fire_active_flag = 0;
}
if (map_button_fade_in == true) {
active_map_button._alpha = active_map_button._alpha + (25 * frameRateDiff);
if (active_map_button._alpha >= 100) {
map_button_fade_in = false;
}
}
if (map_active == true) {
f512081258_flag = 0;
keys_active = false;
if (zone_3_locked == false) {
map.zone_3_button._visible = true;
zone_3_text_colour.setTransform(off_white_colour);
}
if ((view_1._visible == true) || (view_2._visible == true)) {
map.map_cyborg._x = 326.85;
map.map_cyborg._y = 288.85;
} else if ((view_3._visible == true) || (view_4._visible == true)) {
map.map_cyborg._x = 389.85;
map.map_cyborg._y = 164.9;
} else if ((view_5._visible == true) || (view_6._visible == true)) {
map.map_cyborg._x = 389.85;
map.map_cyborg._y = 107.9;
}
map_timer = map_timer + (1 * frameRateDiff);
if (map_timer >= 0) {
map_box._visible = true;
map_box._alpha = 100;
}
if ((map_timer >= 0) && (map_timer < 10)) {
map._visible = true;
map._alpha = 0;
} else if ((map_timer >= 10) && (map._alpha < 100)) {
map._visible = true;
map._alpha = map._alpha + (10 * frameRateDiff);
} else if ((map_timer >= 10) && (map._alpha >= 100)) {
map._visible = true;
map._alpha = 100;
}
} else if (map_active == false) {
if (f512081258_flag == 0) {
keys_active = true;
f512081258_flag = 1;
}
map_timer = 0;
map._visible = false;
map._alpha = 0;
map_box._visible = false;
map_box._alpha = 0;
}
if ((view_2._visible == true) && (rpg_battle_system_active == true)) {
enemy_arm_movement_throttle = enemy_arm_movement_throttle + 1;
if (enemy_arm_movement_throttle == 5) {
e1am_max = 90;
e1am_min = 1;
enemy_1_arm_movement_timer = Math.round(Math.random() * ((e1am_max - e1am_min) + 1)) + e1am_min;
if (enemy_1_arm_movement_timer == 10) {
e1_arm_1_move = true;
}
if (enemy_1_arm_movement_timer == 20) {
e1_arm_2_move = true;
}
if (enemy_1_arm_movement_timer == 30) {
e1_arm_3_move = true;
}
e2am_max = 90;
e2am_min = 1;
enemy_2_arm_movement_timer = Math.round(Math.random() * ((e2am_max - e2am_min) + 1)) + e2am_min;
if (enemy_2_arm_movement_timer == 10) {
e2_arm_1_move = true;
}
if (enemy_2_arm_movement_timer == 20) {
e2_arm_2_move = true;
}
if (enemy_2_arm_movement_timer == 30) {
e2_arm_3_move = true;
}
enemy_arm_movement_throttle = 0;
}
if (e1_arm_1_move == true) {
if (first_enemy_1.e1_arm_1._rotation > 5) {
e1_arm_1_rotation = "forward";
}
if (e1_arm_1_rotation == "back") {
first_enemy_1.e1_arm_1._rotation = first_enemy_1.e1_arm_1._rotation + (((6 - first_enemy_1.e1_arm_1._rotation) / 15) * frameRateDiff);
} else if (e1_arm_1_rotation == "forward") {
first_enemy_1.e1_arm_1._rotation = first_enemy_1.e1_arm_1._rotation + (((-1 - first_enemy_1.e1_arm_1._rotation) / 15) * frameRateDiff);
if (first_enemy_1.e1_arm_1._rotation <= 0) {
e1_arm_1_move = false;
}
}
} else if (e1_arm_1_move == false) {
e1_arm_1_rotation = "back";
}
if (e1_arm_2_move == true) {
if (first_enemy_1.e1_arm_2._rotation > 5) {
e1_arm_2_rotation = "forward";
}
if (e1_arm_2_rotation == "back") {
first_enemy_1.e1_arm_2._rotation = first_enemy_1.e1_arm_2._rotation + (((6 - first_enemy_1.e1_arm_2._rotation) / 15) * frameRateDiff);
} else if (e1_arm_2_rotation == "forward") {
first_enemy_1.e1_arm_2._rotation = first_enemy_1.e1_arm_2._rotation + (((-1 - first_enemy_1.e1_arm_2._rotation) / 15) * frameRateDiff);
if (first_enemy_1.e1_arm_2._rotation <= 0) {
e1_arm_2_move = false;
}
}
} else if (e1_arm_2_move == false) {
e1_arm_2_rotation = "back";
}
if (e1_arm_3_move == true) {
if (first_enemy_1.e1_arm_3._rotation > 5) {
e1_arm_3_rotation = "forward";
}
if (e1_arm_3_rotation == "back") {
first_enemy_1.e1_arm_3._rotation = first_enemy_1.e1_arm_3._rotation + (((6 - first_enemy_1.e1_arm_3._rotation) / 15) * frameRateDiff);
} else if (e1_arm_3_rotation == "forward") {
first_enemy_1.e1_arm_3._rotation = first_enemy_1.e1_arm_3._rotation + (((-1 - first_enemy_1.e1_arm_3._rotation) / 15) * frameRateDiff);
if (first_enemy_1.e1_arm_3._rotation <= 0) {
e1_arm_3_move = false;
}
}
} else if (e1_arm_3_move == false) {
e1_arm_3_rotation = "back";
}
if (e2_arm_1_move == true) {
if (first_enemy_2.e2_arm_1._rotation > 5) {
e2_arm_1_rotation = "forward";
}
if (e2_arm_1_rotation == "back") {
first_enemy_2.e2_arm_1._rotation = first_enemy_2.e2_arm_1._rotation + (((6 - first_enemy_2.e2_arm_1._rotation) / 15) * frameRateDiff);
} else if (e2_arm_1_rotation == "forward") {
first_enemy_2.e2_arm_1._rotation = first_enemy_2.e2_arm_1._rotation + (((-1 - first_enemy_2.e2_arm_1._rotation) / 15) * frameRateDiff);
if (first_enemy_2.e2_arm_1._rotation <= 0) {
e2_arm_1_move = false;
}
}
} else if (e2_arm_1_move == false) {
e2_arm_1_rotation = "back";
}
if (e2_arm_2_move == true) {
if (first_enemy_2.e2_arm_2._rotation > 5) {
e2_arm_2_rotation = "forward";
}
if (e2_arm_2_rotation == "back") {
first_enemy_2.e2_arm_2._rotation = first_enemy_2.e2_arm_2._rotation + (((6 - first_enemy_2.e2_arm_2._rotation) / 15) * frameRateDiff);
} else if (e2_arm_2_rotation == "forward") {
first_enemy_2.e2_arm_2._rotation = first_enemy_2.e2_arm_2._rotation + (((-1 - first_enemy_2.e2_arm_2._rotation) / 15) * frameRateDiff);
if (first_enemy_2.e2_arm_2._rotation <= 0) {
e2_arm_2_move = false;
}
}
} else if (e2_arm_2_move == false) {
e2_arm_2_rotation = "back";
}
if (e2_arm_3_move == true) {
if (first_enemy_2.e2_arm_3._rotation > 5) {
e2_arm_3_rotation = "forward";
}
if (e2_arm_3_rotation == "back") {
first_enemy_2.e2_arm_3._rotation = first_enemy_2.e2_arm_3._rotation + (((6 - first_enemy_2.e2_arm_3._rotation) / 15) * frameRateDiff);
} else if (e2_arm_3_rotation == "forward") {
first_enemy_2.e2_arm_3._rotation = first_enemy_2.e2_arm_3._rotation + (((-1 - first_enemy_2.e2_arm_3._rotation) / 15) * frameRateDiff);
if (first_enemy_2.e2_arm_3._rotation <= 0) {
e2_arm_3_move = false;
}
}
} else if (e2_arm_3_move == false) {
e2_arm_3_rotation = "back";
}
}
if ((view_4._visible == true) && (rpg_battle_system_active == true)) {
enemy_arm_movement_throttle = enemy_arm_movement_throttle + 1;
if (enemy_arm_movement_throttle == 5) {
e2_e1am_max = 90;
e2_e1am_min = 1;
e2_enemy_1_arm_movement_timer = Math.round(Math.random() * ((e2_e1am_max - e2_e1am_min) + 1)) + e2_e1am_min;
if (e2_enemy_1_arm_movement_timer == 10) {
e2_e1_arm_1_move = true;
}
if (e2_enemy_1_arm_movement_timer == 20) {
e2_e1_arm_2_move = true;
}
if (e2_enemy_1_arm_movement_timer == 30) {
e2_e1_arm_3_move = true;
}
e2_e2am_max = 90;
e2_e2am_min = 1;
e2_enemy_2_arm_movement_timer = Math.round(Math.random() * ((e2_e2am_max - e2_e2am_min) + 1)) + e2_e2am_min;
if (e2_enemy_2_arm_movement_timer == 10) {
e2_e2_arm_1_move = true;
}
if (e2_enemy_2_arm_movement_timer == 20) {
e2_e2_arm_2_move = true;
}
if (e2_enemy_2_arm_movement_timer == 30) {
e2_e2_arm_3_move = true;
}
enemy_arm_movement_throttle = 0;
}
if (e2_e1_arm_1_move == true) {
if (e2_e1.e2_e1_leg_1._rotation > 10) {
e2_e1_arm_1_rotation = "forward";
}
if (e2_e1_arm_1_rotation == "back") {
e2_e1.e2_e1_leg_1._rotation = e2_e1.e2_e1_leg_1._rotation + (((11 - e2_e1.e2_e1_leg_1._rotation) / 4) * frameRateDiff);
} else if (e2_e1_arm_1_rotation == "forward") {
e2_e1_arm_1_timer = e2_e1_arm_1_timer + (1 * frameRateDiff);
if (e2_e1_arm_1_timer >= 100) {
e2_e1.e2_e1_leg_1._rotation = e2_e1.e2_e1_leg_1._rotation + (((-1 - e2_e1.e2_e1_leg_1._rotation) / 4) * frameRateDiff);
if (e2_e1.e2_e1_leg_1._rotation <= 0) {
e2_e1_arm_1_move = false;
}
}
}
} else if (e2_e1_arm_1_move == false) {
e2_e1_arm_1_timer = 0;
e2_e1_arm_1_rotation = "back";
}
if (e2_e1_arm_2_move == true) {
if (e2_e1.e2_e1_leg_2._rotation > 10) {
e2_e1_arm_2_rotation = "forward";
}
if (e2_e1_arm_2_rotation == "back") {
e2_e1.e2_e1_leg_2._rotation = e2_e1.e2_e1_leg_2._rotation + (((11 - e2_e1.e2_e1_leg_2._rotation) / 4) * frameRateDiff);
} else if (e2_e1_arm_2_rotation == "forward") {
e2_e1_arm_2_timer = e2_e1_arm_2_timer + (1 * frameRateDiff);
if (e2_e1_arm_2_timer >= 100) {
e2_e1.e2_e1_leg_2._rotation = e2_e1.e2_e1_leg_2._rotation + (((-1 - e2_e1.e2_e1_leg_2._rotation) / 4) * frameRateDiff);
if (e2_e1.e2_e1_leg_2._rotation <= 0) {
e2_e1_arm_2_move = false;
}
}
}
} else if (e2_e1_arm_2_move == false) {
e2_e1_arm_2_timer = 0;
e2_e1_arm_2_rotation = "back";
}
if (e2_e1_arm_3_move == true) {
if (e2_e1.e2_e1_leg_3._rotation > 10) {
e2_e1_arm_3_rotation = "forward";
}
if (e2_e1_arm_3_rotation == "back") {
e2_e1.e2_e1_leg_3._rotation = e2_e1.e2_e1_leg_3._rotation + (((11 - e2_e1.e2_e1_leg_3._rotation) / 4) * frameRateDiff);
} else if (e2_e1_arm_3_rotation == "forward") {
e2_e1_arm_3_timer = e2_e1_arm_3_timer + (1 * frameRateDiff);
if (e2_e1_arm_3_timer >= 100) {
e2_e1.e2_e1_leg_3._rotation = e2_e1.e2_e1_leg_3._rotation + (((-1 - e2_e1.e2_e1_leg_3._rotation) / 4) * frameRateDiff);
if (e2_e1.e2_e1_leg_3._rotation <= 0) {
e2_e1_arm_3_move = false;
}
}
}
} else if (e2_e1_arm_3_move == false) {
e2_e1_arm_3_timer = 0;
e2_e1_arm_3_rotation = "back";
}
if (e2_e2_arm_1_move == true) {
if (e2_e2.e2_e2_leg_1._rotation > 10) {
e2_e2_arm_1_rotation = "forward";
}
if (e2_e2_arm_1_rotation == "back") {
e2_e2.e2_e2_leg_1._rotation = e2_e2.e2_e2_leg_1._rotation + (((11 - e2_e2.e2_e2_leg_1._rotation) / 4) * frameRateDiff);
} else if (e2_e2_arm_1_rotation == "forward") {
e2_e2_arm_1_timer = e2_e2_arm_1_timer + (1 * frameRateDiff);
if (e2_e2_arm_1_timer >= 100) {
e2_e2.e2_e2_leg_1._rotation = e2_e2.e2_e2_leg_1._rotation + (((-1 - e2_e2.e2_e2_leg_1._rotation) / 4) * frameRateDiff);
if (e2_e2.e2_e2_leg_1._rotation <= 0) {
e2_e2_arm_1_move = false;
}
}
}
} else if (e2_e2_arm_1_move == false) {
e2_e2_arm_1_timer = 0;
e2_e2_arm_1_rotation = "back";
}
if (e2_e2_arm_2_move == true) {
if (e2_e2.e2_e2_leg_2._rotation > 10) {
e2_e2_arm_2_rotation = "forward";
}
if (e2_e2_arm_2_rotation == "back") {
e2_e2.e2_e2_leg_2._rotation = e2_e2.e2_e2_leg_2._rotation + (((11 - e2_e2.e2_e2_leg_2._rotation) / 4) * frameRateDiff);
} else if (e2_e2_arm_2_rotation == "forward") {
e2_e2_arm_2_timer = e2_e2_arm_2_timer + (1 * frameRateDiff);
if (e2_e2_arm_2_timer >= 100) {
e2_e2.e2_e2_leg_2._rotation = e2_e2.e2_e2_leg_2._rotation + (((-1 - e2_e2.e2_e2_leg_2._rotation) / 4) * frameRateDiff);
if (e2_e2.e2_e2_leg_2._rotation <= 0) {
e2_e2_arm_2_move = false;
}
}
}
} else if (e2_e2_arm_2_move == false) {
e2_e2_arm_2_timer = 0;
e2_e2_arm_2_rotation = "back";
}
if (e2_e2_arm_3_move == true) {
if (e2_e2.e2_e2_leg_3._rotation > 10) {
e2_e2_arm_3_rotation = "forward";
}
if (e2_e2_arm_3_rotation == "back") {
e2_e2.e2_e2_leg_3._rotation = e2_e2.e2_e2_leg_3._rotation + (((11 - e2_e2.e2_e2_leg_3._rotation) / 4) * frameRateDiff);
} else if (e2_e2_arm_3_rotation == "forward") {
e2_e2_arm_3_timer = e2_e2_arm_3_timer + (1 * frameRateDiff);
if (e2_e2_arm_3_timer >= 100) {
e2_e2.e2_e2_leg_3._rotation = e2_e2.e2_e2_leg_3._rotation + (((-1 - e2_e2.e2_e2_leg_3._rotation) / 4) * frameRateDiff);
if (e2_e2.e2_e2_leg_3._rotation <= 0) {
e2_e2_arm_3_move = false;
}
}
}
} else if (e2_e2_arm_3_move == false) {
e2_e2_arm_3_timer = 0;
e2_e2_arm_3_rotation = "back";
}
}
if ((view_6._visible == true) && (rpg_battle_system_active == true)) {
enemy_arm_movement_throttle = enemy_arm_movement_throttle + 1;
if (enemy_arm_movement_throttle == 5) {
e3am_max = 90;
e3am_min = 1;
enemy_3_arm_movement_timer = Math.round(Math.random() * ((e3am_max - e3am_min) + 1)) + e3am_min;
if (enemy_3_arm_movement_timer == 10) {
}
if (enemy_3_arm_movement_timer == 20) {
e3_arm_2_move = true;
}
if (enemy_3_arm_movement_timer == 30) {
e3_arm_3_move = true;
}
enemy_arm_movement_throttle = 0;
}
if (e3_arm_2_move == true) {
if (boss.boss_limb_2._rotation > 3) {
e3_arm_2_rotation = "forward";
}
if (e3_arm_2_rotation == "back") {
boss.boss_limb_2._rotation = boss.boss_limb_2._rotation + (((4 - boss.boss_limb_2._rotation) / 15) * frameRateDiff);
} else if (e3_arm_2_rotation == "forward") {
boss.boss_limb_2._rotation = boss.boss_limb_2._rotation + (((-1 - boss.boss_limb_2._rotation) / 15) * frameRateDiff);
if (boss.boss_limb_2._rotation <= 0) {
e3_arm_2_move = false;
}
}
boss.boss_limb_2._yscale = 100 - boss.boss_limb_2._rotation;
} else if (e3_arm_2_move == false) {
e3_arm_2_rotation = "back";
}
if (e3_arm_3_move == true) {
if (boss.boss_limb_3._rotation > 3) {
e3_arm_3_rotation = "forward";
}
if (e3_arm_3_rotation == "back") {
boss.boss_limb_3._rotation = boss.boss_limb_3._rotation + (((4 - boss.boss_limb_3._rotation) / 15) * frameRateDiff);
} else if (e3_arm_3_rotation == "forward") {
boss.boss_limb_3._rotation = boss.boss_limb_3._rotation + (((-1 - boss.boss_limb_3._rotation) / 15) * frameRateDiff);
if (boss.boss_limb_3._rotation <= 0) {
e3_arm_3_move = false;
}
}
boss.boss_limb_3._yscale = 100 - boss.boss_limb_3._rotation;
} else if (e3_arm_3_move == false) {
e3_arm_3_rotation = "back";
}
}
if (cyborg_head_knocked_back == true) {
if (rpg_cyborg.rpg_cyborg_head._rotation < -6) {
cyborg_head_rotation = "forward";
}
if (cyborg_head_rotation == "back") {
rpg_cyborg.rpg_cyborg_head._rotation = rpg_cyborg.rpg_cyborg_head._rotation + (((-7 - rpg_cyborg.rpg_cyborg_head._rotation) / 4) * frameRateDiff);
} else if (cyborg_head_rotation == "forward") {
rpg_cyborg.rpg_cyborg_head._rotation = rpg_cyborg.rpg_cyborg_head._rotation + (((1 - rpg_cyborg.rpg_cyborg_head._rotation) / 4) * frameRateDiff);
if (rpg_cyborg.rpg_cyborg_head._rotation >= 0) {
cyborg_head_knocked_back = false;
}
}
} else if (cyborg_head_knocked_back == false) {
cyborg_head_rotation = "back";
}
if (cyborg_head_knocked_forward == true) {
if (rpg_cyborg.rpg_cyborg_head._rotation > 3) {
cyborg_head_rotation_f = "back";
}
if (cyborg_head_rotation_f == "forward") {
rpg_cyborg.rpg_cyborg_head._rotation = rpg_cyborg.rpg_cyborg_head._rotation + (((4 - rpg_cyborg.rpg_cyborg_head._rotation) / 4) * frameRateDiff);
} else if (cyborg_head_rotation_f == "back") {
rpg_cyborg.rpg_cyborg_head._rotation = rpg_cyborg.rpg_cyborg_head._rotation + (((-1 - rpg_cyborg.rpg_cyborg_head._rotation) / 4) * frameRateDiff);
if (rpg_cyborg.rpg_cyborg_head._rotation <= 0) {
cyborg_head_knocked_forward = false;
}
}
} else if (cyborg_head_knocked_forward == false) {
cyborg_head_rotation_f = "forward";
}
if (cyborg_weapon_knocked_forward == true) {
if (set_rpg_cyborg_weapon._rotation > 2) {
cyborg_weapon_rotation_f = "back";
}
if (cyborg_weapon_rotation_f == "forward") {
set_rpg_cyborg_weapon._rotation = set_rpg_cyborg_weapon._rotation + (((3 - set_rpg_cyborg_weapon._rotation) / 4) * frameRateDiff);
} else if (cyborg_weapon_rotation_f == "back") {
set_rpg_cyborg_weapon._rotation = set_rpg_cyborg_weapon._rotation + (((-1 - set_rpg_cyborg_weapon._rotation) / 4) * frameRateDiff);
if (set_rpg_cyborg_weapon._rotation <= 0) {
cyborg_weapon_knocked_forward = false;
}
}
} else if (cyborg_weapon_knocked_forward == false) {
cyborg_weapon_rotation_f = "forward";
}
if (dead == false) {
if (cyborg_body_knocked_back == true) {
if (rpg_cyborg._rotation < -1) {
cyborg_body_rotation = "forward";
}
if (cyborg_body_rotation == "back") {
rpg_cyborg._rotation = rpg_cyborg._rotation + (((-2 - rpg_cyborg._rotation) / 4) * frameRateDiff);
} else if (cyborg_body_rotation == "forward") {
rpg_cyborg._rotation = rpg_cyborg._rotation + (((1 - rpg_cyborg._rotation) / 4) * frameRateDiff);
if (rpg_cyborg._rotation >= 0) {
cyborg_body_knocked_back = false;
}
}
} else if (cyborg_body_knocked_back == false) {
cyborg_body_rotation = "back";
}
}
if (cyborg_breathing == true) {
} else if (cyborg_breathing == false) {
}
if (rpg_enemy_explosion_active == true) {
if (f1811081141_flag == 0) {
if (rpg_enemy_explosion_position == 1) {
if (view_2._visible == true) {
rpg_enemy_explosion._x = 345.9;
rpg_enemy_explosion._y = 156.6;
enemy_1_bitmap.draw(rpg_enemies_1_enemy_1_damage);
} else if (view_4._visible == true) {
rpg_enemy_explosion._x = 322.95;
rpg_enemy_explosion._y = 167.35;
e2_e1_bitmap.draw(rpg_enemies_2_enemy_1_damage);
}
dead_fade_enemy_1_active = true;
} else if (rpg_enemy_explosion_position == 2) {
if (view_2._visible == true) {
rpg_enemy_explosion._x = 411.9;
rpg_enemy_explosion._y = 156.6;
enemy_2_bitmap.draw(rpg_enemies_1_enemy_2_damage);
} else if (view_4._visible == true) {
rpg_enemy_explosion._x = 409.95;
rpg_enemy_explosion._y = 171;
e2_e2_bitmap.draw(rpg_enemies_2_enemy_2_damage);
} else if (view_6._visible == true) {
rpg_enemy_explosion._x = 287.95;
rpg_enemy_explosion._y = 203;
boss_bitmap.draw(rpg_boss_damage);
}
dead_fade_enemy_2_active = true;
}
rpg_enemy_explosion._alpha = 100;
rpg_enemy_explosion._visible = true;
_root.s_small_explosion_sound.start(0, 1);
f1811081141_flag = 1;
}
rpg_enemy_explosion_timer = rpg_enemy_explosion_timer + (0.9 * frameRateDiff);
rpg_enemy_explosion.inner_explosion._x = rpg_enemy_explosion.inner_explosion._x + (0.6 * frameRateDiff);
rpg_enemy_explosion.inner_explosion._y = rpg_enemy_explosion.inner_explosion._y + (0.1 * frameRateDiff);
rpg_enemy_explosion.inner_explosion_2._x = rpg_enemy_explosion.inner_explosion_2._x + (0.2 * frameRateDiff);
rpg_enemy_explosion.inner_explosion_2._y = rpg_enemy_explosion.inner_explosion_2._y + (0.8 * frameRateDiff);
rpg_enemy_explosion.inner_explosion._xscale = rpg_enemy_explosion.inner_explosion._xscale + (1.9 * frameRateDiff);
rpg_enemy_explosion.inner_explosion._yscale = rpg_enemy_explosion.inner_explosion._yscale + (1.1 * frameRateDiff);
rpg_enemy_explosion.inner_explosion_2._xscale = rpg_enemy_explosion.inner_explosion_2._xscale + (1.1 * frameRateDiff);
rpg_enemy_explosion.inner_explosion_2._yscale = rpg_enemy_explosion.inner_explosion_2._yscale + (1.6 * frameRateDiff);
rpg_enemy_explosion.inner_explosion._rotation = rpg_enemy_explosion.inner_explosion._rotation - (0.5 * frameRateDiff);
rpg_enemy_explosion.inner_explosion_2._rotation = rpg_enemy_explosion.inner_explosion_2._rotation - (0.6 * frameRateDiff);
rpg_enemy_explosion._alpha = rpg_enemy_explosion._alpha - (rpg_enemy_explosion_timer * frameRateDiff);
if (rpg_enemy_explosion._alpha <= 0) {
rpg_enemy_explosion_active = false;
}
} else if (rpg_enemy_explosion_active == false) {
rpg_enemy_explosion._alpha = 0;
rpg_enemy_explosion._visible = false;
rpg_enemy_explosion.inner_explosion._x = 0;
rpg_enemy_explosion.inner_explosion._y = 0;
rpg_enemy_explosion.inner_explosion_2._x = 0;
rpg_enemy_explosion.inner_explosion_2._y = 0;
rpg_enemy_explosion.inner_explosion._xscale = 100;
rpg_enemy_explosion.inner_explosion._yscale = 100;
rpg_enemy_explosion.inner_explosion_2._xscale = 100;
rpg_enemy_explosion.inner_explosion_2._yscale = 100;
rpg_enemy_explosion.inner_explosion._rotation = 0;
rpg_enemy_explosion.inner_explosion_2._rotation = 0;
rpg_enemy_explosion_timer = 0;
f1811081141_flag = 0;
}
if (dead_fade_enemy_1_active == true) {
dead_fade_enemy_1_timer = dead_fade_enemy_1_timer + (1 * frameRateDiff);
if (dead_fade_enemy_1_timer >= 70) {
dead_fade_alpha_power_1 = dead_fade_alpha_power_1 + (0.1 * frameRateDiff);
dead_fade_alpha_1 = Math.pow(dead_fade_alpha_power_1, 3.4);
if (view_2._visible == true) {
first_enemy_1._alpha = first_enemy_1._alpha - dead_fade_alpha_1;
v2_e1_w1_c1_t3 = 15;
v2_e1_w1_c2_t3 = 45;
v2_e1_w1_c1_t3_got = true;
v2_e1_w1_c2_t3_got = true;
if (enemy_1_info_box._visible == true) {
}
} else if (view_4._visible == true) {
e2_e1._alpha = e2_e1._alpha - dead_fade_alpha_1;
e2_e1_icon._alpha = e2_e1_icon._alpha - dead_fade_alpha_1;
v4_e1_w1_c1_t3 = 12;
v4_e1_w2_c1_t3 = 18;
v4_e1_w1_c2_t3 = 36;
v4_e1_w2_c2_t3 = 54;
v4_e1_w1_c1_t3_got = true;
v4_e1_w2_c1_t3_got = true;
v4_e1_w1_c2_t3_got = true;
v4_e1_w2_c2_t3_got = true;
if (enemy_1_info_box._visible == true) {
}
} else if (view_6._visible == true) {
boss._alpha = boss._alpha - dead_fade_alpha_1;
boss_icon._alpha = boss_icon._alpha - dead_fade_alpha_1;
if (enemy_1_info_box._visible == true) {
}
}
HP_enemy_1_disk._alpha = HP_enemy_1_disk._alpha - dead_fade_alpha_1;
robot_icon_1._alpha = robot_icon_1._alpha - dead_fade_alpha_1;
enemy_1_eye_blisters._alpha = enemy_1_eye_blisters._alpha - dead_fade_alpha_1;
enemy_1_info_box._alpha = enemy_1_info_box._alpha - dead_fade_alpha_1;
}
if (view_2._visible == true) {
if (first_enemy_1._alpha <= 0) {
dead_fade_enemy_1_active = false;
}
} else if (view_4._visible == true) {
if (e2_e1._alpha <= 0) {
dead_fade_enemy_1_active = false;
}
} else if (view_6._visible == true) {
if (boss._alpha <= 0) {
dead_fade_enemy_1_active = false;
}
}
} else if (dead_fade_enemy_1_active == false) {
dead_fade_alpha_power_1 = 0;
dead_fade_enemy_1_timer = 0;
}
if (dead_fade_enemy_2_active == true) {
dead_fade_enemy_2_timer = dead_fade_enemy_2_timer + (1 * frameRateDiff);
if (dead_fade_enemy_2_timer >= 70) {
dead_fade_alpha_power_2 = dead_fade_alpha_power_2 + (0.1 * frameRateDiff);
dead_fade_alpha_2 = Math.pow(dead_fade_alpha_power_2, 3.4);
if (view_2._visible == true) {
first_enemy_2._alpha = first_enemy_2._alpha - dead_fade_alpha_2;
v2_e2_w1_c1_t3 = 15;
v2_e2_w1_c2_t3 = 45;
v2_e2_w1_c1_t3_got = true;
v2_e2_w1_c2_t3_got = true;
if (enemy_2_info_box._visible == true) {
}
} else if (view_4._visible == true) {
e2_e2._alpha = e2_e2._alpha - dead_fade_alpha_2;
e2_e2_icon._alpha = e2_e2_icon._alpha - dead_fade_alpha_2;
v4_e2_w1_c1_t3 = 12;
v4_e2_w2_c1_t3 = 18;
v4_e2_w1_c2_t3 = 36;
v4_e2_w2_c2_t3 = 54;
v4_e2_w1_c1_t3_got = true;
v4_e2_w2_c1_t3_got = true;
v4_e2_w1_c2_t3_got = true;
v4_e2_w2_c2_t3_got = true;
if (enemy_2_info_box._visible == true) {
}
} else if (view_6._visible == true) {
boss._alpha = boss._alpha - dead_fade_alpha_2;
boss_icon._alpha = boss_icon._alpha - dead_fade_alpha_2;
if (enemy_2_info_box._visible == true) {
}
}
HP_enemy_2_disk._alpha = HP_enemy_2_disk._alpha - dead_fade_alpha_2;
robot_icon_2._alpha = robot_icon_2._alpha - dead_fade_alpha_2;
enemy_2_eye_blisters._alpha = enemy_2_eye_blisters._alpha - dead_fade_alpha_2;
enemy_2_info_box._alpha = enemy_2_info_box._alpha - dead_fade_alpha_2;
}
if (view_2._visible == true) {
if ((first_enemy_2._alpha <= 0) && (first_enemy_1._alpha > 0)) {
if (f612081201_flag == 0) {
ease_enemy_1_HP_active = true;
f612081201_flag = 1;
}
}
if (first_enemy_2._alpha <= 0) {
dead_fade_enemy_2_active = false;
}
} else if (view_4._visible == true) {
if ((e2_e2._alpha <= 0) && (e2_e1._alpha > 0)) {
if (f2212081136_flag == 0) {
ease_enemy_1_HP_active = true;
f2212081136_flag = 1;
}
}
if (e2_e2._alpha <= 0) {
dead_fade_enemy_2_active = false;
}
}
} else if (dead_fade_enemy_2_active == false) {
dead_fade_alpha_power_2 = 0;
dead_fade_enemy_2_timer = 0;
}
if (rpg_battle_system_active == true) {
} else if (rpg_battle_system_active == false) {
if (intro_movie_active == false) {
if (pre_battle_movie_1_active == false) {
rpg_help_button._visible = true;
inventory_button._visible = true;
}
}
}
if (show_ingame_speech_message == true) {
rpg_enemy_shot_pause_2_timer = 1;
}
if (battle_won_screen_active == true) {
keys_active = false;
f2612081231_flag = 0;
if (get_weapon_flag == 0) {
battle_won_text.enemy_weapon_collected_mc._visible = true;
rpg_weapon_2_collected = true;
inventory.inventory_weapon_2_icon._visible = true;
inventory.inventory_weapon_2_icon._x = inventory.left_back_hold_box._x;
inventory.inventory_weapon_2_icon._y = inventory.left_back_hold_box._y;
get_weapon_flag = 1;
}
battle_won_text.enemy_weapon_collected_mc._alpha = battle_won_text._alpha;
if (battle_won_screen_once_flag == 0) {
HP_cy10._visible = false;
XP_bar._x = 157.35;
XP_bar._y = 190.35;
if (rpg_level == 1) {
XP_bar.XP_text_total = 120;
battle_won_text.previous_XP_text = XP_bar.XP_text;
battle_won_text.XP_increase_text = 60;
XP_bar.XP_text = XP_bar.XP_text + battle_won_text.XP_increase_text;
if (XP_bar.XP_text >= XP_bar.XP_text_total) {
battle_won_text.level_up_label_mc._visible = true;
rpg_level = 2;
rpg_level_label._amount = 2;
HP_cy10._x = 207.95;
HP_cy10._y = 172;
AIM_bar._x = 161.45;
AIM_bar._y = 242.1;
HP_cy10.HP_text = 180;
HP_cy10.HP_text_total = 180;
battle_won_text.level_up_label_mc.previous_HP_text = 150;
battle_won_text.level_up_label_mc.HP_increase_text = 30;
AIM_bar.AIM_text = 20;
battle_won_text.level_up_label_mc.previous_AIM_text = 15;
battle_won_text.level_up_label_mc.AIM_increase_text = 5;
HP_cy10.hero_inner_bar_mc._width = (HP_cy10.HP_text / HP_cy10.HP_text_total) * 100;
HP_colour.rb = 0;
HP_colour.gb = 123;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_hero_colour.setTransform(HP_colour);
health_red._visible = false;
health_amber._visible = false;
health_green._visible = true;
}
if (battle_won_text.level_up_label_mc._visible == false) {
HP_cy10._visible = true;
}
} else if (rpg_level == 2) {
battle_won_text.level_up_label_mc._visible = false;
XP_bar.XP_text_total = 120;
battle_won_text.previous_XP_text = XP_bar.XP_text;
battle_won_text.XP_increase_text = 60;
XP_bar.XP_text = XP_bar.XP_text + battle_won_text.XP_increase_text;
if (XP_bar.XP_text >= XP_bar.XP_text_total) {
battle_won_text.level_up_label_mc._visible = true;
rpg_level = 3;
rpg_level_label._amount = 3;
HP_cy10._x = 207.95;
HP_cy10._y = 172;
AIM_bar._x = 161.45;
AIM_bar._y = 242.1;
HP_cy10.HP_text = 260;
HP_cy10.HP_text_total = 260;
battle_won_text.level_up_label_mc.previous_HP_text = 180;
battle_won_text.level_up_label_mc.HP_increase_text = 80;
AIM_bar.AIM_text = 25;
battle_won_text.level_up_label_mc.previous_AIM_text = 20;
battle_won_text.level_up_label_mc.AIM_increase_text = 5;
HP_cy10.hero_inner_bar_mc._width = (HP_cy10.HP_text / HP_cy10.HP_text_total) * 100;
HP_colour.rb = 0;
HP_colour.gb = 123;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_hero_colour.setTransform(HP_colour);
health_red._visible = false;
health_amber._visible = false;
health_green._visible = true;
}
if (battle_won_text.level_up_label_mc._visible == false) {
HP_cy10._visible = true;
}
} else if (rpg_level == 3) {
battle_won_text.level_up_label_mc._visible = false;
XP_bar.XP_text_total = 120;
battle_won_text.previous_XP_text = XP_bar.XP_text;
battle_won_text.XP_increase_text = 60;
XP_bar.XP_text = XP_bar.XP_text + battle_won_text.XP_increase_text;
if (battle_won_text.level_up_label_mc._visible == false) {
HP_cy10._visible = true;
}
}
battle_won_screen_once_flag = 1;
}
XP_bar.XP_inner_bar_mc._width = (XP_bar.XP_text / XP_bar.XP_text_total) * 100;
AIM_bar.AIM_inner_bar_mc._width = AIM_bar.AIM_text;
battle_won_screen_timer = battle_won_screen_timer + (1 * frameRateDiff);
if (battle_won_screen_timer >= 20) {
battle_won_box._visible = true;
battle_won_box._alpha = 100;
}
if ((battle_won_screen_timer >= 20) && (battle_won_screen_timer < 30)) {
battle_won_text._visible = true;
battle_won_text._alpha = 0;
XP_bar._visible = true;
XP_bar._alpha = 0;
if (battle_won_text.level_up_label_mc._visible == true) {
HP_cy10._visible = true;
HP_cy10._alpha = 0;
AIM_bar._visible = true;
AIM_bar._alpha = 0;
XP_bar._visible = true;
XP_bar._alpha = 0;
}
} else if ((battle_won_screen_timer >= 30) && (battle_won_text._alpha < 100)) {
battle_won_text._visible = true;
battle_won_text._alpha = battle_won_text._alpha + (10 * frameRateDiff);
XP_bar._visible = true;
XP_bar._alpha = XP_bar._alpha + (10 * frameRateDiff);
if (battle_won_text.level_up_label_mc._visible == true) {
HP_cy10._visible = true;
HP_cy10._alpha = HP_cy10._alpha + (10 * frameRateDiff);
AIM_bar._visible = true;
AIM_bar._alpha = AIM_bar._alpha + (10 * frameRateDiff);
}
} else if ((battle_won_screen_timer >= 30) && (battle_won_text._alpha >= 100)) {
battle_won_text._visible = true;
battle_won_text._alpha = 100;
XP_bar._visible = true;
XP_bar._alpha = 100;
if (battle_won_text.level_up_label_mc._visible == true) {
HP_cy10._visible = true;
HP_cy10._alpha = 100;
AIM_bar._visible = true;
AIM_bar._alpha = 100;
}
}
} else if (battle_won_screen_active == false) {
if (f2612081231_flag == 0) {
AIM_bar._visible = false;
HP_cy10._x = 66;
HP_cy10._y = 3.4;
XP_bar._visible = false;
XP_bar._alpha = 0;
f2612081231_flag = 1;
}
battle_won_screen_once_flag = 0;
battle_won_screen_timer = 0;
battle_won_text._alpha = 0;
battle_won_box._alpha = 0;
battle_won_text._visible = false;
battle_won_box._visible = false;
}
if (collect_object_screen_active == true) {
keys_active = false;
collect_object_screen_timer = collect_object_screen_timer + (1 * frameRateDiff);
if (collect_object_screen_timer >= 0) {
collect_object_box._visible = true;
collect_object_box._alpha = 100;
}
if ((collect_object_screen_timer >= 0) && (collect_object_screen_timer < 10)) {
collect_object_text._visible = true;
collect_object_text._alpha = 0;
} else if ((collect_object_screen_timer >= 10) && (collect_object_text._alpha < 100)) {
collect_object_text._visible = true;
collect_object_text._alpha = collect_object_text._alpha + (10 * frameRateDiff);
} else if ((collect_object_screen_timer >= 10) && (collect_object_text._alpha >= 100)) {
collect_object_text._visible = true;
collect_object_text._alpha = 100;
}
active_collected_object_icon._visible = collect_object_text._visible;
active_collected_object_icon._alpha = collect_object_text._alpha;
} else if (collect_object_screen_active == false) {
collect_object_screen_timer = 0;
collect_object_text._alpha = 0;
collect_object_box._alpha = 0;
collect_object_text._visible = false;
collect_object_box._visible = false;
active_collected_object_icon._visible = collect_object_text._visible;
active_collected_object_icon._alpha = collect_object_text._alpha;
}
if (HP_enemy_1_part_2 < 0) {
HP_enemy_1_part_2 = 0;
} else if (HP_enemy_1_part_2 > 100) {
HP_enemy_1_part_2 = 100;
}
if (HP_enemy_2_part_2 < 0) {
HP_enemy_2_part_2 = 0;
} else if (HP_enemy_2_part_2 > 100) {
HP_enemy_2_part_2 = 100;
}
if (target_green_flash_active == true) {
if (target_green_flash_active_state == 0) {
old_green_flash._visible = false;
target_green_flash_active_state = 1;
} else if (target_green_flash_active_state == 1) {
active_green_flash_mc._visible = true;
active_green_flash_mc._alpha = 100 * Math.sin(health_ticks * 1.1);
if (active_green_flash_mc._alpha <= 50) {
active_green_flash_mc._alpha = 50;
}
old_green_flash = active_green_flash_mc;
}
} else if (target_green_flash_active == false) {
active_green_flash_mc._visible = false;
target_green_flash_active_state = 0;
}
if (ease_target_parts == true) {
target_part_top_left._x = target_part_top_left._x + (((target_tl_x - target_part_top_left._x) / 4) * frameRateDiff);
target_part_top_left._y = target_part_top_left._y + (((target_tl_y - target_part_top_left._y) / 4) * frameRateDiff);
target_part_top_right._x = target_part_top_right._x + (((target_tr_x - target_part_top_right._x) / 4) * frameRateDiff);
target_part_top_right._y = target_part_top_right._y + (((target_tr_y - target_part_top_right._y) / 4) * frameRateDiff);
target_part_bottom_left._x = target_part_bottom_left._x + (((target_bl_x - target_part_bottom_left._x) / 4) * frameRateDiff);
target_part_bottom_left._y = target_part_bottom_left._y + (((target_bl_y - target_part_bottom_left._y) / 4) * frameRateDiff);
target_part_bottom_right._x = target_part_bottom_right._x + (((target_br_x - target_part_bottom_right._x) / 4) * frameRateDiff);
target_part_bottom_right._y = target_part_bottom_right._y + (((target_br_y - target_part_bottom_right._y) / 4) * frameRateDiff);
} else if (ease_target_parts == false) {
ease_target_parts_timer = 0;
}
if (rpg_enemy_shot_pause_2 == true) {
rpg_enemy_shot_pause_2_timer = rpg_enemy_shot_pause_2_timer + (1 * frameRateDiff);
if ((rpg_enemy_shot_pause_2_timer >= 0) && (rpg_enemy_shot_pause_2_timer < 5)) {
if ((enemy_1_eye_blisters._visible == true) || (enemy_2_eye_blisters._visible == true)) {
if (f1611081153_flag == 0) {
if (view_2._visible == true) {
ingame_speech_box_1._visible = true;
ingame_speech_1._visible = true;
show_ingame_speech_message = true;
}
f1611081153_flag = 1;
}
}
} else if (rpg_enemy_shot_pause_2_timer >= 20) {
if (view_2._visible == true) {
if ((first_enemy_1._alpha < 100) && (first_enemy_2._alpha < 100)) {
} else {
rpg_active_flag = 0;
}
} else if (view_4._visible == true) {
if ((e2_e1._alpha < 100) && (e2_e2._alpha < 100)) {
} else {
rpg_active_flag = 0;
}
} else if (view_6._visible == true) {
rpg_active_flag = 0;
}
rpg_enemy_shot_pause_2 = false;
}
} else if (rpg_enemy_shot_pause_2 == false) {
rpg_enemy_shot_pause_2_timer = 0;
}
if (rpg_health_active == true) {
hideAttackButtons();
if (tech_button_3._amount > 0) {
if (rpg_health_active_flag == 0) {
rpg_credit_text._text = 40;
HP_cy10.HP_text = HP_cy10.HP_text + 40;
if (HP_cy10.HP_text >= HP_cy10.HP_text_total) {
HP_cy10.HP_text = HP_cy10.HP_text_total;
}
green_nanoflash_active = true;
_root.s_cyborg_repair_sound.start(0, 1);
rpg_health_active_flag = 1;
}
if (f111081123_flag == 0) {
if ((HP_enemy_1_disk.HP_text > 0) && (HP_enemy_2_disk.HP_text > 0)) {
if ((HP_enemy_1_part_3 > 0) && (HP_enemy_2_part_3 > 0)) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
} else if ((HP_enemy_1_part_3 <= 0) && (HP_enemy_2_part_3 > 0)) {
enemy_fireing = 2;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if ((HP_enemy_1_part_3 > 0) && (HP_enemy_2_part_3 <= 0)) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if ((HP_enemy_1_part_3 <= 0) && (HP_enemy_2_part_3 <= 0)) {
rpg_enemy_gunfire_active = false;
}
} else if ((HP_enemy_1_disk.HP_text <= 0) && (HP_enemy_2_disk.HP_text > 0)) {
if (HP_enemy_2_part_3 > 0) {
enemy_fireing = 2;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if (HP_enemy_2_part_3 <= 0) {
rpg_cyborg_target_hit = 6;
}
} else if ((HP_enemy_1_disk.HP_text > 0) && (HP_enemy_2_disk.HP_text <= 0)) {
if (HP_enemy_1_part_3 > 0) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if (HP_enemy_1_part_3 <= 0) {
rpg_cyborg_target_hit = 6;
}
}
f111081123_flag = 1;
}
set_cyborg_hp_colour();
if (HP_cy10.HP_text >= HP_cy10.HP_text_total) {
HP_cy10.HP_text = HP_cy10.HP_text_total;
}
HP_cy10.hero_inner_bar_mc._width = (HP_cy10.HP_text / HP_cy10.HP_text_total) * 100;
rpg_credit_text_timer = rpg_credit_text_timer + (1 * frameRateDiff);
if ((rpg_credit_text_timer >= 0) && (rpg_credit_text_timer < 3)) {
rpg_credit_text._visible = true;
rpg_credit_text._y = 244;
rpg_credit_text._y = rpg_credit_text._y - (1 * frameRateDiff);
} else if ((rpg_credit_text_timer >= 3) && (rpg_credit_text_timer < 22)) {
rpg_credit_text._y = rpg_credit_text._y - (1 * frameRateDiff);
}
if ((rpg_credit_text_timer >= 22) && (rpg_credit_text_timer < 25)) {
rpg_credit_text._y = rpg_credit_text._y - (1 * frameRateDiff);
} else if (rpg_credit_text_timer >= 25) {
credit_dots_flash_active = true;
tech_button_3._amount = tech_button_3._amount - 1;
rpg_credit_text._visible = false;
if ((HP_enemy_1_part_3 <= 0) && (HP_enemy_2_part_3 <= 0)) {
rpg_enemy_gunfire_active = false;
} else {
rpg_enemy_gunfire_active = true;
}
rpg_health_active = false;
}
} else if (tech_button_3._amount <= 0) {
rpg_health_active = false;
}
} else if (rpg_health_active == false) {
rpg_credit_text_timer = 0;
f111081123_flag = 0;
rpg_health_active_flag = 0;
rpg_credit_text._visible = false;
rpg_credit_text._x = 60.1;
}
if (plasma_explosion_active == true) {
if (f231008250_flag == 0) {
if (rpg_gunfire_active == true) {
plasma_ball_explosion._x = rpg_plasmaball_target._x;
plasma_ball_explosion._y = rpg_plasmaball_target._y;
} else if (rpg_enemy_gunfire_active == true) {
plasma_ball_explosion._x = rpg_cyborg_target._x;
plasma_ball_explosion._y = rpg_cyborg_target._y;
}
f231008250_flag = 1;
}
plasma_ball_explosion._visible = true;
plasma_explosion_timer = plasma_explosion_timer + (1 * frameRateDiff);
if ((plasma_explosion_timer >= 1) && (plasma_explosion_timer < 2)) {
plasma_ball_explosion._alpha = 100;
plasma_ball_explosion._xscale = 100;
plasma_ball_explosion._yscale = 100;
p_ex_max = 360;
p_ex_min = 0;
plasma_ball_explosion._rotation = Math.round(Math.random() * ((p_ex_max - p_ex_min) + 1)) + p_ex_min;
} else if ((plasma_explosion_timer >= 2) and (plasma_explosion_timer < 6)) {
plasma_ball_explosion._xscale = plasma_ball_explosion._xscale + (12 * frameRateDiff);
plasma_ball_explosion._yscale = plasma_ball_explosion._yscale + (12 * frameRateDiff);
plasma_ball_explosion._alpha = plasma_ball_explosion._alpha - (15 * frameRateDiff);
} else if (plasma_explosion_timer >= 6) {
plasma_explosion_active = false;
}
} else if (plasma_explosion_active == false) {
f231008250_flag = 0;
plasma_ball_explosion._visible = false;
click_baddie_flag = 0;
click_baddie_b_flag = 0;
plasma_explosion_timer = 0;
}
if (fade_in_and_ease_mc_active_3 == true) {
if (fade_in_and_ease_mc_flag_3 == 0) {
active_mc_x_dest_3 = active_mc_3._x;
active_mc_y_dest_3 = active_mc_3._y;
active_mc_3._y = 72;
active_mc_3._alpha = 0;
active_mc_3._visible = true;
fade_in_and_ease_mc_flag_3 = 1;
} else if (fade_in_and_ease_mc_flag_3 == 1) {
if (active_mc_3._y < (active_mc_y_dest_3 - 1)) {
active_mc_3._alpha = active_mc_3._alpha + (8 * frameRateDiff);
active_mc_3._x = active_mc_3._x + ((active_mc_x_dest_3 - active_mc_3._x) / 10);
active_mc_3._y = active_mc_3._y + ((active_mc_y_dest_3 - active_mc_3._y) / 10);
} else if (active_mc_3._y >= (active_mc_y_dest_3 - 1)) {
active_mc_3._alpha = 100;
fade_in_and_ease_mc_active_3 = false;
}
}
} else if (fade_in_and_ease_mc_active_3 == false) {
fade_in_and_ease_mc_flag_3 = 0;
}
if (fade_in_and_ease_mc_active == true) {
if (fade_in_and_ease_mc_flag == 0) {
active_mc_x_dest = active_mc._x;
active_mc_y_dest = active_mc._y + 3;
active_mc._y = active_mc._y - 12;
active_mc._alpha = 0;
active_mc._visible = true;
fade_in_and_ease_mc_flag = 1;
} else if (fade_in_and_ease_mc_flag == 1) {
if (active_mc._y < (active_mc_y_dest - 1)) {
active_mc._alpha = active_mc._alpha + (8 * frameRateDiff);
active_mc._x = active_mc._x + ((active_mc_x_dest - active_mc._x) / 10);
active_mc._y = active_mc._y + ((active_mc_y_dest - active_mc._y) / 10);
} else if (active_mc._y >= (active_mc_y_dest - 1)) {
active_mc._alpha = 100;
fade_in_and_ease_mc_active = false;
}
}
} else if (fade_in_and_ease_mc_active == false) {
fade_in_and_ease_mc_flag = 0;
}
if (fade_out_mc_active == true) {
active_mc_2._alpha = active_mc_2._alpha - (8 * frameRateDiff);
if (active_mc_2._alpha <= 0) {
active_mc_2._visible = false;
fade_out_mc_active = false;
}
}
if (fade_out_mc_4_active == true) {
active_mc_4._alpha = active_mc_4._alpha - (8 * frameRateDiff);
if (active_mc_4._alpha <= 0) {
active_mc_4._visible = false;
fade_out_mc_4_active = false;
}
}
}
function timestep_5() {
if (ship_start_view._visible == true) {
large_restart_label._visible = false;
large_restart_label._visible = false;
health_cyborg._visible = false;
health_green._visible = false;
health_amber._visible = false;
health_red._visible = false;
top_right_disks._visible = false;
inventory_button._visible = false;
rpg_help_button._visible = false;
use_text_2_mc._visible = false;
use_text_t._visible = false;
use_text_b._visible = false;
use_text_l._visible = false;
use_text_r._visible = false;
use_text_mc._visible = false;
} else if (game_info_text._visible == true) {
large_restart_label._visible = false;
large_restart_label._visible = false;
health_cyborg._visible = false;
health_green._visible = false;
health_amber._visible = false;
health_red._visible = false;
top_right_disks._visible = false;
inventory_button._visible = false;
rpg_help_button._visible = false;
use_text_2_mc._visible = false;
use_text_t._visible = false;
use_text_b._visible = false;
use_text_l._visible = false;
use_text_r._visible = false;
use_text_mc._visible = false;
} else if (controls_icon._visible == true) {
large_restart_label._visible = false;
large_restart_label._visible = false;
health_cyborg._visible = false;
health_green._visible = false;
health_amber._visible = false;
health_red._visible = false;
top_right_disks._visible = false;
inventory_button._visible = false;
rpg_help_button._visible = false;
use_text_2_mc._visible = false;
use_text_t._visible = false;
use_text_b._visible = false;
use_text_l._visible = false;
use_text_r._visible = false;
use_text_mc._visible = false;
}
if (show_old_prev_check == true) {
}
if (view_6._visible == true) {
if (shield_bar.HP_text <= 0) {
shield_bar._visible = false;
}
}
rpg_cyborg.onRelease = function () {
clear_sub_battle_menus();
};
rpg_cyborg.useHandCursor = false;
if (view_2._visible == true) {
view_2.onRelease = function () {
clear_sub_battle_menus();
};
view_2.useHandCursor = false;
}
if (view_4._visible == true) {
view_4.onRelease = function () {
clear_sub_battle_menus();
};
view_4.useHandCursor = false;
}
if (view_6._visible == true) {
view_6.onRelease = function () {
clear_sub_battle_menus();
};
view_6.useHandCursor = false;
}
if (shield_bar._visible == true) {
if (shield_bar.HP_text <= 0) {
shield_bar.HP_text = 0;
}
}
if (cyborg_shield_bar._visible == true) {
if (cyborg_shield_bar.HP_text <= 0) {
cyborg_shield_bar.HP_text = 0;
}
}
if (debit_dots_flash_active == true) {
if (f30309309_flag == 0) {
debit_dots._x = rpg_debit_text._x;
debit_dots._y = rpg_debit_text._y;
shield_dots._x = rpg_shield_text._x;
shield_dots._y = rpg_shield_text._y;
cyborg_shield_dots._x = rpg_cyborg_shield_text._x;
cyborg_shield_dots._y = rpg_cyborg_shield_text._y;
f30309309_flag = 1;
}
debit_dots_timer = debit_dots_timer + (1 * frameRateDiff);
if ((debit_dots_timer >= 0) && (debit_dots_timer < 2)) {
debit_dots._visible = true;
if ((cyborg_shield_bar._visible == true) && (rpg_debit_text._x < 200)) {
cyborg_shield_dots._visible = true;
}
if ((shield_bar._visible == true) && (rpg_debit_text._x > 200)) {
shield_dots._visible = true;
}
} else if ((debit_dots_timer >= 2) && (debit_dots_timer < 4)) {
debit_dots._visible = false;
if ((cyborg_shield_bar._visible == true) && (rpg_debit_text._x < 200)) {
cyborg_shield_dots._visible = false;
}
if ((shield_bar._visible == true) && (rpg_debit_text._x > 200)) {
shield_dots._visible = false;
}
} else if ((debit_dots_timer >= 4) && (debit_dots_timer < 6)) {
debit_dots._visible = true;
if ((cyborg_shield_bar._visible == true) && (rpg_debit_text._x < 200)) {
cyborg_shield_dots._visible = true;
}
if ((shield_bar._visible == true) && (rpg_debit_text._x > 200)) {
shield_dots._visible = true;
}
} else if ((debit_dots_timer >= 6) && (debit_dots_timer < 8)) {
debit_dots._visible = false;
if ((cyborg_shield_bar._visible == true) && (rpg_debit_text._x < 200)) {
cyborg_shield_dots._visible = false;
}
if ((shield_bar._visible == true) && (rpg_debit_text._x > 200)) {
shield_dots._visible = false;
}
debit_dots_flash_active = false;
}
} else if (debit_dots_flash_active == false) {
f30309309_flag = 0;
debit_dots_timer = 0;
}
if (credit_dots_flash_active == true) {
credit_dots._x = rpg_credit_text._x;
credit_dots._y = rpg_credit_text._y;
credit_dots_timer = credit_dots_timer + (1 * frameRateDiff);
if ((credit_dots_timer >= 0) && (credit_dots_timer < 2)) {
credit_dots._visible = true;
} else if ((credit_dots_timer >= 2) && (credit_dots_timer < 4)) {
credit_dots._visible = false;
} else if ((credit_dots_timer >= 4) && (credit_dots_timer < 6)) {
credit_dots._visible = true;
} else if ((credit_dots_timer >= 6) && (credit_dots_timer < 8)) {
credit_dots._visible = false;
credit_dots_flash_active = false;
}
} else if (credit_dots_flash_active == false) {
credit_dots_timer = 0;
}
if (get_debit_text_active_b == true) {
if (active_get_debit_text == "set_v2_e1_w1_c1_t2") {
v2_e1_w1_c1_t2 = rpg_debit_text._text;
v2_e1_w1_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e1_w1_c1_t3") {
v2_e1_w1_c1_t3 = rpg_debit_text._text;
v2_e1_w1_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e1_w1_c2_t2") {
v2_e1_w1_c2_t2 = rpg_debit_text._text;
v2_e1_w1_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e1_w1_c2_t3") {
v2_e1_w1_c2_t3 = rpg_debit_text._text;
v2_e1_w1_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e1_w2_c1_t2") {
v2_e1_w2_c1_t2 = rpg_debit_text._text;
v2_e1_w2_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e1_w2_c1_t3") {
v2_e1_w2_c1_t3 = rpg_debit_text._text;
v2_e1_w2_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e1_w2_c2_t2") {
v2_e1_w2_c2_t2 = rpg_debit_text._text;
v2_e1_w2_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e1_w2_c2_t3") {
v2_e1_w2_c2_t3 = rpg_debit_text._text;
v2_e1_w2_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
}
if (active_get_debit_text == "set_v2_e2_w1_c1_t2") {
v2_e2_w1_c1_t2 = rpg_debit_text._text;
v2_e2_w1_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e2_w1_c1_t3") {
v2_e2_w1_c1_t3 = rpg_debit_text._text;
v2_e2_w1_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e2_w1_c2_t2") {
v2_e2_w1_c2_t2 = rpg_debit_text._text;
v2_e2_w1_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e2_w1_c2_t3") {
v2_e2_w1_c2_t3 = rpg_debit_text._text;
v2_e2_w1_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e2_w2_c1_t2") {
v2_e2_w2_c1_t2 = rpg_debit_text._text;
v2_e2_w2_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e2_w2_c1_t3") {
v2_e2_w2_c1_t3 = rpg_debit_text._text;
v2_e2_w2_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e2_w2_c2_t2") {
v2_e2_w2_c2_t2 = rpg_debit_text._text;
v2_e2_w2_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v2_e2_w2_c2_t3") {
v2_e2_w2_c2_t3 = rpg_debit_text._text;
v2_e2_w2_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
}
if (active_get_debit_text == "set_v4_e1_w1_c1_t2") {
v4_e1_w1_c1_t2 = rpg_debit_text._text;
v4_e1_w1_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e1_w1_c1_t3") {
v4_e1_w1_c1_t3 = rpg_debit_text._text;
v4_e1_w1_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e1_w1_c2_t2") {
v4_e1_w1_c2_t2 = rpg_debit_text._text;
v4_e1_w1_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e1_w1_c2_t3") {
v4_e1_w1_c2_t3 = rpg_debit_text._text;
v4_e1_w1_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e1_w2_c1_t2") {
v4_e1_w2_c1_t2 = rpg_debit_text._text;
v4_e1_w2_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e1_w2_c1_t3") {
v4_e1_w2_c1_t3 = rpg_debit_text._text;
v4_e1_w2_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e1_w2_c2_t2") {
v4_e1_w2_c2_t2 = rpg_debit_text._text;
v4_e1_w2_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e1_w2_c2_t3") {
v4_e1_w2_c2_t3 = rpg_debit_text._text;
v4_e1_w2_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
}
if (active_get_debit_text == "set_v4_e2_w1_c1_t2") {
v4_e2_w1_c1_t2 = rpg_debit_text._text;
v4_e2_w1_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e2_w1_c1_t3") {
v4_e2_w1_c1_t3 = rpg_debit_text._text;
v4_e2_w1_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e2_w1_c2_t2") {
v4_e2_w1_c2_t2 = rpg_debit_text._text;
v4_e2_w1_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e2_w1_c2_t3") {
v4_e2_w1_c2_t3 = rpg_debit_text._text;
v4_e2_w1_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e2_w2_c1_t2") {
v4_e2_w2_c1_t2 = rpg_debit_text._text;
v4_e2_w2_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e2_w2_c1_t3") {
v4_e2_w2_c1_t3 = rpg_debit_text._text;
v4_e2_w2_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e2_w2_c2_t2") {
v4_e2_w2_c2_t2 = rpg_debit_text._text;
v4_e2_w2_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v4_e2_w2_c2_t3") {
v4_e2_w2_c2_t3 = rpg_debit_text._text;
v4_e2_w2_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
}
if (active_get_debit_text == "set_v6_e1_w1_c1_t2") {
v6_e1_w1_c1_t2 = rpg_debit_text._text;
v6_e1_w1_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e1_w1_c1_t3") {
v6_e1_w1_c1_t3 = rpg_debit_text._text;
v6_e1_w1_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e1_w1_c2_t2") {
v6_e1_w1_c2_t2 = rpg_debit_text._text;
v6_e1_w1_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e1_w1_c2_t3") {
v6_e1_w1_c2_t3 = rpg_debit_text._text;
v6_e1_w1_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e1_w2_c1_t2") {
v6_e1_w2_c1_t2 = rpg_debit_text._text;
v6_e1_w2_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e1_w2_c1_t3") {
v6_e1_w2_c1_t3 = rpg_debit_text._text;
v6_e1_w2_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e1_w2_c2_t2") {
v6_e1_w2_c2_t2 = rpg_debit_text._text;
v6_e1_w2_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e1_w2_c2_t3") {
v6_e1_w2_c2_t3 = rpg_debit_text._text;
v6_e1_w2_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
}
if (active_get_debit_text == "set_v6_e2_w1_c1_t2") {
v6_e2_w1_c1_t2 = rpg_debit_text._text;
v6_e2_w1_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e2_w1_c1_t3") {
v6_e2_w1_c1_t3 = rpg_debit_text._text;
v6_e2_w1_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e2_w1_c2_t2") {
v6_e2_w1_c2_t2 = rpg_debit_text._text;
v6_e2_w1_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e2_w1_c2_t3") {
v6_e2_w1_c2_t3 = rpg_debit_text._text;
v6_e2_w1_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e2_w2_c1_t2") {
v6_e2_w2_c1_t2 = rpg_debit_text._text;
v6_e2_w2_c2_t2 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e2_w2_c1_t3") {
v6_e2_w2_c1_t3 = rpg_debit_text._text;
v6_e2_w2_c2_t3 = rpg_debit_text._text * 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e2_w2_c2_t2") {
v6_e2_w2_c2_t2 = rpg_debit_text._text;
v6_e2_w2_c1_t2 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
} else if (active_get_debit_text == "set_v6_e2_w2_c2_t3") {
v6_e2_w2_c2_t3 = rpg_debit_text._text;
v6_e2_w2_c1_t3 = rpg_debit_text._text / 3;
get_debit_text_active_b = false;
}
}
}
function rpg_cyborg_shield_timestep() {
if (rpg_cyborg_shield_active == true) {
if (f212091146_flag == 0) {
if ((HP_enemy_1_disk.HP_text > 0) && (HP_enemy_2_disk.HP_text > 0)) {
if ((HP_enemy_1_part_3 > 0) && (HP_enemy_2_part_3 > 0)) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
} else if ((HP_enemy_1_part_3 <= 0) && (HP_enemy_2_part_3 > 0)) {
enemy_fireing = 2;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if ((HP_enemy_1_part_3 > 0) && (HP_enemy_2_part_3 <= 0)) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if ((HP_enemy_1_part_3 <= 0) && (HP_enemy_2_part_3 <= 0)) {
rpg_active_flag = 0;
rpg_enemy_gunfire_active = false;
}
} else if ((HP_enemy_1_disk.HP_text <= 0) && (HP_enemy_2_disk.HP_text > 0)) {
if (HP_enemy_2_part_3 > 0) {
enemy_fireing = 2;
if (view_2._visible == true) {
rpg_enemy_shot._x = 409.15;
rpg_enemy_shot._y = 176.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 398.3;
rpg_enemy_shot._y = 223.25;
e2_shot._x = 412.9;
e2_shot._y = 196;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if (HP_enemy_2_part_3 <= 0) {
rpg_cyborg_target_hit = 6;
}
} else if ((HP_enemy_1_disk.HP_text > 0) && (HP_enemy_2_disk.HP_text <= 0)) {
if (HP_enemy_1_part_3 > 0) {
enemy_fireing = 1;
if (view_2._visible == true) {
rpg_enemy_shot._x = 350.15;
rpg_enemy_shot._y = 173.5;
} else if (view_4._visible == true) {
rpg_enemy_shot._x = 308.3;
rpg_enemy_shot._y = 222.25;
e2_shot._x = 322.95;
e2_shot._y = 190;
} else if (view_6._visible == true) {
rpg_enemy_shot._x = 303.3;
rpg_enemy_shot._y = 234.25;
}
rpg_cyborg_target_hit = 3;
} else if (HP_enemy_1_part_3 <= 0) {
rpg_cyborg_target_hit = 6;
}
}
f212091146_flag = 1;
}
if (f212091216_flag == 0) {
rpg_cyborg_shield._visible = true;
rpg_cyborg_shield._alpha = 0;
f212091216_flag = 1;
}
rpg_cyborg_shield._alpha = rpg_cyborg_shield._alpha + (2 * frameRateDiff);
if (rpg_cyborg_shield._alpha >= 24) {
rpg_enemy_gunfire_active = true;
rpg_cyborg_shield_active = false;
}
} else if (rpg_cyborg_shield_active == false) {
f212091216_flag = 0;
}
}
function explosion_light_timestep() {
if (background_explosion_light_active == true) {
if (background_explosion_flag == 0) {
background_explosion_light._y = background_explosion_light._y - 20;
bel_max = 500;
bel_min = 1;
background_explosion_light._x = Math.round(Math.random() * ((bel_max - bel_min) + 1)) + bel_min;
background_explosion_ease = "up";
background_explosion_light._visible = true;
background_explosion_light._alpha = 1;
background_explosion_flag = 1;
}
if (background_explosion_ease == "up") {
background_explosion_light._alpha = background_explosion_light._alpha + (((100 - background_explosion_light._alpha) / 10) * frameRateDiff);
} else if (background_explosion_ease == "down") {
background_explosion_light._alpha = background_explosion_light._alpha + (((-5 - background_explosion_light._alpha) / 12) * frameRateDiff);
}
if (background_explosion_light._alpha >= 80) {
background_explosion_ease = "down";
}
if (background_explosion_light._alpha <= 0) {
background_explosion_light_active = false;
}
} else if (background_explosion_light_active == false) {
background_explosion_light._x = 88.45;
background_explosion_light._y = 176.35;
background_explosion_flag = 0;
background_explosion_light._visible = false;
background_explosion_light._alpha = 1;
}
}
function check_health_amounts() {
if (tech_button_4._amount == 0) {
inventory.inventory_shield_bot_icon._visible = false;
inventory.inventory_shield_bot_icon._alpha = 0;
} else if (tech_button_4._amount == 1) {
inventory.inventory_shield_bot_icon._visible = true;
inventory.inventory_shield_bot_icon._alpha = 0;
}
if (tech_button_3._amount == 1) {
inventory.rpg_health_bot_icon_1._visible = true;
inventory.rpg_health_bot_icon_1._alpha = 0;
inventory.rpg_health_bot_icon_2._visible = false;
inventory.rpg_health_bot_icon_2._alpha = 0;
inventory.rpg_health_bot_icon_3._visible = false;
inventory.rpg_health_bot_icon_3._alpha = 0;
inventory.rpg_health_bot_icon_4._visible = false;
inventory.rpg_health_bot_icon_4._alpha = 0;
} else if (tech_button_3._amount == 2) {
inventory.rpg_health_bot_icon_1._visible = true;
inventory.rpg_health_bot_icon_1._alpha = 0;
inventory.rpg_health_bot_icon_2._visible = true;
inventory.rpg_health_bot_icon_2._alpha = 0;
inventory.rpg_health_bot_icon_3._visible = false;
inventory.rpg_health_bot_icon_3._alpha = 0;
inventory.rpg_health_bot_icon_4._visible = false;
inventory.rpg_health_bot_icon_4._alpha = 0;
} else if (tech_button_3._amount == 3) {
inventory.rpg_health_bot_icon_1._visible = true;
inventory.rpg_health_bot_icon_1._alpha = 0;
inventory.rpg_health_bot_icon_2._visible = true;
inventory.rpg_health_bot_icon_2._alpha = 0;
inventory.rpg_health_bot_icon_3._visible = true;
inventory.rpg_health_bot_icon_3._alpha = 0;
inventory.rpg_health_bot_icon_4._visible = false;
inventory.rpg_health_bot_icon_4._alpha = 0;
} else if (tech_button_3._amount == 4) {
inventory.rpg_health_bot_icon_1._visible = true;
inventory.rpg_health_bot_icon_1._alpha = 0;
inventory.rpg_health_bot_icon_2._visible = true;
inventory.rpg_health_bot_icon_2._alpha = 0;
inventory.rpg_health_bot_icon_3._visible = true;
inventory.rpg_health_bot_icon_3._alpha = 0;
inventory.rpg_health_bot_icon_4._visible = true;
inventory.rpg_health_bot_icon_4._alpha = 0;
}
}
function set_cyborg_hp_colour() {
if (HP_cy10.HP_text < HP_cy10.HP_text_total) {
if ((HP_cy10.hero_inner_bar_mc._width >= 0) && (HP_cy10.hero_inner_bar_mc._width < 33)) {
HP_colour.rb = 179;
HP_colour.gb = 0;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_hero_colour.setTransform(HP_colour);
health_red._visible = true;
health_amber._visible = false;
health_green._visible = false;
} else if ((HP_cy10.hero_inner_bar_mc._width >= 33) && (HP_cy10.hero_inner_bar_mc._width < 66)) {
HP_colour.rb = 195;
HP_colour.gb = 100;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_hero_colour.setTransform(HP_colour);
health_red._visible = false;
health_amber._visible = true;
health_green._visible = false;
} else if ((HP_cy10.hero_inner_bar_mc._width >= 66) && (HP_cy10.hero_inner_bar_mc._width < 101)) {
HP_colour.rb = 0;
HP_colour.gb = 123;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_hero_colour.setTransform(HP_colour);
health_red._visible = false;
health_amber._visible = false;
health_green._visible = true;
}
}
}
function ui_help_timestep() {
if (show_ui_help_active == true) {
suia_timer = suia_timer + (1 * frameRateDiff);
UI_help_box._visible = true;
UI_help_box._alpha = 100;
if ((suia_timer >= 0) && (suia_timer < 10)) {
UI_help._visible = true;
UI_help._alpha = 0;
} else if ((suia_timer >= 10) && (UI_help._alpha < 100)) {
UI_help._visible = true;
UI_help._alpha = UI_help._alpha + (10 * frameRateDiff);
} else if ((suia_timer >= 10) && (UI_help._alpha >= 100)) {
UI_help._visible = true;
UI_help._alpha = 100;
}
} else if (show_ui_help_active == false) {
suia_timer = 0;
UI_help._visible = false;
UI_help._alpha = 0;
UI_help_box._visible = false;
UI_help_box._alpha = 0;
}
}
function prev_attack_timestep() {
if (prev_attack_box_active == true) {
if (prev_attack_active_flag == 0) {
prev_attack_box._x = rpg_target._x;
prev_attack_box._y = rpg_target._y - 4;
prev_attack_box._text = active_prev_text;
prev_attack_box._visible = true;
prev_attack_box._alpha = 0;
prev_attack_active_flag = 1;
}
prev_attack_box._alpha = prev_attack_box._alpha + (4 * frameRateDiff);
if (prev_attack_box._alpha >= 100) {
prev_attack_box._alpha = 100;
}
} else if (prev_attack_box_active == false) {
prev_attack_box._text = "";
prev_attack_active_flag = 0;
prev_attack_box._visible = false;
}
}
function clear_prev_attacks_got() {
e1_w1_c1_t2_got = false;
e1_w1_c2_t2_got = false;
e1_w2_c1_t2_got = false;
e1_w2_c2_t2_got = false;
e2_w1_c1_t2_got = false;
e2_w1_c2_t2_got = false;
e2_w2_c1_t2_got = false;
e2_w2_c2_t2_got = false;
e1_w1_c1_t3_got = false;
e1_w1_c2_t3_got = false;
e1_w2_c1_t3_got = false;
e1_w2_c2_t3_got = false;
e2_w1_c1_t3_got = false;
e2_w1_c2_t3_got = false;
e2_w2_c1_t3_got = false;
e2_w2_c2_t3_got = false;
}
someListener = new Object();
someListener2 = new Object();
keyListenerUp = new Object();
keyListenerUpLoad = new Object();
keyListenerDown = new Object();
keyListenerDown2 = new Object();
keyListenerDown3 = new Object();
keyListenerTests = new Object();
keyListenerTestsUp = new Object();
System.security.allowDomain(domainToAllow);
plasma_ball._alpha = 0;
lying_blood._visible = false;
baddie_sprite_sheet._visible = false;
thor_baddie_sprite_sheet._visible = false;
green_nanoflash.cacheAsBitmap = true;
green_nanoflash_mask.cacheAsBitmap = true;
green_nanoflash.setMask("green_nanoflash_mask");
boss_shield.cacheAsBitmap = true;
boss_shield_mask.cacheAsBitmap = true;
boss_shield.setMask("boss_shield_mask");
fresh_blood_rotation = 90;
myBitmap = new flash.display.BitmapData(256, 86, true, 16777215);
this.createEmptyMovieClip("holder_mc", bitmap_data_holder_layer_1.getDepth());
holder_mc.attachBitmap(myBitmap, 1);
holder_mc._visible = false;
myBitmap2 = new flash.display.BitmapData(700, 400, true, 16777215);
holder_mc2.attachBitmap(myBitmap2, 1);
holder_mc2._visible = false;
myBitmap2_b = new flash.display.BitmapData(700, 400, true, 16777215);
holder_mc2_b.attachBitmap(myBitmap2_b, 1);
holder_mc2_b._visible = false;
baddie_sprite_sheet_bitmap = new flash.display.BitmapData(1200, 120, true, 16777215);
this.createEmptyMovieClip("baddie_sprite_sheet_bitmap_holder_mc", 1);
baddie_sprite_sheet_bitmap_holder_mc.attachBitmap(baddie_sprite_sheet_bitmap, 1);
baddie_sprite_sheet_bitmap_holder_mc._visible = false;
baddie_bitmap = new flash.display.BitmapData(60, 60, true, 16777215);
baddie_bitmap_mc.attachBitmap(baddie_bitmap, 1, "never", true);
baddie_bitmap_mc._visible = true;
baddie_bitmap_f = new flash.display.BitmapData(60, 60, true, 16777215);
baddie_bitmap_mc_f.attachBitmap(baddie_bitmap_f, 1, "never", true);
baddie_bitmap_mc_f._visible = true;
baddie_sprite_sheet_bitmap.draw(baddie_sprite_sheet);
thor_baddie_sprite_sheet_bitmap = new flash.display.BitmapData(1425, 100, true, 16777215);
this.createEmptyMovieClip("thor_baddie_sprite_sheet_bitmap_holder_mc", 1);
thor_baddie_sprite_sheet_bitmap_holder_mc.attachBitmap(thor_baddie_sprite_sheet_bitmap, 1);
thor_baddie_sprite_sheet_bitmap_holder_mc._visible = false;
thor_baddie_bitmap = new flash.display.BitmapData(700, 400, true, 16777215);
thor_baddie_bitmap_mc.attachBitmap(thor_baddie_bitmap, 1, "never", true);
thor_baddie_bitmap_mc._visible = true;
thor_baddie_sprite_sheet_bitmap.draw(thor_baddie_sprite_sheet);
energy_wave_bitmap = new flash.display.BitmapData(200, 200, true, 16777215);
this.createEmptyMovieClip("energy_wave_bitmap_holder_mc", 1);
energy_wave_bitmap_holder_mc.attachBitmap(energy_wave_bitmap, 1);
energy_wave_bitmap_holder_mc._visible = false;
energy_wave_bitmap_main = new flash.display.BitmapData(200, 200, true, 16777215);
this.createEmptyMovieClip("energy_wave_bitmap_mc", 1);
energy_wave_bitmap_mc.attachBitmap(energy_wave_bitmap_main, 1, "never", true);
energy_wave_bitmap_mc._visible = true;
energy_wave_bitmap.draw(starting_energy_wave);
energy_wave_bitmap_2 = new flash.display.BitmapData(200, 200, true, 16777215);
this.createEmptyMovieClip("energy_wave_bitmap_holder_mc_2", 1);
energy_wave_bitmap_holder_mc_2.attachBitmap(energy_wave_bitmap_2, 1);
energy_wave_bitmap_holder_mc_2._visible = false;
energy_wave_bitmap_main_2 = new flash.display.BitmapData(700, 400, true, 16777215);
this.createEmptyMovieClip("energy_wave_bitmap_mc_2", 1);
energy_wave_bitmap_mc_2.attachBitmap(energy_wave_bitmap_main_2, 1, "never", true);
energy_wave_bitmap_mc_2._visible = true;
energy_wave_bitmap_2.draw(starting_energy_wave_2);
energy_wave_bitmap_mc._x = 100;
energy_wave_bitmap_mc._y = 100;
melt_hole_bitmap = new flash.display.BitmapData(64, 64, true, 16777215);
melt_hole_bitmap.draw(melt_hole);
cyborg_standing_bitmap = new flash.display.BitmapData(700, 400, true, 16777215);
cyborg_standing_mc.attachBitmap(cyborg_standing_bitmap, 1, "never", true);
cyborg_standing_mc._visible = false;
lying_blood.fresh_blood._xscale = 60;
lying_blood.fresh_blood._yscale = 60;
thorn_blood_bitmap = new flash.display.BitmapData(400, 400, true, 16777215);
thorn_blood_bitmap.draw(lying_blood);
myBitmapErase = new flash.display.BitmapData(700, 400, true, 16777215);
this.createEmptyMovieClip("holder_mc3", bitmap_data_holder_layer_3.getDepth());
holder_mc3.attachBitmap(myBitmapErase, 1);
holder_mc3._visible = false;
myBitmapErase.draw(erasing_mc);
var alpha_bitmap = flash.display.BitmapData.loadBitmap("fresh_blood_alpha");
var starting_energy_wave_alpha_bitmap = flash.display.BitmapData.loadBitmap("starting_energy_wave_a");
var starting_energy_wave_alpha_bitmap_2 = flash.display.BitmapData.loadBitmap("starting_energy_wave_a_2");
var melt_hole_alpha_bitmap = flash.display.BitmapData.loadBitmap("melt_hole_a");
plasmaball_targeter_PosX = 0;
plasmaball_targeter_PosY = 0;
plasmaball_targeter_PosX = plasmaball_targeter._x - view_1._x;
plasmaball_targeter_PosY = plasmaball_targeter._y - view_1._y;
view1EntryAPosX = 0;
view1EntryAPosY = 0;
view1EntryAPosX = view_1_entrypoint_a._x - view_1._x;
view1EntryAPosY = view_1_entrypoint_a._y - view_1._y;
view2EntryAPosX = 0;
view2EntryAPosY = 0;
view2EntryAPosX = view_2_entrypoint_a._x - view_1._x;
view2EntryAPosY = view_2_entrypoint_a._y - view_1._y;
view3EntryAPosX = 0;
view3EntryAPosY = 0;
view3EntryAPosX = view_3_entrypoint_a._x - view_1._x;
view3EntryAPosY = view_3_entrypoint_a._y - view_1._y;
view4EntryAPosX = 0;
view4EntryAPosY = 0;
view4EntryAPosX = view_4_entrypoint_a._x - view_1._x;
view4EntryAPosY = view_4_entrypoint_a._y - view_1._y;
view5EntryAPosX = 0;
view5EntryAPosY = 0;
view5EntryAPosX = view_5_entrypoint_a._x - view_1._x;
view5EntryAPosY = view_5_entrypoint_a._y - view_1._y;
view6EntryAPosX = 0;
view6EntryAPosY = 0;
view6EntryAPosX = view_6_entrypoint_a._x - view_1._x;
view6EntryAPosY = view_6_entrypoint_a._y - view_1._y;
view7EntryAPosX = 0;
view7EntryAPosY = 0;
view7EntryAPosX = view_7_entrypoint_a._x - view_1._x;
view7EntryAPosY = view_7_entrypoint_a._y - view_1._y;
view8EntryAPosX = 0;
view8EntryAPosY = 0;
view8EntryAPosX = view_8_entrypoint_a._x - view_1._x;
view8EntryAPosY = view_8_entrypoint_a._y - view_1._y;
view1EntryBPosX = 0;
view1EntryBPosY = 0;
view1EntryBPosX = view_1_entrypoint_b._x - view_1._x;
view1EntryBPosY = view_1_entrypoint_b._y - view_1._y;
view2EntryBPosX = 0;
view2EntryBPosY = 0;
view2EntryBPosX = view_2_entrypoint_b._x - view_1._x;
view2EntryBPosY = view_2_entrypoint_b._y - view_1._y;
view3EntryBPosX = 0;
view3EntryBPosY = 0;
view3EntryBPosX = view_3_entrypoint_b._x - view_1._x;
view3EntryBPosY = view_3_entrypoint_b._y - view_1._y;
view4EntryBPosX = 0;
view4EntryBPosY = 0;
view4EntryBPosX = view_4_entrypoint_b._x - view_1._x;
view4EntryBPosY = view_4_entrypoint_b._y - view_1._y;
view5EntryBPosX = 0;
view5EntryBPosY = 0;
view5EntryBPosX = view_5_entrypoint_b._x - view_1._x;
view5EntryBPosY = view_5_entrypoint_b._y - view_1._y;
view6EntryBPosX = 0;
view6EntryBPosY = 0;
view6EntryBPosX = view_6_entrypoint_b._x - view_1._x;
view6EntryBPosY = view_6_entrypoint_b._y - view_1._y;
view7EntryBPosX = 0;
view7EntryBPosY = 0;
view7EntryBPosX = view_7_entrypoint_b._x - view_1._x;
view7EntryBPosY = view_7_entrypoint_b._y - view_1._y;
view8EntryBPosX = 0;
view8EntryBPosY = 0;
view8EntryBPosX = view_8_entrypoint_b._x - view_1._x;
view8EntryBPosY = view_8_entrypoint_b._y - view_1._y;
view1EntryCPosX = 0;
view1EntryCPosY = 0;
view1EntryCPosX = view_1_entrypoint_c._x - view_1._x;
view1EntryCPosY = view_1_entrypoint_c._y - view_1._y;
view2EntryCPosX = 0;
view2EntryCPosY = 0;
view2EntryCPosX = view_2_entrypoint_c._x - view_1._x;
view2EntryCPosY = view_2_entrypoint_c._y - view_1._y;
view3EntryCPosX = 0;
view3EntryCPosY = 0;
view3EntryCPosX = view_3_entrypoint_c._x - view_1._x;
view3EntryCPosY = view_3_entrypoint_c._y - view_1._y;
view4EntryCPosX = 0;
view4EntryCPosY = 0;
view4EntryCPosX = view_4_entrypoint_c._x - view_1._x;
view4EntryCPosY = view_4_entrypoint_c._y - view_1._y;
view5EntryCPosX = 0;
view5EntryCPosY = 0;
view5EntryCPosX = view_5_entrypoint_c._x - view_1._x;
view5EntryCPosY = view_5_entrypoint_c._y - view_1._y;
view6EntryCPosX = 0;
view6EntryCPosY = 0;
view6EntryCPosX = view_6_entrypoint_c._x - view_1._x;
view6EntryCPosY = view_6_entrypoint_c._y - view_1._y;
view7EntryCPosX = 0;
view7EntryCPosY = 0;
view7EntryCPosX = view_7_entrypoint_c._x - view_1._x;
view7EntryCPosY = view_7_entrypoint_c._y - view_1._y;
view8EntryCPosX = 0;
view8EntryCPosY = 0;
view8EntryCPosX = view_8_entrypoint_c._x - view_1._x;
view8EntryCPosY = view_8_entrypoint_c._y - view_1._y;
view1EntryDPosX = 0;
view1EntryDPosY = 0;
view1EntryDPosX = view_1_entrypoint_d._x - view_1._x;
view1EntryDPosY = view_1_entrypoint_d._y - view_1._y;
view2EntryDPosX = 0;
view2EntryDPosY = 0;
view2EntryDPosX = view_2_entrypoint_d._x - view_1._x;
view2EntryDPosY = view_2_entrypoint_d._y - view_1._y;
view3EntryDPosX = 0;
view3EntryDPosY = 0;
view3EntryDPosX = view_3_entrypoint_d._x - view_1._x;
view3EntryDPosY = view_3_entrypoint_d._y - view_1._y;
view4EntryDPosX = 0;
view4EntryDPosY = 0;
view4EntryDPosX = view_4_entrypoint_d._x - view_1._x;
view4EntryDPosY = view_4_entrypoint_d._y - view_1._y;
view5EntryDPosX = 0;
view5EntryDPosY = 0;
view5EntryDPosX = view_5_entrypoint_d._x - view_1._x;
view5EntryDPosY = view_5_entrypoint_d._y - view_1._y;
view6EntryDPosX = 0;
view6EntryDPosY = 0;
view6EntryDPosX = view_6_entrypoint_d._x - view_1._x;
view6EntryDPosY = view_6_entrypoint_d._y - view_1._y;
view7EntryDPosX = 0;
view7EntryDPosY = 0;
view7EntryDPosX = view_7_entrypoint_d._x - view_1._x;
view7EntryDPosY = view_7_entrypoint_d._y - view_1._y;
view8EntryDPosX = 0;
view8EntryDPosY = 0;
view8EntryDPosX = view_8_entrypoint_d._x - view_1._x;
view8EntryDPosY = view_8_entrypoint_d._y - view_1._y;
isVisible = false;
health_cyborg._visible = false;
health_green._visible = false;
use_text_2._visible = false;
use_text_t._visible = false;
use_text_b._visible = false;
use_text_l._visible = false;
use_text_r._visible = false;
use_hand_collect_obj_f._visible = false;
use_hand_collect_obj_e._visible = false;
use_hand_collect_obj_d._visible = false;
use_hand_collect_obj_b._visible = false;
rpg_level_label._visible = false;
use_text_collect_obj_f._visible = false;
HP_cy10_disk._visible = false;
damage_bar._visible = false;
protection_bar._visible = false;
AIM_bar._visible = false;
rpg_help_button._visible = false;
inventory_box._visible = false;
use_text_collect_object_f._visible = false;
prev_attack_box._visible = false;
f_8409239_flag = 0;
f84091201_flag = 0;
top_right_disks._visible = false;
show_old_prev_check = false;
show_v2_e1_prev_ready = false;
show_v2_e2_prev_ready = false;
show_v4_e1_prev_ready = false;
show_v4_e2_prev_ready = false;
show_v6_e1_prev_ready = false;
show_v6_e2_prev_ready = false;
e1_gun_charge_factor_was_set_at = 1;
e2_gun_charge_factor_was_set_at = 1;
e1_weapon_was_set_at = "weapon_1";
e2_weapon_was_set_at = "weapon_1";
f30309309_flag = 0;
shield_dots._visible = false;
cyborg_shield_dots._visible = false;
credit_dots._visible = false;
debit_dots._visible = false;
debit_dots_timer = 0;
credit_dots_timer = 0;
debit_dots_flash_active = false;
gun_charge_info_box._visible = false;
active_prev_text = "test";
get_debit_text_active_b = false;
rpg_last_view == "view_2";
v2_e1_w1_c1_t3_non_repairing = 0;
v2_e1_w1_c2_t3_non_repairing = 0;
v2_e1_w2_c1_t3_non_repairing = 0;
v2_e1_w2_c2_t3_non_repairing = 0;
v2_e2_w1_c1_t3_non_repairing = 0;
v2_e2_w1_c2_t3_non_repairing = 0;
v2_e2_w2_c1_t3_non_repairing = 0;
v2_e2_w2_c2_t3_non_repairing = 0;
v4_e1_w1_c1_t3_non_repairing = 0;
v4_e1_w1_c2_t3_non_repairing = 0;
v4_e1_w2_c1_t3_non_repairing = 0;
v4_e1_w2_c2_t3_non_repairing = 0;
v4_e2_w1_c1_t3_non_repairing = 0;
v4_e2_w1_c2_t3_non_repairing = 0;
v4_e2_w2_c1_t3_non_repairing = 0;
v4_e2_w2_c2_t3_non_repairing = 0;
v6_e1_w1_c1_t3_non_repairing = 0;
v6_e1_w1_c2_t3_non_repairing = 0;
v6_e1_w2_c1_t3_non_repairing = 0;
v6_e1_w2_c2_t3_non_repairing = 0;
v6_e2_w1_c1_t3_non_repairing = 0;
v6_e2_w1_c2_t3_non_repairing = 0;
v6_e2_w2_c1_t3_non_repairing = 0;
v6_e2_w2_c2_t3_non_repairing = 0;
prev_attack_active_flag = 0;
active_get_debit_text = "";
get_debit_text_active = false;
prev_attack_box_active = false;
v2_e1_w1_c1_t2_got = false;
v2_e1_w1_c2_t2_got = false;
v2_e1_w2_c1_t2_got = false;
v2_e1_w2_c2_t2_got = false;
v2_e2_w1_c1_t2_got = false;
v2_e2_w1_c2_t2_got = false;
v2_e2_w2_c1_t2_got = false;
v2_e2_w2_c2_t2_got = false;
v2_e1_w1_c1_t3_got = false;
v2_e1_w1_c2_t3_got = false;
v2_e1_w2_c1_t3_got = false;
v2_e1_w2_c2_t3_got = false;
v2_e2_w1_c1_t3_got = false;
v2_e2_w1_c2_t3_got = false;
v2_e2_w2_c1_t3_got = false;
v2_e2_w2_c2_t3_got = false;
v4_e1_w1_c1_t2_got = false;
v4_e1_w1_c2_t2_got = false;
v4_e1_w2_c1_t2_got = false;
v4_e1_w2_c2_t2_got = false;
v4_e2_w1_c1_t2_got = false;
v4_e2_w1_c2_t2_got = false;
v4_e2_w2_c1_t2_got = false;
v4_e2_w2_c2_t2_got = false;
v4_e1_w1_c1_t3_got = false;
v4_e1_w1_c2_t3_got = false;
v4_e1_w2_c1_t3_got = false;
v4_e1_w2_c2_t3_got = false;
v4_e2_w1_c1_t3_got = false;
v4_e2_w1_c2_t3_got = false;
v4_e2_w2_c1_t3_got = false;
v4_e2_w2_c2_t3_got = false;
v6_e1_w1_c1_t2_got = false;
v6_e1_w1_c2_t2_got = false;
v6_e1_w2_c1_t2_got = false;
v6_e1_w2_c2_t2_got = false;
v6_e2_w1_c1_t2_got = false;
v6_e2_w1_c2_t2_got = false;
v6_e2_w2_c1_t2_got = false;
v6_e2_w2_c2_t2_got = false;
v6_e1_w1_c1_t3_got = false;
v6_e1_w1_c2_t3_got = false;
v6_e1_w2_c1_t3_got = false;
v6_e1_w2_c2_t3_got = false;
v6_e2_w1_c1_t3_got = false;
v6_e2_w1_c2_t3_got = false;
v6_e2_w2_c1_t3_got = false;
v6_e2_w2_c2_t3_got = false;
v2_e1_w1_c1_t2 = undefined;
v2_e1_w1_c2_t2 = undefined;
v2_e1_w2_c1_t2 = undefined;
v2_e1_w2_c2_t2 = undefined;
v2_e2_w1_c1_t2 = undefined;
v2_e2_w1_c2_t2 = undefined;
v2_e2_w2_c1_t2 = undefined;
v2_e2_w2_c2_t2 = undefined;
v2_e1_w1_c1_t3 = undefined;
v2_e1_w1_c2_t3 = undefined;
v2_e1_w2_c1_t3 = undefined;
v2_e1_w2_c2_t3 = undefined;
v2_e2_w1_c1_t3 = undefined;
v2_e2_w1_c2_t3 = undefined;
v2_e2_w2_c1_t3 = undefined;
v2_e2_w2_c2_t3 = undefined;
v4_e1_w1_c1_t2 = undefined;
v4_e1_w1_c2_t2 = undefined;
v4_e1_w2_c1_t2 = undefined;
v4_e1_w2_c2_t2 = undefined;
v4_e2_w1_c1_t2 = undefined;
v4_e2_w1_c2_t2 = undefined;
v4_e2_w2_c1_t2 = undefined;
v4_e2_w2_c2_t2 = undefined;
v4_e1_w1_c1_t3 = undefined;
v4_e1_w1_c2_t3 = undefined;
v4_e1_w2_c1_t3 = undefined;
v4_e1_w2_c2_t3 = undefined;
v4_e2_w1_c1_t3 = undefined;
v4_e2_w1_c2_t3 = undefined;
v4_e2_w2_c1_t3 = undefined;
v4_e2_w2_c2_t3 = undefined;
v6_e1_w1_c1_t2 = undefined;
v6_e1_w1_c2_t2 = undefined;
v6_e1_w2_c1_t2 = undefined;
v6_e1_w2_c2_t2 = undefined;
v6_e2_w1_c1_t2 = undefined;
v6_e2_w1_c2_t2 = undefined;
v6_e2_w2_c1_t2 = undefined;
v6_e2_w2_c2_t2 = undefined;
v6_e1_w1_c1_t3 = undefined;
v6_e1_w1_c2_t3 = undefined;
v6_e1_w2_c1_t3 = undefined;
v6_e1_w2_c2_t3 = undefined;
v6_e2_w1_c1_t3 = undefined;
v6_e2_w1_c2_t3 = undefined;
v6_e2_w2_c1_t3 = undefined;
v6_e2_w2_c2_t3 = undefined;
blue_plasma_explosion._visible = false;
t2_clicked = false;
t3_clicked = false;
plasma_ball_explosion = blue_plasma_explosion;
blue_plasma_explosion._visible = false;
orange_plasma_explosion._visible = false;
f18309233_flag = 0;
boss_dead = false;
main_music_flag = 0;
dummy_1._visible = false;
view_6_behind_cha._visible = false;
show_ui_help_active = false;
UI_help._visible = false;
UI_help_box._visible = false;
suia_timer = 0;
help_button_hightlight._visible = false;
inventory_button_hightlight._visible = false;
f53091200_flag = 0;
damage_bar.damage_inner_bar_mc._width = 16;
inventory.shield_bot_info_box._visible = false;
inventory.health_bot_info_box._visible = false;
inventory.robot_pistol_info_box._visible = false;
inventory.thorenzitha_info_box._visible = false;
tech_info_box._visible = false;
mouse_info_active_flag = 0;
mouse_info_active = false;
active_collected_object_icon = undefined;
health_bot_collected_icon._visible = false;
shield_bot_collected_icon._visible = false;
collect_object_screen_timer = 0;
collect_object_text._visible = false;
collect_object_box._visible = false;
battle_won_text.enemy_weapon_collected_mc._visible = false;
f252091251_flag = 0;
f252091157_flag = 0;
fade_out_mc_4_active = false;
f212091216_flag = 0;
rpg_cyborg_shield._visible = false;
f212091146_flag = 0;
rpg_cyborg_shield_active = false;
rpg_cyborg_shield_running = false;
active_mc_x_dest_3 = 0;
active_mc_y_dest_3 = 0;
active_mc_3 = undefined;
fade_in_and_ease_mc_flag_3 = 0;
rpg_cyborg_shield_text._visible = false;
cyborg_shield_debit_text_active = false;
cyborg_shield_bar.HP_text = 100;
fade_in_and_ease_mc_flag_3 = 0;
fade_in_and_ease_mc_active_3 = false;
f192091239_flag = 0;
cyborg_shield_info_box._visible = false;
cyborg_shield_bar._visible = false;
f192091217_flag = 0;
object_e_view._visible = false;
gun_charge_box.highlight_box_weapon_2.useHandCursor = false;
gun_charge_box.highlight_box_high.useHandCursor = false;
gun_charge_box.weapon_select_icon_2._visible = false;
rpg_weapon_2_collected = false;
f_16209540_flag = 0;
weapon_select_once_flag = 0;
gun_charge_box.highlight_box_high._visible = false;
gun_charge_box.highlight_box_weapon_1._visible = false;
gun_charge_box.highlight_box_weapon_2._visible = false;
cyborg_dead_knocked_forward = false;
inventory.rpg_object_icon_1._visible = false;
inventory.rpg_object_icon_2._visible = false;
f_10209542_flag = 0;
rpg_inventory_slot_timer = 0;
rpg_slot_check_active_object = undefined;
rpg_inventory_slot_check_active = false;
s1 = inventory.left_back_hold_box;
s2 = inventory.right_back_hold_box;
s3 = inventory.left_front_hold_box;
s4 = inventory.right_front_hold_box;
oa = inventory.inventory_plasmagun_icon;
ob = inventory.inventory_weapon_2_icon;
oc = inventory.rpg_object_icon_1;
od = inventory.rpg_object_icon_2;
test_marker_2._visible = false;
distTargetTotest_marker_2 = Math.sqrt(Math.pow(rpg_cyborg_arm_pivot_mc._x - test_marker_2._x, 2) + Math.pow(rpg_cyborg_arm_pivot_mc._y - test_marker_2._y, 2));
TMdistance = 0;
TMangle = 0;
rpg_cyborg_arm_pivot_mc._visible = false;
rpg_gunfire_active_timer = 0;
cyborg_arm_angle = 0;
cyborg_point_weapon = false;
backpack_hit_box._visible = false;
rpg_level_label._amount = 1;
rpg_cyborg_shot_speed = 18;
rpg_cyborg_shot_angle = 0;
rpg_cyborg_shot_starting_x = 229.15;
rpg_cyborg_shot_starting_y = 176.5;
weapon_2_damage = 0;
rpg_cyborg_shot_2._visible = false;
set_rpg_cyborg_shot = rpg_plasma_ball;
set_rpg_cyborg_weapon = rpg_cyborg.rpg_cyborg_weapon;
rpg_cyborg.rpg_cyborg_weapon._visible = false;
rpg_cyborg.rpg_cyborg_weapon_2._visible = false;
left_back_hit_box._visible = false;
right_back_hit_box._visible = false;
right_hand_hit_box._visible = false;
rpg_inventory_holding = undefined;
inventory.inventory_weapon_2_icon._x = inventory.left_back_hold_box._x;
inventory.inventory_plasmagun_icon._x = inventory.right_hand_box._x;
active_move_with_mouse_mc = undefined;
move_with_mouse_active = false;
get_weapon_flag = 0;
inventory.inventory_weapon_2_icon._visible = false;
f241091203_flag = 0;
times_visited_view_4 = 0;
f19109307_flag = 0;
times_visited_view_2 = 0;
gun_charge_factor = 1;
gun_charge_once_flag = 0;
gun_charge_box.highlight_box._visible = false;
gun_charge_box.highlight_box._alpha = 0;
gun_charge_box.highlight_box_high._visible = false;
gun_charge_box.highlight_box_high._alpha = 0;
gun_charge_box.gun_charge_high._amount = 4;
gun_charge_box._visible = false;
inventory.rpg_health_bot_icon_1._visible = false;
inventory.rpg_health_bot_icon_2._visible = false;
inventory.rpg_health_bot_icon_3._visible = false;
inventory.rpg_health_bot_icon_4._visible = false;
inventory.inventory_shield_bot_icon._visible = false;
inventory._visible = false;
AIM_bar.AIM_text = 15;
damage_bar.damage_text = 16;
f9109243_flag = 0;
show_inventory_once_flag = 0;
XP_bar._visible = false;
shield_info_box._visible = false;
allow_enemy_gunfire_if_not_dead = false;
enemy_gunfire_if_not_dead_active = false;
HP_enemy_1_disk.HP_text = 60;
HP_enemy_2_disk.HP_text = 60;
random_sbe_ticks = 0;
random_sbe_timer = 0;
background_explosion_flag = 0;
background_explosion_light_active = false;
background_explosion_light._visible = false;
rpg_boss_shot._visible = false;
rpg_e1_shot._visible = false;
boss_blister._visible = false;
f3109735_flag = 0;
active_increase_fade_mc = undefined;
increase_fade_alpha_2 = 0;
increase_fade_alpha_power_2 = 0;
increase_fade_active = false;
rpg_boss_damage._visible = false;
shield_debit_text_active = false;
shield_bar.HP_text = 100;
rpg_shield_text._visible = false;
f21091130_flag = 0;
boss_shield_active_flag = 0;
boss_shield_ease = "up";
boss_shield_active = false;
f3112081158_flag = 0;
boss._visible = false;
boss_green_flash_target_2._visible = false;
boss_green_flash_target_3._visible = false;
HP_enemy_shield = 100;
boss_icon._visible = false;
rpg_shield_working = true;
top_UI_black_bar._visible = false;
f261208734_flag = 0;
f2612081231_flag = 0;
AIM_bar._visible = false;
battle_won_text.level_up_label_mc._visible = false;
XP_bar.XP_text = 0;
battle_won_screen_once_flag = 0;
rpg_level = 1;
test_timer = 0;
map.zone_3_button._visible = false;
zone_3_locked = true;
f2212081136_flag = 0;
f2212081108_flag = 0;
f2212081103_flag = 0;
f211208901_flag = 0;
e2_e1_icon._visible = false;
e2_e2_icon._visible = false;
e1_green_flash_target_2._visible = false;
e1_green_flash_target_3._visible = false;
e2_green_flash_target_2._visible = false;
e2_green_flash_target_3._visible = false;
f1812081232_flag = 0;
cutter_fire_active_flag = 0;
cutter_fire_active = false;
e2_shot._visible = false;
e2_e1_arm_1_timer = 0;
e2_e1_arm_2_timer = 0;
e2_e1_arm_3_timer = 0;
e2_e1_arm_4_timer = 0;
e2_e2_arm_1_timer = 0;
e2_e2_arm_2_timer = 0;
e2_e2_arm_3_timer = 0;
e1_e1_blister._visible = false;
e1_e2_blister._visible = false;
e2_e1_blister._visible = false;
e2_e2_blister._visible = false;
rpg_enemies_2_enemy_1_damage._visible = false;
rpg_enemies_2_enemy_2_damage._visible = false;
use_hand_health._visible = false;
use_text_health._visible = false;
f1012081134_flag = 0;
e2_e1._visible = false;
e2_e2._visible = false;
enemy_bitmaps_made = false;
ease_enemy_1_HP_timer = 0;
f612081201_flag = 0;
f512081258_flag = 0;
map_button_fade_in = false;
active_map_button = undefined;
map.zone_1_button._alpha = 0;
map.zone_2_button._alpha = 0;
map.zone_3_button._alpha = 0;
f312081214_flag = 0;
map_active = false;
map._visible = false;
map_box._visible = false;
rpg_enemy_small_damage._visible = false;
f2811081255_flag = 0;
cyborg_breathing_timer = 0;
cyborg_breathing_move = "forward";
cyborg_breathing = false;
cyborg_weapon_knocked_forward = 0;
rpg_enemy_gunfire_flag_2 = 0;
enemy_fire_sound_flag_2 = 0;
enemy_fire_sound_flag = 0;
cyborg_fire_sound_flag = 0;
rpg_gunfire_active_once_flag = 0;
green_nanoflash_active = false;
green_nanoflash._visible = false;
green_nanoflash_mask._visible = false;
enemy_arm_movement_throttle = 0;
enemy_1_arm_movement_timer = 0;
e1_arm_1_move = false;
e1_arm_1_rotation = "forward";
e1_arm_2_move = false;
e1_arm_2_rotation = "forward";
e1_arm_3_move = false;
e1_arm_3_rotation = "forward";
enemy_2_arm_movement_timer = 0;
e2_arm_1_move = false;
e2_arm_1_rotation = "forward";
e2_arm_2_move = false;
e2_arm_2_rotation = "forward";
e2_arm_3_move = false;
e2_arm_3_rotation = "forward";
e3_arm_2_rotation = "forward";
e3_arm_3_rotation = "forward";
e3_arm_2_move = false;
e3_arm_3_move = false;
e2_enemy_1_arm_movement_timer = 0;
e2_e1_arm_1_move = false;
e2_e1_arm_1_rotation = "forward";
e2_e1_arm_2_move = false;
e2_e1_arm_2_rotation = "forward";
e2_e1_arm_3_move = false;
e2_e1_arm_3_rotation = "forward";
e2_enemy_2_arm_movement_timer = 0;
e2_e2_arm_1_move = false;
e2_e2_arm_1_rotation = "forward";
e2_e2_arm_2_move = false;
e2_e2_arm_2_rotation = "forward";
e2_e2_arm_3_move = false;
e2_e2_arm_3_rotation = "forward";
cyborg_head_knocked_forward = false;
cyborg_body_knocked_back = false;
cyborg_body_rotation = "back";
cyborg_head_rotation = "back";
cyborg_head_rotation_f = "forward";
cyborg_weapon_rotation_f = "forward";
cyborg_head_knocked_back = false;
keys_3rd_person_flag = 0;
f201108521_flag = 0;
f201108258_flag = 0;
ease_enemy_1_HP_active = false;
dead_fade_alpha_power_1 = 0;
dead_fade_alpha_power_2 = 0;
dead_fade_alpha_1 = 0;
dead_fade_alpha_2 = 0;
dead_fade_enemy_1_timer = 0;
dead_fade_enemy_2_timer = 0;
dead_fade_enemy_1_active = false;
dead_fade_enemy_2_active = false;
first_enemy_1._visible = false;
first_enemy_2._visible = false;
first_enemy_1_frame_1_origin._visible = false;
first_enemy_2_frame_1_origin._visible = false;
rpg_enemies_1_enemy_1_damage._visible = false;
rpg_enemies_1_enemy_2_damage._visible = false;
f181108245_flag = 0;
f181108241_flag = 0;
rpg_enemy_explosion_position = 1;
f1811081141_flag = 0;
rpg_enemy_explosion_timer = 0;
rpg_enemy_explosion._visible = false;
f1611081153_flag = 0;
show_ingame_speech_message = false;
f141108801_flag = 0;
f141108224_flag = 0;
ingame_speech_box_1._visible = false;
ingame_speech_1._visible = false;
battle_won_screen_active = false;
battle_won_screen_timer = 0;
enemy_1_info_box.line_enemy_1_repair_turns = 4;
enemy_2_info_box.line_enemy_2_repair_turns = 4;
bottom_HP_info_box._visible = false;
old_green_flash = undefined;
target_green_flash_active_state = 0;
green_flash_1_target_3._visible = false;
green_flash_1_target_2._visible = false;
green_flash_2_target_3._visible = false;
green_flash_2_target_2._visible = false;
target_green_flash_active = false;
active_green_flash_mc = undefined;
ease_target_parts_timer = 0;
target_part_top_left._visible = false;
target_part_top_right._visible = false;
target_part_bottom_left._visible = false;
target_part_bottom_right._visible = false;
ease_target_parts = false;
target_tl_x = 0;
target_tl_y = 0;
target_tr_x = 0;
target_tr_y = 0;
target_bl_x = 0;
target_bl_y = 0;
target_br_x = 0;
target_br_y = 0;
give_eye_health_flag_2 = 0;
active_mc_2 = undefined;
fade_out_mc_active = false;
give_eye_health_flag = 0;
f211081114_flag = 0;
f111081123_flag = 0;
rpg_choose_cyborg_attack_part_flag_2 = 0;
HP_enemy_1_part_2_flag_2 = 0;
HP_enemy_2_part_2_flag_2 = 0;
f291008240_flag = 0;
enemy_1_info_box.line_1 = "";
enemy_1_info_box.line_3 = "";
enemy_1_info_box.line_4 = "";
enemy_2_info_box.line_1 = "";
enemy_2_info_box.line_3 = "";
enemy_2_info_box.line_4 = "";
HP_enemy_1_part_2_flag = 0;
HP_enemy_2_part_2_flag = 0;
HP_enemy_1_part_3_flag = 0;
HP_enemy_2_part_3_flag = 0;
active_mc_x_dest = 0;
active_mc_y_dest = 0;
fade_in_and_ease_mc_flag = 0;
active_mc = undefined;
fade_in_and_ease_mc_active = false;
enemy_1_info_box._visible = false;
enemy_2_info_box._visible = false;
HP_enemy_1_part_2 = 100;
HP_enemy_2_part_2 = 100;
HP_enemy_1_part_3 = 100;
HP_enemy_2_part_3 = 100;
battle_won_box._visible = false;
battle_won_text._visible = false;
level_up_box._visible = false;
f231008250_flag = 0;
f221008240_flag = 0;
f2210081240_flag = 0;
rpg_choose_cyborg_attack_part_flag = 0;
cyborg_part_attacked = 0;
single_enemy_target_1._visible = false;
single_enemy_target_2._visible = false;
single_enemy_target_3._visible = false;
no_enemies_alive = 2;
rpg_enemy_1_killed = false;
rpg_enemy_2_killed = false;
robot_icon_1._visible = false;
robot_icon_2._visible = false;
rpg_credit_text._visible = false;
rpg_credit_text_timer = 0;
rpg_health_active_flag = 0;
rpg_health_active = false;
enemy_part_attacked = 0;
rpg_debit_HP_flag = 0;
rpg_debit_HP_active = false;
rpg_enemy_shot_pause_2_timer = 0;
rpg_enemy_shot_pause_2 = false;
rpg_debit_text_timer = 0;
rpg_debit_text_flag = 0;
rpg_debit_text_active = false;
rpg_debit_text._visible = false;
rpg_enemy_main_gunfire_timer = 0;
rpg_enemy_shot_pause_timer = 0;
rpg_enemy_shot_pause_flag = 0;
rpg_enemy_shot_pause = false;
rpg_enemy_gunfire_flag = 0;
enemy_fireing = 1;
rpg_enemy_shot_angle = 0;
rpg_enemy_shot_speed = 18;
rpg_enemy_gunfire_active = false;
rpg_cyborg_target_hit = 0;
rpg_cyborg_target_hit_flag = 0;
rpg_target._visible = false;
rpg_cyborg_target._visible = false;
enemy_attacked = 0;
rpg_plasmaball_target._visible = false;
rpg_target_hit = 0;
rpg_target_hit_flag = 0;
rpg_plasma_ball._visible = false;
rpg_gunfire_active = false;
tech_orange_battle_flash._visible = false;
first_enemy_animation_flag = 0;
rpg_cyborg._visible = false;
rpg_battle_system_flag = 0;
flash_orange_battle_intro = false;
flash_orange_battle_timer = 0;
large_orange_battle_flash._visible = false;
first_enemy_animation_timer = 0;
first_enemy_animation_active = false;
movie_black_bars._visible = false;
pre_battle_movie_1_timer = 0;
pre_battle_movie_1_active = false;
rpg_active_flag = 0;
HP_cy10._visible = false;
rpg_battle_system_active = false;
HP_enemy_1_disk._visible = false;
HP_enemy_2_disk._visible = false;
tech_button_2._visible = false;
tech_button_3._visible = false;
tech_button_4._visible = false;
tech_button._visible = false;
attack_button._visible = false;
enemy_button_1._visible = false;
enemy_button_2._visible = false;
enemy_1_target_1._visible = false;
enemy_1_target_2._visible = false;
enemy_1_target_3._visible = false;
enemy_2_target_1._visible = false;
enemy_2_target_2._visible = false;
enemy_2_target_3._visible = false;
timestep_3_b_once_Flag = 0;
thor_baddie_lying._visible = false;
draw_dead_thorn_flag = 0;
robot_explosion_once_flag = 0;
energy_wave_sound_flag = 0;
lightningGunfireVolume = 60;
ambient_gun_sound_active = true;
robotGunfireVolume = 30;
robot_weapon_left_sound_flag = 0;
robot_weapon_right_sound_flag = 0;
v2ta_offset = 0;
v3ta_offset = 0;
v5ta_offset = 0;
mouse_over_health_button = false;
logo_cursor_timer = 0;
view_6_trigger_b_message_flag = 0;
view_6_trigger_a_message_flag = 0;
speech_box._visible = false;
view_5_once_flag = 0;
menu_tooltip._visible = false;
entered_obj_b_1st_person_view = false;
show_thor_explode_blood_flag = 0;
health_fade_down = false;
health_used = false;
use_health_button._visible = false;
health_icon._visible = false;
health_icon._alpha = 0;
got_health = false;
health_fade_up = false;
need_health = false;
health_trigger_flag = 0;
collect_health_trigger._visible = false;
cy21_standing_y_offset = 1;
restart_game_active = false;
robot_particle_timer_b = 0;
heading_b = 0;
tttt_b = 0;
ro_wind_b = 0;
robot_gun_fireing_b = true;
hit_by_robot_weapon_b = 0;
robot_gun_ready_l = 0;
robot_gun_ready_r = 0;
mouse_hit_rob_tar_l = false;
mouse_hit_rob_tar_r = false;
robot_weapon_target_left._visible = false;
robot_weapon_target_right._visible = false;
robot_gun_fireing = true;
hit_by_robot_weapon = 0;
tttt = 0;
robot_particle_acceleration = 0;
dist_view_height_to_r_shot = 0;
choose_ro_r = 0;
robot_shot_rot = 0;
heading = 0;
robot_particle_position_x_choice = 0;
robot_particle_position_x = 0;
robot_particle_position_y_choice = 0;
robot_particle_position_y = 0;
ro_particle_position_x = 0;
ro_particle_position_y = 0;
ro_wind = 0;
robot_particle_timer = 0;
got_shield = false;
shield_fade_up = false;
shield_bar._visible = false;
use_hand_inactive._visible = false;
use_text_inactive._visible = false;
inactive_trigger._visible = false;
hit_inactive_trig_mes_flag = 0;
hitting_inactive_trigger = false;
inactive_trigger_active = false;
can_fire_gun = true;
mouse_over_inv_button = false;
mouse_over_menu_button = false;
show_robot_damage = false;
energy_wave_timer_2 = 0;
energy_wave_pos_y_2 = 80;
energy_wave_pos_y_3 = 80;
robot_explosion_active = false;
gun_fire = false;
b2_key_up_flag = 0;
nekd_flag = 0;
thor_killed_b_message_flag = 0;
weak_points_found_text_b_b._visible = false;
p_key_down_flag = 0;
menu_box.useHandCursor = false;
inventory.inventory_cover_object.useHandCursor = false;
disp_options_box.off._alpha = 0;
disp_options_box.low._alpha = 0;
disp_options_box.high._alpha = 0;
disp_options_box._visible = false;
disp_throttle = 3;
tbk_timer = 0;
cy_head_targeted = false;
view_2_origin._visible = false;
main_disp_timer = 0;
view_4_ahead_cha.bullet_hole_hit_area._visible = false;
melt_hole._visible = false;
view_4_ahead_cha_origin._visible = false;
near_thor_head._visible = false;
ga_offset_x = 0;
ga_offset_y = 0;
t_timer = 0;
view_4_ahead_cha.thorn_outline._visible = false;
weak_points_found_text._visible = false;
weak_points_found_text_b._visible = false;
scan_weak_points_text._visible = false;
scan_weak_points_text_b._visible = false;
green_area._visible = false;
green_area_target._visible = false;
tbua_timer = 0;
tbua_timer_b = 0;
thor_baddie_ui_active = false;
thor_baddie_b_ui_active = false;
lightning_ready = false;
music_checkbox_tick_active = true;
framerate_checkbox_tick_active = false;
fps_text_mc._visible = false;
UI_help._visible = false;
obj_b_1st_guide_1._visible = false;
obj_b_1st_guide_2._visible = false;
obj_b_1st_guide_3._visible = false;
obj_b_1st_guide_4._visible = false;
disp_positioner._visible = false;
sb_disp_timer = 0;
view_4_disp_timer = 0;
view_4_disp_timer_b = 0;
view_3_disp_timer = 0;
ssv_disp_timer = 0;
obj_b_1st_ui_obj_4._visible = false;
form_button._visible = false;
object_1st_person_view_timer = 0;
displacedPano._visible = true;
obj_b_1st_ui_obj_1._visible = false;
obj_b_1st_ui_obj_2._visible = false;
obj_b_1st_ui_obj_3._visible = false;
obj_b_1st_ui_obj_4._visible = false;
distplacement_map_mc._visible = false;
show_menu_active = false;
sma_timer = 0;
menu_box._visible = false;
close_menu._visible = false;
menu_main_text._visible = false;
menu_main_text._alpha = 0;
help_menu_text._visible = false;
help_menu_text._alpha = 0;
menu_text._visible = false;
menu_text._alpha = 0;
disp_checkbox._visible = false;
music_checkbox._visible = false;
framerate_checkbox._visible = false;
disp_checkbox_tick._visible = false;
music_checkbox_tick._visible = false;
framerate_checkbox_tick._visible = false;
dist_checkbox_tick_active = true;
render_displacement_active = false;
show_switch_a_pressed_message_flag = 0;
use_hand_switch_a_object._visible = false;
use_text_switch_a_object._visible = false;
use_hand_switch_a._visible = false;
use_text_switch_a._visible = false;
switch_a_trigger._visible = false;
switch_a_object_trigger._visible = false;
hitting_switch_a_object_trigger = false;
switch_a_object_active = false;
switch_a_pressed = false;
hitting_switch_a_trigger = false;
switch_a_active = false;
switch_a_object_active = false;
object_b._visible = false;
object_b_collected = false;
object_b_collected_mc._visible = false;
show_switch_b_pressed_message_flag = 0;
use_hand_switch_b_object._visible = false;
use_text_switch_b_object._visible = false;
use_hand_switch_b._visible = false;
use_text_switch_b._visible = false;
use_text_switch_b_b._visible = false;
use_hand_collect_obj_b._visible = false;
use_text_collect_obj_b._visible = false;
switch_b_trigger._visible = false;
collect_object_b_trigger._visible = false;
switch_b_object_trigger._visible = false;
hitting_switch_b_object_trigger = false;
switch_b_object_active = false;
switch_b_pressed = false;
hitting_switch_b_trigger = false;
switch_b_active = false;
switch_b_object_active = false;
object_c._visible = false;
object_c_collected = false;
show_switch_c_pressed_message_flag = 0;
use_hand_switch_c_object._visible = false;
use_text_switch_c_object._visible = false;
use_hand_switch_c._visible = false;
use_text_switch_c._visible = false;
switch_c_trigger._visible = false;
switch_c_object_trigger._visible = false;
hitting_switch_c_object_trigger = false;
switch_c_object_active = false;
switch_c_pressed = false;
hitting_switch_c_trigger = false;
switch_c_active = false;
switch_c_object_active = false;
object_d._visible = false;
object_d_collected = false;
object_d_collected_mc._visible = false;
show_switch_d_pressed_message_flag = 0;
use_hand_switch_d_object._visible = false;
use_text_switch_d_object._visible = false;
use_hand_switch_d._visible = false;
use_text_switch_d._visible = false;
use_hand_collect_obj_d._visible = false;
use_text_collect_obj_d._visible = false;
switch_d_trigger._visible = false;
collect_object_d_trigger._visible = false;
switch_d_object_trigger._visible = false;
hitting_switch_d_object_trigger = false;
switch_d_object_active = false;
switch_d_pressed = false;
hitting_switch_d_trigger = false;
switch_d_active = false;
switch_d_object_active = false;
d_trigger_door_unlocked = false;
object_d_state = 1;
object_e._visible = false;
object_e_collected = false;
object_e_collected_mc._visible = false;
show_switch_e_pressed_message_flag = 0;
use_hand_switch_e_object._visible = false;
use_text_switch_e_object._visible = false;
use_hand_switch_e._visible = false;
use_text_switch_e._visible = false;
use_hand_collect_obj_e._visible = false;
use_text_collect_obj_e._visible = false;
switch_e_trigger._visible = false;
collect_object_e_trigger._visible = false;
switch_e_object_trigger._visible = false;
hitting_switch_e_object_trigger = false;
switch_e_object_active = false;
switch_e_pressed = false;
hitting_switch_e_trigger = false;
switch_e_active = false;
switch_e_object_active = false;
object_e_state = 0;
plasma_ball._visible = false;
start_plasma_ball._visible = false;
object_f_collected = false;
collect_object_f_trigger._visible = false;
energy_wave_timer = 0;
energy_wave_pos_y = 30;
energy_wave_function_active = false;
show_object_1st_person_view_flag = 0;
object_1st_person_view_active = false;
ob_b_1st_UI_button_1._visible = false;
object_b_1st_person_UI._visible = false;
object_b_1st_person_UI_2._visible = false;
object_b_1st_person_UI_2._alpha = 0;
object_b_1st_person_UI_3._alpha = 0;
object_b_1st_person_UI_4._alpha = 0;
object_b_1st_person_UI_3._visible = false;
object_b_1st_person_UI_4._visible = false;
use_head._visible = false;
object_b_1st_person_view._visible = false;
times_hit_by_lightning = 0;
show_lightning_gunfire_flag = 0;
lightning_gunfire_off_flag = 0;
show_lightning_gunfire_timer = 0;
show_lightning_gunfire = false;
lightning_x_direction = 0;
lightning_timer = 0;
lng_x = 0;
lng_y = 0;
generate_lightning = false;
lightning_x_offset = 220;
lightning_y_offset = 145;
view_4_depth_trigger_flag = 0;
view_4_depth_trigger_flag_b = 0;
thor_ani_complete_flag = 0;
thor_baddie_hit_once_flag = 0;
thor_baddie_sprite_sheet_slot = 0;
thor_baddie_killed_timer = 0;
thor_head_group_mc.block_head_hittest_guide_mc._visible = false;
thor_baddie_killed = false;
thor_baddie_b_killed = false;
thor_baddie_hit = 0;
thor_baddie_shot = false;
click_thor_baddie_flag = 0;
thor_head_group_mc.thor_baddie_head_view._visible = false;
thor_baddie_head_view_move_active = false;
thor_baddie_head_view_targeter_timer = 0;
needs_label_mc._visible = false;
nutrient_icon._visible = false;
antiviral_icon._visible = false;
odv = -1;
visited_view_4 = false;
first_baddie_area_visit = 0;
first_baddie_area_visit_flag = 0;
air_alarm_message_flag = 0;
left_key_active = true;
right_key_active = true;
cha_walk_active = true;
cySaa_rand = 0;
cy_standing_animation_active = false;
cySaaTimer = 0;
air_ticks = 0;
air_alarm_active = false;
air_alarm_bar._visible = false;
view_4_message_flag = 0;
d_b_not_placed_flag = 0;
spoken_to_cy21 = false;
cy21_standing_0._visible = false;
cy21_standing_1._visible = false;
cy21_standing_2._visible = false;
cy21_standing_3._visible = false;
cy21_talking._visible = false;
test_positioner._visible = false;
baddie_2_start_delay_flag = 0;
check_free_slots_mc._visible = false;
check_free_slots_timer = 0;
check_free_slots = false;
hitting_switch_b_trigger_flag = 0;
inventory_shuffle_state = 0;
view_8_trigger_a_once_flag = 0;
switch_d_trigger_once_flag = 0;
timestep_3_once_flag = 0;
click_baddie_flag = 0;
click_baddie_b_flag = 0;
plasma_ball_speed = 0;
test_marker._x = 120;
bsa_max = 0;
bsa_min = 0;
baddie_2_starting_angle = 0;
baddie_rotation_curve_start = 0;
baddie_rotation_curve = "med";
bsDiff = 0;
erasing_mc._visible = false;
baddie_f_explode_active_timer_eight_flag = 0;
baddie_explode_active_timer_eight_flag = 0;
baddie_explode_active_timer_eight = false;
baddie_f_explode_active_timer_eight = false;
DifferenceFB = 0;
DifferenceFB_b = 0;
fbDiffX = 0;
fbDiffY = 0;
dynamic_blood_active = false;
dynamic_blood_active_b = false;
baddie_ai_type = "go_movement";
aab = false;
slot_check_active = true;
free_object_e_from_inventory = false;
aaa = 0;
object_b_state = 0;
key_down_timer = 0;
object_b_placed = false;
object_d_placed = false;
object_e_placed = false;
air_bar_progress_timer = 0;
air_bar_active = false;
air_bar._visible = false;
air_bar_progress._visible = false;
air_bar._alpha = 0;
air_bar_progress._alpha = 0;
left_collision_wall._visible = false;
right_collision_wall._visible = false;
top_collision_wall._visible = false;
bottom_collision_wall._visible = false;
cDiffX = 0;
cDiffY = 0;
collide_object_top_left._visible = false;
collide_object_top_right._visible = false;
collide_object_bottom_left._visible = false;
collide_object_bottom_right._visible = false;
cor = 0;
co_x_offset = 300;
co_y_offset = 300;
covx = 0;
covy = 0;
water_particles_active = false;
check_water_dif_timer = 0;
set_water_random_y = false;
set_water_random_y_timer = 0;
st_min_r = 0;
st_max_r = 0;
set_steam_random_y_timer = 0;
set_steam_random_y = false;
steam_particle_timer = 0;
check_steam_dif_timer = 0;
view_1_old_position_y = 0;
amount_view_1_moved = 0;
dist_steam_below_end = 0;
dist_steam_above_start = 0;
rand_s_no = 0;
steam_start_x = 0;
steam_start_y = 0;
rain_particles_active = false;
show_object_b_placed_once_flag = 0;
show_object_e_placed_once_flag = 0;
object_fade_up = false;
cam_targeter_x = true;
cam_targeter_y = true;
mine_sound_flag = 0;
move_cam = false;
all_baddies_killed_flag = 0;
show_message_flag = 0;
light_message_active_flag = 0;
light_message_active = false;
show_start_message_flag = 0;
show_speech_flag = 0;
test_variable = 100;
test_variable_z = 110;
particle_layer._visible = true;
particle_overlay._visible = false;
particle_overlay_active = false;
particle_overlay_active_flag = 0;
ship_engine_sound_playing = false;
ship_takeoff_animation = false;
object_b_view._visible = false;
object_b_view_placed._visible = false;
object_d_view._visible = false;
object_d_view_placed._visible = false;
show_object_b_once_flag = 0;
show_object_d_once_flag = 0;
show_object_e_once_flag = 0;
active_object_view = undefined;
third_person_once_flag = 0;
hit_switch_b_trig_mes_flag = 0;
object_b_collected_flag = 0;
object_c_collected_flag = 0;
object_d_collected_flag = 0;
object_e_collected_flag = 0;
object_in_slot = false;
active_slot_object = undefined;
slot_check_cycle = 0;
slotAPosX = 20;
slotAPosY = 95;
slotBPosX = 242;
slotBPosY = 92;
slotCPosX = 20;
slotCPosY = 204;
slotDPosX = 252;
slotDPosY = 197;
slotA = false;
slotB = false;
sfaTimer = 0;
hitting_switch_a_object_trigger_flag = 0;
view_2_trigger_a_once_flag = 0;
inventory_flash_bottom._visible = false;
inventory_flash_top._visible = false;
start_folder_flash_ani_active = false;
start_folder_flash_ani_flag = 0;
ifiTimer = 0;
inventory_folder_mc_animation = false;
inventory_folder_mc._visible = false;
ocaTimer = 0;
hitting_switch_c_trigger_once_flag = 0;
object_c_collected_mc._visible = false;
mine_explosion._visible = false;
mine_timer = 0;
object_slot_a_free = true;
object_slot_b_free = true;
object_slot_c_free = true;
object_slot_d_free = true;
old_cha_x_offset_var_b = 0;
targetFrameRate = 30;
frameRateDiff = 0;
view_ist_person_once_flag = 0;
temp_bl = 0;
large_restart_label._visible = false;
load_next_area._visible = false;
plasma_gun_charge = 100;
power_loss_active = false;
pla_timer = 0;
game_over_enter_icon._visible = false;
hide_help_info_active = false;
sha_timer = 0;
sia_timer = 0;
show_help_info_active = false;
show_inventory_active = false;
help_button._visible = false;
menu_button._visible = false;
inventory_button._visible = false;
help_info_box._visible = false;
help_info_box._alpha = 0;
help_info_text._alpha = 0;
help_info_text._visible = false;
logo._alpha = 0;
show_hide_mouse._visible = false;
show_view_1_once_flag = 0;
enter_key_down_once_flag = 0;
character_hit_ready_counter_active = false;
character_hit_ready_counter = 0;
show_view_4_once_flag = 0;
show_view_6_once_flag = 0;
return_baddie_to_start = false;
return_baddie_b_to_start = false;
show_baddie_2 = false;
show_baddie_2_b = false;
view_1_trigger_a_once_flag = 0;
doorOpen_once_flag = 0;
setFaceing = false;
shiftCam = false;
baddie_2_stop_timer = 0;
baddie_2_stopped_choice = 0;
baddie_2_b_stop_timer = 0;
baddie_2_b_stopped_choice = 0;
bsc_max = 0;
bsc_min = 0;
bsc_b_max = 0;
bsc_b_min = 0;
o_key_down = false;
move_test_obj_o_key_down = false;
o_and_numpad_two_key_down = false;
o_and_numpad_four_key_down = false;
o_and_numpad_six_key_down = false;
o_and_numpad_eight_key_down = false;
show_hide_mouse._visible = true;
numpad_two_key_down = false;
numpad_four_key_down = false;
numpad_six_key_down = false;
numpad_eight_key_down = false;
t_key_down = false;
numpad_seven_key_down = false;
numpad_nine_key_down = false;
l_key_down = false;
k = 0;
frame_count = 0;
hideNWalk = false;
hideSWalk = false;
up_and_right_arrows_down = false;
up_and_left_arrows_down = false;
down_and_left_arrows_down = false;
down_and_right_arrows_down = false;
right_and_left_arrows_down = false;
down_and_up_arrows_down = false;
up_arrow_key_down = false;
down_arrow_key_down = false;
left_arrow_key_down = false;
right_arrow_key_down = false;
credits_a._visible = false;
credits_b._visible = false;
end_ok_button._visible = false;
game_over_timer = 0;
new_virus_detected_timer = 0;
baddie_2_fade = false;
baddie_2_b_fade = false;
v1_set_colour_flag = 0;
v2_set_colour_flag = 0;
v3_set_colour_flag = 0;
v4_set_colour_flag = 0;
v5_set_colour_flag = 0;
v6_set_colour_flag = 0;
character_colour = "none";
baddie_2_movement_stop_active = false;
baddie_2_b_movement_stop_active = false;
transform_character_colour = false;
reset_plasmaball_position = true;
mc_wind_sound_fade_down._visible = false;
mc_wind_sound_fade_up._visible = false;
still_UI._visible = false;
view_1._visible = false;
view_2._visible = false;
view_3._visible = false;
view_4._visible = false;
view_5._visible = false;
view_6._visible = false;
view_6_origin._visible = false;
view_6_damaged_robots._visible = false;
view_7._visible = false;
view_8._visible = false;
end_view._visible = false;
com_view_targeter_move_type = 0;
grab_view_1_old_psn_timer = 0;
com_view_move_active = false;
com_view_targeter_timer = 0;
left_arrow_down = false;
right_arrow_down = false;
up_arrow_down = false;
down_arrow_down = false;
com_view_targeter._visible = false;
Ist_person_hit._visible = false;
view_1_turn_cam_180_trigger._visible = isVisible;
view_2_turn_cam_180_trigger._visible = isVisible;
view_3_turn_cam_180_trigger._visible = isVisible;
view_4_turn_cam_180_trigger._visible = isVisible;
view_5_turn_cam_180_trigger._visible = isVisible;
view_6_turn_cam_180_trigger._visible = isVisible;
view_7_turn_cam_180_trigger._visible = isVisible;
view_8_turn_cam_180_trigger._visible = isVisible;
baddie_view_visit_flag = 0;
baddie_view_visit = 0;
hit_cam_shake_timer = 0;
use_hand_t._visible = isVisible;
use_hand_b._visible = isVisible;
use_hand_l._visible = isVisible;
use_hand_r._visible = isVisible;
turn_cam_text_t._visible = isVisible;
turn_cam_text_b._visible = isVisible;
turn_cam_text_l._visible = isVisible;
turn_cam_text_r._visible = isVisible;
camera_icon_t._visible = isVisible;
camera_icon_b._visible = isVisible;
camera_icon_l._visible = isVisible;
camera_icon_r._visible = isVisible;
view_1_trigger_a._visible = isVisible;
view_1_trigger_b._visible = isVisible;
view_1_trigger_c._visible = isVisible;
view_1_trigger_d._visible = isVisible;
view_1_entrypoint_a._visible = isVisible;
view_1_entrypoint_b._visible = isVisible;
view_1_entrypoint_c._visible = isVisible;
view_1_entrypoint_d._visible = isVisible;
view_2_trigger_a._visible = isVisible;
view_2_trigger_b._visible = isVisible;
view_2_trigger_c._visible = isVisible;
view_2_trigger_d._visible = isVisible;
view_2_entrypoint_a._visible = isVisible;
view_2_entrypoint_b._visible = isVisible;
view_2_entrypoint_c._visible = isVisible;
view_2_entrypoint_d._visible = isVisible;
view_3_trigger_a._visible = isVisible;
view_3_trigger_b._visible = isVisible;
view_3_trigger_c._visible = isVisible;
view_3_trigger_d._visible = isVisible;
view_3_entrypoint_a._visible = isVisible;
view_3_entrypoint_b._visible = isVisible;
view_3_entrypoint_c._visible = isVisible;
view_3_entrypoint_d._visible = isVisible;
view_4_trigger_a._visible = isVisible;
view_4_trigger_b._visible = isVisible;
view_4_trigger_c._visible = isVisible;
view_4_trigger_d._visible = isVisible;
view_4_entrypoint_a._visible = isVisible;
view_4_entrypoint_b._visible = isVisible;
view_4_entrypoint_c._visible = isVisible;
view_4_entrypoint_d._visible = isVisible;
view_5_trigger_a._visible = isVisible;
view_5_trigger_b._visible = isVisible;
view_5_trigger_c._visible = isVisible;
view_5_trigger_d._visible = isVisible;
view_5_entrypoint_a._visible = isVisible;
view_5_entrypoint_b._visible = isVisible;
view_5_entrypoint_c._visible = isVisible;
view_5_entrypoint_d._visible = isVisible;
view_6_trigger_a._visible = isVisible;
view_6_trigger_b._visible = isVisible;
view_6_trigger_c._visible = isVisible;
view_6_trigger_d._visible = isVisible;
view_6_end_trigger._visible = isVisible;
view_6_entrypoint_a._visible = isVisible;
view_6_entrypoint_b._visible = isVisible;
view_6_entrypoint_c._visible = isVisible;
view_6_entrypoint_d._visible = isVisible;
view_7_trigger_a._visible = isVisible;
view_7_trigger_b._visible = isVisible;
view_7_trigger_c._visible = isVisible;
view_7_trigger_d._visible = isVisible;
view_7_end_trigger._visible = isVisible;
view_7_entrypoint_a._visible = isVisible;
view_7_entrypoint_b._visible = isVisible;
view_7_entrypoint_c._visible = isVisible;
view_7_entrypoint_d._visible = isVisible;
view_8_trigger_a._visible = isVisible;
view_8_trigger_b._visible = isVisible;
view_8_trigger_c._visible = isVisible;
view_8_trigger_d._visible = isVisible;
view_8_end_trigger._visible = isVisible;
view_8_entrypoint_a._visible = isVisible;
view_8_entrypoint_b._visible = isVisible;
view_8_entrypoint_c._visible = isVisible;
view_8_entrypoint_d._visible = isVisible;
cha_collision_point_n._visible = false;
cha_collision_point_e._visible = false;
cha_collision_point_s._visible = false;
cha_collision_point_w._visible = false;
baddie_2_movement_active = true;
baddie_2_b_movement_active = true;
baddie_2_active = false;
out_of_bullets = false;
plasmaball_targeter._visible = false;
health_green._visible = true;
health_amber._visible = false;
health_red._visible = false;
use_door_trigger._visible = false;
object_view._visible = false;
view_2_object._visible = false;
object_fade = false;
show_view._visible = false;
left_key_move_active = true;
right_key_move_active = true;
up_key_move_active = true;
activate_mouse_up = false;
down_key_move_active = true;
wind_sound_fade_down = false;
wind_sound_pan_centre_to_right = false;
wind_sound_pan_right_to_centre = false;
wind_sound_fade_up = false;
door_mask._visible = true;
cyborg_gun._visible = false;
int_m_flag = 0;
view_1_depth_trigger._visible = false;
view_2_depth_trigger._visible = false;
view_4_depth_trigger._visible = false;
view_6_depth_trigger._visible = false;
view_7_depth_trigger._visible = false;
view_8_depth_trigger._visible = false;
start_plasma_ball._visible = false;
rot_c = false;
rot_ac = false;
power_icon_mc._visible = false;
mouse_button = "up";
cIstPDTimer = 0;
fade_in_ticks = -40;
gain_gradual_power_flag = 0;
baddie_announcement_flag = 0;
view_3_power_collected = false;
near_cam_message_flag = 0;
health_ticks = 0;
dead = false;
hand_power_was_shown = false;
door_sound_lenght_time = 0;
end_message._alpha = -300;
blackboard._alpha = -300;
start_message._alpha = -30;
cycle_cd = 0;
la_flag = 0;
b2_active_flag = 0;
plasmaball_targeter_old_psn_x = 0;
plasmaball_targeter_new_psn_x = 0;
view_1_old_psn_x = 0;
view_1_new_psn_x = 0;
plasma_ball_x_offset = 20;
plasma_ball_y_offset = 20;
power_icon._visible = false;
show_view_1._visible = false;
show_view_2._visible = false;
show_view_3._visible = false;
show_view_4._visible = false;
show_view_5._visible = false;
show_view_6._visible = false;
collect_powerups_active = false;
paused_info._visible = false;
offer_power_flag = false;
particle_1._visible = false;
particle_2._visible = false;
mist._visible = false;
ship_alarm_active = true;
plasma_ball_explosion._visible = false;
baddie_1_collision._visible = false;
plasma_collision_point._visible = false;
move_baddie_up_button._visible = false;
move_baddie_down_button._visible = false;
move_baddie_left_button._visible = false;
move_baddie_right_button._visible = false;
move_baddie_lable._visible = false;
character_ray_n._visible = false;
character_ray_e._visible = false;
character_ray_s._visible = false;
character_ray_w._visible = false;
about_text._alpha = 1;
controls_text._alpha = 1;
play_text._alpha = 1;
fade_logo = "in";
camera_icon_180._visible = false;
turn_cam_text_180._visible = false;
damaged_HUD._visible = false;
targeted_icon._visible = false;
targeted_text_mc._visible = false;
near_cam_message._alpha = -200;
show_keyboard_ins_flag = 0;
logo_animation = false;
intro_movie_active = false;
doorTriggerInPosition = true;
use_hand_2._visible = false;
targeting_UI_active = false;
the_madness_has_you_text._visible = false;
biohazard_icon._visible = false;
biohazard_icon._alpha = 0;
play_dead_sound_flag = 0;
copy_baddie_2_flag = 0;
baddie_2_x_offset = 0;
baddie_2_y_offset = 0;
test_positioner_x_offset = 100;
test_positioner_y_offset = 100;
baddie_2_b_x_offset = 0;
baddie_2_b_y_offset = 0;
alarm_ticks = 0;
logo_ani_flag = 0;
use_text_2_mc._visible = false;
next_button._visible = false;
skip_button._visible = false;
baddie_m_ex_1._visible = false;
baddie_m_ex_2._visible = false;
baddie_m_ex_3._visible = false;
baddie_m_ex_7._visible = false;
baddie_f_ex_1._visible = false;
baddie_f_ex_2._visible = false;
baddie_f_ex_3._visible = false;
baddie_f_ex_7._visible = false;
speech_1._visible = false;
speech_2._visible = false;
speech_3._visible = false;
speech_4._visible = false;
speech_5._visible = false;
_6_show_5._visible = false;
hand_power._visible = false;
x_mouse_offset = 12;
y_mouse_offset = 0;
www = 0;
hand_nutrient._visible = false;
hand_antiviral._visible = false;
baddie_damaged_fade_2 = false;
baddie_2_hits_cha_flag = false;
baddie_2_b_hits_cha_flag = false;
collect_text_power._visible = false;
collect_text_nutrient._visible = false;
collect_text_antiviral._visible = false;
show_speech = 1;
baddie_e_walk_1._visible = false;
i_am_near_5_show_3_trigger = false;
i_am_near_3_show_5_trigger = false;
i_am_near_3_show_2_trigger = false;
drop_health = false;
pause_flag = 0;
still_UI_conference._visible = false;
fade_in_near_cam_message = false;
view_3_show_view_4_trigger._visible = false;
view_5_show_view_6_trigger._visible = false;
_3_show_view_5._visible = false;
_5_show_3_trigger._visible = false;
_3_show_view_2._visible = false;
restart_button._visible = false;
baddie_2_is_killed = false;
restart_button_shadow._visible = false;
show_view_6_trigger._visible = false;
hit_cam_shake = false;
end_message_fade_up = false;
start_message_fade_up = false;
start_message_fade_down = false;
credits_fade = false;
credits_fade_flag = 0;
fade_wind_sound_off = false;
view_5._visible = false;
cam_targeter_dummy._visible = false;
cam_targeter._visible = false;
thor_main_image._visible = true;
play_text._visible = false;
controls_text._visible = false;
about_text._visible = false;
game_info_text._visible = false;
controls_info_text._visible = false;
controls_icon._visible = false;
com_view._visible = false;
open_door_trigger._visible = false;
door._visible = true;
view_3._visible = false;
view_3_ahead_cha._visible = false;
view_1_ahead_cha._visible = false;
view_2_ahead_cha._visible = false;
dist_plasmaball_targeter_to_view_1_x = 0;
dist_plasmaball_targeter_to_view_1_y = 0;
view_4._visible = false;
character_damaged_fade = false;
baddie_sound_active = false;
view_4_ahead_cha._visible = false;
view_5_ahead_cha._visible = false;
view_6_ahead_cha._visible = false;
view_7_ahead_cha._visible = false;
view_8_ahead_cha._visible = false;
character_stand_e._visible = false;
character_stand_s._visible = false;
character_stand_w._visible = false;
test_marker._visible = false;
white_targeted_icon._visible = false;
message_text_mc._visible = false;
message_text_mc.message_text.multiline = true;
view_4_collision._visible = false;
view_3_collision._visible = false;
view_2_collision._visible = false;
view_1_collision._visible = false;
view_5_collision._visible = false;
view_6_collision._visible = false;
view_7_collision._visible = false;
view_8_collision._visible = false;
plasma_explosion_active = false;
setLabel = false;
baddie_2_used_again = 0;
fff = 0;
baddie_frame_timer = 0;
baddie_2_tilt_timer = 0;
baddie_2_b_tilt_timer = 0;
baddie_2_b_frame_timer = 0;
baddie_2_b_used_again = 0;
baddie_2_angle = 0;
baddie_2_b_angle = 0;
blackboard_fade_up = false;
baddie_2_angle_choice = 0;
get_object_trigger._visible = false;
get_power_trigger._visible = false;
get_nutrient_trigger._visible = false;
get_antiviral_trigger._visible = false;
show_view_2_trigger._visible = false;
show_view_3_trigger._visible = false;
show_view_4_trigger._visible = false;
view_1_show_view_2_trigger._visible = false;
view_2_show_view_1_trigger._visible = false;
view_4_show_view_3_trigger._visible = false;
not_show_object_view._visible = false;
show_object_view._visible = false;
hand._visible = false;
use_hand._visible = false;
use_text_mc._visible = false;
collect_text_mc._visible = false;
walk_text._visible = false;
targeted_text_mc._visible = false;
trigger_used = "nul";
view_1_diff = 0;
v5_bs_flag = 0;
v3_bs_flag = 0;
dist_view_1_to_gun = 0;
targeted_icon._visible = false;
thor_game_fin = false;
walk_to_here._visible = false;
object_selector._visible = false;
object_icon._visible = false;
cam_targeter_active = true;
gain_gradual_power = false;
character_frame_2._visible = false;
character_frame_3._visible = false;
character_frame_4._visible = false;
character_frame_5._visible = false;
character_frame_6._visible = false;
character_frame_7._visible = false;
character_frame_8._visible = false;
facing_e_walk_1._visible = false;
facing_e_walk_2._visible = false;
facing_e_walk_3._visible = false;
facing_e_walk_4._visible = false;
facing_e_walk_5._visible = false;
facing_e_walk_6._visible = false;
facing_e_walk_7._visible = false;
facing_e_walk_8._visible = false;
facing_e_walk_9._visible = false;
facing_e_walk_10._visible = false;
facing_e_walk_11._visible = false;
facing_e_walk_12._visible = false;
facing_e_walk_13._visible = false;
facing_e_walk_14._visible = false;
facing_e_walk_15._visible = false;
facing_e_walk_16._visible = false;
facing_e_walk_17._visible = false;
facing_e_walk_18._visible = false;
thor_baddie_view._visible = false;
thor_baddie_head_view._visible = false;
duck_thor_baddie_head_active = false;
blue_plasma_explosion._visible = false;
objectCollected = 0;
powerCollected = 0;
nutrientCollected = 0;
antiviralCollected = 0;
baddie_2_x_start_pos = 10000;
baddie_2_y_start_pos = 259;
baddie_2_b_x_start_pos = 10000;
baddie_2_b_y_start_pos = 259;
baddie_2_x_start_pos_2 = 10000;
baddie_2_y_start_pos_2 = 265;
baddie_2_b_x_start_pos_2 = 10000;
baddie_2_b_y_start_pos_2 = 265;
health_green._visible = false;
character_view = "off";
plasma_gun_charge_time = 6;
baddie_view_1 = view_4;
baddie_view_2 = view_6;
testing_button._visible = false;
inactive_trigger_view_used = undefined;
switch_a_view_used = view_2;
switch_a_object_view_used = view_3;
switch_b_view_used = view_3;
collect_object_b_view_used = view_4;
switch_b_object_view_used = view_1;
switch_c_view_used = view_4;
switch_c_object_view_used = view_2;
switch_d_view_used = view_5;
collect_object_d_view_used = view_2;
trigger_d_go_to_view = view_8;
object_d_entry_view_x = view8EntryAPosX;
object_d_entry_view_y = view8EntryAPosY;
switch_d_object_view_used = view_1;
switch_e_view_used = view_8;
collect_object_e_view_used = view_4;
switch_e_object_view_used = view_1;
collect_object_f_view_used = view_1;
door_view_used = view_4;
collect_object_view_used = view_2;
collect_power_view_used = view_1;
collect_nutrient_view_used = view_4;
collect_antiviral_view_used = view_3;
view_1_trigger_a_destination = view_3;
view_1_tr_a_label = "turn_cam";
view_1_tr_a_entry_view_x = view3EntryAPosX;
view_1_tr_a_entry_view_y = view3EntryAPosY;
view_1_trigger_a_wind_fade = mc_wind_sound_fade_none;
view_1_tr_a_facing = "south";
view_1_trigger_b_destination = view_1;
view_1_tr_b_label = "turn_cam";
view_1_tr_b_entry_view_x = view1EntryBPosX;
view_1_tr_b_entry_view_y = view1EntryBPosY;
view_1_trigger_b_wind_fade = mc_wind_sound_fade_none;
view_1_tr_b_facing = "south";
view_1_trigger_c_destination = view_6;
view_1_tr_c_label = "turn_cam";
view_1_tr_c_entry_view_x = view6EntryCPosX;
view_1_tr_c_entry_view_y = view6EntryCPosY;
view_1_trigger_c_wind_fade = mc_wind_sound_fade_none;
view_1_tr_c_facing = "south";
view_1_trigger_d_destination = view_6;
view_1_tr_d_label = "turn_cam";
view_1_tr_d_entry_view_x = view6EntryCPosX;
view_1_tr_d_entry_view_y = view6EntryCPosY;
view_1_trigger_d_wind_fade = mc_wind_sound_fade_none;
view_1_tr_d_facing = "south";
view_1_turn_cam_180_trigger_destination = view_2;
view_2_trigger_a_destination = view_3;
view_2_tr_a_label = "turn_cam";
view_2_tr_a_entry_view_x = view3EntryAPosX;
view_2_tr_a_entry_view_y = view3EntryAPosY;
view_2_trigger_a_wind_fade = mc_wind_sound_fade_down;
view_2_tr_a_facing = "south";
view_2_trigger_b_destination = view_3;
view_2_tr_b_label = "turn_cam";
view_2_tr_b_entry_view_x = view3EntryBPosX;
view_2_tr_b_entry_view_y = view3EntryBPosY;
view_2_trigger_b_wind_fade = mc_wind_sound_fade_none;
view_2_tr_b_facing = "south";
view_2_trigger_c_destination = view_6;
view_2_tr_c_label = "turn_cam";
view_2_tr_c_entry_view_x = view6EntryCPosX;
view_2_tr_c_entry_view_y = view6EntryCPosY;
view_2_trigger_c_wind_fade = mc_wind_sound_fade_none;
view_2_tr_c_facing = "south";
view_2_trigger_d_destination = view_6;
view_2_tr_d_label = "turn_cam";
view_2_tr_d_entry_view_x = view6EntryCPosX;
view_2_tr_d_entry_view_y = view6EntryCPosY;
view_2_trigger_d_wind_fade = mc_wind_sound_fade_none;
view_2_tr_d_facing = "south";
view_2_turn_cam_180_trigger_destination = view_1;
view_3_trigger_a_destination = view_2;
view_3_tr_a_label = "turn_cam";
view_3_tr_a_entry_view_x = view2EntryAPosX;
view_3_tr_a_entry_view_y = view2EntryAPosY;
view_3_trigger_a_wind_fade = mc_wind_sound_fade_up;
view_3_tr_a_facing = "south";
view_3_trigger_b_destination = view_5;
view_3_tr_b_label = "use";
view_3_tr_b_entry_view_x = view5EntryBPosX;
view_3_tr_b_entry_view_y = view5EntryBPosY;
view_3_trigger_b_wind_fade = mc_wind_sound_fade_none;
view_3_tr_b_facing = "west";
view_3_trigger_c_destination = view_6;
view_3_tr_c_label = "turn_cam";
view_3_tr_c_entry_view_x = view6EntryCPosX;
view_3_tr_c_entry_view_y = view6EntryCPosY;
view_3_trigger_c_wind_fade = mc_wind_sound_fade_none;
view_3_tr_c_facing = "south";
view_3_trigger_d_destination = view_6;
view_3_tr_d_label = "turn_cam";
view_3_tr_d_entry_view_x = view6EntryCPosX;
view_3_tr_d_entry_view_y = view6EntryCPosY;
view_3_trigger_d_wind_fade = mc_wind_sound_fade_none;
view_3_tr_d_facing = "south";
view_3_turn_cam_180_trigger_destination = view_4;
view_4_trigger_a_destination = view_5;
view_4_tr_a_label = "turn_cam";
view_4_tr_a_entry_view_x = view5EntryAPosX;
view_4_tr_a_entry_view_y = view5EntryAPosY;
view_4_trigger_a_wind_fade = mc_wind_sound_fade_none;
view_4_tr_a_facing = "south";
view_4_trigger_b_destination = view_1;
view_4_tr_b_label = "turn_cam";
view_4_tr_b_entry_view_x = view1EntryBPosX;
view_4_tr_b_entry_view_y = view1EntryBPosY;
view_4_trigger_b_wind_fade = mc_wind_sound_fade_none;
view_4_tr_b_facing = "south";
view_4_trigger_c_destination = view_6;
view_4_tr_c_label = "turn_cam";
view_4_tr_c_entry_view_x = view6EntryCPosX;
view_4_tr_c_entry_view_y = view6EntryCPosY;
view_4_trigger_c_wind_fade = mc_wind_sound_fade_none;
view_4_tr_c_facing = "south";
view_4_trigger_d_destination = view_6;
view_4_tr_d_label = "turn_cam";
view_4_tr_d_entry_view_x = view6EntryCPosX;
view_4_tr_d_entry_view_y = view6EntryCPosY;
view_4_trigger_d_wind_fade = mc_wind_sound_fade_none;
view_4_tr_d_facing = "south";
view_4_turn_cam_180_trigger_destination = view_3;
view_5_trigger_a_destination = view_4;
view_5_tr_a_label = "use";
view_5_tr_a_entry_view_x = view4EntryAPosX;
view_5_tr_a_entry_view_y = view4EntryAPosY;
view_5_trigger_a_wind_fade = mc_wind_sound_fade_none;
view_5_tr_a_facing = "south";
view_5_trigger_b_destination = view_3;
view_5_tr_b_label = "use";
view_5_tr_b_entry_view_x = view3EntryBPosX;
view_5_tr_b_entry_view_y = view3EntryBPosY;
view_5_trigger_b_wind_fade = mc_wind_sound_fade_none;
view_5_tr_b_facing = "east";
view_5_trigger_c_destination = view_6;
view_5_tr_c_label = "turn_cam";
view_5_tr_c_entry_view_x = view6EntryCPosX;
view_5_tr_c_entry_view_y = view6EntryCPosY;
view_5_trigger_c_wind_fade = mc_wind_sound_fade_none;
view_5_tr_c_facing = "south";
view_5_trigger_d_destination = view_6;
view_5_tr_d_label = "turn_cam";
view_5_tr_d_entry_view_x = view6EntryCPosX;
view_5_tr_d_entry_view_y = view6EntryCPosY;
view_5_trigger_d_wind_fade = mc_wind_sound_fade_none;
view_5_tr_d_facing = "south";
view_5_turn_cam_180_trigger_destination = view_6;
view_6_trigger_a_destination = view_4;
view_6_tr_a_label = "use";
view_6_tr_a_entry_view_x = view4EntryAPosX;
view_6_tr_a_entry_view_y = view4EntryAPosY;
view_6_trigger_a_wind_fade = mc_wind_sound_fade_none;
view_6_tr_a_facing = "south";
view_6_trigger_b_destination = view_7;
view_6_tr_b_label = "turn_cam";
view_6_tr_b_entry_view_x = view7EntryBPosX;
view_6_tr_b_entry_view_y = view7EntryBPosY;
view_6_trigger_b_wind_fade = mc_wind_sound_fade_none;
view_6_tr_b_facing = "south";
view_6_trigger_c_destination = view_6;
view_6_tr_c_label = "turn_cam";
view_6_tr_c_entry_view_x = view6EntryCPosX;
view_6_tr_c_entry_view_y = view6EntryCPosY;
view_6_trigger_c_wind_fade = mc_wind_sound_fade_none;
view_6_tr_c_facing = "south";
view_6_trigger_d_destination = view_6;
view_6_tr_d_label = "turn_cam";
view_6_tr_d_entry_view_x = view6EntryCPosX;
view_6_tr_d_entry_view_y = view6EntryCPosY;
view_6_trigger_d_wind_fade = mc_wind_sound_fade_none;
view_6_tr_d_facing = "south";
view_6_turn_cam_180_trigger_destination = view_5;
view_7_trigger_a_destination = view_4;
view_7_tr_a_label = "use";
view_7_tr_a_entry_view_x = view4EntryAPosX;
view_7_tr_a_entry_view_y = view4EntryAPosY;
view_7_trigger_a_wind_fade = mc_wind_sound_fade_none;
view_7_tr_a_facing = "south";
view_7_trigger_b_destination = view_1;
view_7_tr_b_label = "turn_cam";
view_7_tr_b_entry_view_x = view1EntryBPosX;
view_7_tr_b_entry_view_y = view1EntryBPosY;
view_7_trigger_b_wind_fade = mc_wind_sound_fade_none;
view_7_tr_b_facing = "south";
view_7_trigger_c_destination = view_6;
view_7_tr_c_label = "turn_cam";
view_7_tr_c_entry_view_x = view6EntryCPosX;
view_7_tr_c_entry_view_y = view6EntryCPosY;
view_7_trigger_c_wind_fade = mc_wind_sound_fade_none;
view_7_tr_c_facing = "south";
view_7_trigger_d_destination = view_6;
view_7_tr_d_label = "turn_cam";
view_7_tr_d_entry_view_x = view6EntryCPosX;
view_7_tr_d_entry_view_y = view6EntryCPosY;
view_7_trigger_d_wind_fade = mc_wind_sound_fade_none;
view_7_tr_d_facing = "south";
view_7_turn_cam_180_trigger_destination = view_5;
view_8_trigger_a_destination = view_6;
view_8_tr_a_label = "use";
view_8_tr_a_entry_view_x = view6EntryAPosX;
view_8_tr_a_entry_view_y = view6EntryAPosY;
view_8_trigger_a_wind_fade = mc_wind_sound_fade_none;
view_8_tr_a_facing = "south";
view_8_trigger_b_destination = view_1;
view_8_tr_b_label = "turn_cam";
view_8_tr_b_entry_view_x = view1EntryBPosX;
view_8_tr_b_entry_view_y = view1EntryBPosY;
view_8_trigger_b_wind_fade = mc_wind_sound_fade_none;
view_8_tr_b_facing = "south";
view_8_trigger_c_destination = view_6;
view_8_tr_c_label = "turn_cam";
view_8_tr_c_entry_view_x = view6EntryCPosX;
view_8_tr_c_entry_view_y = view6EntryCPosY;
view_8_trigger_c_wind_fade = mc_wind_sound_fade_none;
view_8_tr_c_facing = "south";
view_8_trigger_d_destination = view_6;
view_8_tr_d_label = "turn_cam";
view_8_tr_d_entry_view_x = view6EntryCPosX;
view_8_tr_d_entry_view_y = view6EntryCPosY;
view_8_trigger_d_wind_fade = mc_wind_sound_fade_none;
view_8_tr_d_facing = "south";
view_8_turn_cam_180_trigger_destination = view_7;
use_door_trigger_destination = view_1;
use_door_tr_entry_view_x = view1EntryAPosX;
use_door_tr_entry_view_y = view1EntryAPosY;
use_door_trigger_wind_fade = mc_wind_sound_fade_none;
use_door_tr_facing = "south";
switch_a_object_goes_to_view = view_5;
switch_a_object_tr_entry_view_x = view5EntryAPosX;
switch_a_object_tr_entry_view_y = view5EntryAPosY;
switch_a_object_tr_facing = "south";
switch_b_object_goes_to_view = view_7;
switch_b_object_tr_entry_view_x = view7EntryAPosX;
switch_b_object_tr_entry_view_y = view7EntryAPosY;
switch_b_object_tr_facing = "south";
switch_c_object_goes_to_view = view_7;
switch_c_object_tr_entry_view_x = view7EntryAPosX;
switch_c_object_tr_entry_view_y = view7EntryAPosY;
switch_c_object_tr_facing = "south";
timestep_5_Interval = 17;
timestep_4_Interval = 17;
timestep_3_Interval = 17;
timestep_2_Interval = 17;
timestep_1_Interval = 17;
cha_timestep_Interval = 34;
robot_shot_particles_active = false;
view_1_rain_particles_active = false;
view_2_rain_particles_active = false;
view_3_rain_particles_active = false;
view_4_rain_particles_active = false;
view_5_rain_particles_active = false;
view_6_rain_particles_active = false;
view_7_rain_particles_active = false;
view_8_rain_particles_active = false;
view_1_smoke_bit_particles_active = false;
view_2_smoke_bit_particles_active = false;
view_3_smoke_bit_particles_active = false;
view_4_smoke_bit_particles_active = false;
view_5_smoke_bit_particles_active = false;
view_6_smoke_bit_particles_active = false;
view_7_smoke_bit_particles_active = false;
view_8_smoke_bit_particles_active = false;
view_1_steam_particles_active = false;
view_2_steam_particles_active = false;
view_3_steam_particles_active = false;
view_4_steam_particles_active = false;
view_5_steam_particles_active = false;
view_6_steam_particles_active = false;
view_7_steam_particles_active = false;
view_8_steam_particles_active = false;
view_1_water_particles_active = false;
view_2_water_particles_active = false;
view_3_water_particles_active = false;
view_4_water_particles_active = false;
view_5_water_particles_active = false;
view_6_water_particles_active = false;
view_7_water_particles_active = false;
view_8_water_particles_active = false;
view_1_collision_object_active = false;
view_2_collision_object_active = false;
view_3_collision_object_active = false;
view_4_collision_object_active = false;
view_5_collision_object_active = false;
view_6_collision_object_active = false;
view_7_collision_object_active = false;
view_8_collision_object_active = false;
view_1_air_bar_active = false;
view_2_air_bar_active = false;
view_3_air_bar_active = false;
view_4_air_bar_active = false;
view_5_air_bar_active = false;
view_6_air_bar_active = false;
view_7_air_bar_active = false;
view_8_air_bar_active = false;
steam_offset_x = 163;
water_offset_x = 163;
fps_particles_active = false;
characterScale = 2;
baddie_speed = 1;
characterXOffset = 4;
characterYOffset = 0.6;
cam_movement = "follow_character";
characterXOffsetWalkAdjust = 1.3;
plasmashot_text_mc.plasmashot_text = 30;
doorTimer = 0;
particles_active = true;
particles_active_2 = true;
moveHitTrigger = 0;
messageTimer = 0;
pblw = 3.6;
pblh = 2.2;
pbrw = 1.35;
pbrh = 2;
difference = 0;
keys_active = true;
cam_targeter_xy = "both";
max = 250;
min = -90;
steam_start_x = steam_offset_x;
steam_start_y = steam_offset_y;
view_3_baddie_active = false;
view_5_baddie_active = false;
gun_can_fire = true;
diff = 0;
moveCharacterTopRight = false;
cha_collision_bounding_active = true;
view_6_end_trigger_flag = 0;
quick_close_sound_flag = 0;
timestep_2_once_flag = 0;
baddie_x_offset2 = 0;
baddie_y_offset2 = 0;
i_am_near_view_2_trigger_a = false;
i_am_near_view_2_trigger_b = false;
i_am_near_view_2_trigger_c = false;
i_am_near_view_2_trigger_d = false;
i_am_near_view_3_trigger_a = false;
i_am_near_view_3_trigger_b = false;
i_am_near_view_3_trigger_c = false;
i_am_near_view_3_trigger_d = false;
i_am_near_view_4_trigger_a = false;
i_am_near_view_4_trigger_b = false;
i_am_near_view_4_trigger_c = false;
i_am_near_view_4_trigger_d = false;
i_am_near_view_5_trigger_a = false;
i_am_near_view_5_trigger_b = false;
i_am_near_view_5_trigger_c = false;
i_am_near_view_5_trigger_d = false;
i_am_near_view_6_trigger_a = false;
i_am_near_view_6_trigger_b = false;
i_am_near_view_6_trigger_c = false;
i_am_near_view_6_trigger_d = false;
i_am_near_view_7_trigger_a = false;
i_am_near_view_7_trigger_b = false;
i_am_near_view_7_trigger_c = false;
i_am_near_view_7_trigger_d = false;
i_am_near_view_8_trigger_a = false;
i_am_near_view_8_trigger_b = false;
i_am_near_view_8_trigger_c = false;
i_am_near_view_8_trigger_d = false;
door_sound_lenght_timer = false;
i_am_near_view_1_turn_cam_180_trigger = false;
i_am_near_view_2_turn_cam_180_trigger = false;
i_am_near_view_3_turn_cam_180_trigger = false;
i_am_near_view_4_turn_cam_180_trigger = false;
i_am_near_view_5_turn_cam_180_trigger = false;
i_am_near_view_6_turn_cam_180_trigger = false;
i_am_near_view_7_turn_cam_180_trigger = false;
i_am_near_view_8_turn_cam_180_trigger = false;
plasmaball_is_following_baddie = false;
gamePaused = false;
pause_flag = 0;
view_5_baddie_1_killed = false;
music_fade_down = false;
music_fade_up = false;
baddie_targeted = false;
animation_running = false;
all_baddies_killed = false;
view_5_all_baddies_killed = false;
view_5_all_baddies_killed2 = false;
plasma_explosion_timer_active = false;
plasma_explosion_timer = 0;
start_plasma_ball_timer_active = false;
set_label_flag = 0;
baddie_sound_timer = 0;
load_next_part_flag = 0;
set_label_flag_v1ta = 0;
set_label_flag_v1tb = 0;
set_label_flag_v1tc = 0;
set_label_flag_v1td = 0;
set_label_flag_v2ta = 0;
set_label_flag_v2tb = 0;
set_label_flag_v2tc = 0;
set_label_flag_v2td = 0;
set_label_flag_v3ta = 0;
set_label_flag_v3tb = 0;
set_label_flag_v3tc = 0;
set_label_flag_v3td = 0;
set_label_flag_v4ta = 0;
set_label_flag_v4tb = 0;
set_label_flag_v4tc = 0;
set_label_flag_v4td = 0;
set_label_flag_v5ta = 0;
set_label_flag_v5tb = 0;
set_label_flag_v5tc = 0;
set_label_flag_v5td = 0;
set_label_flag_v6ta = 0;
set_label_flag_v6tb = 0;
set_label_flag_v6tc = 0;
set_label_flag_v6td = 0;
set_label_flag_v7ta = 0;
set_label_flag_v7tb = 0;
set_label_flag_v7tc = 0;
set_label_flag_v7td = 0;
set_label_flag_v8ta = 0;
set_label_flag_v8tb = 0;
set_label_flag_v8tc = 0;
set_label_flag_v8td = 0;
baddie_explode_active = false;
baddie_f_explode_active = false;
baddie_explode_active_timer = 0;
baddie_f_explode_active_timer = 0;
musicVolume = 0;
deadSoundVolume = 100;
key_message_once_flag = 0;
show_message_2_once_flag = 0;
show_message_3_once_flag = 0;
start_plasma_ball_timer = 0;
shot_4_reset_flag = 0;
view_5_shot_4_reset_flag = 0;
cyborgFootstepVolume = 30;
doorVolume = 100;
_3_show_view_5_flag = 0;
character_killed_flag = 0;
ctrl_key_is_down = false;
ball_is_hitting_wall = false;
baddies_scanned_flag_v3 = true;
baddies_scanned_flag_v5 = true;
plasma_explosion_flag = 0;
baddie_alpha_0_flag = 0;
view_5_baddie_alpha_0_flag = 0;
rain_particle_timer = 0;
particle_timer_2 = 0;
blackboard_fade_up_flag = 0;
rain_place_UI_infront_flag = 0;
generate_particles_flag = 0;
generate_particles_flag_2 = 0;
playing_game = 0;
shotSoundVolume = 0;
door_sound_flag = 0;
ta = 0;
baddie_visible = false;
baddie_2f2._visible = false;
baddie_2f3._visible = false;
baddie_2bf2._visible = false;
baddie_2bf3._visible = false;
baddie_walk_direction = "forward";
baddie_fade = false;
view_5_baddie_fade = false;
set_facing = "nul";
windSoundVolume = 80;
windSoundPan = 0;
enterKeyPressed = 0;
baddie_2_b_hit_flag = 0;
baddie_2_hit_flag = 0;
up_arrow_key_down_flag = 0;
ballHitsWallFlag = 0;
down_arrow_key_down_flag = 0;
left_arrow_key_down_flag = 0;
right_arrow_key_down_flag = 0;
view_3_baddies_scanned = 3;
view_5_baddies_scanned = 3;
baddie_shot_flag = 0;
baddie_2_move_timer = 0;
baddie_2_b_move_timer = 0;
first_person_flag = 0;
view_5_baddie_shot_flag = 0;
dist_view_to_cha = 0;
baddie_used = 1;
view_5_baddie_used = 1;
baddie_shot = 0;
baddie_2_hit = 0;
baddie_2_b_hit = 0;
view_5_baddie_shot = 0;
baddie_to_start_flag = 0;
view_5_baddie_to_start_flag = 0;
fireing_timer = 0;
character_facing = "undefiend";
gun_fireing = false;
plasmaball_hits_targeter = false;
show_testing_buttons = false;
plasma_ball_position = "n";
character_collision_point._visible = false;
keys_animation = "east";
w_key_animation = "north";
stopTheAnimation = 1;
normal_interpolate = 1;
workaround = 0;
showMessage = false;
loaded_flag = 0;
fireing_timer_2 = 0;
fireing_timer_2_amount = 5;
flash_message_ticks = 0;
baddie_shot_flag_2 = 0;
view_5_baddie_shot_flag_2 = 0;
doorOpen = false;
doorUnlocked = "no";
iAmNearKeyHole = "no";
baddie_1_killed = false;
baddie_2_killed = false;
turn_collision_grid_invisible = true;
interpolate_speed = 1;
forward_animation = false;
backward_animation = false;
character_animation_timer = 0;
character_animation_timer_2 = 0;
cha_x_offset = 264;
cha_y_offset = 156;
old_cha_x_offset = 270;
old_cha_y_offset = 135;
first_person_flag = 0;
baddie_x_offset = 33340;
baddie_y_offset = 33320;
baddie_move_timer = 350;
door_y_offset = 0;
door_x_offset = 0;
door_mask_x_offset = 0;
door_mask_y_offset = 0;
dummy_y_offset = 100;
dummy_x_offset = 287;
character_size_x = 120;
character_size_y = 120;
character_size = -100;
char_to_edge_of_view_dist = 0;
dummy_to_edge_of_view_dist = 0;
object_2_x_offset = 228;
object_2_y_offset = 188;
show_message_6_flag = 0;
character_can_move = "can_move";
last_key_pressed = "p";
col_area_1_x_offset = 55;
col_area_1_y_offset = 205;
char_col_point_x_offset = 287;
char_col_point_y_offset = 140;
collision_box_width = 40;
collision_box_height = 40;
s_collect_object_sound = new Sound(["view_2_trigger_d"]);
s_collect_object_sound.setVolume(0);
s_collect_object_sound.setVolume(24);
s_collect_object_sound.attachSound("collect_object_sound");
s_ship_engine_sound = new Sound(["view_2_trigger_c"]);
s_ship_engine_sound.setVolume(0);
s_ship_engine_sound.setVolume(100);
s_ship_engine_sound.attachSound("ship_engine");
s_ship_engine_sound.onSoundComplete = callback1;
s_mine_sound = new Sound(["view_2_trigger_b"]);
s_mine_sound.setVolume(0);
s_mine_sound.setVolume(120);
s_mine_sound.attachSound("mine");
s_switch_sound = new Sound(["view_2_trigger_a"]);
s_switch_sound.setVolume(0);
s_switch_sound.setVolume(60);
s_switch_sound.attachSound("switch");
s_thor_start_sound = new Sound(["view_6_collision"]);
s_thor_start_sound.setVolume(0);
s_thor_start_sound.setVolume(1);
s_thor_start_sound.attachSound("thor_start");
s_wind_sound = new Sound(["view_5"]);
s_wind_sound.setVolume(0);
s_wind_sound.setVolume(windSoundVolume);
s_wind_sound.setPan(windSoundPan);
s_wind_sound.attachSound("wind_sound");
s_door_sound = new Sound(["view_3_collision"]);
s_door_sound.setVolume(0);
s_door_sound.setVolume(doorVolume);
s_door_sound.attachSound("door_sound");
s_shot_sound = new Sound(["view_2_collision"]);
s_shot_sound.setVolume(0);
s_shot_sound.setVolume(shotSoundVolume);
s_shot_sound.attachSound("shot_sound");
s_baddie_killed_sound = new Sound(["view_1_trigger_a"]);
s_baddie_killed_sound.setVolume(0);
s_baddie_killed_sound.setVolume(40);
s_baddie_killed_sound.attachSound("baddie_killed_sound");
s_collect_power_sound = new Sound(["view_1_trigger_b"]);
s_collect_power_sound.setVolume(0);
s_collect_power_sound.setVolume(75);
s_collect_power_sound.attachSound("collect_power");
s_music = new Sound(["view_2"]);
s_music.setVolume(0);
s_music.setVolume(musicVolume);
s_music.attachSound("music");
s_battle_music = new Sound(["first_enemy_1"]);
s_battle_music.setVolume(0);
s_battle_music.setVolume(28);
s_battle_music.attachSound("battle_music");
s_boss_battle_music = new Sound(["boss"]);
s_boss_battle_music.setVolume(0);
s_boss_battle_music.setVolume(40);
s_boss_battle_music.attachSound("boss_battle_music");
s_bleep_sound = new Sound(["view_5_trigger_a"]);
s_bleep_sound.setVolume(0);
s_bleep_sound.setVolume(20);
s_bleep_sound.attachSound("bleep_sound");
s_damaged_alarm = new Sound(["view_3"]);
s_damaged_alarm.setVolume(0);
s_damaged_alarm.setVolume(80);
s_damaged_alarm.attachSound("damaged_alarm");
s_ship_alarm = new Sound(["view_1_collision"]);
s_ship_alarm.setVolume(0);
s_ship_alarm.setVolume(8);
s_ship_alarm.attachSound("ship_alarm");
s_ship_rumble = new Sound(["black_bars"]);
s_ship_rumble.setVolume(0);
s_ship_rumble.setVolume(100);
s_ship_rumble.attachSound("Spaceship_rumble");
s_cyborg_footstep = new Sound(["view_4"]);
s_cyborg_footstep.setVolume(0);
s_cyborg_footstep.setVolume(cyborgFootstepVolume);
s_cyborg_footstep.attachSound("cyborg_footstep");
s_baddie_call = new Sound(["view_5_collision"]);
s_baddie_call.setVolume(0);
s_baddie_call.setVolume(80);
s_baddie_call.attachSound("baddie_call");
s_dead_sound = new Sound(["view_4_collision"]);
s_dead_sound.setVolume(0);
s_dead_sound.setVolume(deadSoundVolume);
s_dead_sound.attachSound("dead_sound");
s_lightning_gunfire_sound = new Sound(["view_8_collision"]);
s_lightning_gunfire_sound.setVolume(0);
s_lightning_gunfire_sound.setVolume(lightningGunfireVolume);
s_lightning_gunfire_sound.attachSound("lightning_gunfire");
s_robot_gunfire_sound = new Sound(["speech_1"]);
s_robot_gunfire_sound.setVolume(0);
s_robot_gunfire_sound.setVolume(robotGunfireVolume);
s_robot_gunfire_sound.attachSound("robot_lazer");
s_explosion_sound = new Sound(["speech_2"]);
s_explosion_sound.setVolume(0);
s_explosion_sound.setVolume(7);
s_explosion_sound.attachSound("explosion");
_root.s_explosion_sound.stop(["explosion"]);
s_power_up_sound = new Sound(["speech_3"]);
s_power_up_sound.setVolume(0);
s_power_up_sound.setVolume(30);
s_power_up_sound.attachSound("power_up");
_root.s_power_up_sound.stop(["power_up"]);
s_small_explosion_sound = new Sound(["speech_4"]);
s_small_explosion_sound.setVolume(0);
s_small_explosion_sound.setVolume(100);
s_small_explosion_sound.attachSound("small_explosion");
_root.s_small_explosion_sound.stop(["small_explosion"]);
s_cyborg_repair_sound = new Sound(["speech_5"]);
s_cyborg_repair_sound.setVolume(0);
s_cyborg_repair_sound.setVolume(50);
s_cyborg_repair_sound.attachSound("cyborg_repair");
_root.s_cyborg_repair_sound.stop(["cyborg_repair"]);
s_cutter_sound = new Sound(["e2_shot"]);
s_cutter_sound.setVolume(0);
s_cutter_sound.setVolume(210);
s_cutter_sound.attachSound("cutter_sound");
_root.s_cutter_sound.stop(["cutter_sound"]);
_root.s_ship_alarm.start(0, 999);
battle_won_text.battle_won_box_ok_button.onRelease = function () {
battle_won_text.enemy_weapon_collected_mc._visible = false;
battle_won_screen_active = false;
if (XP_bar.XP_text >= XP_bar.XP_text_total) {
XP_bar.XP_text = 0;
XP_bar.XP_text_total = 120;
XP_bar.XP_inner_bar_mc._width = (XP_bar.XP_text / XP_bar.XP_text_total) * 100;
}
keys_active = true;
};
collect_object_text.collect_object_box_ok_button.onRelease = function () {
collect_object_screen_active = false;
keys_active = true;
};
ingame_speech_1.ingame_speech_ok_button.onRelease = function () {
ingame_speech_box_1._visible = false;
ingame_speech_1._visible = false;
show_ingame_speech_message = false;
};
use_health_button.onRelease = function () {
_root.s_collect_object_sound.start(0, 1);
if (health_amber._visible == true) {
health_amber._visible = false;
health_green._visible = true;
health_fade_down = true;
health_used = true;
}
if (health_red._visible == true) {
health_red._visible = false;
health_amber._visible = true;
health_fade_down = true;
health_used = true;
}
};
ob_b_1st_UI_button_1.onRelease = function () {
energy_wave_function_active = true;
};
about_text.onRelease = function () {
_root.s_bleep_sound.start(0, 2);
game_info_text._visible = true;
controls_info_text._visible = false;
controls_icon._visible = false;
ship_start_view._visible = false;
};
gun_charge_box.highlight_box.onRelease = function () {
gun_charge_box.white_selection_bracket._x = gun_charge_box.highlight_box._x;
gun_charge_box.white_selection_bracket._y = gun_charge_box.highlight_box._y;
gun_charge_factor = 1;
};
gun_charge_box.highlight_box_high.onRelease = function () {
if (gun_charge_box.gun_charge_high._amount > 0) {
gun_charge_box.white_selection_bracket._x = gun_charge_box.highlight_box_high._x;
gun_charge_box.white_selection_bracket._y = gun_charge_box.highlight_box_high._y;
t2_clicked = true;
t3_clicked = true;
gun_charge_factor = 3;
}
};
gun_charge_box.highlight_box_weapon_1.onRelease = function () {
gun_charge_box.white_selection_bracket_weapon._x = gun_charge_box.highlight_box_weapon_1._x;
gun_charge_box.white_selection_bracket_weapon._y = gun_charge_box.highlight_box_weapon_1._y;
if (inventory.inventory_weapon_2_icon._x == inventory.right_hand_box._x) {
inventory.inventory_weapon_2_icon._x = inventory.inventory_plasmagun_icon._x;
inventory.inventory_weapon_2_icon._y = inventory.inventory_plasmagun_icon._y;
inventory.inventory_plasmagun_icon._x = inventory.right_hand_box._x;
inventory.inventory_plasmagun_icon._y = inventory.right_hand_box._y;
}
rpg_cyborg.rpg_cyborg_weapon_2._visible = false;
rpg_cyborg.rpg_cyborg_weapon._visible = true;
f9109243_flag = 0;
};
gun_charge_box.highlight_box_weapon_2.onRelease = function () {
if (rpg_weapon_2_collected == true) {
gun_charge_box.white_selection_bracket_weapon._x = gun_charge_box.highlight_box_weapon_2._x;
gun_charge_box.white_selection_bracket_weapon._y = gun_charge_box.highlight_box_weapon_2._y;
if (inventory.inventory_plasmagun_icon._x == inventory.right_hand_box._x) {
inventory.inventory_plasmagun_icon._x = inventory.inventory_weapon_2_icon._x;
inventory.inventory_plasmagun_icon._y = inventory.inventory_weapon_2_icon._y;
inventory.inventory_weapon_2_icon._x = inventory.right_hand_box._x;
inventory.inventory_weapon_2_icon._y = inventory.right_hand_box._y;
}
rpg_cyborg.rpg_cyborg_weapon._visible = false;
rpg_cyborg.rpg_cyborg_weapon_2._visible = true;
t2_clicked = true;
t3_clicked = true;
f9109243_flag = 0;
}
};
gun_charge_box.weapon_select_icon_2.useHandCursor = false;
gun_charge_box.highlight_box.onRollOver = function () {
gun_charge_box.highlight_box._alpha = 100;
gun_charge_info_box._text = "Shots are only normal power but are unlimited";
active_mouse_info_box = gun_charge_info_box;
mouse_info_active = true;
};
gun_charge_box.highlight_box.onRollOut = function () {
mouse_info_active = false;
gun_charge_box.highlight_box._alpha = 0;
};
gun_charge_box.highlight_box_high.onRollOver = function () {
if (gun_charge_box.gun_charge_high._amount > 0) {
gun_charge_box.highlight_box_high._alpha = 100;
gun_charge_info_box._text = "Shots are 3x as powerful but are limited";
active_mouse_info_box = gun_charge_info_box;
mouse_info_active = true;
}
};
gun_charge_box.highlight_box_high.onRollOut = function () {
mouse_info_active = false;
gun_charge_box.highlight_box_high._alpha = 0;
};
gun_charge_box.highlight_box_weapon_1.onRollOver = function () {
gun_charge_box.highlight_box_weapon_1._alpha = 100;
};
gun_charge_box.highlight_box_weapon_1.onRollOut = function () {
gun_charge_box.highlight_box_weapon_1._alpha = 0;
};
gun_charge_box.highlight_box_weapon_2.onRollOver = function () {
if (rpg_weapon_2_collected == true) {
gun_charge_box.highlight_box_weapon_2._alpha = 100;
}
};
gun_charge_box.highlight_box_weapon_2.onRollOut = function () {
gun_charge_box.highlight_box_weapon_2._alpha = 0;
};
about_text.onRollOver = function () {
_root.s_bleep_sound.start(0, 1);
};
map.zone_1_button.onRollOver = function () {
active_map_button = map.zone_1_button;
map_button_fade_in = true;
};
map.zone_2_button.onRollOver = function () {
active_map_button = map.zone_2_button;
map_button_fade_in = true;
};
map.zone_3_button.onRollOver = function () {
active_map_button = map.zone_3_button;
map_button_fade_in = true;
};
map.zone_1_button.onRollOut = function () {
map.zone_1_button._alpha = 0;
map_button_fade_in = false;
};
map.zone_2_button.onRollOut = function () {
map.zone_2_button._alpha = 0;
map_button_fade_in = false;
};
map.zone_3_button.onRollOut = function () {
map.zone_3_button._alpha = 0;
map_button_fade_in = false;
};
map.zone_1_button.onRelease = function () {
map_button_fade_in = false;
map_active = false;
view_2_trigger_a._visible = false;
view_2_trigger_a_wind_fade._visible = true;
view_3_trigger_a._visible = false;
view_3_trigger_a_wind_fade._visible = true;
view_2_trigger_a._x = 10000;
view_2_trigger_a._y = 10000;
if (view_2._visible == true) {
view_2._visible = false;
} else if (view_3._visible == true) {
view_3._visible = false;
} else if (view_4._visible == true) {
view_4._visible = false;
} else if (view_5._visible == true) {
view_5._visible = false;
}
view_3_trigger_a_destination._visible = true;
shiftCam = true;
cha_x_offset = view_3_tr_a_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_3_tr_a_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_3_tr_a_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
};
map.zone_2_button.onRelease = function () {
map_button_fade_in = false;
map_active = false;
view_2_trigger_a._visible = false;
view_2_trigger_a_wind_fade._visible = true;
view_2_trigger_a._x = 10000;
view_2_trigger_a._y = 10000;
if (view_2._visible == true) {
view_2._visible = false;
} else if (view_3._visible == true) {
view_3._visible = false;
} else if (view_4._visible == true) {
view_4._visible = false;
} else if (view_5._visible == true) {
view_5._visible = false;
}
view_2_trigger_a_destination._visible = true;
shiftCam = true;
cha_x_offset = view_2_tr_a_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_2_tr_a_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_2_tr_a_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
};
map.zone_3_button.onRelease = function () {
map_button_fade_in = false;
map_active = false;
view_2_trigger_a._visible = false;
view_2_trigger_a_wind_fade._visible = true;
view_2_trigger_a._x = 10000;
view_2_trigger_a._y = 10000;
if (view_2._visible == true) {
view_2._visible = false;
} else if (view_3._visible == true) {
view_3._visible = false;
} else if (view_4._visible == true) {
view_4._visible = false;
} else if (view_5._visible == true) {
view_5._visible = false;
}
view_4_trigger_a_destination._visible = true;
shiftCam = true;
cha_x_offset = view_4_tr_a_entry_view_x - (character_stand_n._width / 2);
diff = 316 - view_4_tr_a_entry_view_y;
cha_y_offset = 140 + (diff / 2);
set_facing = view_2_tr_a_facing;
setFaceing = true;
turn_cam_text_t._visible = false;
camera_icon_t._visible = false;
use_hand_t._visible = false;
};
controls_text.onRelease = function () {
_root.s_bleep_sound.start(0, 2);
game_info_text._visible = false;
controls_info_text._visible = true;
controls_icon._visible = true;
ship_start_view._visible = false;
game_info_text._visible = false;
};
controls_text.onRollOver = function () {
_root.s_bleep_sound.start(0, 1);
};
play_text.onRollOver = function () {
_root.s_bleep_sound.start(0, 1);
};
play_text.onRelease = function () {
_root.s_bleep_sound.start(0, 2);
game_info_text._visible = false;
controls_icon._visible = false;
view_2._visible = true;
help_button._visible = true;
menu_button._visible = true;
shotSoundVolume = 50;
plasma_ball._alpha = 100;
_root.s_ship_alarm.stop(["ship_alarm"]);
_root.s_ship_rumble.stop(["Spaceship_rumble"]);
ship_alarm_active = false;
ship_start_view._visible = false;
character_view = "3rd_person";
intro_movie_active = true;
restart_button._visible = true;
playing_game = 1;
scanlines_1._visible = false;
scanlines_2._visible = false;
_root.s_thor_start_sound.stop(["thor_start"]);
_root.s_wind_sound.start(0, 999);
_root.s_music.start(0, 999);
music_fade_up = true;
game_info_text._visible = false;
controls_info_text._visible = false;
controls_icon._visible = false;
about_text._visible = false;
controls_text._visible = false;
play_text._visible = false;
thor_main_image._visible = false;
walk_to_here._visible = true;
};
object_selector.onRelease = function () {
show_object_view._visible = false;
not_show_object_view._visible = true;
object_selector._visible = false;
object_icon._visible = true;
object_collected = true;
};
var debit_colour = new Object();
debit_colour.rb = 0;
debit_colour.gb = 0;
debit_colour.bb = 0;
debit_colour.ab = 0;
var debit_enemy_colour = new Color(rpg_debit_text);
var credit_colour = new Object();
credit_colour.rb = 0;
credit_colour.gb = 0;
credit_colour.bb = 0;
credit_colour.ab = 0;
var credit_enemy_colour = new Color(rpg_credit_text);
var shield_debit_colour = new Object();
shield_debit_colour.rb = 0;
shield_debit_colour.gb = 0;
shield_debit_colour.bb = 0;
shield_debit_colour.ab = 0;
var shield_debit_enemy_colour = new Color(rpg_shield_text);
var cyborg_shield_debit_colour = new Object();
cyborg_shield_debit_colour.rb = 0;
cyborg_shield_debit_colour.gb = 0;
cyborg_shield_debit_colour.bb = 0;
cyborg_shield_debit_colour.ab = 0;
var cyborg_shield_debit_enemy_colour = new Color(rpg_cyborg_shield_text);
var off_white_colour = new Object();
off_white_colour.rb = 63;
off_white_colour.gb = 63;
off_white_colour.bb = 63;
off_white_colour.ab = 0;
var zone_3_text_colour = new Color(map.zone_3_text);
var HP_colour = new Object();
HP_colour.rb = 0;
HP_colour.gb = 0;
HP_colour.bb = 0;
HP_colour.ab = 0;
var HP_hero_colour = new Color(HP_cy10.hero_inner_bar_mc);
var HP_enemy_1_colour = new Color(HP_enemy_1_disk.enemy_1_inner_bar_mc);
var HP_enemy_2_colour = new Color(HP_enemy_2_disk.enemy_2_inner_bar_mc);
HP_colour.rb = 0;
HP_colour.gb = 123;
HP_colour.bb = 0;
HP_colour.ab = 0;
HP_enemy_1_colour.setTransform(HP_colour);
HP_hero_colour.setTransform(HP_colour);
HP_enemy_2_colour.setTransform(HP_colour);
var menu_colour = new Object();
menu_colour.rb = 0;
menu_colour.gb = 0;
menu_colour.bb = 0;
menu_colour.ab = 0;
var menu_colour_1 = new Color(menu_button);
var inventory_colour = new Color(inventory_button);
var message_colour = new Object();
message_colour.rb = 0;
message_colour.gb = 0;
message_colour.bb = 0;
message_colour.ab = 0;
var message_colour_1 = new Color(message_text_mc);
var panel_colour = new Object();
panel_colour.rb = 0;
panel_colour.gb = 0;
panel_colour.bb = 0;
panel_colour.ab = 0;
var panel_colour_1 = new Color(controls_icon);
var panel_colour_2 = new Color(game_info_text);
var panel_colour_3 = new Color(ship_start_view);
var baddie_colour = new Object();
baddie_colour.rb = 0;
baddie_colour.gb = 0;
baddie_colour.bb = 0;
baddie_colour.ab = 0;
var baddie_colour_1 = new Color(baddie_bitmap_mc);
var baddie_colour_2 = new Color(baddie_m_ex_1);
var baddie_colour_3 = new Color(baddie_m_ex_2);
var baddie_colour_4 = new Color(baddie_m_ex_3);
var baddie_b_colour = new Object();
baddie_b_colour.rb = 0;
baddie_b_colour.gb = 0;
baddie_b_colour.bb = 0;
baddie_b_colour.ab = 0;
var baddie_b_colour_1 = new Color(baddie_bitmap_mc_f);
var baddie_b_colour_2 = new Color(baddie_f_ex_1);
var baddie_b_colour_3 = new Color(baddie_f_ex_2);
var baddie_b_colour_4 = new Color(baddie_f_ex_3);
var trans = new Object();
trans.rb = 0;
trans.gb = 0;
trans.bb = 0;
trans.ab = 0;
var col1 = new Color(character_stand_n);
var col2 = new Color(character_stand_e);
var col3 = new Color(character_stand_s);
var col4 = new Color(character_stand_w);
var col5 = new Color(cha_walk_1);
var col6 = new Color(cha_walk_2);
var col7 = new Color(cha_walk_3);
var col8 = new Color(cha_walk_4);
var col9 = new Color(cha_walk_5);
var col10 = new Color(cha_walk_6);
var col11 = new Color(cha_walk_7);
var col12 = new Color(cha_walk_8);
var col13 = new Color(cha_walk_9);
var col14 = new Color(cha_walk_10);
var col15 = new Color(cha_walk_11);
var col16 = new Color(cha_walk_12);
var col17 = new Color(cha_walk_13);
var col18 = new Color(cha_walk_14);
var col19 = new Color(cha_walk_15);
var col20 = new Color(cha_walk_16);
var col21 = new Color(cha_walk_17);
var col22 = new Color(cha_walk_18);
var col23 = new Color(facing_e_walk_1);
var col24 = new Color(facing_e_walk_2);
var col25 = new Color(facing_e_walk_3);
var col26 = new Color(facing_e_walk_4);
var col27 = new Color(facing_e_walk_5);
var col28 = new Color(facing_e_walk_6);
var col29 = new Color(facing_e_walk_7);
var col30 = new Color(facing_e_walk_8);
var col31 = new Color(facing_e_walk_9);
var col32 = new Color(facing_e_walk_10);
var col33 = new Color(facing_e_walk_11);
var col34 = new Color(facing_e_walk_12);
var col35 = new Color(facing_e_walk_13);
var col36 = new Color(facing_e_walk_14);
var col37 = new Color(facing_e_walk_15);
var col38 = new Color(facing_e_walk_16);
var col39 = new Color(facing_e_walk_17);
var col40 = new Color(facing_e_walk_18);
var col41 = new Color(facing_s_walk_1);
var col42 = new Color(facing_s_walk_2);
var col43 = new Color(facing_s_walk_3);
var col44 = new Color(facing_s_walk_4);
var col45 = new Color(facing_s_walk_5);
var col46 = new Color(facing_s_walk_6);
var col47 = new Color(facing_s_walk_7);
var col48 = new Color(facing_s_walk_8);
var col49 = new Color(facing_s_walk_9);
var col50 = new Color(facing_s_walk_10);
var col51 = new Color(facing_s_walk_11);
var col52 = new Color(facing_s_walk_12);
var col53 = new Color(facing_s_walk_13);
var col54 = new Color(facing_s_walk_14);
var col55 = new Color(facing_s_walk_15);
var col56 = new Color(facing_s_walk_16);
var col57 = new Color(facing_s_walk_17);
var col58 = new Color(facing_s_walk_18);
var col59 = new Color(facing_w_walk_1);
var col60 = new Color(facing_w_walk_2);
var col61 = new Color(facing_w_walk_3);
var col62 = new Color(facing_w_walk_4);
var col63 = new Color(facing_w_walk_5);
var col64 = new Color(facing_w_walk_6);
var col65 = new Color(facing_w_walk_7);
var col66 = new Color(facing_w_walk_8);
var col67 = new Color(facing_w_walk_9);
var col68 = new Color(facing_w_walk_10);
var col69 = new Color(facing_w_walk_11);
var col70 = new Color(facing_w_walk_12);
var col71 = new Color(facing_w_walk_13);
var col72 = new Color(facing_w_walk_14);
var col73 = new Color(facing_w_walk_15);
var col74 = new Color(facing_w_walk_16);
var col75 = new Color(facing_w_walk_17);
var col76 = new Color(facing_w_walk_18);
var col77 = new Color(cyborg_gun);
var lightning = this.createEmptyMovieClip("lightning", this.getNextHighestDepth());
lightning._visible = false;
lightning.swapDepths(lightning_depth_holder.getDepth());
lightning.cacheAsBitmap = true;
lightning.lineStyle(4, 16777215, 100);
lightning.moveTo(100, 100);
view_4_lit._visible = false;
view_4_ahead_cha_lit._visible = false;
var gColor = 2578348;
var gAlpha = 1;
var gBlurX = 40;
var gBlurY = 40;
var gStrength = 4;
var gQuality = 2;
var gInner = false;
var gKnockout = false;
var gFilter = (new flash.filters.GlowFilter(gColor, gAlpha, gBlurX, gBlurY, gStrength, gQuality, gInner, gKnockout));
var bDistance = 1;
var bAngle = 0;
var bHighlightColour = 6467555;
var bHighlightAlpha = 0.75;
var bShadowColor = 6467555;
var bShadowAlpha = 0.75;
var bBlurX = 4;
var bBlurY = 4;
var bStrength = 2;
var bQuality = 3;
var bType = undefined;
var bKnockout = undefined;
var bevel = (new flash.filters.BevelFilter(bDistance, bAngle, bHighlightColour, bHighlightAlpha, bShadowColor, bShadowAlpha, bBlurX, bBlurY, bStrength, bQuality, bType, bKnockout));
lightning.filters = [gFilter, bevel];
tech_button.onRelease = function () {
mouse_info_active = false;
target_green_flash_active = false;
tech_button_2._visible = true;
if (tech_button_3._amount > 0) {
tech_button_3._visible = true;
}
if (tech_button_4._amount == 1) {
if (cyborg_shield_bar.HP_text > 0) {
if (cyborg_shield_bar._visible == false) {
if (tech_button_3._amount > 0) {
tech_button_4._y = 255;
} else if (tech_button_3._amount <= 0) {
tech_button_4._y = 275;
}
tech_button_4._visible = true;
}
}
}
enemy_button_1._visible = false;
enemy_button_2._visible = false;
enemy_1_target_1._visible = false;
enemy_1_target_2._visible = false;
enemy_1_target_3._visible = false;
enemy_2_target_1._visible = false;
enemy_2_target_2._visible = false;
enemy_2_target_3._visible = false;
single_enemy_target_1._visible = false;
single_enemy_target_2._visible = false;
single_enemy_target_3._visible = false;
target_part_top_left._visible = false;
target_part_top_right._visible = false;
target_part_bottom_left._visible = false;
target_part_bottom_right._visible = false;
};
attack_button.onRelease = function () {
if (no_enemies_alive == 2) {
enemy_button_1._visible = true;
enemy_button_2._visible = true;
} else if (no_enemies_alive == 1) {
if (view_2._visible == true) {
single_enemy_target_3._text = "Eye sensors";
single_enemy_target_2._text = "Energy pump";
} else if (view_4._visible == true) {
single_enemy_target_3._text = "Plasma chamber";
single_enemy_target_2._text = "Beam focuser";
} else if (view_6._visible == true) {
single_enemy_target_3._text = "Eye sensors";
single_enemy_target_2._text = "Processor";
}
single_enemy_target_1._visible = true;
single_enemy_target_2._visible = true;
single_enemy_target_3._visible = true;
}
tech_button_2._visible = false;
tech_button_3._visible = false;
tech_button_4._visible = false;
};
attack_button.onRollOver = function () {
if ((rpg_enemy_1_killed == false) && (rpg_enemy_2_killed == true)) {
target_green_flash_active = false;
if (view_2._visible == true) {
target_tl_x = 319.95;
target_tl_y = 115;
target_tr_x = 376.95;
target_tr_y = 115;
target_bl_x = 319.95;
target_bl_y = 223;
target_br_x = 376.95;
target_br_y = 223;
} else if (view_4._visible == true) {
target_tl_x = 296.95;
target_tl_y = 137;
target_tr_x = 349.95;
target_tr_y = 138;
target_bl_x = 297.95;
target_bl_y = 199.05;
target_br_x = 351.95;
target_br_y = 199.05;
}
ease_target_parts = true;
target_part_top_left._visible = true;
target_part_top_right._visible = true;
target_part_bottom_left._visible = true;
target_part_bottom_right._visible = true;
}
if ((rpg_enemy_1_killed == true) && (rpg_enemy_2_killed == false)) {
target_green_flash_active = false;
if (view_2._visible == true) {
target_tl_x = 384.95;
target_tl_y = 113;
target_tr_x = 447.95;
target_tr_y = 113;
target_bl_x = 384.95;
target_bl_y = 233;
target_br_x = 447.95;
target_br_y = 233;
} else if (view_4._visible == true) {
target_tl_x = 385.95;
target_tl_y = 139.95;
target_tr_x = 440.95;
target_tr_y = 140.95;
target_bl_x = 386.95;
target_bl_y = 204;
target_br_x = 442.95;
target_br_y = 204;
} else if (view_6._visible == true) {
target_tl_x = 235;
target_tl_y = 128;
target_tr_x = 351.95;
target_tr_y = 128.95;
target_bl_x = 234.95;
target_bl_y = 273.05;
target_br_x = 347.95;
target_br_y = 273.05;
}
ease_target_parts = true;
target_part_top_left._visible = true;
target_part_top_right._visible = true;
target_part_bottom_left._visible = true;
target_part_bottom_right._visible = true;
}
};
single_enemy_target_1.onRollOver = function () {
if ((rpg_enemy_1_killed == false) && (rpg_enemy_2_killed == true)) {
if (view_2._visible == true) {
rpg_target._x = 345.4;
rpg_target._y = 165.5;
} else if (view_4._visible == true) {
rpg_target._x = 345.4;
rpg_target._y = 165.5;
}
}
if ((rpg_enemy_1_killed == true) && (rpg_enemy_2_killed == false)) {
if (view_2._visible == true) {
rpg_target._x = 402.4;
rpg_target._y = 193.5;
} else if (view_4._visible == true) {
rpg_target._x = 402.4;
rpg_target._y = 193.5;
}
}
};
single_enemy_target_2.onRollOver = function () {
active_mouse_info_box = bottom_HP_info_box;
active_mouse_info_box._x = attack_button._x;
active_mouse_info_box._y = attack_button._y;
if (view_2._visible == true) {
} else if (view_4._visible == true) {
}
mouse_info_active = true;
if ((rpg_enemy_1_killed == false) && (rpg_enemy_2_killed == true)) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, charge normal";
}
if (view_2._visible == true) {
if (v2_e1_w1_c1_t2_got == true) {
active_prev_text = ("-" + v2_e1_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w1_c1_t2_got == true) {
active_prev_text = ("-" + v4_e1_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w1_c1_t2_got == true) {
active_prev_text = ("-" + v6_e1_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, x3 charge high";
}
if (view_2._visible == true) {
if (v2_e1_w1_c2_t2_got == true) {
active_prev_text = ("-" + v2_e1_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w1_c2_t2_got == true) {
active_prev_text = ("-" + v4_e1_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w1_c2_t2_got == true) {
active_prev_text = ("-" + v6_e1_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, charge normal";
}
if (view_2._visible == true) {
if (v2_e1_w2_c1_t2_got == true) {
active_prev_text = ("-" + v2_e1_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w2_c1_t2_got == true) {
active_prev_text = ("-" + v4_e1_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w2_c1_t2_got == true) {
active_prev_text = ("-" + v6_e1_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, x3 charge high";
}
if (view_2._visible == true) {
if (v2_e1_w2_c2_t2_got == true) {
active_prev_text = ("-" + v2_e1_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w2_c2_t2_got == true) {
active_prev_text = ("-" + v4_e1_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w2_c2_t2_got == true) {
active_prev_text = ("-" + v6_e1_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
}
}
if (view_2._visible == true) {
cyborg_arm_angle = 0;
rpg_target._x = 342.4;
rpg_target._y = 163.5;
target_tl_x = 326.95;
target_tl_y = 135;
target_tr_x = 368.95;
target_tr_y = 135;
target_bl_x = 326.95;
target_bl_y = 166;
target_br_x = 368.95;
target_br_y = 166;
active_green_flash_mc = green_flash_1_target_2;
target_green_flash_active_state = 0;
target_green_flash_active = true;
} else if (view_4._visible == true) {
cyborg_arm_angle = 7;
rpg_target._x = 322.4;
rpg_target._y = 190.45;
target_tl_x = 311.95;
target_tl_y = 178.95;
target_tr_x = 333.95;
target_tr_y = 179.95;
target_bl_x = 312.95;
target_bl_y = 201;
target_br_x = 334.95;
target_br_y = 201;
active_green_flash_mc = e1_green_flash_target_2;
target_green_flash_active_state = 0;
target_green_flash_active = true;
}
ease_target_parts = true;
}
if ((rpg_enemy_1_killed == true) && (rpg_enemy_2_killed == false)) {
prev_attack_box._text = "";
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, charge normal";
}
if (view_2._visible == true) {
if (v2_e2_w1_c1_t2_got == true) {
active_prev_text = ("-" + v2_e2_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w1_c1_t2_got == true) {
active_prev_text = ("-" + v4_e2_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w1_c1_t2_got == true) {
active_prev_text = ("-" + v6_e2_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, x3 charge high";
}
if (view_2._visible == true) {
if (v2_e2_w1_c2_t2_got == true) {
active_prev_text = ("-" + v2_e2_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w1_c2_t2_got == true) {
active_prev_text = ("-" + v4_e2_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w1_c2_t2_got == true) {
active_prev_text = ("-" + v6_e2_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, charge normal";
}
if (view_2._visible == true) {
if (v2_e2_w2_c1_t2_got == true) {
active_prev_text = ("-" + v2_e2_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w2_c1_t2_got == true) {
active_prev_text = ("-" + v4_e2_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w2_c1_t2_got == true) {
active_prev_text = ("-" + v6_e2_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, x3 charge high";
}
if (view_2._visible == true) {
if (v2_e2_w2_c2_t2_got == true) {
active_prev_text = ("-" + v2_e2_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w2_c2_t2_got == true) {
active_prev_text = ("-" + v4_e2_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w2_c2_t2_got == true) {
active_prev_text = ("-" + v6_e2_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
}
}
if (view_2._visible == true) {
cyborg_arm_angle = 4;
rpg_target._x = 407.4;
rpg_target._y = 170.5;
target_tl_x = 388.95;
target_tl_y = 135;
target_tr_x = 437.95;
target_tr_y = 135;
target_bl_x = 388.95;
target_bl_y = 173;
target_br_x = 437.95;
target_br_y = 173;
active_green_flash_mc = green_flash_2_target_2;
target_green_flash_active_state = 0;
target_green_flash_active = true;
} else if (view_4._visible == true) {
cyborg_arm_angle = 8;
rpg_target._x = 411.4;
rpg_target._y = 196.45;
target_tl_x = 399.95;
target_tl_y = 184.95;
target_tr_x = 423.95;
target_tr_y = 185.95;
target_bl_x = 400.95;
target_bl_y = 207;
target_br_x = 424.95;
target_br_y = 207;
active_green_flash_mc = e2_green_flash_target_2;
target_green_flash_active_state = 0;
target_green_flash_active = true;
} else if (view_6._visible == true) {
cyborg_arm_angle = 8;
rpg_target._x = 292.4;
rpg_target._y = 195.45;
target_tl_x = 262;
target_tl_y = 166;
target_tr_x = 318.95;
target_tr_y = 166.95;
target_bl_x = 263.95;
target_bl_y = 225.05;
target_br_x = 319.95;
target_br_y = 225.05;
active_green_flash_mc = boss_green_flash_target_2;
target_green_flash_active_state = 0;
target_green_flash_active = true;
}
ease_target_parts = true;
}
};
single_enemy_target_2.onRollOut = function () {
prev_attack_box_active = false;
mouse_info_active = false;
};
inventory.inventory_plasmagun_icon.onRollOver = function () {
mouse_info_active = false;
active_mouse_info_box = inventory.thorenzitha_info_box;
inventory.thorenzitha_info_box._x = inventory.inventory_plasmagun_icon._x;
inventory.thorenzitha_info_box._y = inventory.inventory_plasmagun_icon._y;
inventory.robot_pistol_info_box._visible = false;
inventory.health_bot_info_box._visible = false;
inventory.shield_bot_info_box._visible = false;
mouse_info_active = true;
};
inventory.inventory_plasmagun_icon.onRollOut = function () {
mouse_info_active = false;
};
inventory.rpg_health_bot_icon_1.onRollOver = function () {
active_mouse_info_box = inventory.health_bot_info_box;
inventory.health_bot_info_box._x = inventory.rpg_health_bot_icon_1._x;
inventory.health_bot_info_box._y = inventory.rpg_health_bot_icon_1._y;
inventory.robot_pistol_info_box._visible = false;
inventory.thorenzitha_info_box._visible = false;
inventory.shield_bot_info_box._visible = false;
mouse_info_active = true;
};
inventory.rpg_health_bot_icon_1.onRollOut = function () {
mouse_info_active = false;
};
inventory.rpg_health_bot_icon_1.onRelease = function () {
tech_button_3._amount = tech_button_3._amount - 1;
inventory.rpg_health_bot_icon_1._visible = false;
HP_cy10.HP_text = HP_cy10.HP_text + 40;
if (HP_cy10.HP_text >= HP_cy10.HP_text_total) {
HP_cy10.HP_text = HP_cy10.HP_text_total;
}
_root.s_cyborg_repair_sound.start(0, 1);
HP_cy10.hero_inner_bar_mc._width = (HP_cy10.HP_text / HP_cy10.HP_text_total) * 100;
set_cyborg_hp_colour();
};
inventory.rpg_health_bot_icon_2.onRollOver = function () {
active_mouse_info_box = inventory.health_bot_info_box;
inventory.health_bot_info_box._x = inventory.rpg_health_bot_icon_2._x;
inventory.health_bot_info_box._y = inventory.rpg_health_bot_icon_2._y;
inventory.robot_pistol_info_box._visible = false;
inventory.thorenzitha_info_box._visible = false;
inventory.shield_bot_info_box._visible = false;
mouse_info_active = true;
};
inventory.rpg_health_bot_icon_2.onRollOut = function () {
mouse_info_active = false;
};
inventory.rpg_health_bot_icon_2.onRelease = function () {
tech_button_3._amount = tech_button_3._amount - 1;
inventory.rpg_health_bot_icon_2._visible = false;
HP_cy10.HP_text = HP_cy10.HP_text + 40;
if (HP_cy10.HP_text >= HP_cy10.HP_text_total) {
HP_cy10.HP_text = HP_cy10.HP_text_total;
}
_root.s_cyborg_repair_sound.start(0, 1);
HP_cy10.hero_inner_bar_mc._width = (HP_cy10.HP_text / HP_cy10.HP_text_total) * 100;
set_cyborg_hp_colour();
};
inventory.rpg_health_bot_icon_3.onRollOver = function () {
active_mouse_info_box = inventory.health_bot_info_box;
inventory.health_bot_info_box._x = inventory.rpg_health_bot_icon_3._x;
inventory.health_bot_info_box._y = inventory.rpg_health_bot_icon_3._y;
inventory.robot_pistol_info_box._visible = false;
inventory.thorenzitha_info_box._visible = false;
inventory.shield_bot_info_box._visible = false;
mouse_info_active = true;
};
inventory.rpg_health_bot_icon_3.onRollOut = function () {
mouse_info_active = false;
};
inventory.rpg_health_bot_icon_3.onRelease = function () {
tech_button_3._amount = tech_button_3._amount - 1;
inventory.rpg_health_bot_icon_3._visible = false;
HP_cy10.HP_text = HP_cy10.HP_text + 40;
if (HP_cy10.HP_text >= HP_cy10.HP_text_total) {
HP_cy10.HP_text = HP_cy10.HP_text_total;
}
_root.s_cyborg_repair_sound.start(0, 1);
HP_cy10.hero_inner_bar_mc._width = (HP_cy10.HP_text / HP_cy10.HP_text_total) * 100;
set_cyborg_hp_colour();
};
inventory.rpg_health_bot_icon_4.onRollOver = function () {
active_mouse_info_box = inventory.health_bot_info_box;
inventory.health_bot_info_box._x = inventory.rpg_health_bot_icon_4._x;
inventory.health_bot_info_box._y = inventory.rpg_health_bot_icon_4._y;
inventory.robot_pistol_info_box._visible = false;
inventory.thorenzitha_info_box._visible = false;
inventory.shield_bot_info_box._visible = false;
mouse_info_active = true;
};
inventory.rpg_health_bot_icon_4.onRollOut = function () {
mouse_info_active = false;
};
inventory.rpg_health_bot_icon_4.onRelease = function () {
tech_button_3._amount = tech_button_3._amount - 1;
inventory.rpg_health_bot_icon_4._visible = false;
HP_cy10.HP_text = HP_cy10.HP_text + 40;
if (HP_cy10.HP_text >= HP_cy10.HP_text_total) {
HP_cy10.HP_text = HP_cy10.HP_text_total;
}
_root.s_cyborg_repair_sound.start(0, 1);
HP_cy10.hero_inner_bar_mc._width = (HP_cy10.HP_text / HP_cy10.HP_text_total) * 100;
set_cyborg_hp_colour();
};
inventory.inventory_shield_bot_icon.onRollOver = function () {
active_mouse_info_box = inventory.shield_bot_info_box;
inventory.shield_bot_info_box._x = inventory.inventory_shield_bot_icon._x;
inventory.shield_bot_info_box._y = inventory.inventory_shield_bot_icon._y;
inventory.robot_pistol_info_box._visible = false;
inventory.thorenzitha_info_box._visible = false;
inventory.health_bot_info_box._visible = false;
mouse_info_active = true;
};
inventory.inventory_shield_bot_icon.onRollOut = function () {
mouse_info_active = false;
};
inventory.inventory_shield_bot_icon.onRelease = function () {
};
inventory.inventory_weapon_2_icon.onRollOver = function () {
mouse_info_active = false;
active_mouse_info_box = inventory.robot_pistol_info_box;
inventory.robot_pistol_info_box._x = inventory.inventory_weapon_2_icon._x;
inventory.robot_pistol_info_box._y = inventory.inventory_weapon_2_icon._y;
inventory.thorenzitha_info_box._visible = false;
inventory.health_bot_info_box._visible = false;
inventory.shield_bot_info_box._visible = false;
mouse_info_active = true;
};
inventory.inventory_weapon_2_icon.onRollOut = function () {
mouse_info_active = false;
};
tech_button_3.onRollOver = function () {
active_mouse_info_box = tech_info_box;
if ((tech_button_3._visible == true) && (tech_button_4._visible == false)) {
active_mouse_info_box._x = tech_button_3._x;
active_mouse_info_box._y = tech_button_3._y;
} else if ((tech_button_3._visible == true) && (tech_button_4._visible == true)) {
active_mouse_info_box._x = tech_button_4._x;
active_mouse_info_box._y = tech_button_4._y;
}
active_mouse_info_box.line_1 = "Restores 40 HP";
mouse_info_active = true;
};
tech_button_3.onRollOut = function () {
mouse_info_active = false;
};
tech_button_4.onRollOver = function () {
active_mouse_info_box = tech_info_box;
active_mouse_info_box.line_1 = ("Turn on shield " + cyborg_shield_bar.HP_text) + "%";
if ((tech_button_3._visible == true) && (tech_button_4._visible == false)) {
active_mouse_info_box._x = tech_button_3._x;
active_mouse_info_box._y = tech_button_3._y;
} else if ((tech_button_3._visible == true) && (tech_button_4._visible == true)) {
active_mouse_info_box._x = tech_button_4._x;
active_mouse_info_box._y = tech_button_4._y;
} else if ((tech_button_3._visible == false) && (tech_button_4._visible == true)) {
active_mouse_info_box._x = tech_button_3._x;
active_mouse_info_box._y = tech_button_3._y;
}
mouse_info_active = true;
};
tech_button_4.onRollOut = function () {
mouse_info_active = false;
};
single_enemy_target_3.onRollOver = function () {
active_mouse_info_box = bottom_HP_info_box;
active_mouse_info_box._x = attack_button._x;
active_mouse_info_box._y = attack_button._y;
mouse_info_active = true;
if (view_2._visible == true) {
} else if (view_4._visible == true) {
}
if ((rpg_enemy_1_killed == false) && (rpg_enemy_2_killed == true)) {
prev_attack_box._text = "";
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, charge normal";
}
if (view_2._visible == true) {
if (v2_e1_w1_c1_t3_got == true) {
active_prev_text = ("-" + v2_e1_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w1_c1_t3_got == true) {
active_prev_text = ("-" + v4_e1_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w1_c1_t3_got == true) {
active_prev_text = ("-" + v6_e1_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, x3 charge high";
}
if (view_2._visible == true) {
if (v2_e1_w1_c2_t3_got == true) {
active_prev_text = ("-" + v2_e1_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w1_c2_t3_got == true) {
active_prev_text = ("-" + v4_e1_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w1_c2_t3_got == true) {
active_prev_text = ("-" + v6_e1_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, charge normal";
}
if (view_2._visible == true) {
if (v2_e1_w2_c1_t3_got == true) {
active_prev_text = ("-" + v2_e1_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w2_c1_t3_got == true) {
active_prev_text = ("-" + v4_e1_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w2_c1_t3_got == true) {
active_prev_text = ("-" + v6_e1_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, x3 charge high";
}
if (view_2._visible == true) {
if (v2_e1_w2_c2_t3_got == true) {
active_prev_text = ("-" + v2_e1_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w2_c2_t3_got == true) {
active_prev_text = ("-" + v4_e1_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w2_c2_t3_got == true) {
active_prev_text = ("-" + v6_e1_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
}
}
if (enemy_1_eye_blisters._visible == false) {
} else if (enemy_1_eye_blisters._visible == true) {
}
if (view_2._visible == true) {
cyborg_arm_angle = -6;
rpg_target._x = 347.4;
rpg_target._y = 129.5;
target_tl_x = 329.95;
target_tl_y = 114;
target_tr_x = 365.95;
target_tr_y = 116;
target_bl_x = 329.95;
target_bl_y = 141;
target_br_x = 365.95;
target_br_y = 141;
active_green_flash_mc = green_flash_1_target_3;
target_green_flash_active_state = 0;
target_green_flash_active = true;
} else if (view_4._visible == true) {
cyborg_arm_angle = 2;
rpg_target._x = 347.4;
rpg_target._y = 129.5;
target_tl_x = 313.95;
target_tl_y = 150;
target_tr_x = 336.95;
target_tr_y = 151;
target_bl_x = 314.95;
target_bl_y = 175.05;
target_br_x = 337.95;
target_br_y = 175;
active_green_flash_mc = e1_green_flash_target_3;
target_green_flash_active_state = 0;
target_green_flash_active = true;
}
ease_target_parts = true;
}
if ((rpg_enemy_1_killed == true) && (rpg_enemy_2_killed == false)) {
prev_attack_box._text = "";
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, charge normal";
}
if (view_2._visible == true) {
if (v2_e2_w1_c1_t3_got == true) {
active_prev_text = ("-" + v2_e2_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w1_c1_t3_got == true) {
active_prev_text = ("-" + v4_e2_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w1_c1_t3_got == true) {
active_prev_text = ("-" + v6_e2_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, x3 charge high";
}
if (view_2._visible == true) {
if (v2_e2_w1_c2_t3_got == true) {
active_prev_text = ("-" + v2_e2_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w1_c2_t3_got == true) {
active_prev_text = ("-" + v4_e2_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w1_c2_t3_got == true) {
active_prev_text = ("-" + v6_e2_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, charge normal";
}
if (view_2._visible == true) {
if (v2_e2_w2_c1_t3_got == true) {
active_prev_text = ("-" + v2_e2_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w2_c1_t3_got == true) {
active_prev_text = ("-" + v4_e2_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w2_c1_t3_got == true) {
active_prev_text = ("-" + v6_e2_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, x3 charge high";
}
if (view_2._visible == true) {
if (v2_e2_w2_c2_t3_got == true) {
active_prev_text = ("-" + v2_e2_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w2_c2_t3_got == true) {
active_prev_text = ("-" + v4_e2_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w2_c2_t3_got == true) {
active_prev_text = ("-" + v6_e2_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
}
}
if (enemy_2_eye_blisters._visible == false) {
} else if (enemy_2_eye_blisters._visible == true) {
}
if (view_2._visible == true) {
cyborg_arm_angle = -4;
rpg_target._x = 413.4;
rpg_target._y = 128.5;
target_tl_x = 393.95;
target_tl_y = 114;
target_tr_x = 431.95;
target_tr_y = 116;
target_bl_x = 393.95;
target_bl_y = 142;
target_br_x = 431.95;
target_br_y = 142;
active_green_flash_mc = green_flash_2_target_3;
target_green_flash_active_state = 0;
target_green_flash_active = true;
} else if (view_4._visible == true) {
cyborg_arm_angle = 5;
rpg_target._x = 416.4;
rpg_target._y = 171.45;
target_tl_x = 402.95;
target_tl_y = 154;
target_tr_x = 427.95;
target_tr_y = 155;
target_bl_x = 403.95;
target_bl_y = 182.05;
target_br_x = 428.95;
target_br_y = 182.05;
active_green_flash_mc = e2_green_flash_target_3;
target_green_flash_active_state = 0;
target_green_flash_active = true;
} else if (view_6._visible == true) {
cyborg_arm_angle = -7;
rpg_target._x = 292.4;
rpg_target._y = 141.45;
target_tl_x = 268.95;
target_tl_y = 127.95;
target_tr_x = 314.95;
target_tr_y = 128.95;
target_bl_x = 269.95;
target_bl_y = 156;
target_br_x = 315.95;
target_br_y = 156;
active_green_flash_mc = boss_green_flash_target_3;
target_green_flash_active_state = 0;
target_green_flash_active = true;
}
ease_target_parts = true;
}
};
single_enemy_target_3.onRollOut = function () {
prev_attack_box_active = false;
mouse_info_active = false;
};
single_enemy_target_1.onRelease = function () {
if ((rpg_enemy_1_killed == false) && (rpg_enemy_2_killed == true)) {
enemy_attacked = 1;
enemy_part_attacked = 3;
rpg_gunfire_active = true;
hideAttackButtons();
}
if ((rpg_enemy_1_killed == true) && (rpg_enemy_2_killed == false)) {
enemy_attacked = 2;
enemy_part_attacked = 3;
rpg_gunfire_active = true;
hideAttackButtons();
}
};
single_enemy_target_2.onRelease = function () {
t2_clicked = true;
if ((rpg_enemy_1_killed == false) && (rpg_enemy_2_killed == true)) {
if (view_2._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v2_e1_w1_c1_t2_got = true;
v2_e1_w1_c2_t2_got = true;
active_get_debit_text = "set_v2_e1_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v2_e1_w1_c2_t2_got = true;
v2_e1_w1_c1_t2_got = true;
active_get_debit_text = "set_v2_e1_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v2_e1_w2_c1_t2_got = true;
v2_e1_w2_c2_t2_got = true;
active_get_debit_text = "set_v2_e1_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v2_e1_w2_c2_t2_got = true;
v2_e1_w2_c1_t2_got = true;
active_get_debit_text = "set_v2_e1_w2_c2_t2";
}
} else if (view_4._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v4_e1_w1_c1_t2_got = true;
v4_e1_w1_c2_t2_got = true;
active_get_debit_text = "set_v4_e1_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v4_e1_w1_c2_t2_got = true;
v4_e1_w1_c1_t2_got = true;
active_get_debit_text = "set_v4_e1_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v4_e1_w2_c1_t2_got = true;
v4_e1_w2_c2_t2_got = true;
active_get_debit_text = "set_v4_e1_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v4_e1_w2_c2_t2_got = true;
v4_e1_w2_c1_t2_got = true;
active_get_debit_text = "set_v4_e1_w2_c2_t2";
}
} else if (view_6._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v6_e1_w1_c1_t2_got = true;
v6_e1_w1_c2_t2_got = true;
active_get_debit_text = "set_v6_e1_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v6_e1_w1_c2_t2_got = true;
v6_e1_w1_c1_t2_got = true;
active_get_debit_text = "set_v6_e1_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v6_e1_w2_c1_t2_got = true;
v6_e1_w2_c2_t2_got = true;
active_get_debit_text = "set_v6_e1_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v6_e1_w2_c2_t2_got = true;
v6_e1_w2_c1_t2_got = true;
active_get_debit_text = "set_v6_e1_w2_c2_t2";
}
}
get_debit_text_active = true;
enemy_attacked = 1;
enemy_part_attacked = 1;
rpg_gunfire_active = true;
hideAttackButtons();
}
if ((rpg_enemy_1_killed == true) && (rpg_enemy_2_killed == false)) {
if (view_2._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v2_e2_w1_c1_t2_got = true;
v2_e2_w1_c2_t2_got = true;
active_get_debit_text = "set_v2_e2_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v2_e2_w1_c2_t2_got = true;
v2_e2_w1_c1_t2_got = true;
active_get_debit_text = "set_v2_e2_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v2_e2_w2_c1_t2_got = true;
v2_e2_w2_c2_t2_got = true;
active_get_debit_text = "set_v2_e2_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v2_e2_w2_c2_t2_got = true;
v2_e2_w2_c1_t2_got = true;
active_get_debit_text = "set_v2_e2_w2_c2_t2";
}
} else if (view_4._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v4_e2_w1_c1_t2_got = true;
v4_e2_w1_c2_t2_got = true;
active_get_debit_text = "set_v4_e2_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v4_e2_w1_c2_t2_got = true;
v4_e2_w1_c1_t2_got = true;
active_get_debit_text = "set_v4_e2_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v4_e2_w2_c1_t2_got = true;
v4_e2_w2_c2_t2_got = true;
active_get_debit_text = "set_v4_e2_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v4_e2_w2_c2_t2_got = true;
v4_e2_w2_c1_t2_got = true;
active_get_debit_text = "set_v4_e2_w2_c2_t2";
}
} else if (view_6._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v6_e2_w1_c1_t2_got = true;
v6_e2_w1_c2_t2_got = true;
active_get_debit_text = "set_v6_e2_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v6_e2_w1_c2_t2_got = true;
v6_e2_w1_c1_t2_got = true;
active_get_debit_text = "set_v6_e2_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v6_e2_w2_c1_t2_got = true;
v6_e2_w2_c2_t2_got = true;
active_get_debit_text = "set_v6_e2_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v6_e2_w2_c2_t2_got = true;
v6_e2_w2_c1_t2_got = true;
active_get_debit_text = "set_v6_e2_w2_c2_t2";
}
}
get_debit_text_active = true;
enemy_attacked = 2;
enemy_part_attacked = 1;
rpg_gunfire_active = true;
hideAttackButtons();
}
if (view_6._visible == true) {
if (shield_bar.HP_text > 0) {
boss_shield_active = true;
}
}
};
single_enemy_target_3.onRelease = function () {
t3_clicked = true;
if ((rpg_enemy_1_killed == false) && (rpg_enemy_2_killed == true)) {
if (view_2._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v2_e1_w1_c1_t3_got = true;
v2_e1_w1_c2_t3_got = true;
active_get_debit_text = "set_v2_e1_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v2_e1_w1_c2_t3_got = true;
v2_e1_w1_c1_t3_got = true;
active_get_debit_text = "set_v2_e1_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v2_e1_w2_c1_t3_got = true;
v2_e1_w2_c2_t3_got = true;
active_get_debit_text = "set_v2_e1_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v2_e1_w2_c2_t3_got = true;
v2_e1_w2_c1_t3_got = true;
active_get_debit_text = "set_v2_e1_w2_c2_t3";
}
} else if (view_4._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v4_e1_w1_c1_t3_got = true;
v4_e1_w1_c2_t3_got = true;
active_get_debit_text = "set_v4_e1_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v4_e1_w1_c2_t3_got = true;
v4_e1_w1_c1_t3_got = true;
active_get_debit_text = "set_v4_e1_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v4_e1_w2_c1_t3_got = true;
v4_e1_w2_c2_t3_got = true;
active_get_debit_text = "set_v4_e1_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v4_e1_w2_c2_t3_got = true;
v4_e1_w2_c1_t3_got = true;
active_get_debit_text = "set_v4_e1_w2_c2_t3";
}
} else if (view_6._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v6_e1_w1_c1_t3_got = true;
v6_e1_w1_c2_t3_got = true;
active_get_debit_text = "set_v6_e1_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v6_e1_w1_c2_t3_got = true;
v6_e1_w1_c1_t3_got = true;
active_get_debit_text = "set_v6_e1_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v6_e1_w2_c1_t3_got = true;
v6_e1_w2_c2_t3_got = true;
active_get_debit_text = "set_v6_e1_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v6_e1_w2_c2_t3_got = true;
v6_e1_w2_c1_t3_got = true;
active_get_debit_text = "set_v6_e1_w2_c2_t3";
}
}
get_debit_text_active = true;
enemy_attacked = 1;
enemy_part_attacked = 2;
rpg_gunfire_active = true;
hideAttackButtons();
}
if ((rpg_enemy_1_killed == true) && (rpg_enemy_2_killed == false)) {
if (view_2._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v2_e2_w1_c1_t3_got = true;
v2_e2_w1_c2_t3_got = true;
active_get_debit_text = "set_v2_e2_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v2_e2_w1_c2_t3_got = true;
v2_e2_w1_c1_t3_got = true;
active_get_debit_text = "set_v2_e2_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v2_e2_w2_c1_t3_got = true;
v2_e2_w2_c2_t3_got = true;
active_get_debit_text = "set_v2_e2_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v2_e2_w2_c2_t3_got = true;
v2_e2_w2_c1_t3_got = true;
active_get_debit_text = "set_v2_e2_w2_c2_t3";
}
} else if (view_4._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v4_e2_w1_c1_t3_got = true;
v4_e2_w1_c2_t3_got = true;
active_get_debit_text = "set_v4_e2_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v4_e2_w1_c2_t3_got = true;
v4_e2_w1_c1_t3_got = true;
active_get_debit_text = "set_v4_e2_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v4_e2_w2_c1_t3_got = true;
v4_e2_w2_c2_t3_got = true;
active_get_debit_text = "set_v4_e2_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v4_e2_w2_c2_t3_got = true;
v4_e2_w2_c1_t3_got = true;
active_get_debit_text = "set_v4_e2_w2_c2_t3";
}
} else if (view_6._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v6_e2_w1_c1_t3_got = true;
v6_e2_w1_c2_t3_got = true;
active_get_debit_text = "set_v6_e2_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v6_e2_w1_c2_t3_got = true;
v6_e2_w1_c1_t3_got = true;
active_get_debit_text = "set_v6_e2_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v6_e2_w2_c1_t3_got = true;
v6_e2_w2_c2_t3_got = true;
active_get_debit_text = "set_v6_e2_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v6_e2_w2_c2_t3_got = true;
v6_e2_w2_c1_t3_got = true;
active_get_debit_text = "set_v6_e2_w2_c2_t3";
}
}
get_debit_text_active = true;
enemy_attacked = 2;
enemy_part_attacked = 2;
rpg_gunfire_active = true;
hideAttackButtons();
}
if (view_6._visible == true) {
if (shield_bar.HP_text > 0) {
boss_shield_active = true;
}
}
};
enemy_1_target_1.onRelease = function () {
enemy_attacked = 1;
enemy_part_attacked = 3;
rpg_gunfire_active = true;
hideAttackButtons();
};
enemy_1_target_2.onRelease = function () {
if (view_2._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v2_e1_w1_c1_t2_got = true;
v2_e1_w1_c2_t2_got = true;
active_get_debit_text = "set_v2_e1_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v2_e1_w1_c2_t2_got = true;
v2_e1_w1_c1_t2_got = true;
active_get_debit_text = "set_v2_e1_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v2_e1_w2_c1_t2_got = true;
v2_e1_w2_c2_t2_got = true;
active_get_debit_text = "set_v2_e1_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v2_e1_w2_c2_t2_got = true;
v2_e1_w2_c1_t2_got = true;
active_get_debit_text = "set_v2_e1_w2_c2_t2";
}
} else if (view_4._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v4_e1_w1_c1_t2_got = true;
v4_e1_w1_c2_t2_got = true;
active_get_debit_text = "set_v4_e1_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v4_e1_w1_c2_t2_got = true;
v4_e1_w1_c1_t2_got = true;
active_get_debit_text = "set_v4_e1_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v4_e1_w2_c1_t2_got = true;
v4_e1_w2_c2_t2_got = true;
active_get_debit_text = "set_v4_e1_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v4_e1_w2_c2_t2_got = true;
v4_e1_w2_c1_t2_got = true;
active_get_debit_text = "set_v4_e1_w2_c2_t2";
}
} else if (view_6._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v6_e1_w1_c1_t2_got = true;
v6_e1_w1_c2_t2_got = true;
active_get_debit_text = "set_v6_e1_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v6_e1_w1_c2_t2_got = true;
v6_e1_w1_c1_t2_got = true;
active_get_debit_text = "set_v6_e1_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v6_e1_w2_c1_t2_got = true;
v6_e1_w2_c2_t2_got = true;
active_get_debit_text = "set_v6_e1_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v6_e1_w2_c2_t2_got = true;
v6_e1_w2_c1_t2_got = true;
active_get_debit_text = "set_v6_e1_w2_c2_t2";
}
}
get_debit_text_active = true;
t2_clicked = true;
enemy_attacked = 1;
enemy_part_attacked = 1;
rpg_gunfire_active = true;
hideAttackButtons();
};
enemy_1_target_3.onRelease = function () {
if (view_2._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v2_e1_w1_c1_t3_got = true;
v2_e1_w1_c2_t3_got = true;
active_get_debit_text = "set_v2_e1_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v2_e1_w1_c2_t3_got = true;
v2_e1_w1_c1_t3_got = true;
active_get_debit_text = "set_v2_e1_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v2_e1_w2_c1_t3_got = true;
v2_e1_w2_c2_t3_got = true;
active_get_debit_text = "set_v2_e1_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v2_e1_w2_c2_t3_got = true;
v2_e1_w2_c1_t3_got = true;
active_get_debit_text = "set_v2_e1_w2_c2_t3";
}
} else if (view_4._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v4_e1_w1_c1_t3_got = true;
v4_e1_w1_c2_t3_got = true;
active_get_debit_text = "set_v4_e1_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v4_e1_w1_c2_t3_got = true;
v4_e1_w1_c1_t3_got = true;
active_get_debit_text = "set_v4_e1_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v4_e1_w2_c1_t3_got = true;
v4_e1_w2_c2_t3_got = true;
active_get_debit_text = "set_v4_e1_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v4_e1_w2_c2_t3_got = true;
v4_e1_w2_c1_t3_got = true;
active_get_debit_text = "set_v4_e1_w2_c2_t3";
}
} else if (view_6._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v6_e1_w1_c1_t3_got = true;
v6_e1_w1_c2_t3_got = true;
active_get_debit_text = "set_v6_e1_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v6_e1_w1_c2_t3_got = true;
v6_e1_w1_c1_t3_got = true;
active_get_debit_text = "set_v6_e1_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v6_e1_w2_c1_t3_got = true;
v6_e1_w2_c2_t3_got = true;
active_get_debit_text = "set_v6_e1_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v6_e1_w2_c2_t3_got = true;
v6_e1_w2_c1_t3_got = true;
active_get_debit_text = "set_v6_e1_w2_c2_t3";
}
}
get_debit_text_active = true;
t3_clicked = true;
enemy_attacked = 1;
enemy_part_attacked = 2;
rpg_gunfire_active = true;
hideAttackButtons();
};
enemy_2_target_1.onRelease = function () {
enemy_attacked = 2;
enemy_part_attacked = 3;
rpg_gunfire_active = true;
hideAttackButtons();
};
enemy_2_target_2.onRelease = function () {
if (view_2._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v2_e2_w1_c1_t2_got = true;
v2_e2_w1_c2_t2_got = true;
active_get_debit_text = "set_v2_e2_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v2_e2_w1_c2_t2_got = true;
v2_e2_w1_c1_t2_got = true;
active_get_debit_text = "set_v2_e2_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v2_e2_w2_c1_t2_got = true;
v2_e2_w2_c2_t2_got = true;
active_get_debit_text = "set_v2_e2_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v2_e2_w2_c2_t2_got = true;
v2_e2_w2_c1_t2_got = true;
active_get_debit_text = "set_v2_e2_w2_c2_t2";
}
}
if (view_4._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v4_e2_w1_c1_t2_got = true;
v4_e2_w1_c2_t2_got = true;
active_get_debit_text = "set_v4_e2_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v4_e2_w1_c2_t2_got = true;
v4_e2_w1_c1_t2_got = true;
active_get_debit_text = "set_v4_e2_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v4_e2_w2_c1_t2_got = true;
v4_e2_w2_c2_t2_got = true;
active_get_debit_text = "set_v4_e2_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v4_e2_w2_c2_t2_got = true;
v4_e2_w2_c1_t2_got = true;
active_get_debit_text = "set_v4_e2_w2_c2_t2";
}
}
if (view_6._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v6_e2_w1_c1_t2_got = true;
v6_e2_w1_c2_t2_got = true;
active_get_debit_text = "set_v6_e2_w1_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v6_e2_w1_c2_t2_got = true;
v6_e2_w1_c1_t2_got = true;
active_get_debit_text = "set_v6_e2_w1_c2_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v6_e2_w2_c1_t2_got = true;
v6_e2_w2_c2_t2_got = true;
active_get_debit_text = "set_v6_e2_w2_c1_t2";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v6_e2_w2_c2_t2_got = true;
v6_e2_w2_c1_t2_got = true;
active_get_debit_text = "set_v6_e2_w2_c2_t2";
}
}
get_debit_text_active = true;
t2_clicked = true;
enemy_attacked = 2;
enemy_part_attacked = 1;
rpg_gunfire_active = true;
hideAttackButtons();
};
enemy_2_target_3.onRelease = function () {
if (view_2._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v2_e2_w1_c1_t3_got = true;
v2_e2_w1_c2_t3_got = true;
active_get_debit_text = "set_v2_e2_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v2_e2_w1_c2_t3_got = true;
v2_e2_w1_c1_t3_got = true;
active_get_debit_text = "set_v2_e2_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v2_e2_w2_c1_t3_got = true;
v2_e2_w2_c2_t3_got = true;
active_get_debit_text = "set_v2_e2_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v2_e2_w2_c2_t3_got = true;
v2_e2_w2_c1_t3_got = true;
active_get_debit_text = "set_v2_e2_w2_c2_t3";
}
}
if (view_4._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v4_e2_w1_c1_t3_got = true;
v4_e2_w1_c2_t3_got = true;
active_get_debit_text = "set_v4_e2_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v4_e2_w1_c2_t3_got = true;
v4_e2_w1_c1_t3_got = true;
active_get_debit_text = "set_v4_e2_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v4_e2_w2_c1_t3_got = true;
v4_e2_w2_c2_t3_got = true;
active_get_debit_text = "set_v4_e2_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v4_e2_w2_c2_t3_got = true;
v4_e2_w2_c1_t3_got = true;
active_get_debit_text = "set_v4_e2_w2_c2_t3";
}
}
if (view_6._visible == true) {
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
v6_e2_w1_c1_t3_got = true;
v6_e2_w1_c2_t3_got = true;
active_get_debit_text = "set_v6_e2_w1_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
v6_e2_w1_c2_t3_got = true;
v6_e2_w1_c1_t3_got = true;
active_get_debit_text = "set_v6_e2_w1_c2_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
v6_e2_w2_c1_t3_got = true;
v6_e2_w2_c2_t3_got = true;
active_get_debit_text = "set_v6_e2_w2_c1_t3";
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
v6_e2_w2_c2_t3_got = true;
v6_e2_w2_c1_t3_got = true;
active_get_debit_text = "set_v6_e2_w2_c2_t3";
}
}
get_debit_text_active = true;
t3_clicked = true;
enemy_attacked = 2;
enemy_part_attacked = 2;
rpg_gunfire_active = true;
hideAttackButtons();
};
tech_button_2.onRelease = function () {
hideAttackButtons();
};
tech_button_3.onRelease = function () {
rpg_health_active = true;
hideAttackButtons();
};
tech_button_4.onRelease = function () {
rpg_cyborg_shield_running = true;
rpg_cyborg_shield_active = true;
cyborg_shield_bar._visible = true;
active_mc_3 = cyborg_shield_info_box;
fade_in_and_ease_mc_active_3 = true;
hideAttackButtons();
};
enemy_button_1.onRollOver = function () {
mouse_info_active = false;
target_green_flash_active = false;
target_part_top_left._visible = true;
target_part_top_right._visible = true;
target_part_bottom_left._visible = true;
target_part_bottom_right._visible = true;
if (view_2._visible == true) {
enemy_1_target_3._text = "Eye sensors";
enemy_1_target_2._text = "Energy pump";
target_tl_x = 319.95;
target_tl_y = 115;
target_tr_x = 376.95;
target_tr_y = 115;
target_bl_x = 319.95;
target_bl_y = 223;
target_br_x = 376.95;
target_br_y = 223;
} else if (view_4._visible == true) {
enemy_1_target_3._text = "Plasma chamber";
enemy_1_target_2._text = "Beam focuser";
target_tl_x = 296.95;
target_tl_y = 137;
target_tr_x = 349.95;
target_tr_y = 138;
target_bl_x = 297.95;
target_bl_y = 199.05;
target_br_x = 351.95;
target_br_y = 199.05;
}
ease_target_parts = true;
enemy_1_target_1._visible = true;
enemy_1_target_2._visible = true;
enemy_1_target_3._visible = true;
enemy_2_target_1._visible = false;
enemy_2_target_2._visible = false;
enemy_2_target_3._visible = false;
};
enemy_1_target_1.onRollOver = function () {
rpg_target._x = 359.4;
rpg_target._y = 173.45;
};
enemy_1_target_2.onRollOver = function () {
prev_attack_box._text = "";
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, charge normal";
}
if (view_2._visible == true) {
if (v2_e1_w1_c1_t2_got == true) {
active_prev_text = ("-" + v2_e1_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w1_c1_t2_got == true) {
active_prev_text = ("-" + v4_e1_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w1_c1_t2_got == true) {
active_prev_text = ("-" + v6_e1_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, x3 charge high";
if (view_2._visible == true) {
if (v2_e1_w1_c2_t2_got == true) {
active_prev_text = ("-" + v2_e1_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w1_c2_t2_got == true) {
active_prev_text = ("-" + v4_e1_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w1_c2_t2_got == true) {
active_prev_text = ("-" + v6_e1_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, charge normal";
if (view_2._visible == true) {
if (v2_e1_w2_c1_t2_got == true) {
active_prev_text = ("-" + v2_e1_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w2_c1_t2_got == true) {
active_prev_text = ("-" + v4_e1_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w2_c1_t2_got == true) {
active_prev_text = ("-" + v6_e1_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, x3 charge high";
if (view_2._visible == true) {
if (v2_e1_w2_c2_t2_got == true) {
active_prev_text = ("-" + v2_e1_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w2_c2_t2_got == true) {
active_prev_text = ("-" + v4_e1_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w2_c2_t2_got == true) {
active_prev_text = ("-" + v6_e1_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
}
}
active_mouse_info_box = bottom_HP_info_box;
active_mouse_info_box._x = enemy_button_1._x;
active_mouse_info_box._y = enemy_button_1._y;
mouse_info_active = true;
if (view_2._visible == true) {
}
if (view_2._visible == true) {
cyborg_arm_angle = 0;
rpg_target._x = 342.4;
rpg_target._y = 163.5;
target_tl_x = 326.95;
target_tl_y = 145;
target_tr_x = 368.95;
target_tr_y = 145;
target_bl_x = 326.95;
target_bl_y = 176;
target_br_x = 368.95;
target_br_y = 176;
active_green_flash_mc = green_flash_1_target_2;
target_green_flash_active_state = 0;
target_green_flash_active = true;
} else if (view_4._visible == true) {
cyborg_arm_angle = 7;
rpg_target._x = 322.4;
rpg_target._y = 190.45;
target_tl_x = 311.95;
target_tl_y = 178.95;
target_tr_x = 333.95;
target_tr_y = 179.95;
target_bl_x = 312.95;
target_bl_y = 201;
target_br_x = 334.95;
target_br_y = 201;
active_green_flash_mc = e1_green_flash_target_2;
target_green_flash_active_state = 0;
target_green_flash_active = true;
}
ease_target_parts = true;
};
enemy_1_target_2.onRollOut = function () {
prev_attack_box_active = false;
mouse_info_active = false;
};
enemy_1_target_3.onRollOver = function () {
prev_attack_box._text = "";
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, charge normal";
}
if (view_2._visible == true) {
if (v2_e1_w1_c1_t3_got == true) {
active_prev_text = ("-" + v2_e1_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w1_c1_t3_got == true) {
active_prev_text = ("-" + v4_e1_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w1_c1_t3_got == true) {
active_prev_text = ("-" + v6_e1_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, x3 charge high";
if (view_2._visible == true) {
if (v2_e1_w1_c2_t3_got == true) {
active_prev_text = ("-" + v2_e1_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w1_c2_t3_got == true) {
active_prev_text = ("-" + v4_e1_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w1_c2_t3_got == true) {
active_prev_text = ("-" + v6_e1_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, charge normal";
if (view_2._visible == true) {
if (v2_e1_w2_c1_t3_got == true) {
active_prev_text = ("-" + v2_e1_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w2_c1_t3_got == true) {
active_prev_text = ("-" + v4_e1_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w2_c1_t3_got == true) {
active_prev_text = ("-" + v6_e1_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, x3 charge high";
if (view_2._visible == true) {
if (v2_e1_w2_c2_t3_got == true) {
active_prev_text = ("-" + v2_e1_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e1_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e1_w2_c2_t3_got == true) {
active_prev_text = ("-" + v4_e1_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e1_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e1_w2_c2_t3_got == true) {
active_prev_text = ("-" + v6_e1_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e1_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
}
}
active_mouse_info_box = bottom_HP_info_box;
active_mouse_info_box._x = enemy_button_1._x;
active_mouse_info_box._y = enemy_button_1._y;
mouse_info_active = true;
if (view_2._visible == true) {
}
if (view_2._visible == true) {
cyborg_arm_angle = -6;
rpg_target._x = 347.4;
rpg_target._y = 129.5;
target_tl_x = 329.95;
target_tl_y = 114;
target_tr_x = 365.95;
target_tr_y = 116;
target_bl_x = 329.95;
target_bl_y = 141;
target_br_x = 365.95;
target_br_y = 141;
active_green_flash_mc = green_flash_1_target_3;
target_green_flash_active_state = 0;
target_green_flash_active = true;
} else if (view_4._visible == true) {
cyborg_arm_angle = 2;
rpg_target._x = 325.4;
rpg_target._y = 165.45;
target_tl_x = 313.95;
target_tl_y = 150;
target_tr_x = 336.95;
target_tr_y = 151;
target_bl_x = 314.95;
target_bl_y = 175.05;
target_br_x = 337.95;
target_br_y = 175.05;
active_green_flash_mc = e1_green_flash_target_3;
target_green_flash_active_state = 0;
target_green_flash_active = true;
}
ease_target_parts = true;
};
enemy_1_target_3.onRollOut = function () {
prev_attack_box_active = false;
mouse_info_active = false;
};
enemy_2_target_1.onRollOver = function () {
rpg_target._x = 422.4;
rpg_target._y = 178.45;
};
enemy_2_target_2.onRollOver = function () {
prev_attack_box._text = "";
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, charge normal";
}
if (view_2._visible == true) {
if (v2_e2_w1_c1_t2_got == true) {
active_prev_text = ("-" + v2_e2_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w1_c1_t2_got == true) {
active_prev_text = ("-" + v4_e2_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w1_c1_t2_got == true) {
active_prev_text = ("-" + v6_e2_w1_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w1_c1_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, x3 charge high";
if (view_2._visible == true) {
if (v2_e2_w1_c2_t2_got == true) {
active_prev_text = ("-" + v2_e2_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w1_c2_t2_got == true) {
active_prev_text = ("-" + v4_e2_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w1_c2_t2_got == true) {
active_prev_text = ("-" + v6_e2_w1_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w1_c2_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, charge normal";
if (view_2._visible == true) {
if (v2_e2_w2_c1_t2_got == true) {
active_prev_text = ("-" + v2_e2_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w2_c1_t2_got == true) {
active_prev_text = ("-" + v4_e2_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w2_c1_t2_got == true) {
active_prev_text = ("-" + v6_e2_w2_c1_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w2_c1_t2_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, x3 charge high";
if (view_2._visible == true) {
if (v2_e2_w2_c2_t2_got == true) {
active_prev_text = ("-" + v2_e2_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w2_c2_t2_got == true) {
active_prev_text = ("-" + v4_e2_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w2_c2_t2_got == true) {
active_prev_text = ("-" + v6_e2_w2_c2_t2) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w2_c2_t2_got == false) {
prev_attack_box_active = false;
}
}
}
active_mouse_info_box = bottom_HP_info_box;
active_mouse_info_box._x = enemy_button_2._x;
active_mouse_info_box._y = enemy_button_2._y;
mouse_info_active = true;
if (view_2._visible == true) {
}
if (view_2._visible == true) {
cyborg_arm_angle = 4;
rpg_target._x = 407.4;
rpg_target._y = 170.5;
target_tl_x = 388.95;
target_tl_y = 145;
target_tr_x = 437.95;
target_tr_y = 145;
target_bl_x = 388.95;
target_bl_y = 183;
target_br_x = 437.95;
target_br_y = 183;
active_green_flash_mc = green_flash_2_target_2;
target_green_flash_active_state = 0;
target_green_flash_active = true;
} else if (view_4._visible == true) {
cyborg_arm_angle = 8;
rpg_target._x = 411.4;
rpg_target._y = 196.45;
target_tl_x = 399.95;
target_tl_y = 184.95;
target_tr_x = 423.95;
target_tr_y = 185.95;
target_bl_x = 400.95;
target_bl_y = 207;
target_br_x = 424.95;
target_br_y = 207;
active_green_flash_mc = e2_green_flash_target_2;
target_green_flash_active_state = 0;
target_green_flash_active = true;
}
ease_target_parts = true;
};
enemy_2_target_2.onRollOut = function () {
prev_attack_box_active = false;
mouse_info_active = false;
};
enemy_2_target_3.onRollOver = function () {
prev_attack_box._text = "";
if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 1)) {
if ((t2_clicked == true) && (t3_clicked == true)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, charge normal";
}
if (view_2._visible == true) {
if (v2_e2_w1_c1_t3_got == true) {
active_prev_text = ("-" + v2_e2_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w1_c1_t3_got == true) {
active_prev_text = ("-" + v4_e2_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w1_c1_t3_got == true) {
active_prev_text = ("-" + v6_e2_w1_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w1_c1_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon._visible == true) && (gun_charge_factor == 3)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 1, x3 charge high";
if (view_2._visible == true) {
if (v2_e2_w1_c2_t3_got == true) {
active_prev_text = ("-" + v2_e2_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w1_c2_t3_got == true) {
active_prev_text = ("-" + v4_e2_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w1_c2_t3_got == true) {
active_prev_text = ("-" + v6_e2_w1_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w1_c2_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 1)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, charge normal";
if (view_2._visible == true) {
if (v2_e2_w2_c1_t3_got == true) {
active_prev_text = ("-" + v2_e2_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w2_c1_t3_got == true) {
active_prev_text = ("-" + v4_e2_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w2_c1_t3_got == true) {
active_prev_text = ("-" + v6_e2_w2_c1_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w2_c1_t3_got == false) {
prev_attack_box_active = false;
}
}
} else if ((rpg_cyborg.rpg_cyborg_weapon_2._visible == true) && (gun_charge_factor == 3)) {
bottom_HP_info_box._text = "Previous damage reminders now shown for weapon 2, x3 charge high";
if (view_2._visible == true) {
if (v2_e2_w2_c2_t3_got == true) {
active_prev_text = ("-" + v2_e2_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v2_e2_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_4._visible == true) {
if (v4_e2_w2_c2_t3_got == true) {
active_prev_text = ("-" + v4_e2_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v4_e2_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
} else if (view_6._visible == true) {
if (v6_e2_w2_c2_t3_got == true) {
active_prev_text = ("-" + v6_e2_w2_c2_t3) + "HP";
prev_attack_active_flag = 0;
prev_attack_box_active = true;
} else if (v6_e2_w2_c2_t3_got == false) {
prev_attack_box_active = false;
}
}
}
active_mouse_info_box = bottom_HP_info_box;
active_mouse_info_box._x = enemy_button_2._x;
active_mouse_info_box._y = enemy_button_2._y;
mouse_info_active = true;
if (view_2._visible == true) {
}
if (enemy_2_eye_blisters._visible == false) {
} else if (enemy_2_eye_blisters._visible == true) {
}
if (view_2._visible == true) {
cyborg_arm_angle = -4;
rpg_target._x = 413.4;
rpg_target._y = 128.5;
target_tl_x = 393.95;
target_tl_y = 114;
target_tr_x = 431.95;
target_tr_y = 116;
target_bl_x = 393.95;
target_bl_y = 142;
target_br_x = 431.95;
target_br_y = 142;
active_green_flash_mc = green_flash_2_target_3;
target_green_flash_active_state = 0;
target_green_flash_active = true;
} else if (view_4._visible == true) {
cyborg_arm_angle = 5;
rpg_target._x = 416.4;
rpg_target._y = 171.45;
target_tl_x = 402.95;
target_tl_y = 154;
target_tr_x = 427.95;
target_tr_y = 155;
target_bl_x = 403.95;
target_bl_y = 182.05;
target_br_x = 428.95;
target_br_y = 182.05;
active_green_flash_mc = e2_green_flash_target_3;
target_green_flash_active_state = 0;
target_green_flash_active = true;
}
ease_target_parts = true;
};
enemy_2_target_3.onRollOut = function () {
prev_attack_box_active = false;
mouse_info_active = false;
};
enemy_button_1.onRollOut = function () {
};
enemy_button_2.onRollOver = function () {
mouse_info_active = false;
target_green_flash_active = false;
if (view_2._visible == true) {
enemy_2_target_3._text = "Eye sensors";
enemy_2_target_2._text = "Energy pump";
target_tl_x = 384.95;
target_tl_y = 113;
target_tr_x = 447.95;
target_tr_y = 113;
target_bl_x = 384.95;
target_bl_y = 233;
target_br_x = 447.95;
target_br_y = 233;
} else if (view_4._visible == true) {
enemy_2_target_3._text = "Plasma chamber";
enemy_2_target_2._text = "Beam focuser";
target_tl_x = 385.95;
target_tl_y = 139.95;
target_tr_x = 440.95;
target_tr_y = 140.95;
target_bl_x = 386.95;
target_bl_y = 204;
target_br_x = 442.95;
target_br_y = 204;
}
ease_target_parts = true;
target_part_top_left._visible = true;
target_part_top_right._visible = true;
target_part_bottom_left._visible = true;
target_part_bottom_right._visible = true;
enemy_2_target_1._visible = true;
enemy_2_target_2._visible = true;
enemy_2_target_3._visible = true;
enemy_1_target_1._visible = false;
enemy_1_target_2._visible = false;
enemy_1_target_3._visible = false;
};
enemy_button_2.onRollOut = function () {
};
restart_button.onRelease = function () {
};
inventory_button.onRelease = function () {
show_help_info_active = false;
show_menu_active = false;
if (show_inventory_active == false) {
if (rpg_battle_system_active == false) {
if (pre_battle_movie_1_active == false) {
if (first_enemy_animation_active == false) {
show_inventory_active = true;
gamePaused = true;
}
}
}
} else if (show_inventory_active == true) {
show_inventory_active = false;
gamePaused = false;
}
};
help_button.onRelease = function () {
show_inventory_active = false;
show_menu_active = false;
if (show_help_info_active == false) {
show_help_info_active = true;
} else if (show_help_info_active == true) {
show_help_info_active = false;
}
};
menu_button.onRelease = function () {
show_inventory_active = false;
show_help_info_active = false;
UI_help._visible = false;
if (show_menu_active == false) {
show_menu_active = true;
gamePaused = true;
} else if (show_menu_active == true) {
show_menu_active = false;
gamePaused = false;
}
};
remove_disp_filters = function () {
view_1.filters = undefined;
view_2.filters = undefined;
view_3.filters = undefined;
view_4.filters = undefined;
view_5.filters = undefined;
view_6.filters = undefined;
view_7.filters = undefined;
view_8.filters = undefined;
view_4_lit.filters = undefined;
view_1_collision.filters = undefined;
view_1_ahead_cha.filters = undefined;
view_2_ahead_cha.filters = undefined;
view_3_ahead_cha.filters = undefined;
view_4_ahead_cha.filters = undefined;
view_5_ahead_cha.filters = undefined;
view_2_collision.filters = undefined;
view_3_collision.filters = undefined;
view_4_collision.filters = undefined;
view_5_collision.filters = undefined;
view_6_collision.filters = undefined;
thorn_outline.filters = undefined;
thor_baddie_bitmap_mc.filters = undefined;
thor_baddie_view.filters = undefined;
object_b_view.filters = undefined;
object_b_1st_person_view.filters = undefined;
object_b_view_placed.filters = undefined;
object_e_view.filters = undefined;
object_d_view.filters = undefined;
};
music_checkbox.onRelease = function () {
if (music_checkbox_tick_active == false) {
music_checkbox_tick_active = true;
music_checkbox_tick._visible = true;
_root.s_music.start(0, 999);
musicVolume = 28;
s_music.setVolume(musicVolume);
} else if (music_checkbox_tick_active == true) {
music_checkbox_tick_active = false;
music_checkbox_tick._visible = false;
_root.s_music.stop(["music"]);
musicVolume = 0;
s_music.setVolume(musicVolume);
}
};
framerate_checkbox.onRelease = function () {
if (framerate_checkbox_tick_active == false) {
framerate_checkbox_tick_active = true;
framerate_checkbox_tick._visible = true;
fps_text_mc._visible = true;
} else if (framerate_checkbox_tick_active == true) {
framerate_checkbox_tick_active = false;
framerate_checkbox_tick._visible = false;
fps_text_mc._visible = false;
}
};
menu_button.onRollOver = function () {
menu_colour.rb = 20;
menu_colour.gb = 20;
menu_colour.bb = 20;
menu_colour.ab = 0;
};
menu_button.onRollOut = function () {
menu_colour.rb = 0;
menu_colour.gb = 0;
menu_colour.bb = 0;
menu_colour.ab = 0;
};
inventory_button.onRollOver = function () {
menu_colour.rb = 20;
menu_colour.gb = 20;
menu_colour.bb = 20;
menu_colour.ab = 0;
inventory_button_hightlight._visible = true;
};
inventory_button.onRollOut = function () {
menu_colour.rb = 0;
menu_colour.gb = 0;
menu_colour.bb = 0;
menu_colour.ab = 0;
inventory_button_hightlight._visible = false;
};
rpg_help_button.onRollOver = function () {
help_button_hightlight._visible = true;
};
rpg_help_button.onRollOut = function () {
help_button_hightlight._visible = false;
};
rpg_help_button.onRelease = function () {
if (show_ui_help_active == false) {
show_ui_help_active = true;
} else if (show_ui_help_active == true) {
show_ui_help_active = false;
}
};
UI_help.ui_help_ok_button.onRelease = function () {
show_ui_help_active = false;
};
inventory.close_inventory.onRelease = function () {
show_inventory_active = false;
gamePaused = false;
};
close_menu.onRelease = function () {
show_menu_active = false;
gamePaused = false;
};
menu_box.onRelease = function () {
disp_options_box._visible = false;
};
help_info_box.close_help.onRelease = function () {
show_help_info_active = false;
};
load_next_area.load_ok_button.onRelease = function () {
};
large_restart_label.large_restart_ok_button.onRelease = function () {
clearInterval(frameInterval);
clearInterval(intervalID);
clearInterval(intervalID_ii);
clearInterval(intervalID_iii);
clearInterval(intervalID_iv);
clearInterval(intervalID_v);
clearInterval(nanoflash_intervalID);
clearInterval(boss_shield_intervalID);
clearInterval(intervalID_rpg_battle_system_timestep);
clearInterval(intervalID_rpg_cyborg_shield_timestep);
clearInterval(intervalID_prev_attack_timestep);
clearInterval(intervalID_ui_help_timestep);
large_restart_label._visible = false;
clearInterval(intervalID_timestep_5);
clearInterval(intervalID_explosion_light_timestep);
_root.onEnterFrame = null;
this.onEnterFrame = null;
targeting_UI._visible = false;
crosshair._visible = false;
_root.s_battle_music.stop(["battle_music"]);
_root.s_boss_battle_music.stop(["boss_battle_music"]);
_root.s_music.stop(["music"]);
health_green._visible = false;
health_amber._visible = false;
health_red._visible = false;
health_cyborg._visible = false;
movie_black_bars._visible = false;
black_bars_2._visible = false;
black_bars._visible = false;
large_restart_label._visible = false;
health_green._visible = false;
health_amber._visible = false;
health_red._visible = false;
health_cyborg._visible = false;
gotoAndStop (1);
large_restart_label._visible = false;
health_green._visible = false;
health_amber._visible = false;
health_red._visible = false;
health_cyborg._visible = false;
};
keyListenerUpLoad.onKeyUp = function () {
};
frameCount = 0;
fps = 0;
frameInterval = setInterval(updateFPS, 1000);
_root.onEnterFrame = function () {
frameCount++;
};
var blurFilterD = (new flash.filters.BlurFilter(10, 10, 10));
show_hide_mouse.onRollOver = function () {
Mouse.hide();
};
show_hide_mouse.onRollOut = function () {
Mouse.show();
};
someListener2.onMouseUp = function () {
mouse_button = "up";
menu_colour.rb = 0;
menu_colour.gb = 0;
menu_colour.bb = 0;
menu_colour.ab = 0;
};
someListener.onMouseDown = function () {
mouse_button = "down";
if (showMessage == true) {
flash_message = true;
}
ctrl_key_is_down = true;
};
keyListenerUp.onKeyUp = function () {
if (Key.getCode() == 38) {
up_arrow_key_down = false;
}
if (Key.getCode() == 40) {
down_arrow_key_down = false;
}
if (Key.getCode() == 37) {
left_arrow_key_down = false;
}
if (Key.getCode() == 39) {
right_arrow_key_down = false;
}
if (Key.getCode() == 87) {
up_arrow_key_down = false;
}
if (Key.getCode() == 83) {
down_arrow_key_down = false;
cha_walk_active = true;
}
if (Key.getCode() == 65) {
left_arrow_key_down = false;
}
if (Key.getCode() == 68) {
right_arrow_key_down = false;
}
if (Key.getCode() == 17) {
ctrl_key_down = false;
}
if (Key.getCode() == 13) {
enter_key_down = false;
}
if (Key.getCode() == 32) {
enter_key_down = false;
}
if (Key.getCode() == 73) {
show_help_info_active = false;
if (show_inventory_active == false) {
if (rpg_battle_system_active == false) {
if (pre_battle_movie_1_active == false) {
if (first_enemy_animation_active == false) {
show_inventory_active = true;
gamePaused = true;
}
}
}
} else if (show_inventory_active == true) {
show_inventory_active = false;
gamePaused = false;
}
}
if (Key.getCode() == 77) {
}
if (Key.getCode() == 72) {
show_inventory_active = false;
if (show_help_info_active == false) {
show_help_info_active = true;
} else if (show_help_info_active == true) {
show_help_info_active = false;
}
}
if (Key.getCode() == 80) {
p_key_down_flag = 0;
}
};
var intervalID;
intervalID = setInterval(timestep_1, timestep_1_Interval);
var intervalID_ii;
intervalID_ii = setInterval(timestep_2, timestep_2_Interval);
var intervalID_iii;
intervalID_iii = setInterval(character_animation_timestep, cha_timestep_Interval);
var intervalID_iv;
intervalID_iv = setInterval(timestep_3, timestep_3_Interval);
var nanoflash_intervalID;
nanoflash_intervalID = setInterval(nanoflash_timestep, 50);
var boss_shield_intervalID;
boss_shield_intervalID = setInterval(boss_shield_timestep, 50);
var intervalID_rpg_battle_system_timestep;
intervalID_rpg_battle_system_timestep = setInterval(rpg_battle_system_timestep, 17);
var intervalID_v;
intervalID_v = setInterval(timestep_4, timestep_4_Interval);
var intervalID_timestep_5;
intervalID_timestep_5 = setInterval(timestep_5, timestep_5_Interval);
var intervalID_rpg_cyborg_shield_timestep;
intervalID_rpg_cyborg_shield_timestep = setInterval(rpg_cyborg_shield_timestep, 17);
var intervalID_explosion_light_timestep;
intervalID_explosion_light_timestep = setInterval(explosion_light_timestep, 60);
var intervalID_ui_help_timestep;
intervalID_ui_help_timestep = setInterval(ui_help_timestep, 17);
var intervalID_prev_attack_timestep;
intervalID_prev_attack_timestep = setInterval(prev_attack_timestep, 17);
Mouse.addListener(someListener);
Mouse.addListener(someListener2);
Key.addListener(keyListenerUp);
Key.addListener(keyListenerUpLoad);
Key.addListener(keyListenerDown);
Key.addListener(keyListenerDown2);
Key.addListener(keyListenerDown3);
Key.addListener(keyListenerTests);
Key.addListener(keyListenerTestsUp);
Instance of Symbol 1815 MovieClip "about_text" in Frame 3
on (rollOver) {
this._alpha = 100;
_root.s_bleep_sound.start(0, 1);
}
on (rollOut) {
this._alpha = 1;
_root.s_bleep_sound.stop(["bleep_sound"]);
}
Instance of Symbol 1817 MovieClip "controls_text" in Frame 3
on (rollOver) {
this._alpha = 100;
_root.s_bleep_sound.start(0, 1);
}
on (rollOut) {
this._alpha = 1;
_root.s_bleep_sound.stop(["bleep_sound"]);
}
Instance of Symbol 1819 MovieClip "play_text" in Frame 3
on (rollOver) {
this._alpha = 100;
_root.s_bleep_sound.start(0, 1);
}
on (rollOut) {
this._alpha = 1;
_root.s_bleep_sound.stop(["bleep_sound"]);
}