Frame 1
var sector_sound = new Sound();
sector_sound.attachSound("sector_sound");
_root.sector_sound.start("", "1000");
_global.levelnum = 1;
_global.left_scroll = 220;
_global.right_scroll = 180;
_global.samus_life = 99;
_global.morph_ability = false;
_global.morph_get = 0;
Frame 2
function movefps() {
if (fpsReady and (fpstimer == 0)) {
fpstimer = 0;
fpsReady = false;
fpsTime = 0();
createfps();
} else if ((fpsTime + fpsDelay) <= 0()) {
fpsReady = true;
}
var _local1 = 0;
while (_local1 < fpsArray.length) {
_local1++;
}
}
function createfps() {
if (fpsCount <= 1) {
var _local1 = this.attachMovie("fps", "fps" + fpsCount, 100 + fpsCount);
var _local2 = this.attachMovie("fps2", "fps2" + fpsCount, 10 + fpsCount);
_local1._y = 2.5;
_local1._x = 20;
_local2._x = 160;
_local2._y = 0;
}
fpsArray.push(_local1);
fpsCount++;
fpstimer = 0;
}
var fpsReady = true;
var fpsDelay = 150;
var fpsArray = [];
var fpsCount = 0;
var fpsCount2 = 0;
var fpsCount = 0;
var fpsCount2 = 0;
var fpstimer = 0;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
timer = 60;
}
timer++;
moveStars();
moveShip();
fpstimer = 0;
moveBullets();
movefps();
};
function createBullets() {
var _local1 = _global;
var _local2 = _root;
var _local3 = this;
fpsMc._x = -20;
fpsMc._y = 540;
if (_local1.morph == false) {
_local2.shoot_sound1.start();
}
if ((_local1.facing == 1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if ((_local1.facing == -1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if ((((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if ((((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x + (1 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if ((((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if ((((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 67;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 65;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
timer = 0;
bulletCount++;
bulletArray.push(bulletMc);
}
function moveBullets() {
if ((bulletReady && (Key.isDown(65))) and (timer >= 60)) {
timer = 0;
bulletReady = false;
currentTime = getTimer();
createBullets();
} else if ((currentTime + bulletDelay) <= getTimer()) {
bulletReady = true;
}
var _local1 = 0;
while (_local1 < bulletArray.length) {
_local1++;
}
}
stop();
var step_sound = new Sound();
step_sound.attachSound("step_sound");
var item_sound = new Sound();
item_sound.attachSound("item_sound");
var bloop_sound = new Sound();
bloop_sound.attachSound("bloop_sound");
var hurt_sound = new Sound();
hurt_sound.attachSound("hurt_sound");
var land_sound = new Sound();
land_sound.attachSound("land_sound");
var dangerous_sound = new Sound();
dangerous_sound.attachSound("dangerous");
var door_sound = new Sound();
door_sound.attachSound("door_open");
var door_close = new Sound();
door_close.attachSound("door_close");
var cat_sound = new Sound();
cat_sound.attachSound("cat_sound");
var jump_sound1 = new Sound();
jump_sound1.attachSound("jump_sound");
var shoot_sound1 = new Sound();
shoot_sound1.attachSound("shoot_sound");
var crush_sound1 = new Sound();
crush_sound1.attachSound("crush_sound");
var power_up = new Sound();
power_up.attachSound("power_up");
var death_sound = new Sound();
death_sound.attachSound("death");
var explode_sound = new Sound();
explode_sound.attachSound("enemy_explode");
_global.death = false;
var timer = 0;
var bulletSpeed = 12;
var bulletReady = true;
var bulletDelay = 50;
var bulletArray = [];
var bulletCount = 0;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
timer = 60;
}
timer++;
moveStars();
moveShip();
fpstimer = 0;
moveBullets();
movefps();
};
Instance of Symbol 84 MovieClip "bg" in Frame 2
onClipEvent (load) {
if (_global.levelnum == 2) {
_global.left_scroll = 220;
_global.right_scroll = 180;
_root.bg.dg.gotoAndPlay("close");
_root.owtch._x = 130;
_root.fly._x = 70;
this._x = 180;
_root.bg3._x = 180;
_root.bg2._x = -20;
_root.watermelon_whole._x = 545;
_root.watermelon_whole._y = 340;
_global.levelnum = 1;
}
if (_global.levelnum == 0) {
_global.left_scroll = 220;
_global.right_scroll = 180;
_root.bg.dg2.gotoAndPlay("close");
_root.owtch._x = 170;
_root.fly._x = 110;
this._x = 220;
_root.bg3._x = 220;
_root.bg2._x = 20;
_root.watermelon_whole._y = 300;
_root.watermelon_whole._x = 35;
_global.levelnum = 1;
}
}
Instance of Symbol 268 MovieClip "watermelon_whole" in Frame 2
onClipEvent (load) {
_global.morph_able = false;
_global.morph = false;
_global.hurt = 1;
_global.facing = -1;
_global.ducking = false;
_global.power = 3;
_global.friction = 0.8;
_global.speed = 0;
_global.yvel = 0;
_global.barvar = 4;
_global.jumping = false;
_global.aiming_down = false;
_global.aiming_up = false;
i = 0;
timer = 0;
friction = 0.95;
airresist = 0.8;
_global.gravity = 10;
jumpamount = 22;
onfloor = false;
}
onClipEvent (enterFrame) {
if ((_global.hurt == -1) and (!(_global.hurt === 1))) {
if (_global.morph == false) {
_global.ducking = false;
}
if ((facing == 1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_left");
}
if ((facing == -1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_right");
}
if ((facing == 1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_left");
}
if ((facing == -1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_right");
}
}
if (_global.hurt == 1) {
this._alpha = 100;
}
_global.speed = _global.speed * _global.friction;
if (_root.bg.hitTest(_x, _y - 50, true) and (_global.morph == false)) {
_global.yvel = 10;
}
if (_root.bg.hitTest(_x, _y - 20, true) and (_global.morph == true)) {
_global.yvel = 10;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (Key.isDown(38)) {
if (_global.morph == false) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
}
if (Key.isDown(83)) {
_global.aiming_up = true;
if ((((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) and (_global.morph == false)) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_up_jumping_right");
}
}
if (!Key.isDown(83)) {
_global.aiming_up = false;
}
if (!Key.isDown(88)) {
_global.aiming_down = false;
}
if (Key.isDown(88)) {
_global.aiming_down = true;
if (((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_right");
}
}
if (Key.isDown(40)) {
if ((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_left");
}
if ((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_right");
}
}
if (Key.isDown(65)) {
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
}
if (Key.isDown(90)) {
if ((_global.gravity == false) and (_global.morph == false)) {
_global.morph_able = false;
_global.ducking = false;
_root.jump_sound1.start();
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_right");
}
_global.jumping = true;
onfloor = false;
_global.yvel = -jumpamount;
}
}
if (Key.isDown(37)) {
_global.facing = 1;
_global.gravity = true;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_left");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((_global.speed >= -10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed - _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed - _global.power;
}
}
} else if (Key.isDown(39)) {
_global.gravity = true;
_global.facing = -1;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_right");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_right");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((_global.speed <= 10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed + _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed + _global.power;
}
}
}
if (xvel < 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
} else if (xvel > 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
}
_root.watermelon_whole._y = _root.watermelon_whole._y + _global.yvel;
_root.w_barrier._y = _root.w_barrier._y + _global.yvel;
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.multiviola._x = _root.multiviola._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.multiviola._x = _root.multiviola._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel <= 15) {
_global.yvel = _global.yvel + (_global.gravity * 2);
}
_global.gravity = true;
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_left");
}
if (((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) {
this.gotoAndStop("morph_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (false)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_right");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (true)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("morph_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_left_jumping");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_right_jumping");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_right");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_right");
}
} else {
while (_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel >= 7) {
jumping = false;
gravity = false;
onfloor = true;
}
if ((_global.yvel >= 7) and (_global.gravity == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if ((_global.yvel >= 7) and (_global.jumping == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if (Key.isDown(65)) {
_global.shoot_air = false;
}
if (Key.isDown(40)) {
if ((_global.gravity == false) and (_global.morph == false)) {
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_right");
}
}
if ((((_global.gravity == false) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) {
if (facing == 1) {
_global.morph = true;
this.gotoAndStop("morph_left");
}
if (facing == -1) {
_global.morph = true;
this.gotoAndStop("morph_right");
}
}
}
_global.jumping = false;
_global.gravity = false;
_root.watermelon_whole._y = _root.watermelon_whole._y - 1;
_root.w_barrier._y = _root.w_barrier._y - 1;
if ((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
}
if ((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
}
if ((((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == 1) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and Key.isDown(40)) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(38))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.morph_ability == true)) and (_global.morph_able == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == -1) and (_global.morph == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((Key.isDown(39) and (_global.morph == true)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((Key.isDown(37) and (_global.morph == true)) and (_global.ducking == true)) {
_global.ducking = true;
_global.moving = false;
_global.morph = true;
this.gotoAndStop("morph_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((Key.isDown(37) and Key.isDown(38)) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right");
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right2");
}
if ((((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
}
if ((((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
}
if (Key.isDown(83)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_up_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_up");
}
} else if (Key.isDown(88)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_down_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_down");
}
}
}
onfloor = true;
_global.yvel = 0;
}
}
Frame 13
function createBullets() {
var _local1 = _global;
var _local2 = _root;
var _local3 = this;
fpsMc._x = -20;
fpsMc._y = 540;
if (_local1.morph == false) {
_local2.shoot_sound1.start();
}
if ((_local1.facing == 1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if ((_local1.facing == -1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if ((((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if ((((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x + (1 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if ((((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if ((((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 67;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 65;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
timer = 0;
bulletCount++;
bulletArray.push(bulletMc);
}
function moveBullets() {
if ((bulletReady && (Key.isDown(65))) and (timer >= 60)) {
timer = 0;
bulletReady = false;
currentTime = getTimer();
createBullets();
} else if ((currentTime + bulletDelay) <= getTimer()) {
bulletReady = true;
}
var _local1 = 0;
while (_local1 < bulletArray.length) {
_local1++;
}
}
stop();
var step_sound = new Sound();
step_sound.attachSound("step_sound");
var item_sound = new Sound();
item_sound.attachSound("item_sound");
var bloop_sound = new Sound();
bloop_sound.attachSound("bloop_sound");
var hurt_sound = new Sound();
hurt_sound.attachSound("hurt_sound");
var land_sound = new Sound();
land_sound.attachSound("land_sound");
var dangerous_sound = new Sound();
dangerous_sound.attachSound("dangerous");
var door_sound = new Sound();
door_sound.attachSound("door_open");
var door_close = new Sound();
door_close.attachSound("door_close");
var cat_sound = new Sound();
cat_sound.attachSound("cat_sound");
var jump_sound1 = new Sound();
jump_sound1.attachSound("jump_sound");
var shoot_sound1 = new Sound();
shoot_sound1.attachSound("shoot_sound");
var crush_sound1 = new Sound();
crush_sound1.attachSound("crush_sound");
var power_up = new Sound();
power_up.attachSound("power_up");
var death_sound = new Sound();
death_sound.attachSound("death");
var explode_sound = new Sound();
explode_sound.attachSound("enemy_explode");
_global.death = false;
var timer = 0;
var bulletSpeed = 12;
var bulletReady = true;
var bulletDelay = 50;
var bulletArray = [];
var bulletCount = 0;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
timer = 60;
}
timer++;
moveStars();
moveShip();
fpstimer = 0;
moveBullets();
movefps();
};
Instance of Symbol 275 MovieClip "bg" in Frame 13
onClipEvent (load) {
if (_global.levelnum == 1) {
_global.left_scroll = 280;
_global.right_scroll = 240;
_root.bg.dg2.gotoAndPlay("close");
_root.hornoad._x = 430;
this._x = 280;
_root.bg3._x = 280;
_root.bg2._x = 70;
_root.watermelon_whole._x = 75;
_root.watermelon_whole._y = 340;
_global.levelnum = 2;
}
if (_global.levelnum == 3) {
_global.left_scroll = 280;
_global.right_scroll = 240;
_root.bg.dg.gotoAndPlay("close");
_root.hornoad._x = 390;
this._x = 240;
_root.bg3._x = 240;
_root.bg2._x = 0;
_root.watermelon_whole._x = 535;
_root.watermelon_whole._y = 260;
_global.levelnum = 2;
}
}
Instance of Symbol 268 MovieClip "watermelon_whole" in Frame 13
onClipEvent (load) {
_global.morph_able = false;
_global.morph = false;
_global.hurt = 1;
_global.facing = -1;
_global.ducking = false;
_global.power = 3;
_global.friction = 0.8;
_global.speed = 0;
_global.yvel = 0;
_global.barvar = 4;
_global.jumping = false;
_global.aiming_down = false;
_global.aiming_up = false;
i = 0;
timer = 0;
friction = 0.95;
airresist = 0.8;
_global.gravity = 10;
jumpamount = 22;
onfloor = false;
}
onClipEvent (enterFrame) {
if ((_global.hurt == -1) and (!(_global.hurt === 1))) {
if (_global.morph == false) {
_global.ducking = false;
}
if ((facing == 1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_left");
}
if ((facing == -1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_right");
}
if ((facing == 1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_left");
}
if ((facing == -1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_right");
}
}
if (_global.hurt == 1) {
this._alpha = 100;
}
_global.speed = _global.speed * _global.friction;
if (_root.bg.hitTest(_x, _y - 50, true) and (_global.morph == false)) {
_global.yvel = 10;
}
if (_root.bg.hitTest(_x, _y - 20, true) and (_global.morph == true)) {
_global.yvel = 10;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (Key.isDown(38)) {
if (_global.morph == false) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
}
if (Key.isDown(83)) {
_global.aiming_up = true;
if ((((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) and (_global.morph == false)) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_up_jumping_right");
}
}
if (!Key.isDown(83)) {
_global.aiming_up = false;
}
if (!Key.isDown(88)) {
_global.aiming_down = false;
}
if (Key.isDown(88)) {
_global.aiming_down = true;
if (((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_right");
}
}
if (Key.isDown(40)) {
if ((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_left");
}
if ((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_right");
}
}
if (Key.isDown(65)) {
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
}
if (Key.isDown(90)) {
if ((_global.gravity == false) and (_global.morph == false)) {
_global.morph_able = false;
_global.ducking = false;
_root.jump_sound1.start();
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_right");
}
_global.jumping = true;
onfloor = false;
_global.yvel = -jumpamount;
}
}
if (Key.isDown(37)) {
_global.facing = 1;
_global.gravity = true;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_left");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((_global.speed >= -10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed - _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed - _global.power;
}
}
} else if (Key.isDown(39)) {
_global.gravity = true;
_global.facing = -1;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_right");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_right");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((_global.speed <= 10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed + _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed + _global.power;
}
}
}
if (xvel < 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
} else if (xvel > 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
}
_root.watermelon_whole._y = _root.watermelon_whole._y + _global.yvel;
_root.w_barrier._y = _root.w_barrier._y + _global.yvel;
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel <= 15) {
_global.yvel = _global.yvel + (_global.gravity * 2);
}
_global.gravity = true;
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_left");
}
if (((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) {
this.gotoAndStop("morph_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (false)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_right");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (true)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("morph_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_left_jumping");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_right_jumping");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_right");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_right");
}
} else {
while (_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel >= 7) {
jumping = false;
gravity = false;
onfloor = true;
}
if ((_global.yvel >= 7) and (_global.gravity == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if ((_global.yvel >= 7) and (_global.jumping == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if (Key.isDown(65)) {
_global.shoot_air = false;
}
if (Key.isDown(40)) {
if ((_global.gravity == false) and (_global.morph == false)) {
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_right");
}
}
if ((((_global.gravity == false) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) {
if (facing == 1) {
_global.morph = true;
this.gotoAndStop("morph_left");
}
if (facing == -1) {
_global.morph = true;
this.gotoAndStop("morph_right");
}
}
}
_global.jumping = false;
_global.gravity = false;
_root.watermelon_whole._y = _root.watermelon_whole._y - 1;
_root.w_barrier._y = _root.w_barrier._y - 1;
if ((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
}
if ((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
}
if ((((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == 1) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and Key.isDown(40)) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(38))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.morph_ability == true)) and (_global.morph_able == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == -1) and (_global.morph == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((Key.isDown(39) and (_global.morph == true)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((Key.isDown(37) and (_global.speed >= 0)) and (_global.morph == true)) and (_global.ducking == true)) {
_global.ducking = true;
_global.moving = false;
_global.morph = true;
this.gotoAndStop("morph_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((Key.isDown(37) and Key.isDown(38)) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right");
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right2");
}
if ((((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
}
if ((((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
}
if (Key.isDown(83)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_up_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_up");
}
} else if (Key.isDown(88)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_down_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_down");
}
}
}
onfloor = true;
_global.yvel = 0;
}
}
Frame 25
function createBullets() {
var _local1 = _global;
var _local2 = _root;
var _local3 = this;
fpsMc._x = -20;
fpsMc._y = 540;
if (_local1.morph == false) {
_local2.shoot_sound1.start();
}
if ((_local1.facing == 1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if ((_local1.facing == -1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if ((((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if ((((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x + (1 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if ((((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if ((((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 67;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 65;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
timer = 0;
bulletCount++;
bulletArray.push(bulletMc);
}
function moveBullets() {
if ((bulletReady && (Key.isDown(65))) and (timer >= 60)) {
timer = 0;
bulletReady = false;
currentTime = getTimer();
createBullets();
} else if ((currentTime + bulletDelay) <= getTimer()) {
bulletReady = true;
}
var _local1 = 0;
while (_local1 < bulletArray.length) {
_local1++;
}
}
stop();
var step_sound = new Sound();
step_sound.attachSound("step_sound");
var item_sound = new Sound();
item_sound.attachSound("item_sound");
var bloop_sound = new Sound();
bloop_sound.attachSound("bloop_sound");
var hurt_sound = new Sound();
hurt_sound.attachSound("hurt_sound");
var land_sound = new Sound();
land_sound.attachSound("land_sound");
var dangerous_sound = new Sound();
dangerous_sound.attachSound("dangerous");
var door_sound = new Sound();
door_sound.attachSound("door_open");
var door_close = new Sound();
door_close.attachSound("door_close");
var cat_sound = new Sound();
cat_sound.attachSound("cat_sound");
var jump_sound1 = new Sound();
jump_sound1.attachSound("jump_sound");
var shoot_sound1 = new Sound();
shoot_sound1.attachSound("shoot_sound");
var crush_sound1 = new Sound();
crush_sound1.attachSound("crush_sound");
var power_up = new Sound();
power_up.attachSound("power_up");
var death_sound = new Sound();
death_sound.attachSound("death");
var explode_sound = new Sound();
explode_sound.attachSound("enemy_explode");
_global.death = false;
var timer = 0;
var bulletSpeed = 12;
var bulletReady = true;
var bulletDelay = 50;
var bulletArray = [];
var bulletCount = 0;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
timer = 60;
}
timer++;
moveStars();
moveShip();
fpstimer = 0;
moveBullets();
movefps();
};
Instance of Symbol 299 MovieClip "bg" in Frame 25
onClipEvent (load) {
if (_global.levelnum == 2) {
_global.left_scroll = 260;
_global.right_scroll = 260;
_root.bg.dg2.gotoAndPlay("close");
_root.robo._x = 230;
this._x = 260;
_root.bg3._x = 260;
_root.bg2._x = 0;
_root.watermelon_whole._x = 65;
_root.watermelon_whole._y = 260;
_global.levelnum = 3;
}
if (_global.levelnum == 4) {
_global.left_scroll = 260;
_global.right_scroll = 260;
_root.bg.dg.gotoAndPlay("close");
_root.robo._x = 230;
this._x = 260;
_root.bg3._x = 260;
_root.bg2._x = 0;
_root.watermelon_whole._x = 495;
_root.watermelon_whole._y = 260;
_global.levelnum = 3;
}
}
Instance of Symbol 268 MovieClip "watermelon_whole" in Frame 25
onClipEvent (load) {
_global.morph_able = false;
_global.morph = false;
_global.hurt = 1;
_global.facing = -1;
_global.ducking = false;
_global.power = 3;
_global.friction = 0.8;
_global.speed = 0;
_global.yvel = 0;
_global.barvar = 4;
_global.jumping = false;
_global.aiming_down = false;
_global.aiming_up = false;
i = 0;
timer = 0;
friction = 0.95;
airresist = 0.8;
_global.gravity = 10;
jumpamount = 22;
onfloor = false;
}
onClipEvent (enterFrame) {
if ((_global.hurt == -1) and (!(_global.hurt === 1))) {
if (_global.morph == false) {
_global.ducking = false;
}
if ((facing == 1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_left");
}
if ((facing == -1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_right");
}
if ((facing == 1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_left");
}
if ((facing == -1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_right");
}
}
if (_global.hurt == 1) {
this._alpha = 100;
}
_global.speed = _global.speed * _global.friction;
if (_root.bg.hitTest(_x, _y - 50, true) and (_global.morph == false)) {
_global.yvel = 10;
}
if (_root.bg.hitTest(_x, _y - 20, true) and (_global.morph == true)) {
_global.yvel = 10;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (Key.isDown(38)) {
if (_global.morph == false) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
}
if (Key.isDown(83)) {
_global.aiming_up = true;
if ((((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) and (_global.morph == false)) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_up_jumping_right");
}
}
if (!Key.isDown(83)) {
_global.aiming_up = false;
}
if (!Key.isDown(88)) {
_global.aiming_down = false;
}
if (Key.isDown(88)) {
_global.aiming_down = true;
if (((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_right");
}
}
if (Key.isDown(40)) {
if ((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_left");
}
if ((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_right");
}
}
if (Key.isDown(65)) {
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
}
if (Key.isDown(90)) {
if ((_global.gravity == false) and (_global.morph == false)) {
_global.morph_able = false;
_global.ducking = false;
_root.jump_sound1.start();
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_right");
}
_global.jumping = true;
onfloor = false;
_global.yvel = -jumpamount;
}
}
if (Key.isDown(37)) {
_global.facing = 1;
_global.gravity = true;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_left");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((_global.speed >= -10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed - _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed - _global.power;
}
}
} else if (Key.isDown(39)) {
_global.gravity = true;
_global.facing = -1;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_right");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_right");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((_global.speed <= 10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed + _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed + _global.power;
}
}
}
if (xvel < 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
} else if (xvel > 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
}
_root.watermelon_whole._y = _root.watermelon_whole._y + _global.yvel;
_root.w_barrier._y = _root.w_barrier._y + _global.yvel;
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel <= 15) {
_global.yvel = _global.yvel + (_global.gravity * 2);
}
_global.gravity = true;
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_left");
}
if (((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) {
this.gotoAndStop("morph_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (false)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_right");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (true)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("morph_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_left_jumping");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_right_jumping");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_right");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_right");
}
} else {
while (_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel >= 7) {
jumping = false;
gravity = false;
onfloor = true;
}
if ((_global.yvel >= 7) and (_global.gravity == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if ((_global.yvel >= 7) and (_global.jumping == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if (Key.isDown(65)) {
_global.shoot_air = false;
}
if (Key.isDown(40)) {
if ((_global.gravity == false) and (_global.morph == false)) {
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_right");
}
}
if ((((_global.gravity == false) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) {
if (facing == 1) {
_global.morph = true;
this.gotoAndStop("morph_left");
}
if (facing == -1) {
_global.morph = true;
this.gotoAndStop("morph_right");
}
}
}
_global.jumping = false;
_global.gravity = false;
_root.watermelon_whole._y = _root.watermelon_whole._y - 1;
_root.w_barrier._y = _root.w_barrier._y - 1;
if ((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
}
if ((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
}
if ((((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == 1) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and Key.isDown(40)) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(38))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.morph_ability == true)) and (_global.morph_able == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == -1) and (_global.morph == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((Key.isDown(39) and (_global.morph == true)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((Key.isDown(37) and (_global.speed >= 0)) and (_global.morph == true)) and (_global.ducking == true)) {
_global.ducking = true;
_global.moving = false;
_global.morph = true;
this.gotoAndStop("morph_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((Key.isDown(37) and Key.isDown(38)) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right");
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right2");
}
if ((((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
}
if ((((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
}
if (Key.isDown(83)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_up_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_up");
}
} else if (Key.isDown(88)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_down_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_down");
}
}
}
onfloor = true;
_global.yvel = 0;
}
}
Frame 37
function createBullets() {
var _local1 = _global;
var _local2 = _root;
var _local3 = this;
fpsMc._x = -20;
fpsMc._y = 540;
if (_local1.morph == false) {
_local2.shoot_sound1.start();
}
if ((_local1.facing == 1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if ((_local1.facing == -1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if ((((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if ((((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x + (1 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if ((((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if ((((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 67;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 65;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
timer = 0;
bulletCount++;
bulletArray.push(bulletMc);
}
function moveBullets() {
if ((bulletReady && (Key.isDown(65))) and (timer >= 60)) {
timer = 0;
bulletReady = false;
currentTime = getTimer();
createBullets();
} else if ((currentTime + bulletDelay) <= getTimer()) {
bulletReady = true;
}
var _local1 = 0;
while (_local1 < bulletArray.length) {
_local1++;
}
}
stop();
var step_sound = new Sound();
step_sound.attachSound("step_sound");
var item_sound = new Sound();
item_sound.attachSound("item_sound");
var bloop_sound = new Sound();
bloop_sound.attachSound("bloop_sound");
var hurt_sound = new Sound();
hurt_sound.attachSound("hurt_sound");
var land_sound = new Sound();
land_sound.attachSound("land_sound");
var dangerous_sound = new Sound();
dangerous_sound.attachSound("dangerous");
var door_sound = new Sound();
door_sound.attachSound("door_open");
var door_close = new Sound();
door_close.attachSound("door_close");
var cat_sound = new Sound();
cat_sound.attachSound("cat_sound");
var jump_sound1 = new Sound();
jump_sound1.attachSound("jump_sound");
var shoot_sound1 = new Sound();
shoot_sound1.attachSound("shoot_sound");
var crush_sound1 = new Sound();
crush_sound1.attachSound("crush_sound");
var power_up = new Sound();
power_up.attachSound("power_up");
var death_sound = new Sound();
death_sound.attachSound("death");
var explode_sound = new Sound();
explode_sound.attachSound("enemy_explode");
_global.death = false;
var timer = 0;
var bulletSpeed = 12;
var bulletReady = true;
var bulletDelay = 50;
var bulletArray = [];
var bulletCount = 0;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
timer = 60;
}
timer++;
moveStars();
moveShip();
fpstimer = 0;
moveBullets();
movefps();
};
Instance of Symbol 320 MovieClip "bg" in Frame 37
onClipEvent (load) {
if (_global.levelnum == 3) {
_global.left_scroll = 260;
_global.right_scroll = 140;
_root.bg.dg2.gotoAndPlay("close");
_root.waver._x = 270;
_root.fly._x = 450;
this._x = 260;
_root.bg2._x = 260;
_root.bg3._x = 260;
_root.watermelon_whole._x = 85;
_root.watermelon_whole._y = 260;
_global.levelnum = 4;
}
}
Instance of Symbol 268 MovieClip "watermelon_whole" in Frame 37
onClipEvent (load) {
_global.morph_able = false;
_global.morph = false;
_global.hurt = 1;
_global.facing = -1;
_global.ducking = false;
_global.power = 3;
_global.friction = 0.8;
_global.speed = 0;
_global.yvel = 0;
_global.barvar = 4;
_global.jumping = false;
_global.aiming_down = false;
_global.aiming_up = false;
i = 0;
timer = 0;
friction = 0.95;
airresist = 0.8;
_global.gravity = 10;
jumpamount = 22;
onfloor = false;
}
onClipEvent (enterFrame) {
if ((_global.hurt == -1) and (!(_global.hurt === 1))) {
if (_global.morph == false) {
_global.ducking = false;
}
if ((facing == 1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_left");
}
if ((facing == -1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_right");
}
if ((facing == 1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_left");
}
if ((facing == -1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_right");
}
}
if (_global.hurt == 1) {
this._alpha = 100;
}
_global.speed = _global.speed * _global.friction;
if (_root.bg.hitTest(_x, _y - 50, true) and (_global.morph == false)) {
_global.yvel = 10;
}
if (_root.bg.hitTest(_x, _y - 20, true) and (_global.morph == true)) {
_global.yvel = 10;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (Key.isDown(38)) {
if (_global.morph == false) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
}
if (Key.isDown(83)) {
_global.aiming_up = true;
if ((((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) and (_global.morph == false)) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_up_jumping_right");
}
}
if (!Key.isDown(83)) {
_global.aiming_up = false;
}
if (!Key.isDown(88)) {
_global.aiming_down = false;
}
if (Key.isDown(88)) {
_global.aiming_down = true;
if (((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_right");
}
}
if (Key.isDown(40)) {
if ((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_left");
}
if ((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_right");
}
}
if (Key.isDown(65)) {
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
}
if (Key.isDown(90)) {
if ((_global.gravity == false) and (_global.morph == false)) {
_global.morph_able = false;
_global.ducking = false;
_root.jump_sound1.start();
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_right");
}
_global.jumping = true;
onfloor = false;
_global.yvel = -jumpamount;
}
}
if (Key.isDown(37)) {
_global.facing = 1;
_global.gravity = true;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_left");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((_global.speed >= -10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed - _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed - _global.power;
}
}
} else if (Key.isDown(39)) {
_global.gravity = true;
_global.facing = -1;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_right");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_right");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((_global.speed <= 10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed + _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed + _global.power;
}
}
}
if (xvel < 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
} else if (xvel > 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
}
_root.watermelon_whole._y = _root.watermelon_whole._y + _global.yvel;
_root.w_barrier._y = _root.w_barrier._y + _global.yvel;
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel <= 15) {
_global.yvel = _global.yvel + (_global.gravity * 2);
}
_global.gravity = true;
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_left");
}
if (((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) {
this.gotoAndStop("morph_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (false)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_right");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (true)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("morph_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_left_jumping");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_right_jumping");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_right");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_right");
}
} else {
while (_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel >= 7) {
jumping = false;
gravity = false;
onfloor = true;
}
if ((_global.yvel >= 7) and (_global.gravity == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if ((_global.yvel >= 7) and (_global.jumping == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if (Key.isDown(65)) {
_global.shoot_air = false;
}
if (Key.isDown(40)) {
if ((_global.gravity == false) and (_global.morph == false)) {
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_right");
}
}
if ((((_global.gravity == false) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) {
if (facing == 1) {
_global.morph = true;
this.gotoAndStop("morph_left");
}
if (facing == -1) {
_global.morph = true;
this.gotoAndStop("morph_right");
}
}
}
_global.jumping = false;
_global.gravity = false;
_root.watermelon_whole._y = _root.watermelon_whole._y - 1;
_root.w_barrier._y = _root.w_barrier._y - 1;
if ((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
}
if ((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
}
if ((((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == 1) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and Key.isDown(40)) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(38))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.morph_ability == true)) and (_global.morph_able == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == -1) and (_global.morph == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((Key.isDown(39) and (_global.morph == true)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((Key.isDown(37) and (_global.speed >= 0)) and (_global.morph == true)) and (_global.ducking == true)) {
_global.ducking = true;
_global.moving = false;
_global.morph = true;
this.gotoAndStop("morph_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((Key.isDown(37) and Key.isDown(38)) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right");
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right2");
}
if ((((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
}
if ((((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
}
if (Key.isDown(83)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_up_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_up");
}
} else if (Key.isDown(88)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_down_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_down");
}
}
}
onfloor = true;
_global.yvel = 0;
}
}
Frame 47
function createBullets() {
var _local1 = _global;
var _local2 = _root;
var _local3 = this;
fpsMc._x = -20;
fpsMc._y = 540;
if (_local1.morph == false) {
_local2.shoot_sound1.start();
}
if ((_local1.facing == 1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if ((_local1.facing == -1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if ((((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if ((((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x + (1 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if ((((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if ((((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 67;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 65;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
timer = 0;
bulletCount++;
bulletArray.push(bulletMc);
}
function moveBullets() {
if ((bulletReady && (Key.isDown(65))) and (timer >= 60)) {
timer = 0;
bulletReady = false;
currentTime = getTimer();
createBullets();
} else if ((currentTime + bulletDelay) <= getTimer()) {
bulletReady = true;
}
var _local1 = 0;
while (_local1 < bulletArray.length) {
_local1++;
}
}
stop();
var step_sound = new Sound();
step_sound.attachSound("step_sound");
var item_sound = new Sound();
item_sound.attachSound("item_sound");
var bloop_sound = new Sound();
bloop_sound.attachSound("bloop_sound");
var hurt_sound = new Sound();
hurt_sound.attachSound("hurt_sound");
var land_sound = new Sound();
land_sound.attachSound("land_sound");
var dangerous_sound = new Sound();
dangerous_sound.attachSound("dangerous");
var door_sound = new Sound();
door_sound.attachSound("door_open");
var door_close = new Sound();
door_close.attachSound("door_close");
var cat_sound = new Sound();
cat_sound.attachSound("cat_sound");
var jump_sound1 = new Sound();
jump_sound1.attachSound("jump_sound");
var shoot_sound1 = new Sound();
shoot_sound1.attachSound("shoot_sound");
var crush_sound1 = new Sound();
crush_sound1.attachSound("crush_sound");
var power_up = new Sound();
power_up.attachSound("power_up");
var death_sound = new Sound();
death_sound.attachSound("death");
var explode_sound = new Sound();
explode_sound.attachSound("enemy_explode");
_global.death = false;
var timer = 0;
var bulletSpeed = 12;
var bulletReady = true;
var bulletDelay = 50;
var bulletArray = [];
var bulletCount = 0;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
timer = 60;
}
timer++;
moveStars();
moveShip();
fpstimer = 0;
moveBullets();
movefps();
};
Instance of Symbol 338 MovieClip "bg" in Frame 47
onClipEvent (load) {
if (_global.levelnum == 1) {
_global.left_scroll = 300;
_global.right_scroll = 300;
_root.bg.dg2.gotoAndPlay("close");
this._x = 300;
_root.bg3._x = 300;
_root.watermelon_whole._x = 525;
_root.watermelon_whole._y = 300;
_global.levelnum = 0;
}
if (_global.levelnum == -1) {
_global.left_scroll = 300;
_global.right_scroll = 300;
_root.bg.dg4.gotoAndPlay("close");
this._x = 300;
_root.bg3._x = 300;
_root.watermelon_whole._x = 285;
_root.watermelon_whole._y = 320;
_global.levelnum = 0;
}
}
Instance of Symbol 268 MovieClip "watermelon_whole" in Frame 47
onClipEvent (load) {
_global.morph_able = false;
_global.morph = false;
_global.hurt = 1;
_global.facing = -1;
_global.ducking = false;
_global.power = 3;
_global.friction = 0.8;
_global.speed = 0;
_global.yvel = 0;
_global.barvar = 4;
_global.jumping = false;
_global.aiming_down = false;
_global.aiming_up = false;
i = 0;
timer = 0;
friction = 0.95;
airresist = 0.8;
_global.gravity = 10;
jumpamount = 22;
onfloor = false;
}
onClipEvent (enterFrame) {
if ((_global.hurt == -1) and (!(_global.hurt === 1))) {
if (_global.morph == false) {
_global.ducking = false;
}
if ((facing == 1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_left");
}
if ((facing == -1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_right");
}
if ((facing == 1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_left");
}
if ((facing == -1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_right");
}
}
if (_global.hurt == 1) {
this._alpha = 100;
}
_global.speed = _global.speed * _global.friction;
if (_root.bg.hitTest(_x, _y - 50, true) and (_global.morph == false)) {
_global.yvel = 10;
}
if (_root.bg.hitTest(_x, _y - 20, true) and (_global.morph == true)) {
_global.yvel = 10;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (Key.isDown(38)) {
if (_global.morph == false) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
}
if (Key.isDown(83)) {
_global.aiming_up = true;
if ((((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) and (_global.morph == false)) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_up_jumping_right");
}
}
if (!Key.isDown(83)) {
_global.aiming_up = false;
}
if (!Key.isDown(88)) {
_global.aiming_down = false;
}
if (Key.isDown(88)) {
_global.aiming_down = true;
if (((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_right");
}
}
if (Key.isDown(40)) {
if ((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_left");
}
if ((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_right");
}
}
if (Key.isDown(65)) {
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
}
if (Key.isDown(90)) {
if ((_global.gravity == false) and (_global.morph == false)) {
_global.morph_able = false;
_global.ducking = false;
_root.jump_sound1.start();
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_right");
}
_global.jumping = true;
onfloor = false;
_global.yvel = -jumpamount;
}
}
if (Key.isDown(37)) {
_global.facing = 1;
_global.gravity = true;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_left");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((_global.speed >= -10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed - _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed - _global.power;
}
}
} else if (Key.isDown(39)) {
_global.gravity = true;
_global.facing = -1;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_right");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_right");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((_global.speed <= 10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed + _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed + _global.power;
}
}
}
if (xvel < 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
} else if (xvel > 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
}
_root.watermelon_whole._y = _root.watermelon_whole._y + _global.yvel;
_root.w_barrier._y = _root.w_barrier._y + _global.yvel;
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel <= 15) {
_global.yvel = _global.yvel + (_global.gravity * 2);
}
_global.gravity = true;
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_left");
}
if (((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) {
this.gotoAndStop("morph_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (false)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_right");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (true)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("morph_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_left_jumping");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_right_jumping");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_right");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_right");
}
} else {
while (_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel >= 7) {
jumping = false;
gravity = false;
onfloor = true;
}
if ((_global.yvel >= 7) and (_global.gravity == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if ((_global.yvel >= 7) and (_global.jumping == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if (Key.isDown(65)) {
_global.shoot_air = false;
}
if (Key.isDown(40)) {
if ((_global.gravity == false) and (_global.morph == false)) {
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_right");
}
}
if ((((_global.gravity == false) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) {
if (facing == 1) {
_global.morph = true;
this.gotoAndStop("morph_left");
}
if (facing == -1) {
_global.morph = true;
this.gotoAndStop("morph_right");
}
}
}
_global.jumping = false;
_global.gravity = false;
_root.watermelon_whole._y = _root.watermelon_whole._y - 1;
_root.w_barrier._y = _root.w_barrier._y - 1;
if ((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
}
if ((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
}
if ((((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == 1) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and Key.isDown(40)) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(38))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.morph_ability == true)) and (_global.morph_able == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == -1) and (_global.morph == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((Key.isDown(39) and (_global.morph == true)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((Key.isDown(37) and (_global.speed >= 0)) and (_global.morph == true)) and (_global.ducking == true)) {
_global.ducking = true;
_global.moving = false;
_global.morph = true;
this.gotoAndStop("morph_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((Key.isDown(37) and Key.isDown(38)) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right");
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right2");
}
if ((((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
}
if ((((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
}
if (Key.isDown(83)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_up_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_up");
}
} else if (Key.isDown(88)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_down_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_down");
}
}
}
onfloor = true;
_global.yvel = 0;
}
}
Frame 59
function createBullets() {
var _local1 = _global;
var _local2 = _root;
var _local3 = this;
fpsMc._x = -20;
fpsMc._y = 540;
if (_local1.morph == false) {
_local2.shoot_sound1.start();
}
if ((_local1.facing == 1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if ((_local1.facing == -1) and (_local1.morph == true)) {
var bulletMc = _local3.attachMovie("ball_bomb", "ball_bomb" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x;
bulletMc._y = _local2.watermelon_whole._y - 10;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if ((((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if ((((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == 1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((((_local1.facing == -1) and (_local1.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x + (1 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if ((((((_local1.facing == -1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if ((((((_local1.facing == 1) and (_local1.morph == false)) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 67;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 65;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if (((((_local1.facing == 1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
if (((((_local1.facing == -1) and (_local1.morph == false)) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
timer = 0;
bulletCount++;
bulletArray.push(bulletMc);
}
function moveBullets() {
if ((bulletReady && (Key.isDown(65))) and (timer >= 60)) {
timer = 0;
bulletReady = false;
currentTime = getTimer();
createBullets();
} else if ((currentTime + bulletDelay) <= getTimer()) {
bulletReady = true;
}
var _local1 = 0;
while (_local1 < bulletArray.length) {
_local1++;
}
}
stop();
var step_sound = new Sound();
step_sound.attachSound("step_sound");
var item_sound = new Sound();
item_sound.attachSound("item_sound");
var bloop_sound = new Sound();
bloop_sound.attachSound("bloop_sound");
var hurt_sound = new Sound();
hurt_sound.attachSound("hurt_sound");
var land_sound = new Sound();
land_sound.attachSound("land_sound");
var dangerous_sound = new Sound();
dangerous_sound.attachSound("dangerous");
var door_sound = new Sound();
door_sound.attachSound("door_open");
var door_close = new Sound();
door_close.attachSound("door_close");
var cat_sound = new Sound();
cat_sound.attachSound("cat_sound");
var jump_sound1 = new Sound();
jump_sound1.attachSound("jump_sound");
var shoot_sound1 = new Sound();
shoot_sound1.attachSound("shoot_sound");
var crush_sound1 = new Sound();
crush_sound1.attachSound("crush_sound");
var power_up = new Sound();
power_up.attachSound("power_up");
var death_sound = new Sound();
death_sound.attachSound("death");
var explode_sound = new Sound();
explode_sound.attachSound("enemy_explode");
_global.death = false;
var timer = 0;
var bulletSpeed = 12;
var bulletReady = true;
var bulletDelay = 50;
var bulletArray = [];
var bulletCount = 0;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
timer = 60;
}
timer++;
moveStars();
moveShip();
fpstimer = 0;
moveBullets();
movefps();
};
Instance of Symbol 365 MovieClip "bg" in Frame 59
onClipEvent (load) {
if (_global.levelnum == 0) {
_root.bg.dg4.gotoAndPlay("close");
this._x = 300;
_root.bg3._x = 300;
_root.watermelon_whole._y = 70;
_global.levelnum = -1;
}
}
Instance of Symbol 268 MovieClip "watermelon_whole" in Frame 59
onClipEvent (load) {
_global.morph_able = false;
_global.morph = false;
_global.hurt = 1;
_global.facing = -1;
_global.ducking = false;
_global.power = 3;
_global.friction = 0.8;
_global.speed = 0;
_global.yvel = 0;
_global.barvar = 4;
_global.jumping = false;
_global.aiming_down = false;
_global.aiming_up = false;
i = 0;
timer = 0;
friction = 0.95;
airresist = 0.8;
_global.gravity = 10;
jumpamount = 22;
onfloor = false;
}
onClipEvent (enterFrame) {
if ((_global.hurt == -1) and (!(_global.hurt === 1))) {
if (_global.morph == false) {
_global.ducking = false;
}
if ((facing == 1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_left");
}
if ((facing == -1) and (_global.morph == false)) {
onfloor = false;
_global.yvel = (-jumpamount) / 2;
_global.speed = 7 * _global.facing;
this.gotoAndStop("hurt_right");
}
if ((facing == 1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_left");
}
if ((facing == -1) and (_global.morph == true)) {
onfloor = false;
_global.yvel = -10;
_global.speed = 7 * _global.facing;
this.gotoAndStop("morph_hurt_right");
}
}
if (_global.hurt == 1) {
this._alpha = 100;
}
_global.speed = _global.speed * _global.friction;
if (_root.bg.hitTest(_x, _y - 50, true) and (_global.morph == false)) {
_global.yvel = 10;
}
if (_root.bg.hitTest(_x, _y - 20, true) and (_global.morph == true)) {
_global.yvel = 10;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true) and (_global.morph == false)) {
_global.speed = _global.speed * 0;
}
if (Key.isDown(38)) {
if (_global.morph == false) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.morph_able = false;
_global.morph = false;
if (((((((((((_global.gravity == false) and (_global.facing == 1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(37))) and (!Key.isDown(39))) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((((((!Key.isDown(37)) and (!Key.isDown(39))) and (_global.gravity == false)) and (_global.facing == -1)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_left_jumping");
}
if (((((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) and (_global.morph == false)) {
this.gotoAndStop("up_right_jumping");
}
}
}
if (Key.isDown(83)) {
_global.aiming_up = true;
if ((((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) and (_global.morph == false)) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_up_jumping_right");
}
}
if (!Key.isDown(83)) {
_global.aiming_up = false;
}
if (!Key.isDown(88)) {
_global.aiming_down = false;
}
if (Key.isDown(88)) {
_global.aiming_down = true;
if (((_global.facing == 1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((_global.facing == -1) and (_global.morph == false)) and (_global.jumping == true)) {
this.gotoAndStop("diag_down_jumping_right");
}
}
if (Key.isDown(40)) {
if ((((_global.facing == 1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_left");
}
if ((((_global.facing == -1) and (_global.jumping == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_down_right");
}
}
if (Key.isDown(65)) {
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
}
if (Key.isDown(90)) {
if ((_global.gravity == false) and (_global.morph == false)) {
_global.morph_able = false;
_global.ducking = false;
_root.jump_sound1.start();
if ((((((_global.facing == 1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_left");
}
if ((((((_global.facing == -1) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.morph_able = false;
this.gotoAndStop("jumping_right");
}
_global.jumping = true;
onfloor = false;
_global.yvel = -jumpamount;
}
}
if (Key.isDown(37)) {
_global.facing = 1;
_global.gravity = true;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_left");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_left");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_left");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((_global.speed >= -10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed - _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed - _global.power;
}
}
} else if (Key.isDown(39)) {
_global.gravity = true;
_global.facing = -1;
if (((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right");
}
if ((((((((_global.hurt == 1) and (_global.jumping == false)) and (_global.yvel <= 6)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
this.gotoAndStop("up_moving_right");
}
}
if ((((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and Key.isDown(83)) and (!Key.isDown(88))) {
this.gotoAndStop("diag_up_jumping_right");
}
if (((((((_global.jumping == true) and (_global.morph == false)) and (_global.ducking == false)) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and Key.isDown(88)) {
this.gotoAndStop("diag_down_jumping_right");
}
if (((((((_global.jumping == true) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(38))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((_global.speed <= 10) and (_global.hurt == 1)) {
if (_global.ducking == false) {
_global.speed = _global.speed + _global.power;
}
if ((_global.ducking == true) and (_global.morph == true)) {
_global.speed = _global.speed + _global.power;
}
}
}
if (xvel < 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
} else if (xvel > 0) {
if (onfloor) {
} else {
xvel = xvel * airresist;
}
}
_root.watermelon_whole._y = _root.watermelon_whole._y + _global.yvel;
_root.w_barrier._y = _root.w_barrier._y + _global.yvel;
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 35, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg._x = _root.bg._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.fly._x = _root.fly._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
} else if (((!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 10, true)) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 15, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_root.fly._x = _root.fly._x - _global.speed;
_root.bg3._x = _root.bg3._x - _global.speed;
_root.bg2._x = _root.bg2._x - (_global.speed / 2);
_root.bg._x = _root.bg._x - _global.speed;
_root.floater._x = _root.floater._x - _global.speed;
_root.bg_block._x = _root.bg_block._x - _global.speed;
_root.hornoad._x = _root.hornoad._x - _global.speed;
_root.robo._x = _root.robo._x - _global.speed;
_root.owtch._x = _root.owtch._x - _global.speed;
_root.waver._x = _root.waver._x - _global.speed;
_root.reo._x = _root.reo._x - _global.speed;
_root.sidehopper._x = _root.sidehopper._x - _global.speed;
_root.spires._x = _root.spires._x - _global.speed;
_root.spirem._x = _root.spirem._x - _global.speed;
} else {
_root.watermelon_whole._x = _root.watermelon_whole._x + _global.speed;
}
}
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel <= 15) {
_global.yvel = _global.yvel + (_global.gravity * 2);
}
_global.gravity = true;
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("jumping_right");
}
if (((((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_left");
}
if (((((((_global.facing == 1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(38))) and (!Key.isDown(65))) and (!Key.isDown(40))) {
this.gotoAndStop("morph_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (false)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("down_right");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (_global.ducking == true)) and (_global.morph == eval (true)(!Key.isDown(38)))) and (!Key.isDown(65))) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("morph_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_left");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and Key.isDown(65)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) {
this.gotoAndStop("shoot_air_right");
}
if ((((((((_global.facing == 1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_left_jumping");
}
if ((((((((_global.facing == -1) and (_global.yvel >= 7)) and Key.isDown(38)) and (!Key.isDown(40))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
_global.ducking = false;
this.gotoAndStop("up_right_jumping");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(83)) {
_global.ducking = false;
this.gotoAndStop("diag_up_jumping_right");
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_left");
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.yvel >= 7)) and (!Key.isDown(40))) and Key.isDown(88)) {
_global.ducking = false;
this.gotoAndStop("diag_down_jumping_right");
}
} else {
while (_root.bg.hitTest(_x, _y + 1, true)) {
if (_global.yvel >= 7) {
jumping = false;
gravity = false;
onfloor = true;
}
if ((_global.yvel >= 7) and (_global.gravity == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if ((_global.yvel >= 7) and (_global.jumping == true)) {
_global.gravity = false;
_global.jumping = false;
if (_global.morph == false) {
_root.land_sound.start();
}
}
if (Key.isDown(65)) {
_global.shoot_air = false;
}
if (Key.isDown(40)) {
if ((_global.gravity == false) and (_global.morph == false)) {
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
this.gotoAndStop("down_up_diag_right");
}
if ((((_global.facing == 1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_left");
}
if ((((_global.facing == -1) and (_global.gravity == false)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
this.gotoAndStop("down_down_diag_right");
}
}
if ((((_global.gravity == false) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) {
if (facing == 1) {
_global.morph = true;
this.gotoAndStop("morph_left");
}
if (facing == -1) {
_global.morph = true;
this.gotoAndStop("morph_right");
}
}
}
_global.jumping = false;
_global.gravity = false;
_root.watermelon_whole._y = _root.watermelon_whole._y - 1;
_root.w_barrier._y = _root.w_barrier._y - 1;
if ((((((_global.facing == 1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
}
if ((((((_global.facing == -1) and (_global.yvel >= 7)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("still_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
}
if ((((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(83)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_up_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == 1) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and Key.isDown(88)) {
_global.shoot_air = false;
_global.moving = false;
this.gotoAndStop("diag_down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == 1) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == 1) and (_global.speed <= 0)) and (_global.ducking == true)) and (_global.morph_able == true)) and (_global.morph_ability == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) and Key.isDown(40)) {
_global.ducking = true;
_global.morph = true;
_global.moving = false;
this.gotoAndStop("morph_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == 1) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((((_global.facing == -1) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(38))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.morph_ability == true)) and (_global.morph_able == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((_global.facing == -1) and (_global.morph == true)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(38))) and Key.isDown(40)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((_global.facing == -1) and (_global.speed <= 1.4)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if (((((Key.isDown(39) and (_global.morph == true)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("morph_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(39) and (_global.morph == false)) and (_global.speed >= -1.4)) and (_global.speed <= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_right");
if (_global.speed >= -0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.morph == false)) and (_global.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((Key.isDown(37) and (_global.speed >= 0)) and (_global.morph == true)) and (_global.ducking == true)) {
_global.ducking = true;
_global.moving = false;
_global.morph = true;
this.gotoAndStop("morph_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_up_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if ((((((Key.isDown(37) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((Key.isDown(37) and Key.isDown(38)) and (_global.morph == false)) and (_global.speed <= 1.4)) and (_global.speed >= 0)) and (_global.ducking == true)) and (!Key.isDown(83))) and Key.isDown(88)) {
_global.ducking = true;
_global.moving = false;
this.gotoAndStop("down_down_diag_left");
if (_global.speed <= 0.1) {
_global.speed = 0;
}
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_left");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and (!Key.isDown(38))) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right");
}
if (((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_left2");
}
if (((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(65)) and (_global.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
_global.moving = true;
this.gotoAndStop("moving_right2");
}
if ((((((((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_left");
}
}
if ((((((((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_global.aiming_down == false)) and (_global.aiming_up == false)) {
if (_global.morph == false) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
if ((((_global.morph == true) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest((_x + _global.barvar) + (_width / 2), _y - 20, true))) and (!_root.bg.hitTest(_x, _y - 30, true))) {
_global.ducking = false;
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("up_moving_right");
}
}
if (Key.isDown(83)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_up_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_up");
}
} else if (Key.isDown(88)) {
if (((((_global.hurt == 1) and (_global.facing == 1)) and (_global.morph == false)) and (_global.speed <= 0)) and (_global.speed <= -1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_diag_down_left");
}
if (((((_global.hurt == 1) and (_global.facing == -1)) and (_global.morph == false)) and (_global.speed >= 0)) and (_global.speed >= 1.5)) {
_global.shoot_air = false;
_global.moving = true;
this.gotoAndStop("moving_right_diag_down");
}
}
}
onfloor = true;
_global.yvel = 0;
}
}
Frame 72
function createBullets() {
var _local1 = _global;
var _local2 = _root;
var _local3 = this;
fpsMc._x = -20;
fpsMc._y = 540;
_local2.shoot_sound1.start();
if ((((_local1.facing == 1) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if ((((_local1.facing == -1) and (_local1.ducking == true)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (22 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 20;
}
if (((((((_local1.facing == 1) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if (((((((_local1.facing == -1) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == false)) and (_local1.shoot_air == false)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 35;
}
if ((((((_local1.facing == 1) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if ((((((_local1.facing == -1) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.moving == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if ((((((_local1.facing == 1) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet", "bullet" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if ((((((_local1.facing == -1) and (!Key.isDown(38))) and (!Key.isDown(83))) and (!Key.isDown(88))) and (_local1.ducking == false)) and (_local1.shoot_air == true)) {
var bulletMc = _local3.attachMovie("bullet2", "bullet2" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (32 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 39;
}
if ((((_local1.facing == 1) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if ((((_local1.facing == -1) and Key.isDown(38)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet3", "bullet3" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x + (1 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 75;
}
if (((((_local1.facing == -1) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (2 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if (((((_local1.facing == 1) and Key.isDown(40)) and (_local1.ducking == false)) and (!Key.isDown(83))) and (!Key.isDown(88))) {
if (_local1.jumping == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
if (_local1.gravity == true) {
var bulletMc = _local3.attachMovie("bullet4", "bullet4" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (8 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y + 3;
}
}
if ((((_local1.facing == 1) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 67;
}
if ((((_local1.facing == -1) and (_local1.ducking == false)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 65;
}
if ((((_local1.facing == 1) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet6", "bullet6" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if ((((_local1.facing == -1) and (_local1.ducking == true)) and Key.isDown(83)) and (!Key.isDown(88))) {
var bulletMc = _local3.attachMovie("bullet5", "bullet5" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (28 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 48;
}
if ((((_local1.facing == 1) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if ((((_local1.facing == -1) and (_local1.ducking == false)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (27 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 17;
}
if ((((_local1.facing == 1) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet8", "bullet8" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
if ((((_local1.facing == -1) and (_local1.ducking == true)) and Key.isDown(88)) and (!Key.isDown(83))) {
var bulletMc = _local3.attachMovie("bullet7", "bullet7" + bulletCount, 1000 + bulletCount);
bulletMc._x = _local2.watermelon_whole._x - (25 * _local1.facing);
bulletMc._y = _local2.watermelon_whole._y - 3;
}
timer = 0;
bulletCount++;
bulletArray.push(bulletMc);
}
function moveBullets() {
if ((bulletReady && (Key.isDown(65))) and (timer >= 60)) {
timer = 0;
bulletReady = false;
currentTime = getTimer();
createBullets();
} else if ((currentTime + bulletDelay) <= getTimer()) {
bulletReady = true;
}
var _local1 = 0;
while (_local1 < bulletArray.length) {
_local1++;
}
}
stop();
var step_sound = new Sound();
step_sound.attachSound("step_sound");
var hurt_sound = new Sound();
hurt_sound.attachSound("hurt_sound");
var land_sound = new Sound();
land_sound.attachSound("land_sound");
var dangerous_sound = new Sound();
dangerous_sound.attachSound("dangerous");
var door_sound = new Sound();
door_sound.attachSound("door_open");
var door_close = new Sound();
door_close.attachSound("door_close");
var cat_sound = new Sound();
cat_sound.attachSound("cat_sound");
var jump_sound1 = new Sound();
jump_sound1.attachSound("jump_sound");
var shoot_sound1 = new Sound();
shoot_sound1.attachSound("shoot_sound");
var crush_sound1 = new Sound();
crush_sound1.attachSound("crush_sound");
var power_up = new Sound();
power_up.attachSound("power_up");
var death_sound = new Sound();
death_sound.attachSound("death");
var explode_sound = new Sound();
explode_sound.attachSound("enemy_explode");
_global.death = false;
_root.dangerous_sound.start("", "1000");
var timer = 0;
var bulletSpeed = 12;
var bulletReady = true;
var bulletDelay = 150;
var bulletArray = [];
var bulletCount = 0;
this.onEnterFrame = function () {
if (!Key.isDown(65)) {
timer = 60;
}
timer++;
moveStars();
moveShip();
fpstimer = 0;
moveBullets();
movefps();
};
Instance of Symbol 16 MovieClip in Symbol 22 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.hitTest(_root.bg.dg)) {
_root.bg.dg.gotoAndPlay("open");
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.bg.dg2)) {
_root.bg.dg2.gotoAndPlay("open");
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.bg.dg3)) {
_root.bg.dg3.gotoAndPlay("open");
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.bg.dg4)) {
_root.bg.dg4.gotoAndPlay("open");
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.spirem)) {
if (_global.spirem_hurt == 1) {
_global.spirem_life = _global.spirem_life - 1;
_global.spirem_hurt = -1;
}
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.spires)) {
if (_global.spires_hurt == 1) {
_global.spires_life = _global.spires_life - 1;
_global.spires_hurt = -1;
}
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.bg.pulsate)) {
_global.pulsate_hurt = -1;
_parent._parent.gotoAndPlay("explodia");
}
if (_global.death == true) {
_parent._parent.removeMovieClip();
}
if (_parent._parent.hitTest(_root.dg1)) {
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.multiviola)) {
if (_global.multiviola_hurt == 1) {
_global.multiviola_life = _global.multiviola_life - 1;
_global.multiviola_hurt = -1;
_parent._parent.gotoAndPlay("explodia");
}
if (_global.multiviola_hurt == -1) {
_parent._parent.gotoAndPlay("explodia");
}
}
if (_parent._parent.hitTest(_root.owtch)) {
if (_global.owtch_hurt == 1) {
_global.owtch_life = _global.owtch_life - 1;
_global.owtch_hurt = -1;
_parent._parent.gotoAndPlay("explodia");
}
if (_global.owtch_hurt == -1) {
_parent._parent.gotoAndPlay("explodia");
}
}
if (_parent._parent.hitTest(_root.floater)) {
if (_global.floater_hurt == 1) {
_global.floater_hurt = -1;
_parent._parent.gotoAndPlay("explodia");
}
if (_global.floater_hurt == -1) {
_parent._parent.gotoAndPlay("explodia");
}
}
if (_parent._parent.hitTest(_root.fly)) {
if (_global.fly_hurt == 1) {
_global.fly_life = _global.fly_life - 1;
_global.fly_hurt = -1;
_parent._parent.gotoAndPlay("explodia");
}
if (_global.fly_hurt == -1) {
_parent._parent.gotoAndPlay("explodia");
}
}
if (_parent._parent.hitTest(_root.reo)) {
if (_global.reo_hurt == 1) {
_global.reo_life = _global.reo_life - 1;
_global.reo_hurt = -1;
}
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.waver)) {
if (_global.waver_hurt == 1) {
_global.waver_life = _global.waver_life - 1;
_global.waver_hurt = -1;
_parent._parent.gotoAndPlay("explodia");
}
if (_global.waver_hurt == -1) {
_parent._parent.gotoAndPlay("explodia");
}
}
if (_parent._parent.hitTest(_root.hornoad)) {
if (_global.hornoad_hurt == 1) {
_global.hornoad_life = _global.hornoad_life - 1;
_global.hornoad_hurt = -1;
_parent._parent.gotoAndPlay("explodia");
}
if (_global.hornoad_hurt == -3) {
_parent._parent.gotoAndPlay("explodia");
}
if (_global.hornoad_hurt == -2) {
_parent._parent.gotoAndPlay("explodia");
}
if (_global.hornoad_hurt == -1) {
_parent._parent.gotoAndPlay("explodia");
}
if (_global.hornoad_hurt == 0) {
_parent._parent.gotoAndPlay("explodia");
}
}
if (_parent._parent.hitTest(_root.sidehopper)) {
if (_global.sidehopper_hurt == 1) {
_global.sidehopper_life = _global.sidehopper_life - 1;
_global.sidehopper_hurt = -1;
}
if (_global.sidehopper_hurt == -2) {
_global.sidehopper_life = _global.sidehopper_life - 1;
_global.sidehopper_hurt = -1;
}
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.robo) and (_global.robo_facing == 1)) {
_global.robo_hurt = -2;
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.robo) and (_global.robo_facing == -1)) {
_global.robo_hurt = -1;
_parent._parent.gotoAndPlay("explodia");
}
if (_parent._parent.hitTest(_root.hornoad2) and (_global.hornoad2_hurt == 1)) {
_global.hornoad2_life = _global.hornoad2_life - 1;
_global.hornoad2_hurt = -1;
_parent._parent.removeMovieClip();
}
}
Instance of Symbol 17 MovieClip in Symbol 28 MovieClip [ball_bomb] Frame 1
onClipEvent (load) {
speedx = -17;
speedy = 0;
}
onClipEvent (enterFrame) {
if (_root.death.hitTest(_parent._x, _parent._y + 1, true)) {
_parent.removeMovieClip();
}
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
}
Symbol 28 MovieClip [ball_bomb] Frame 21
_root.explode_sound.start();
Instance of Symbol 22 MovieClip in Symbol 28 MovieClip [ball_bomb] Frame 21
onClipEvent (load) {
speedx = -17;
speedy = 0;
}
onClipEvent (enterFrame) {
if (_root.death.hitTest(_parent._x, _parent._y + 1, true)) {
_parent.removeMovieClip();
}
if (_root.watermelon_whole.hitTest(_parent._x, _parent._y + 1, true) and (_global.morph == true)) {
_global.jumping = true;
onfloor = false;
_global.yvel = -15;
}
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
}
Instance of Symbol 27 MovieClip in Symbol 28 MovieClip [ball_bomb] Frame 25
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Symbol 39 MovieClip [bullet4] Frame 1
stop();
Instance of Symbol 30 MovieClip in Symbol 39 MovieClip [bullet4] Frame 1
onClipEvent (load) {
speedx = 17;
}
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (!_root.bg.hitTest(_parent._x + 8, _parent._y + 1, true)) {
_parent._y = _parent._y + speedx;
}
if ((((((_root.bg.hitTest(_parent._x + 8, _parent._y + 1, true) and (!_parent.hitTest(_root.bg.spires))) and (!_parent.hitTest(_root.bg.dg))) and (!_parent.hitTest(_root.bg.dg2))) and (!_parent.hitTest(_root.bg.dg3))) and (!_parent.hitTest(_root.bg.dg4))) and (!_parent.hitTest(_root.bg.spirem))) {
_parent.gotoAndPlay("explodia");
}
if (_root.death.hitTest(_parent._x, _parent._y + 1, true)) {
_parent.removeMovieClip();
}
}
Symbol 39 MovieClip [bullet4] Frame 4
_root.explode_sound.start();
Instance of Symbol 33 MovieClip in Symbol 39 MovieClip [bullet4] Frame 4
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
}
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip [bullet4] Frame 8
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Symbol 42 MovieClip [bullet8] Frame 1
stop();
Instance of Symbol 41 MovieClip in Symbol 42 MovieClip [bullet8] Frame 1
onClipEvent (load) {
speedy = 17;
speedx = 17;
}
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 1, true)) {
_parent._y = _parent._y + speedy;
_parent._x = _parent._x - speedx;
}
if ((((((_root.bg.hitTest(_parent._x, _parent._y + 1, true) and (!_parent.hitTest(_root.bg.spires))) and (!_parent.hitTest(_root.bg.dg))) and (!_parent.hitTest(_root.bg.dg2))) and (!_parent.hitTest(_root.bg.dg3))) and (!_parent.hitTest(_root.bg.dg4))) and (!_parent.hitTest(_root.bg.spirem))) {
_parent.gotoAndPlay("explodia");
}
if (_root.death.hitTest(_parent._x, _parent._y + 1, true)) {
_parent.removeMovieClip();
}
}
Symbol 42 MovieClip [bullet8] Frame 4
_root.explode_sound.start();
Instance of Symbol 33 MovieClip in Symbol 42 MovieClip [bullet8] Frame 4
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
}
Instance of Symbol 38 MovieClip in Symbol 42 MovieClip [bullet8] Frame 8
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Symbol 45 MovieClip [bullet7] Frame 1
stop();
Instance of Symbol 44 MovieClip in Symbol 45 MovieClip [bullet7] Frame 1
onClipEvent (load) {
speedy = 17;
speedx = 17;
}
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 1, true)) {
_parent._y = _parent._y + speedy;
_parent._x = _parent._x + speedx;
}
if ((((((_root.bg.hitTest(_parent._x, _parent._y + 1, true) and (!_parent.hitTest(_root.bg.dg))) and (!_parent.hitTest(_root.bg.dg2))) and (!_parent.hitTest(_root.bg.dg3))) and (!_parent.hitTest(_root.bg.dg4))) and (!_parent.hitTest(_root.bg.spirem))) and (!_parent.hitTest(_root.bg.spires))) {
_parent.gotoAndPlay("explodia");
}
if (_root.death.hitTest(_parent._x, _parent._y + 1, true)) {
_parent.removeMovieClip();
}
}
Symbol 45 MovieClip [bullet7] Frame 4
_root.explode_sound.start();
Instance of Symbol 33 MovieClip in Symbol 45 MovieClip [bullet7] Frame 4
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
}
Instance of Symbol 38 MovieClip in Symbol 45 MovieClip [bullet7] Frame 8
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Symbol 48 MovieClip [bullet5] Frame 1
stop();
Instance of Symbol 47 MovieClip in Symbol 48 MovieClip [bullet5] Frame 1
onClipEvent (load) {
speedy = 17;
speedx = 17;
}
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y - 3, true)) {
_parent._y = _parent._y - speedy;
_parent._x = _parent._x + speedx;
}
if ((((((_root.bg.hitTest(_parent._x, _parent._y - 3, true) and (!_parent.hitTest(_root.bg.spires))) and (!_parent.hitTest(_root.bg.dg))) and (!_parent.hitTest(_root.bg.dg2))) and (!_parent.hitTest(_root.bg.dg3))) and (!_parent.hitTest(_root.bg.dg4))) and (!_parent.hitTest(_root.bg.spirem))) {
_parent.gotoAndPlay("explodia");
}
if (_root.death.hitTest(_parent._x, _parent._y - 3, true)) {
_parent.removeMovieClip();
}
}
Symbol 48 MovieClip [bullet5] Frame 4
_root.explode_sound.start();
Instance of Symbol 33 MovieClip in Symbol 48 MovieClip [bullet5] Frame 4
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
}
Instance of Symbol 38 MovieClip in Symbol 48 MovieClip [bullet5] Frame 8
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Symbol 49 MovieClip [bullet3] Frame 1
stop();
Instance of Symbol 30 MovieClip in Symbol 49 MovieClip [bullet3] Frame 1
onClipEvent (load) {
if ((_global.yvel <= 2) and (_global.yvel >= -2)) {
gravity = false;
} else {
gravity = true;
}
speedx = 17;
}
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (!_root.bg.hitTest(_parent._x + 8, _parent._y - 1, true)) {
_parent._y = _parent._y - speedx;
}
if ((((((_root.bg.hitTest(_parent._x + 8, _parent._y - 1, true) and (!_parent.hitTest(_root.bg.spires))) and (!_parent.hitTest(_root.bg.dg))) and (!_parent.hitTest(_root.bg.dg2))) and (!_parent.hitTest(_root.bg.dg3))) and (!_parent.hitTest(_root.bg.dg4))) and (!_parent.hitTest(_root.bg.spirem))) {
_parent.gotoAndPlay("explodia");
}
if (_root.death.hitTest(_parent._x, _parent._y - 1, true)) {
_parent.removeMovieClip();
}
}
Symbol 49 MovieClip [bullet3] Frame 4
_root.explode_sound.start();
Instance of Symbol 33 MovieClip in Symbol 49 MovieClip [bullet3] Frame 4
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
}
Instance of Symbol 38 MovieClip in Symbol 49 MovieClip [bullet3] Frame 8
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Symbol 50 MovieClip [bullet2] Frame 1
stop();
Instance of Symbol 30 MovieClip in Symbol 50 MovieClip [bullet2] Frame 1
onClipEvent (load) {
if ((_global.yvel <= 2) and (_global.yvel >= -2)) {
gravity = false;
} else {
gravity = true;
}
speedx = 17;
}
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 1, true)) {
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
}
if ((((_root.bg.hitTest(_parent._x, _parent._y + 1, true) and (!_parent.hitTest(_root.bg.spires))) and (!_parent.hitTest(_root.bg.dg))) and (!_parent.hitTest(_root.bg.dg2))) and (!_parent.hitTest(_root.bg.spirem))) {
_parent.gotoAndPlay("explodia");
}
if (_root.death.hitTest(_parent._x, _parent._y + 1, true)) {
_parent.removeMovieClip();
}
}
Symbol 50 MovieClip [bullet2] Frame 4
_root.explode_sound.start();
Instance of Symbol 33 MovieClip in Symbol 50 MovieClip [bullet2] Frame 4
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
}
Instance of Symbol 38 MovieClip in Symbol 50 MovieClip [bullet2] Frame 8
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Symbol 53 MovieClip [bullet] Frame 1
stop();
Instance of Symbol 52 MovieClip in Symbol 53 MovieClip [bullet] Frame 1
onClipEvent (load) {
speedx = -17;
speedy = 0;
}
onClipEvent (enterFrame) {
if ((((((_root.bg.hitTest(_parent._x, _parent._y + 1, true) and (!_parent.hitTest(_root.bg.spires))) and (!_parent.hitTest(_root.bg.dg))) and (!_parent.hitTest(_root.bg.dg2))) and (!_parent.hitTest(_root.bg.dg3))) and (!_parent.hitTest(_root.bg.dg4))) and (!_parent.hitTest(_root.bg.spirem))) {
_parent.gotoAndPlay("explodia");
}
if (_root.death.hitTest(_parent._x, _parent._y + 1, true)) {
_parent.removeMovieClip();
}
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 1, true)) {
_parent._y = _parent._y + speedy;
_parent._x = _parent._x + speedx;
}
}
Symbol 53 MovieClip [bullet] Frame 3
_root.explode_sound.start();
Instance of Symbol 33 MovieClip in Symbol 53 MovieClip [bullet] Frame 3
onClipEvent (enterFrame) {
if (_global.morph == false) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 35, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) and (!_root.bg.hitTest((_x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
if (_global.morph == true) {
if (_global.facing == -1) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
} else if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 10, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 15, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 18, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
}
}
Instance of Symbol 38 MovieClip in Symbol 53 MovieClip [bullet] Frame 7
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Symbol 60 MovieClip [fps2] Frame 1
if (_global.samus_life <= 0) {
_global.samus_life = 0;
}
fpsout = _global.samus_life;
Instance of Symbol 59 MovieClip in Symbol 60 MovieClip [fps2] Frame 1
onClipEvent (enterFrame) {
this._xscale = _global.samus_life;
}
Symbol 64 MovieClip [fps] Frame 1
timer2 = new Date();
tmpfps = timer2.getTime() - timer1.getTime();
timer1 = new Date();
fps = Math.round((1000 / tmpfps) * 35);
fpsout = "Fps: " + fps;
_global.hurt = 1;
Symbol 64 MovieClip [fps] Frame 15
_global.hurt = 1;
Symbol 67 MovieClip [bullet6] Frame 1
stop();
Instance of Symbol 66 MovieClip in Symbol 67 MovieClip [bullet6] Frame 1
onClipEvent (load) {
speedy = 17;
speedx = 17;
}
onClipEvent (enterFrame) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 20, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 20, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 200)) {
_parent._x = _parent._x - _global.speed;
}
}
if (!_root.bg.hitTest(_parent._x - 1, _parent._y - 1, true)) {
_parent._y = _parent._y - speedy;
_parent._x = _parent._x - speedx;
}
if ((((((_root.bg.hitTest(_parent._x - 1, _parent._y - 1, true) and (!_parent.hitTest(_root.bg.spires))) and (!_parent.hitTest(_root.bg.dg))) and (!_parent.hitTest(_root.bg.dg2))) and (!_parent.hitTest(_root.bg.dg3))) and (!_parent.hitTest(_root.bg.dg4))) and (!_parent.hitTest(_root.bg.spirem))) {
_parent.gotoAndPlay("explodia");
}
if (_root.death.hitTest(_parent._x - 1, _parent._y - 1, true)) {
_parent.removeMovieClip();
}
}
Symbol 67 MovieClip [bullet6] Frame 4
_root.explode_sound.start();
Instance of Symbol 33 MovieClip in Symbol 67 MovieClip [bullet6] Frame 4
onClipEvent (enterFrame) {
if (((!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 20, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x + _global.barvar) + (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) {
if ((_root.bg._x >= _global.right_scroll) and (_root.watermelon_whole._x >= 160)) {
_parent._x = _parent._x - _global.speed;
}
}
if (((!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 30, true)) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 20, true))) and (!_root.bg.hitTest((_root.watermelon_whole._x - _global.barvar) - (_root.watermelon_whole._width / 2), _root.watermelon_whole._y - 40, true))) {
if ((_root.bg._x <= _global.left_scroll) and (_root.watermelon_whole._x <= 160)) {
_parent._x = _parent._x - _global.speed;
}
}
}
Instance of Symbol 38 MovieClip in Symbol 67 MovieClip [bullet6] Frame 8
onClipEvent (enterFrame) {
_parent.removeMovieClip();
}
Instance of Symbol 69 MovieClip "death" in Symbol 70 MovieClip [death_zone] Frame 1
onClipEvent (enterFrame) {
if (_global.morph_get == 1) {
_global.morph_ability = true;
}
if (_parent.hitTest(_root.watermelon_whole)) {
_global.samus_life = 0;
}
if (_parent.hitTest(_root.jaws)) {
_root.jaws1.unloadMovie();
_root.explode_sound.start();
}
if (_global.samus_life <= 0) {
_global.samus_life = 0;
}
if (_global.samus_life >= 99) {
_global.samus_life = 99;
}
if (_global.samus_life <= 0) {
_root.death_sound.start();
_root.watermelon_whole.unloadMovie();
_global.death = true;
_root.gotoAndStop("dead");
}
}
Symbol 79 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 7
_root.door_sound.start();
Symbol 79 MovieClip Frame 11
stop();
Symbol 79 MovieClip Frame 14
_root.door_close.start();
Symbol 79 MovieClip Frame 17
gotoAndStop (2);
Instance of Symbol 79 MovieClip "dg" in Symbol 84 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Instance of Symbol 79 MovieClip "dg2" in Symbol 84 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Symbol 89 MovieClip Frame 8
_global.owtch_hurt = 1;
Symbol 96 MovieClip Frame 1
_root.explode_sound.start();
Symbol 96 MovieClip Frame 7
if (_global.owtch_random == 0) {
_global.owtch_life = 1001;
}
if (_global.owtch_random == 1) {
_global.owtch_life = 1;
_global.owtch_hurt = 2;
}
if (_global.owtch_random == 2) {
_global.owtch_life = 1;
_global.owtch_hurt = 2;
}
if (_global.owtch_random == 3) {
_global.owtch_life = 1;
_global.owtch_hurt = 3;
}
Instance of Symbol 101 MovieClip in Symbol 102 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.bloop_sound.start();
if (_global.samus_life <= 98) {
_global.samus_life = _global.samus_life + 10;
}
_parent.unloadMovie();
}
}
Instance of Symbol 106 MovieClip in Symbol 107 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.bloop_sound.start();
if (_global.samus_life <= 98) {
_global.samus_life = _global.samus_life + 20;
}
_parent.unloadMovie();
}
}
Symbol 108 MovieClip Frame 1
stop();
Instance of Symbol 96 MovieClip in Symbol 108 MovieClip Frame 49
onClipEvent (load) {
_global.owtch_random = Math.round(Math.random() * 3);
}
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
_global.owtch_random = -1;
_global.owtch_life = 2;
_global.owtch_hurt = 1;
speed = 4;
hurt = false;
facing = 1;
move_counter = 1;
yvelocity = 0;
amount_jumped = 12;
grav = true;
jump = false;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.watermelon_whole) and (_global.hurt == 1)) {
if (_global.owtch_hurt == 1) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 5;
}
if (_global.owtch_hurt == -1) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 5;
}
}
if (_global.owtch_hurt == 2) {
this.gotoAndStop("ball_small");
}
if (_global.owtch_hurt == 3) {
this.gotoAndStop("ball_big");
}
if (_global.owtch_life <= 0) {
_global.owtch_hurt = -5;
this.gotoAndStop("dead");
}
if (_global.owtch_life >= 1000) {
_parent.unloadMovie();
}
if (_global.owtch_hurt == 1) {
_parent._y = _parent._y - yvelocity;
move_counter = move_counter + 1;
if (facing == 1) {
_parent._x = _parent._x + 3;
this.gotoAndStop("right");
} else if (facing == -1) {
_parent._x = _parent._x - 3;
this.gotoAndStop("left");
}
}
if (_global.owtch_hurt == -1) {
_parent._y = _parent._y - yvelocity;
move_counter = move_counter + 1;
if (facing == 1) {
this.gotoAndStop("hurt_right");
} else if (facing == -1) {
this.gotoAndStop("hurt_left");
}
}
if (_root.bg.hitTest((_parent._x + 2) + (_parent._width / 2), _parent._y - 15, true)) {
if (facing == 1) {
_parent._x = _parent._x - 10;
speed = speed * -1;
facing = facing * -1;
}
}
if (_root.bg.hitTest((_parent._x - 2) - (_parent._width / 2), _parent._y - 15, true)) {
if (facing == -1) {
_parent._x = _parent._x + 10;
speed = speed * -1;
facing = facing * -1;
}
}
if (_root.bg.hitTest((_parent._x + 10) + (_parent._width / 2), _parent._y - 18, true) and (!_root.bg.hitTest(_parent._x, _parent._y - 19, true))) {
if (facing == 1) {
yvelocity = 18;
}
}
if (_root.bg.hitTest((_parent._x - 10) - (_parent._width / 2), _parent._y - 18, true) and (!_root.bg.hitTest(_parent._x, _parent._y - 19, true))) {
if (facing == -1) {
yvelocity = 18;
}
}
if (_root.bg.hitTest(_parent._x, _parent._y - 30, true)) {
yvelocity = 3;
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 1, true)) {
if (yvelocity >= -15) {
_parent._y = _parent._y + 3;
grav = true;
yvelocity = yvelocity - 3;
}
} else {
while (_root.bg.hitTest(_parent._x, _parent._y + 1, true)) {
grav = false;
jump = false;
_parent._y = _parent._y - 1;
}
}
if (move_counter == distance) {
move_counter = 1;
speed = speed * -1;
}
}
Symbol 122 MovieClip Frame 7
_global.fly_hurt = 1;
Symbol 123 MovieClip Frame 1
_root.explode_sound.start();
Symbol 123 MovieClip Frame 7
if (_global.fly_random == 0) {
_global.fly_life = 1001;
}
if (_global.fly_random == 1) {
_global.fly_life = 1;
_global.fly_hurt = 2;
}
if (_global.fly_random == 2) {
_global.fly_life = 1;
_global.fly_hurt = 2;
}
if (_global.fly_random == 3) {
_global.fly_life = 1;
_global.fly_hurt = 3;
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 11
stop();
Symbol 124 MovieClip Frame 22
stop();
Symbol 124 MovieClip Frame 32
stop();
Symbol 124 MovieClip Frame 43
stop();
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip Frame 43
onClipEvent (load) {
_global.fly_random = Math.round(Math.random() * 3);
}
Symbol 124 MovieClip Frame 53
stop();
Symbol 124 MovieClip Frame 64
stop();
Instance of Symbol 124 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
_global.fly_random = -1;
dir = -1;
speedx = 5;
_global.fly_life = 2;
_global.fly_hurt = 1;
speed = 4;
hurt = false;
facing = 1;
move_counter = 1;
yvelocity = 0;
amount_jumped = 12;
grav = true;
jump = false;
speedy = 4;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.watermelon_whole) and (_global.hurt == 1)) {
if (_global.fly_hurt == 1) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 6;
}
if (_global.fly_hurt == -1) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 6;
}
}
if (_global.fly_hurt == 2) {
this.gotoAndStop("ball_small");
}
if (_global.fly_hurt == 3) {
this.gotoAndStop("ball_big");
}
if (((_global.fly_life >= 0) and (_global.fly_life <= 10)) and (_global.fly_hurt >= -2)) {
}
if (_global.fly_life <= 0) {
_global.fly_hurt = -5;
this.gotoAndStop("dead");
}
if (_global.fly_life >= 1000) {
_parent.unloadMovie();
}
if (facing == 1) {
if (_global.fly_hurt == 1) {
_parent._x = _parent._x + speedx;
}
if (_global.fly_hurt == -1) {
}
}
if (facing == -1) {
if (_global.fly_hurt == 1) {
_parent._x = _parent._x - speedx;
}
if (_global.fly_hurt == -1) {
}
}
if (_global.fly_hurt == 1) {
_parent._y = _parent._y - yvelocity;
_parent._y = _parent._y - speedy;
move_counter = move_counter + 1;
if (facing == 1) {
this.gotoAndStop("moving_right");
} else if (facing == -1) {
this.gotoAndStop("moving_left");
}
}
if (_global.fly_hurt == -1) {
move_counter = move_counter + 1;
if (facing == 1) {
this.gotoAndStop("hurt_right");
} else if (facing == -1) {
this.gotoAndStop("hurt_left");
}
}
if (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
if (_global.fly_hurt == 1) {
speedy = 4;
}
if (_global.fly_hurt == -1) {
speedy = 4;
}
}
if (_root.bg.hitTest(_parent._x, _parent._y - 18, true)) {
if (_global.fly_hurt == 1) {
speedy = -4;
}
if (_global.fly_hurt == -1) {
speedy = -4;
}
}
if (_root.bg.hitTest((_parent._x + 2) + (_parent._width / 2), _parent._y - 13, true)) {
if ((facing == 1) and (_global.fly_hurt == 1)) {
_parent._x = _parent._x - 10;
speed = speed * -1;
facing = facing * -1;
}
if ((facing == 1) and (_global.fly_hurt == -1)) {
_parent._x = _parent._x - 10;
speed = speed * -1;
facing = facing * -1;
}
}
if (_root.bg.hitTest((_parent._x - 2) - (_parent._width / 2), _parent._y - 13, true)) {
if ((facing == -1) and (_global.fly_hurt == 1)) {
_parent._x = _parent._x + 10;
speed = speed * -1;
facing = facing * -1;
}
if ((facing == -1) and (_global.fly_hurt == -1)) {
_parent._x = _parent._x + 10;
speed = speed * -1;
facing = facing * -1;
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 3, true)) {
} else {
while (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
grav = false;
jump = false;
_parent._y = _parent._y - 1;
}
}
if (move_counter == distance) {
move_counter = 1;
speed = speed * -1;
}
}
Symbol 143 MovieClip Frame 14
_global.multiviola_hurt = 1;
Symbol 144 MovieClip Frame 1
_root.explode_sound.start();
Symbol 144 MovieClip Frame 7
if (_global.multiviola_random == 0) {
_global.multiviola_life = 1001;
}
if (_global.multiviola_random == 1) {
_global.multiviola_life = 1;
_global.multiviola_hurt = 2;
}
if (_global.multiviola_random == 2) {
_global.multiviola_life = 1;
_global.multiviola_hurt = 2;
}
if (_global.multiviola_random == 3) {
_global.multiviola_life = 1;
_global.multiviola_hurt = 3;
}
Symbol 145 MovieClip Frame 1
stop();
Instance of Symbol 144 MovieClip in Symbol 145 MovieClip Frame 46
onClipEvent (load) {
_global.multiviola_random = Math.round(Math.random() * 3);
}
Instance of Symbol 145 MovieClip in Symbol 146 MovieClip Frame 1
onClipEvent (load) {
_global.multiviola_random = -1;
dir = -1;
speedx = 2;
_global.multiviola_life = 3;
_global.multiviola_hurt = 1;
speed = 2;
hurt = false;
facing = 1;
move_counter = 1;
yvelocity = 0;
amount_jumped = 12;
grav = true;
jump = false;
speedy = 2;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.watermelon_whole) and (_global.hurt == 1)) {
if (_global.multiviola_hurt == 1) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 8;
}
if (_global.multiviola_hurt == -1) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 8;
}
}
if (_global.multiviola_hurt == 2) {
this.gotoAndStop("ball_small");
}
if (_global.multiviola_hurt == 3) {
this.gotoAndStop("ball_big");
}
if (((_global.multiviola_life >= 0) and (_global.multiviola_life <= 10)) and (_global.multiviola_hurt >= -2)) {
}
if (_global.multiviola_life <= 0) {
_global.multiviola_hurt = -5;
this.gotoAndStop("dead");
}
if (_global.multiviola_life >= 1000) {
_parent.unloadMovie();
}
if (facing == 1) {
if (_global.multiviola_hurt == 1) {
_parent._x = _parent._x + speedx;
}
if (_global.multiviola_hurt == -1) {
}
}
if (facing == -1) {
if (_global.multiviola_hurt == 1) {
_parent._x = _parent._x - speedx;
}
if (_global.multiviola_hurt == -1) {
}
}
if (_global.multiviola_hurt == 1) {
_parent._y = _parent._y - yvelocity;
_parent._y = _parent._y - speedy;
move_counter = move_counter + 1;
if (facing == 1) {
this.gotoAndStop("moving_right");
} else if (facing == -1) {
this.gotoAndStop("moving_left");
}
}
if (_global.multiviola_hurt == -1) {
move_counter = move_counter + 1;
if (facing == 1) {
this.gotoAndStop("hurt_right");
} else if (facing == -1) {
this.gotoAndStop("hurt_left");
}
}
if (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
if (_global.multiviola_hurt == 1) {
speedy = 2;
}
if (_global.multiviola_hurt == -1) {
speedy = 2;
}
}
if (_root.bg.hitTest(_parent._x, _parent._y - 18, true)) {
if (_global.multiviola_hurt == 1) {
speedy = -2;
}
if (_global.multiviola_hurt == -1) {
speedy = -2;
}
}
if (_root.bg.hitTest((_parent._x + 2) + (_parent._width / 2), _parent._y - 13, true)) {
if ((facing == 1) and (_global.multiviola_hurt == 1)) {
_parent._x = _parent._x - 4;
speed = speed * -1;
facing = facing * -1;
}
if ((facing == 1) and (_global.multiviola_hurt == -1)) {
_parent._x = _parent._x - 4;
speed = speed * -1;
facing = facing * -1;
}
}
if (_root.bg.hitTest((_parent._x - 2) - (_parent._width / 2), _parent._y - 13, true)) {
if ((facing == -1) and (_global.multiviola_hurt == 1)) {
_parent._x = _parent._x + 4;
speed = speed * -1;
facing = facing * -1;
}
if ((facing == -1) and (_global.multiviola_hurt == -1)) {
_parent._x = _parent._x + 4;
speed = speed * -1;
facing = facing * -1;
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 3, true)) {
} else {
while (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
grav = false;
jump = false;
_parent._y = _parent._y - 1;
}
}
if (move_counter == distance) {
move_counter = 1;
speed = speed * -1;
}
}
Symbol 159 MovieClip Frame 5
var spin_sound = new Sound();
spin_sound.attachSound("spin_sound");
spin_sound.start();
Symbol 170 MovieClip Frame 5
_root.step_sound.start();
Symbol 170 MovieClip Frame 10
_root.step_sound.start();
Symbol 213 MovieClip Frame 1
_root.hurt_sound.start();
Symbol 213 MovieClip Frame 6
_global.gravity = true;
_global.hurt = 1;
Symbol 213 MovieClip Frame 7
_global.gravity = true;
_global.hurt = 1;
if ((facing == 1) and (_global.yvel == 0)) {
_root.watermelon_whole.gotoAndStop("still_left");
}
if ((facing == -1) and (_global.yvel == 0)) {
_root.watermelon_whole.gotoAndStop("still_right");
}
Symbol 223 MovieClip Frame 7
_global.gravity = true;
_global.hurt = 1;
Symbol 223 MovieClip Frame 8
_global.gravity = true;
_global.hurt = 1;
if ((facing == 1) and (_global.yvel == 0)) {
_root.watermelon_whole.gotoAndStop("morph_left");
}
if ((facing == -1) and (_global.yvel == 0)) {
_root.watermelon_whole.gotoAndStop("morph_right");
}
Symbol 268 MovieClip Frame 1
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 12
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 23
stop();
_global.hurt = 1;
Instance of Symbol 181 MovieClip in Symbol 268 MovieClip Frame 23
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
this._visible = true;
}
if (!Key.isDown(65)) {
this._visible = false;
}
}
Instance of Symbol 192 MovieClip in Symbol 268 MovieClip Frame 23
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
this._visible = false;
}
if (!Key.isDown(65)) {
this._visible = true;
}
}
Symbol 268 MovieClip Frame 35
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 45
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 60
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 74
stop();
_global.hurt = 1;
Instance of Symbol 200 MovieClip in Symbol 268 MovieClip Frame 74
onClipEvent (enterFrame) {
if (!Key.isDown(40)) {
_global.morph_able = true;
}
}
Symbol 268 MovieClip Frame 86
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 99
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 112
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 125
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 139
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 159
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 177
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 193
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 210
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 230
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 275
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 308
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 320
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 335
stop();
_global.hurt = 1;
Instance of Symbol 229 MovieClip in Symbol 268 MovieClip Frame 335
onClipEvent (enterFrame) {
if (!Key.isDown(40)) {
_global.morph_able = true;
}
}
Symbol 268 MovieClip Frame 349
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 359
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 378
stop();
_global.hurt = 1;
Instance of Symbol 244 MovieClip in Symbol 268 MovieClip Frame 378
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
this._visible = true;
}
if (!Key.isDown(65)) {
this._visible = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 268 MovieClip Frame 378
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
this._visible = false;
}
if (!Key.isDown(65)) {
this._visible = true;
}
}
Symbol 268 MovieClip Frame 396
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 403
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 417
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 429
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 439
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 450
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 464
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 481
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 497
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 514
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 530
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 558
stop();
_global.hurt = 1;
Symbol 268 MovieClip Frame 571
stop();
_global.hurt = 1;
Instance of Symbol 271 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.gotoAndStop("level2");
}
if (this.hitTest(_root.owtch)) {
_global.owtch_life = 1001;
}
}
Instance of Symbol 271 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.gotoAndStop("level0");
}
if (this.hitTest(_root.owtch)) {
_global.owtch_life = 1001;
}
}
Instance of Symbol 79 MovieClip "dg" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Instance of Symbol 79 MovieClip "dg2" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Symbol 283 MovieClip Frame 1
_root.cat_sound.start();
Symbol 283 MovieClip Frame 7
_global.hornoad_hurt = 0;
Symbol 289 MovieClip Frame 5
_global.hornoad_hurt = -3;
Symbol 290 MovieClip Frame 1
_root.explode_sound.start();
Symbol 290 MovieClip Frame 7
if (_global.hornoad_random == 0) {
_global.hornoad_life = 1001;
}
if (_global.hornoad_random == 1) {
_global.hornoad_life = 1;
_global.hornoad_hurt = 2;
}
if (_global.hornoad_random == 2) {
_global.hornoad_life = 1;
_global.hornoad_hurt = 2;
}
if (_global.hornoad_random == 3) {
_global.hornoad_life = 1;
_global.hornoad_hurt = 3;
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 6
stop();
Symbol 293 MovieClip Frame 10
stop();
Symbol 293 MovieClip Frame 18
stop();
Symbol 293 MovieClip Frame 25
stop();
Symbol 293 MovieClip Frame 33
stop();
Symbol 293 MovieClip Frame 41
stop();
Symbol 293 MovieClip Frame 49
stop();
Symbol 293 MovieClip Frame 56
stop();
Instance of Symbol 290 MovieClip in Symbol 293 MovieClip Frame 56
onClipEvent (load) {
_global.hornoad_random = Math.round(Math.random() * 3);
}
Symbol 293 MovieClip Frame 62
stop();
Symbol 293 MovieClip Frame 70
stop();
Instance of Symbol 293 MovieClip "hornoad_sub" in Symbol 294 MovieClip Frame 1
onClipEvent (load) {
_global.hornoad_random = -1;
_global.hornoad_life = 3;
_global.hornoad_hurt = 1;
speed = 4;
hurt = false;
facing = 1;
move_counter = 1;
yvelocity = 0;
amount_jumped = 12;
grav = true;
jump = false;
jump_random = 0;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.watermelon_whole) and (_global.hurt == 1)) {
if (_global.hornoad_hurt == 1) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 5;
}
if (_global.hornoad_hurt == -3) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 5;
}
if (_global.hornoad_hurt == 0) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 5;
}
if (_global.hornoad_hurt == -1) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 5;
}
if (_global.hornoad_hurt == -2) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 5;
}
}
if (_global.hornoad_hurt == 2) {
this.gotoAndStop("ball_small");
}
if (_global.hornoad_hurt == 3) {
this.gotoAndStop("ball_big");
}
if (_global.hornoad_life <= 0) {
_global.hornoad_hurt = -5;
this.gotoAndStop("dead");
}
if (_global.hornoad_life >= 1000) {
_parent.unloadMovie();
}
if (_global.hornoad_hurt == 1) {
_parent._y = _parent._y - yvelocity;
move_counter = move_counter + 1;
if (facing == 1) {
this.gotoAndStop("right");
} else if (facing == -1) {
this.gotoAndStop("left");
}
}
if (_global.hornoad_hurt == -3) {
_parent._y = _parent._y - yvelocity;
if (!_root.bg.hitTest(_parent._x, _parent._y + 3, true)) {
} else {
_global.hornoad_hurt = 1;
}
if (facing == 1) {
this.gotoAndStop("jump_right");
} else if (facing == -1) {
this.gotoAndStop("jump_left");
}
}
if (_global.hornoad_hurt == 0) {
_parent._y = _parent._y - yvelocity;
move_counter = move_counter + 1;
if (facing == 1) {
yvelocity = 25;
this.gotoAndStop("semi_right");
} else if (facing == -1) {
yvelocity = 25;
this.gotoAndStop("semi_left");
}
}
if (_global.hornoad_hurt == -1) {
_parent._y = _parent._y - yvelocity;
move_counter = move_counter + 1;
if (facing == 1) {
this.gotoAndStop("hurt_right");
} else if (facing == -1) {
this.gotoAndStop("hurt_left");
}
}
if (_global.hornoad_hurt == -2) {
_parent._y = _parent._y - yvelocity;
move_counter = move_counter + 1;
if (facing == 1) {
this.gotoAndStop("hurt_right2");
} else if (facing == -1) {
this.gotoAndStop("hurt_left2");
}
}
if (_root.bg.hitTest((_parent._x + 2) + (_parent._width / 2), _parent._y - 20, true)) {
_parent._x = _parent._x - 10;
speed = speed * -1;
facing = facing * -1;
}
if (_root.bg.hitTest((_parent._x - 2) - (_parent._width / 2), _parent._y - 20, true)) {
_parent._x = _parent._x + 10;
speed = speed * -1;
facing = facing * -1;
}
if (_root.bg.hitTest(_parent._x, _parent._y - 30, true)) {
yvelocity = 3;
}
if (grav == false) {
if (jump_random <= 10) {
jump_random = jump_random + 1;
}
if (jump_random == 10) {
jump_random = 0;
}
if ((jump_random == 2) and (_global.hornoad_life <= 100)) {
yvelocity = 18;
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 3, true)) {
if (_global.hornoad_hurt == 1) {
if (facing == 1) {
_parent._x = _parent._x + 3;
}
if (facing == -1) {
_parent._x = _parent._x - 3;
}
}
if (_global.hornoad_hurt == -3) {
if (facing == 1) {
_parent._x = _parent._x + 5;
}
if (facing == -1) {
_parent._x = _parent._x - 5;
}
}
if (yvelocity >= -15) {
if (_global.hornoad_hurt == 1) {
_parent._y = _parent._y + 3;
grav = true;
yvelocity = yvelocity - 3;
}
if (_global.hornoad_hurt == -3) {
_parent._y = _parent._y + 3;
grav = true;
yvelocity = yvelocity - 3;
}
if (_global.hornoad_hurt == 0) {
_parent._y = _parent._y + 3;
grav = true;
yvelocity = yvelocity - 3;
}
if (_global.hornoad_hurt == -1) {
_parent._y = _parent._y + 3;
grav = true;
yvelocity = yvelocity - 3;
}
if (_global.hornoad_hurt == -2) {
_parent._y = _parent._y + 3;
grav = true;
yvelocity = yvelocity - 3;
}
}
} else {
while (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
grav = false;
jump = false;
_parent._y = _parent._y - 1;
}
}
if (move_counter == distance) {
move_counter = 1;
speed = speed * -1;
}
}
Instance of Symbol 271 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_global.levelnum = 2;
_root.gotoAndStop("level_2");
}
}
Instance of Symbol 271 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.gotoAndStop("level1");
}
}
Instance of Symbol 271 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.gotoAndStop("level3");
}
}
Instance of Symbol 79 MovieClip "dg" in Symbol 299 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Instance of Symbol 79 MovieClip "dg2" in Symbol 299 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Symbol 312 MovieClip Frame 7
_global.robo_hurt = 1;
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 19
stop();
Instance of Symbol 313 MovieClip "robo_sub" in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
_global.robo_life = 3;
_global.robo_hurt = 1;
speed = 4;
hurt = false;
_global.robo_facing = 1;
move_counter = 1;
yvelocity = 0;
amount_jumped = 12;
grav = true;
jump = false;
jump_random = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole) and (_global.hurt == 1)) {
_global.samus_life = _global.samus_life - 1;
_global.hurt = -1;
}
_parent._y = _parent._y - yvelocity;
if (_global.robo_life <= 0) {
_global.robo_hurt = -5;
this.gotoAndStop("dead");
}
if (_global.robo_life >= 1000) {
this.unloadMovie();
}
if (_global.robo_hurt == 1) {
move_counter = move_counter + 1;
if (_global.robo_facing == 1) {
_parent._x = _parent._x + 2;
this.gotoAndStop("normal_right");
} else if (_global.robo_facing == -1) {
_parent._x = _parent._x - 2;
this.gotoAndStop("normal_left");
}
}
if (_global.robo_hurt == -1) {
move_counter = move_counter + 1;
if (_global.robo_facing == 1) {
_parent._x = _parent._x - 2;
this.gotoAndStop("hurt_right");
} else if (_global.robo_facing == -1) {
_parent._x = _parent._x + 2;
this.gotoAndStop("hurt_left");
}
}
if (_global.robo_hurt == -2) {
move_counter = move_counter + 1;
if (_global.robo_facing == 1) {
_parent._x = _parent._x + 2;
this.gotoAndStop("hurt_right");
} else if (_global.robo_facing == -1) {
_parent._x = _parent._x - 2;
this.gotoAndStop("hurt_left");
}
}
if (_root.bg.hitTest((_parent._x + 5) + (_parent.width / 2), _parent._y - 40, true)) {
_parent._x = _parent._x - 8;
speed = speed * -1;
_global.robo_facing = _global.robo_facing * -1;
}
if (_root.bg.hitTest((_parent._x - 5) - (_parent.width / 2), _parent._y - 40, true)) {
_parent._x = _parent._x + 8;
speed = speed * -1;
_global.robo_facing = _global.robo_facing * -1;
}
if (grav == false) {
if (jump_random <= 10) {
jump_random = jump_random + 1;
}
if (jump_random == 10) {
jump_random = 0;
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y, true)) {
if (yvelocity >= -10) {
_parent._y = _parent._y + 3;
grav = true;
yvelocity = yvelocity - 3;
}
} else {
while (_root.bg.hitTest(_parent._x, _parent._y, true)) {
grav = false;
jump = false;
_parent._y = _parent._y - 1;
}
}
if (move_counter == distance) {
move_counter = 1;
speed = speed * -1;
}
}
Instance of Symbol 271 MovieClip in Symbol 316 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.gotoAndStop("level4");
}
}
Instance of Symbol 271 MovieClip in Symbol 316 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.gotoAndStop("level2");
}
}
Instance of Symbol 79 MovieClip "dg2" in Symbol 320 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Symbol 328 MovieClip Frame 6
_global.waver_hurt = 1;
Symbol 329 MovieClip Frame 1
_root.explode_sound.start();
Symbol 329 MovieClip Frame 7
if (_global.waver_random == 0) {
_global.waver_life = 1001;
}
if (_global.waver_random == 1) {
_global.waver_life = 1;
_global.waver_hurt = 2;
}
if (_global.waver_random == 2) {
_global.waver_life = 1;
_global.waver_hurt = 2;
}
if (_global.waver_random == 3) {
_global.waver_life = 1;
_global.waver_hurt = 3;
}
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 28
stop();
Instance of Symbol 329 MovieClip in Symbol 330 MovieClip Frame 54
onClipEvent (load) {
_global.waver_random = Math.round(Math.random() * 3);
}
Instance of Symbol 330 MovieClip in Symbol 331 MovieClip Frame 1
onClipEvent (load) {
_global.waver_random = -1;
dir = -1;
speedx = 5;
_global.waver_life = 3;
_global.waver_hurt = 1;
speed = 4;
hurt = false;
facing = 1;
move_counter = 1;
yvelocity = 0;
amount_jumped = 12;
grav = true;
jump = false;
speedy = 1;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.watermelon_whole) and (_global.hurt == 1)) {
if (_global.waver_hurt == 1) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 6;
}
if (_global.waver_hurt == -1) {
_global.hurt = -1;
_global.samus_life = _global.samus_life - 6;
}
}
if (_global.waver_hurt == 2) {
this.gotoAndStop("ball_small");
}
if (_global.waver_hurt == 3) {
this.gotoAndStop("ball_big");
}
if (((_global.waver_life >= 0) and (_global.waver_life <= 10)) and (_global.waver_hurt >= -2)) {
}
if ((speedy <= 15) and (speedy >= 0)) {
speedy = speedy + 1;
}
if ((speedy >= -15) and (speedy <= 0)) {
speedy = speedy - 1;
}
if (_global.waver_life <= 0) {
_global.waver_hurt = -5;
this.gotoAndStop("dead");
}
if (_global.waver_life >= 1000) {
_parent.unloadMovie();
}
if (facing == 1) {
if (_global.waver_hurt == 1) {
_parent._x = _parent._x + speedx;
}
if (_global.waver_hurt == -1) {
_parent._x = _parent._x + speedx;
}
}
if (facing == -1) {
if (_global.waver_hurt == 1) {
_parent._x = _parent._x - speedx;
}
if (_global.waver_hurt == -1) {
_parent._x = _parent._x - speedx;
}
}
if (_global.waver_hurt == 1) {
_parent._y = _parent._y - yvelocity;
_parent._y = _parent._y - speedy;
move_counter = move_counter + 1;
if (facing == 1) {
this.gotoAndStop("right");
} else if (facing == -1) {
this.gotoAndStop("left");
}
}
if (_global.waver_hurt == -1) {
_parent._y = _parent._y - yvelocity;
_parent._y = _parent._y - speedy;
move_counter = move_counter + 1;
if (facing == 1) {
this.gotoAndStop("hurt_right");
} else if (facing == -1) {
this.gotoAndStop("hurt_left");
}
}
if (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
if (_global.waver_hurt == 1) {
speedy = 4;
}
if (_global.waver_hurt == -1) {
speedy = 4;
}
}
if (_root.bg.hitTest(_parent._x, _parent._y - 22, true)) {
if (_global.waver_hurt == 1) {
speedy = -4;
}
if (_global.waver_hurt == -1) {
speedy = -4;
}
}
if (_root.bg.hitTest((_parent._x + 2) + (_parent._width / 2), _parent._y - 13, true)) {
if ((facing == 1) and (_global.waver_hurt == 1)) {
_parent._x = _parent._x - 10;
speed = speed * -1;
facing = facing * -1;
}
if ((facing == 1) and (_global.waver_hurt == -1)) {
_parent._x = _parent._x - 10;
speed = speed * -1;
facing = facing * -1;
}
}
if (_root.bg.hitTest((_parent._x - 2) - (_parent._width / 2), _parent._y - 13, true)) {
if ((facing == -1) and (_global.waver_hurt == 1)) {
_parent._x = _parent._x + 10;
speed = speed * -1;
facing = facing * -1;
}
if ((facing == -1) and (_global.waver_hurt == -1)) {
_parent._x = _parent._x + 10;
speed = speed * -1;
facing = facing * -1;
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 3, true)) {
} else {
while (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
grav = false;
jump = false;
_parent._y = _parent._y - 1;
}
}
if (move_counter == distance) {
move_counter = 1;
speed = speed * -1;
}
}
Instance of Symbol 271 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.gotoAndStop("level3");
}
}
Instance of Symbol 79 MovieClip "dg2" in Symbol 338 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Instance of Symbol 79 MovieClip "dg" in Symbol 338 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Instance of Symbol 79 MovieClip "dg4" in Symbol 338 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Symbol 343 MovieClip Frame 4
_global.floater_hurt = 1;
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 20
stop();
Instance of Symbol 344 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
_global.floater_life = 3;
_global.floater_hurt = 1;
floater_speed = 4;
hurt = false;
_global.floater_facing = 1;
move_counter = 1;
yvelocity = 0;
amount_jumped = 12;
grav = true;
jump = false;
jump_random = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole) and (_global.hurt == 1)) {
_global.samus_life = _global.samus_life - 1;
_global.hurt = -1;
}
if (_global.floater_life <= 0) {
_global.floater_hurt = -5;
this.gotoAndStop("dead");
}
if (_global.floater_life >= 1000) {
this.unloadMovie();
}
if (_global.floater_hurt == 1) {
move_counter = move_counter + 1;
if (_global.floater_facing == 1) {
_parent._x = _parent._x + floater_speed;
this.gotoAndStop("moving_left");
} else if (_global.floater_facing == -1) {
_parent._x = _parent._x - floater_speed;
this.gotoAndStop("moving_right");
}
}
if (_global.floater_hurt == -1) {
move_counter = move_counter + 1;
if (_global.floater_facing == 1) {
this.gotoAndStop("hurt_left");
} else if (_global.floater_facing == -1) {
this.gotoAndStop("hurt_right");
}
}
if (_root.bg.hitTest((_parent._x + 4) + (_parent.width / 2), _parent._y - 40, true)) {
_parent._x = _parent._x - 5;
speed = speed * -1;
_global.floater_facing = _global.floater_facing * -1;
}
if (_root.bg.hitTest((_parent._x - 4) - (_parent.width / 2), _parent._y - 40, true)) {
_parent._x = _parent._x + 5;
speed = speed * -1;
_global.floater_facing = _global.floater_facing * -1;
}
if (grav == false) {
if (jump_random <= 10) {
jump_random = jump_random + 1;
}
if (jump_random == 10) {
jump_random = 0;
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y, true)) {
} else {
while (_root.bg.hitTest(_parent._x, _parent._y, true)) {
grav = false;
jump = false;
_parent._y = _parent._y - 1;
}
}
if (move_counter == distance) {
move_counter = 1;
speed = speed * -1;
}
}
Instance of Symbol 271 MovieClip in Symbol 347 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_global.samus_life = 0;
}
}
Instance of Symbol 271 MovieClip in Symbol 347 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.gotoAndStop("level1");
}
}
Instance of Symbol 271 MovieClip in Symbol 347 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.gotoAndStop("level-1");
}
}
Symbol 352 MovieClip Frame 2
stop();
Symbol 352 MovieClip Frame 7
_root.door_sound.start();
Symbol 352 MovieClip Frame 11
stop();
Symbol 352 MovieClip Frame 13
_root.door_close.start();
Symbol 352 MovieClip Frame 16
gotoAndPlay (2);
Symbol 363 MovieClip Frame 1
stop();
Instance of Symbol 361 MovieClip in Symbol 363 MovieClip Frame 1
onClipEvent (load) {
if (_global.morph_ability == true) {
_parent.unloadMovie();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_global.morph_get = 1;
stopAllSounds();
_root.item_sound.start();
_parent.play();
}
}
Symbol 363 MovieClip Frame 57
_root.sector_sound.start();
Instance of Symbol 362 MovieClip in Symbol 363 MovieClip Frame 60
onClipEvent (enterFrame) {
_parent.unloadMovie();
}
Instance of Symbol 79 MovieClip "dg" in Symbol 365 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Instance of Symbol 352 MovieClip "dg4" in Symbol 365 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._visible == false) {
this.unloadMovie();
}
}
Instance of Symbol 271 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_global.samus_life = 0;
}
}
Instance of Symbol 271 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.watermelon_whole)) {
_root.gotoAndStop("level0");
}
}
Symbol 376 MovieClip Frame 75
stopAllSounds();
if (_global.levelnum == -1) {
_root.sector_sound.start();
_global.samus_life = 99;
_global.levelnum = -1;
_root.gotoAndStop("level-1");
}
if (_global.levelnum == 0) {
_root.sector_sound.start();
_global.samus_life = 99;
_global.levelnum = 1;
_root.gotoAndStop("level0");
}
if (_global.levelnum == 1) {
_root.sector_sound.start();
_global.samus_life = 99;
_root.gotoAndStop("level1");
}
if (_global.levelnum == 2) {
_root.sector_sound.start();
_global.samus_life = 99;
_root.gotoAndStop("level2");
}
if (_global.levelnum == 3) {
_root.sector_sound.start();
_global.samus_life = 99;
_root.gotoAndStop("level3");
}