Frame 1
var menuselect = new Sound();
menuselect.attachSound("menuselect");
var menudeselect = new Sound();
menudeselect.attachSound("menudeselect");
var jonathanhurtsound = new Sound();
jonathanhurtsound.attachSound("jonathanhurtsound");
var specialitem = new Sound();
specialitem.attachSound("specialitem");
var jump_sound = new Sound();
jump_sound.attachSound("jump");
var taunt_sound = new Sound();
taunt_sound.attachSound("taunt_sound");
var xdeathsound = new Sound();
xdeathsound.attachSound("xdeathsound");
var xhitsound = new Sound();
xhitsound.attachSound("xhitsound");
var land_sound = new Sound();
land_sound.attachSound("land");
var empty_tome = new Sound();
empty_tome.attachSound("empty_tome");
var backdash_sound = new Sound();
backdash_sound.attachSound("backdash_sound");
var hard_land_sound = new Sound();
hard_land_sound.attachSound("hard_land");
var heart_sound = new Sound();
heart_sound.attachSound("heart_sound");
var slide_sound = new Sound();
slide_sound.attachSound("slide_sound");
var whip_sound = new Sound();
whip_sound.attachSound("whip_sound");
var whip_sound2 = new Sound();
whip_sound2.attachSound("whip_sound2");
_root._quality = "LOW";
_root.empty_tome.start("", "1000");
Instance of Symbol 35 MovieClip "bg" in Frame 1
onClipEvent (load) {
this._visible = false;
}
Frame 2
var menuselect = new Sound();
menuselect.attachSound("menuselect");
var menudeselect = new Sound();
menudeselect.attachSound("menudeselect");
var jonathanhurtsound = new Sound();
jonathanhurtsound.attachSound("jonathanhurtsound");
var specialitem = new Sound();
specialitem.attachSound("specialitem");
var jump_sound = new Sound();
jump_sound.attachSound("jump");
var taunt_sound = new Sound();
taunt_sound.attachSound("taunt_sound");
var xdeathsound = new Sound();
xdeathsound.attachSound("xdeathsound");
var xhitsound = new Sound();
xhitsound.attachSound("xhitsound");
var land_sound = new Sound();
land_sound.attachSound("land");
var empty_tome = new Sound();
empty_tome.attachSound("empty_tome");
var backdash_sound = new Sound();
backdash_sound.attachSound("backdash_sound");
var hard_land_sound = new Sound();
hard_land_sound.attachSound("hard_land");
var heart_sound = new Sound();
heart_sound.attachSound("heart_sound");
var slide_sound = new Sound();
slide_sound.attachSound("slide_sound");
var whip_sound = new Sound();
whip_sound.attachSound("whip_sound");
var whip_sound2 = new Sound();
whip_sound2.attachSound("whip_sound2");
stop();
Instance of Symbol 70 MovieClip in Frame 2
onClipEvent (enterFrame) {
if ((((_global.whipstring != "\u2190") and (_global.whipstring != "\u2192")) and (_global.whipstring != "\u2191")) and (_global.whipstring != "\u2193")) {
_global.attackfinal = ord(_global.whipstring);
}
if (_global.whipstring == "\u2190") {
_global.attackfinal = 37;
}
if (_global.whipstring == "\u2191") {
_global.attackfinal = 38;
}
if (_global.whipstring == "\u2192") {
_global.attackfinal = 39;
}
if (_global.whipstring == "\u2193") {
_global.attackfinal = 40;
}
}
Instance of Symbol 72 MovieClip in Frame 2
onClipEvent (enterFrame) {
if ((((_global.jumpstring != "\u2190") and (_global.jumpstring != "\u2192")) and (_global.jumpstring != "\u2191")) and (_global.jumpstring != "\u2193")) {
_global.jumpfinal = ord(_global.jumpstring);
}
if (_global.jumpstring == "\u2190") {
_global.jumpfinal = 37;
}
if (_global.jumpstring == "\u2191") {
_global.jumpfinal = 38;
}
if (_global.jumpstring == "\u2192") {
_global.jumpfinal = 39;
}
if (_global.jumpstring == "\u2193") {
_global.jumpfinal = 40;
}
}
Instance of Symbol 74 MovieClip in Frame 2
onClipEvent (enterFrame) {
if ((((_global.backdashstring != "\u2190") and (_global.backdashstring != "\u2192")) and (_global.backdashstring != "\u2191")) and (_global.backdashstring != "\u2193")) {
_global.backdashfinal = ord(_global.backdashstring);
}
if (_global.backdashstring == "\u2190") {
_global.backdashfinal = 37;
}
if (_global.backdashstring == "\u2191") {
_global.backdashfinal = 38;
}
if (_global.backdashstring == "\u2192") {
_global.backdashfinal = 39;
}
if (_global.backdashstring == "\u2193") {
_global.backdashfinal = 40;
}
}
Instance of Symbol 76 MovieClip in Frame 2
onClipEvent (enterFrame) {
if ((((_global.upstring != "\u2190") and (_global.upstring != "\u2192")) and (_global.upstring != "\u2191")) and (_global.upstring != "\u2193")) {
_global.upfinal = ord(_global.upstring);
}
if (_global.upstring == "\u2190") {
_global.upfinal = 37;
}
if (_global.upstring == "\u2191") {
_global.upfinal = 38;
}
if (_global.upstring == "\u2192") {
_global.upfinal = 39;
}
if (_global.upstring == "\u2193") {
_global.upfinal = 40;
}
}
Instance of Symbol 78 MovieClip in Frame 2
onClipEvent (enterFrame) {
if ((((_global.downstring != "\u2190") and (_global.downstring != "\u2192")) and (_global.downstring != "\u2191")) and (_global.downstring != "\u2193")) {
_global.downfinal = ord(_global.downstring);
}
if (_global.downstring == "\u2190") {
_global.downfinal = 37;
}
if (_global.downstring == "\u2191") {
_global.downfinal = 38;
}
if (_global.downstring == "\u2192") {
_global.downfinal = 39;
}
if (_global.downstring == "\u2193") {
_global.downfinal = 40;
}
}
Instance of Symbol 80 MovieClip in Frame 2
onClipEvent (enterFrame) {
if ((((_global.leftstring != "\u2190") and (_global.leftstring != "\u2192")) and (_global.leftstring != "\u2191")) and (_global.leftstring != "\u2193")) {
_global.leftfinal = ord(_global.leftstring);
}
if (_global.leftstring == "\u2190") {
_global.leftfinal = 37;
}
if (_global.leftstring == "\u2191") {
_global.leftfinal = 38;
}
if (_global.leftstring == "\u2192") {
_global.leftfinal = 39;
}
if (_global.leftstring == "\u2193") {
_global.leftfinal = 40;
}
}
Instance of Symbol 82 MovieClip in Frame 2
onClipEvent (enterFrame) {
if ((((_global.rightstring != "\u2190") and (_global.rightstring != "\u2192")) and (_global.rightstring != "\u2191")) and (_global.rightstring != "\u2193")) {
_global.rightfinal = ord(_global.rightstring);
}
if (_global.rightstring == "\u2190") {
_global.rightfinal = 37;
}
if (_global.rightstring == "\u2191") {
_global.rightfinal = 38;
}
if (_global.rightstring == "\u2192") {
_global.rightfinal = 39;
}
if (_global.rightstring == "\u2193") {
_global.rightfinal = 40;
}
}
Instance of Symbol 92 MovieClip in Frame 2
onClipEvent (load) {
_global.whipstring = "A";
_global.timer = 0;
}
onClipEvent (enterFrame) {
if ((((((_global.whipkey != 32) and (_global.whipkey != 36)) and (_global.whipkey != 37)) and (_global.whipkey != 38)) and (_global.whipkey != 39)) and (_global.whipkey != 40)) {
_global.whipstring = chr(_global.whipkey);
}
if (Key.isDown(37)) {
_global.whipstring = "\u2190";
}
if (Key.isDown(39)) {
_global.whipstring = "\u2192";
}
if (Key.isDown(38)) {
_global.whipstring = "\u2191";
}
if (Key.isDown(40)) {
_global.whipstring = "\u2193";
}
if (Key.isDown(32)) {
_global.whipstring = "SP";
}
}
Instance of Symbol 97 MovieClip in Frame 2
onClipEvent (load) {
_global.detect = true;
}
onClipEvent (enterFrame) {
this.onPress = function () {
_global.timer = 0;
_global.detect = true;
_root.asdf.gotoAndPlay(1);
};
}
Instance of Symbol 99 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menuselect.start();
_root.gotoAndStop(3);
};
}
Instance of Symbol 229 MovieClip "jonathan" in Frame 2
onClipEvent (load) {
_global.whipjump = false;
_global.togglestand = "on";
_global.togglecrouch = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglebackdash = "on";
_global.toggleslide = "on";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglecrouchwhip = "on";
_global.whipping = false;
_global.crouchwhipping = false;
_global.slidingstart = false;
_global.Zholdcount = 0;
_global.Sholdcount = 0;
_global.Aholdcount = 0;
_global.health = 99;
_global.maxhealth = 99;
_global.facing_direction = "left";
_global.backdashing = false;
_global.clipping = false;
_global.djfv = 0;
_global.maincharhurt = false;
backdashability = true;
Falling = true;
Movement = 0;
Movement_speed = 4;
Movement_friction = 0.7;
Jumping_amount = 30;
Yvelocity = 0;
Jumping = 1;
barvar = 12;
gravity = 2.75;
dashtimer = 0;
dashtime = 0;
Slidingspeed = 12;
}
onClipEvent (enterFrame) {
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.leftfinal)) and (Aholdcount <= 10)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = true;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.leftfinal)) and (Aholdcount >= 11)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = false;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.rightfinal)) and (Aholdcount <= 10)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = true;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.rightfinal)) and (Aholdcount >= 11)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = false;
_global.backdashing = false;
}
if ((_root.bg.hitTest(_x + 44, _y - 70, true) and Key.isDown(_global.rightfinal)) and Key.isDown(_global.attackfinal)) {
Movement = Movement * 0;
}
if ((_root.bg.hitTest(_x - 44, _y - 70, true) and Key.isDown(_global.leftfinal)) and Key.isDown(_global.attackfinal)) {
Movement = Movement * 0;
}
if ((_root.bg.hitTest(_x + 44, _y - 70, true) and Key.isDown(_global.rightfinal)) and (_global.whipjumpcount >= 0)) {
Movement = Movement * 0;
}
if ((_root.bg.hitTest(_x - 44, _y - 70, true) and Key.isDown(_global.leftfinal)) and (_global.whipjumpcount >= 0)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest(_x, _y - 90, true) and _root.bg.hitTest(_x, _y, true)) {
_global.clipping = true;
} else {
_global.clipping = false;
}
if (_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
if (facing_direction == "left") {
if ((!Key.isDown(_global.jumpfinal)) and (_global.sliding == false)) {
Yvelocity = Yvelocity + 7;
}
if (_global.sliding == true) {
Yvelocity = Yvelocity + 10;
}
}
if (facing_direction == "right") {
_rotation = 0;
}
}
if (_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
if (facing_direction == "right") {
if ((!Key.isDown(_global.jumpfinal)) and (_global.sliding == false)) {
Yvelocity = Yvelocity + 7;
}
if (_global.sliding == true) {
Yvelocity = Yvelocity + 10;
}
}
if (facing_direction == "left") {
_rotation = 0;
}
}
if ((!_root.bg.hitTest(_x, _y + 4, true)) and (_global.togglejump == "on")) {
if (_global.jv >= 23) {
if ((facing_direction == "left") and (_global.whipjump == false)) {
this.gotoAndStop("doublejumpfallingleft");
}
if ((facing_direction == "right") and (_global.whipjump == false)) {
this.gotoAndStop("doublejumpfallingright");
}
}
}
if (!Key.isDown(_global.jumpfinal)) {
_global.Zholdcount = 0;
}
if (Key.isDown(_global.jumpfinal)) {
_global.Zholdcount = _global.Zholdcount + 1;
}
if (!Key.isDown(_global.backdashfinal)) {
_global.Sholdcount = 0;
}
if (Key.isDown(_global.backdashfinal)) {
_global.Sholdcount = _global.Sholdcount + 1;
}
if (!Key.isDown(_global.attackfinal)) {
_global.Aholdcount = 0;
}
if (Key.isDown(_global.attackfinal) and (_global.backdashing == false)) {
_global.Aholdcount = _global.Aholdcount + 1;
}
if (_root.bg.hitTest(_x, _y - 90, true)) {
if (_global.clipping == false) {
Yvelocity = 5;
}
}
if ((!Key.isDown(_global.leftfinal)) and (!Key.isDown(_global.rightfinal))) {
if (_root.bg.hitTest(((_x + barvar) + (_width / 2)) + 10, _y - 75, true)) {
if (_global.backdashing == false) {
if (facing_direction == "right") {
Movement = 0;
}
}
if (_global.backdashing == true) {
Movement = -8;
_global.backdashing = false;
}
if (_global.sliding == true) {
Movement = -5;
_global.sliding = false;
}
}
if (_root.bg.hitTest(((_x - barvar) - (_width / 2)) - 10, _y - 75, true)) {
if (_global.backdashing == false) {
if (facing_direction == "left") {
Movement = 0;
}
}
if (_global.backdashing == true) {
Movement = 8;
_global.backdashing = false;
}
if (_global.sliding == true) {
Movement = 5;
_global.sliding = false;
}
}
}
if ((!Key.isDown(_global.leftfinal)) and (!Key.isDown(_global.rightfinal))) {
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 70, true) and (Movement <= -0.5)) {
if (_global.backdashing == false) {
Movement = Movement * 0;
}
}
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 70, true) and (Movement >= -0.5)) {
if ((_global.backdashing == false) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
}
}
if (Key.isDown(_global.rightfinal)) {
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 75, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 70, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 68, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
}
if (Key.isDown(_global.leftfinal)) {
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 75, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 70, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 68, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
}
if ((Movement <= 0.25) and (Movement >= -0.25)) {
Movement = 0;
}
_y = (_y + Yvelocity);
_x = (_x + Movement);
if (!_root.bg.hitTest(_x, _y + 2, true)) {
_global.damage = 45;
if (_global.maincharhurt == true) {
Movement = 0;
Yvelocity = 4;
if (facing_direction == "left") {
this.gotoAndStop("hurt_air_left");
}
if (facing_direction == "right") {
this.gotoAndStop("hurt_air_right");
}
}
}
if (_root.bg.hitTest(_x, _y + 2, true)) {
if (((((Key.isDown(_global.attackfinal) and (Aholdcount <= 10)) and (!Key.isDown(_global.leftfinal))) and (!Key.isDown(_global.rightfinal))) and (!Key.isDown(_global.upfinal))) and (!Key.isDown(_global.downfinal))) {
_global.damage = 45;
}
if (Key.isDown(_global.attackfinal) and (Aholdcount >= 10)) {
_global.damage = 1;
}
if (_global.maincharhurt == true) {
Movement = 0;
if (facing_direction == "left") {
this.gotoAndStop("hurt_ground_left");
}
if (facing_direction == "right") {
this.gotoAndStop("hurt_ground_right");
}
}
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.leftfinal)) and (Aholdcount <= 10)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = true;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.leftfinal)) and (Aholdcount >= 11)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = false;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.rightfinal)) and (Aholdcount <= 10)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = true;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.rightfinal)) and (Aholdcount >= 11)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = false;
_global.backdashing = false;
}
if (_root.bg.hitTest(_x, _y - 90, true) and _root.bg.hitTest(_x, _y, true)) {
_global.clipping = true;
} else {
_global.clipping = false;
}
if (_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
if (_global.facing_direction == "left") {
if ((!Key.isDown(_global.jumpfinal)) and (_global.sliding == false)) {
Yvelocity = Yvelocity + 7;
}
if (_global.sliding == true) {
Yvelocity = Yvelocity + 10;
}
}
if (_global.facing_direction == "right") {
_rotation = 0;
}
}
if (_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
if (_global.facing_direction == "right") {
if ((!Key.isDown(_global.jumpfinal)) and (_global.sliding == false)) {
Yvelocity = Yvelocity + 7;
}
if (_global.sliding == true) {
Yvelocity = Yvelocity + 10;
}
}
if (_global.facing_direction == "left") {
_rotation = 0;
}
}
if ((!_root.bg.hitTest(_x, _y + 2, true)) and (_global.togglejump == "on")) {
if (_global.jv >= 23) {
if ((_global.facing_direction == "left") and (_global.whipjump == false)) {
this.gotoAndStop("doublejumpfallingleft");
}
if ((_global.facing_direction == "right") and (_global.whipjump == false)) {
this.gotoAndStop("doublejumpfallingright");
}
}
}
if (!Key.isDown(_global.jumpfinal)) {
_global.Zholdcount = 0;
}
if (Key.isDown(_global.jumpfinal)) {
_global.Zholdcount = _global.Zholdcount + 1;
}
if (!Key.isDown(_global.backdashfinal)) {
_global.Sholdcount = 0;
}
if (Key.isDown(_global.backdashfinal)) {
_global.Sholdcount = _global.Sholdcount + 1;
}
if (!Key.isDown(_global.attackfinal)) {
_global.Aholdcount = 0;
}
if (Key.isDown(_global.attackfinal) and (_global.backdashing == false)) {
_global.Aholdcount = _global.Aholdcount + 1;
}
if (_root.bg.hitTest(_x, _y - 90, true)) {
if (_global.clipping == false) {
Yvelocity = 5;
}
}
if ((!Key.isDown(_global.leftfinal)) and (!Key.isDown(_global.rightfinal))) {
if (_root.bg.hitTest(((_x + barvar) + (_width / 2)) + 10, _y - 75, true)) {
if (_global.backdashing == false) {
if (_global.facing_direction == "right") {
Movement = 0;
}
}
if (_global.backdashing == true) {
Movement = -8;
_global.backdashing = false;
}
if (_global.sliding == true) {
Movement = -5;
_global.sliding = false;
}
}
if (_root.bg.hitTest(((_x - barvar) - (_width / 2)) - 10, _y - 75, true)) {
if (_global.backdashing == false) {
if (_global.facing_direction == "left") {
Movement = 0;
}
}
if (_global.backdashing == true) {
Movement = 8;
_global.backdashing = false;
}
if (_global.sliding == true) {
Movement = 5;
_global.sliding = false;
}
}
}
Movement = Movement * Movement_friction;
if ((Movement <= 0.25) and (Movement >= -0.25)) {
Movement = 0;
}
if (Falling == true) {
if (_global.togglejump == "on") {
if (Key.isDown(_global.leftfinal) and (_global.whipjump == false)) {
if (_global.jv <= 22) {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_left");
}
}
}
if ((((!Key.isDown(_global.leftfinal)) and (_global.facing_direction == "left")) and (_global.jv <= 22)) and (Movement <= -1)) {
if (_global.jv <= 22) {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_left");
}
}
}
if (Key.isDown(_global.rightfinal) and (_global.whipjump == false)) {
if (_global.jv <= 22) {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_right");
}
}
}
if ((((!Key.isDown(_global.rightfinal)) and (_global.facing_direction == "right")) and (_global.jv <= 22)) and (Movement >= 1)) {
if (_global.jv <= 22) {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_right");
}
}
}
}
if (Yvelocity <= 10) {
if (_global.clipping == false) {
Yvelocity = Yvelocity + gravity;
}
}
if ((Yvelocity >= 10) and (Yvelocity <= 18)) {
Yvelocity = Yvelocity + 0.2;
}
}
if (!_root.bg.hitTest(_x, _y + 2, true)) {
Falling = true;
if ((((((_global.facing_direction == "left") and (Movement <= -1)) and (!Key.isDown(_global.leftfinal))) and (_global.doublejump == false)) and (_global.jv <= 22)) and (_global.togglejump == "on")) {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_left");
}
}
if ((((((_global.facing_direction == "right") and (Movement >= 1)) and (!Key.isDown(_global.rightfinal))) and (_global.doublejump == false)) and (_global.jv <= 22)) and (_global.togglejump == "on")) {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_right");
}
}
if (Jumping == 0) {
_global.nojumping = true;
if (((_global.doublejump == false) and (_global.jv <= 22)) and (_global.togglejump == "on")) {
if (_global.facing_direction == "left") {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_left");
}
}
if (_global.facing_direction == "right") {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_right");
}
}
}
}
if (_global.backdashing == true) {
_global.nojumping = true;
if (_global.facing_direction == "left") {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_left");
}
}
if (_global.facing_direction == "right") {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_right");
}
}
_global.backdashing = false;
}
if (_global.sliding == true) {
_global.nojumping = true;
if (_global.facing_direction == "left") {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
_rotation = 0;
this.gotoAndStop("Jumping_left");
}
}
if (_global.facing_direction == "right") {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
_rotation = 0;
this.gotoAndStop("Jumping_right");
}
}
_global.sliding = false;
}
} else {
while (_root.bg.hitTest(_x, _y, true) and (!_root.bg.hitTest(_x, _y - 90, true))) {
if (((Yvelocity >= 12) and (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true))) and (!_root.bg.stairwayright.hitTest(_x, _y + 20, true))) {
_root.land_sound.start();
}
_global.fall = 0;
_y = (_y - 1);
_global.nojumping = false;
Yvelocity = 0;
Falling = false;
Jumping = 0;
}
}
if (_root.bg.hitTest(_x, _y + 2, true)) {
if ((((_global.whipping == true) and (_global.togglewhip == "on")) and (!Key.isDown(_global.downfinal))) and (_global.crouchwhipping == false)) {
if (_global.facing_direction == "left") {
this.gotoAndStop("whipping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("whipping_right");
}
}
if ((((Key.isDown(_global.attackfinal) and (togglewhip == "on")) and (!Key.isDown(_global.downfinal))) and (_global.crouchwhipping == false)) and (_global.whipjump == false)) {
_global.whipping = true;
if (_global.facing_direction == "left") {
this.gotoAndStop("whipping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("whipping_right");
}
}
if ((((togglewhip == "on") and (!Key.isDown(_global.downfinal))) and (_global.crouchwhipping == false)) and (_global.whipjump == true)) {
if (_global.facing_direction == "left") {
this.gotoAndStop("whipping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("whipping_right");
}
}
if ((((_global.whipping == true) and (_global.crouchwhipping == true)) and (_global.togglewhip == "on")) and Key.isDown(_global.downfinal)) {
if (_global.facing_direction == "left") {
this.gotoAndStop("crouch_whipping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("crouch_whipping_right");
}
}
if (((Key.isDown(_global.attackfinal) and (_global.togglecrouchwhip == "on")) and (togglewhip == "on")) and Key.isDown(_global.downfinal)) {
_global.whipping = true;
_global.crouchwhipping = true;
if (_global.facing_direction == "left") {
this.gotoAndStop("crouch_whipping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("crouch_whipping_right");
}
}
if (Key.isDown(_global.downfinal) and (!Key.isDown(_global.upfinal))) {
if (_global.backdashing == true) {
Movement = Movement * 0;
_global.backdashing = false;
}
if (((!Key.isDown(_global.jumpfinal)) and (_global.crouchwhipping == false)) and (_global.togglecrouch == "on")) {
if ((_global.sliding == false) and (_global.slidingstart == false)) {
_global.jv = 1;
if (_global.facing_direction == "left") {
_rotation = 0;
this.gotoAndStop("crouching_left");
}
if (_global.facing_direction == "right") {
_rotation = 0;
this.gotoAndStop("crouching_right");
}
}
}
if (((Key.isDown(_global.jumpfinal) and (_global.toggleslide == "on")) and (_global.crouchwhipping == false)) and (!Key.isDown(_global.attackfinal))) {
if (Zholdcount <= 14.9) {
if (_global.facing_direction == "left") {
if (_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
if (_global.slidingstart == true) {
_rotation = -45;
} else if (_global.slidingstart == false) {
_rotation = 0;
}
}
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
_rotation = 0;
}
this.gotoAndStop("sliding_left");
}
if (_global.facing_direction == "right") {
if (_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
if (_global.slidingstart == true) {
_rotation = 45;
} else if (_global.slidingstart == false) {
_rotation = 0;
}
}
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
_rotation = 0;
}
this.gotoAndStop("sliding_right");
}
}
if (Zholdcount >= 15) {
if (_global.facing_direction == "left") {
_rotation = 0;
this.gotoAndStop("crouching_left");
}
if (_global.facing_direction == "right") {
_rotation = 0;
this.gotoAndStop("crouching_right");
}
}
}
}
if ((((((Key.isDown(_global.rightfinal) and Key.isDown(_global.jumpfinal)) and (!Key.isDown(_global.downfinal))) and (_global.Zholdcount >= 10)) and (!Key.isDown(_global.attackfinal))) and (_global.whipping == false)) and (_global.togglemovement == "on")) {
this.gotoAndStop("Walking_right");
}
if ((((((Key.isDown(_global.leftfinal) and Key.isDown(_global.jumpfinal)) and (!Key.isDown(_global.downfinal))) and (_global.Zholdcount >= 10)) and (!Key.isDown(_global.attackfinal))) and (_global.whipping == false)) and (_global.togglemovement == "on")) {
this.gotoAndStop("Walking_left");
}
if ((((((((Key.isDown(_global.backdashfinal) and (Sholdcount <= 10)) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.upfinal))) and (!Key.isDown(_global.leftfinal))) and (!Key.isDown(_global.rightfinal))) and (backdashability == true)) and (_global.togglebackdash == "on")) and (!Key.isDown(_global.attackfinal))) {
if (_global.clipping == false) {
_global.backdashing = true;
if (_global.facing_direction == "left") {
this.gotoAndStop("Backdash_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("Backdash_right");
}
}
}
if ((((((!Key.isDown(_global.leftfinal)) and (_global.maincharhurt == false)) and (Movement == 0)) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.upfinal))) and (_global.togglestand == "on")) {
if ((((_global.facing_direction == "left") and (_global.backdashing == false)) and (_global.whipping == false)) and (_global.whipjump == false)) {
_rotation = 0;
gotoAndStop ("Standing_left");
}
}
if ((((((!Key.isDown(_global.rightfinal)) and (_global.maincharhurt == false)) and (Movement == 0)) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.upfinal))) and (_global.togglestand == "on")) {
if ((((_global.facing_direction == "right") and (_global.backdashing == false)) and (_global.whipping == false)) and (_global.whipjump == false)) {
_rotation = 0;
gotoAndStop ("Standing_right");
}
}
if ((((((!Key.isDown(_global.leftfinal)) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.attackfinal))) and (Movement == 0)) and Key.isDown(_global.upfinal)) and (_global.toggletaunt == "on")) {
if (_global.facing_direction == "left") {
_global.backdashing = false;
gotoAndStop ("taunt_left");
}
}
if ((((((!Key.isDown(_global.rightfinal)) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.attackfinal))) and (Movement == 0)) and Key.isDown(_global.upfinal)) and (_global.toggletaunt == "on")) {
if (_global.facing_direction == "right") {
_global.backdashing = false;
gotoAndStop ("taunt_right");
}
}
if (((((((_global.facing_direction == "left") and (_global.maincharhurt == false)) and (!Key.isDown(_global.downfinal))) and (Movement <= -1)) and (!Key.isDown(_global.leftfinal))) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
_rotation = 0;
this.gotoAndStop("Stopping_left");
}
if (((((((_global.facing_direction == "right") and (_global.maincharhurt == false)) and (!Key.isDown(_global.downfinal))) and (Movement >= 1)) and (!Key.isDown(_global.rightfinal))) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
_rotation = 0;
this.gotoAndStop("Stopping_right");
}
}
if (_global.backdashing == true) {
if (dashtime == 0) {
if (_global.facing_direction == "left") {
Movement = 13;
}
if (_global.facing_direction == "right") {
Movement = -13;
}
dashtimer++;
if (dashtimer >= 5) {
dashtime = 1;
}
}
}
if ((_global.sliding == true) and (_global.slidingstart == true)) {
if (_global.facing_direction == "left") {
Movement = -20;
}
if (_global.facing_direction == "right") {
Movement = 20;
}
}
if (_global.backdashing == false) {
dashtimer = 0;
dashtime = 0;
}
if (Key.isDown(_global.leftfinal)) {
if (Key.isDown(_global.downfinal)) {
if ((_global.sliding == false) and (_global.whipping == false)) {
if ((_global.jbvk <= 7) and (_global.jbvk >= 1)) {
_global.facing_direction = "left";
}
}
}
if ((!Key.isDown(_global.downfinal)) and (_global.togglemovement == "on")) {
_global.facing_direction = "left";
if (Movement >= -7) {
Movement = Movement - Movement_speed;
}
if (Key.isDown(_global.attackfinal) and (Zholdcount >= 5)) {
if ((_global.movementhinder == false) and (_global.togglemovement == "on")) {
_global.backdashing = false;
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount == 0)) {
this.gotoAndStop("Walking_left");
}
}
}
if (!Key.isDown(_global.attackfinal)) {
if ((_global.jbvk <= 7) and (_global.jbvk >= 1)) {
_global.facing_direction = "left";
}
if (Movement >= -7) {
Movement = Movement - Movement_speed;
}
if (((_global.movementhinder == false) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
_global.backdashing = false;
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount == 0)) {
this.gotoAndStop("Walking_left");
}
}
}
}
}
if (Key.isDown(_global.rightfinal)) {
if (Key.isDown(_global.downfinal)) {
if ((_global.sliding == false) and (_global.whipping == false)) {
if ((_global.jbvk <= 7) and (_global.jbvk >= 1)) {
_global.facing_direction = "right";
}
}
}
if (((!Key.isDown(_global.downfinal)) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
if ((_global.jbvk <= 7) and (_global.jbvk >= 1)) {
_global.facing_direction = "right";
}
if (Movement <= 7) {
Movement = Movement + Movement_speed;
}
if ((Key.isDown(_global.attackfinal) and (Zholdcount >= 5)) and (_global.whipping == false)) {
if ((_global.movementhinder == false) and (_global.togglemovement == "on")) {
_global.backdashing = false;
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount == 0)) {
this.gotoAndStop("Walking_right");
}
}
}
if (!Key.isDown(_global.attackfinal)) {
_global.facing_direction = "right";
if (Movement <= 7) {
Movement = Movement + Movement_speed;
}
if ((_global.movementhinder == false) and (_global.togglemovement == "on")) {
_global.backdashing = false;
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount == 0)) {
this.gotoAndStop("Walking_right");
}
}
}
}
}
if (Key.isDown(_global.jumpfinal)) {
if (((_global.Zholdcount <= 2) and _root.bg.hitTest(_x, _y + 2, true)) and (_global.togglejump == "on")) {
if (!Key.isDown(_global.downfinal)) {
_root.jump_sound.start();
if (_global.facing_direction == "left") {
this.gotoAndStop("Jumping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("Jumping_right");
}
Jumping = 1;
}
}
}
}
Instance of Symbol 233 MovieClip "bdcoder" in Frame 2
onClipEvent (load) {
_global.movementhinder = false;
_global.backdashingcount = 0;
}
onClipEvent (enterFrame) {
if (_global.backdashingcount >= 12) {
if (_global.facing_direction == "left") {
_root.jonathan.gotoAndStop("standing_left");
}
if (_global.facing_direction == "right") {
_root.jonathan.gotoAndStop("standing_right");
}
_global.crouchwhipping = false;
_global.whipping = false;
_global.togglecrouchwhip = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.togglewhip = "off";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglestand = "on";
_global.toggleslide = "on";
_global.jbvk = 0;
_global.backdashingcount = 0;
}
if (_global.backdashing == true) {
if (_global.jbvk >= 21) {
_global.whipjump = false;
_global.jbvk = 21;
}
this.play();
_global.movementhinder = true;
}
}
Instance of Symbol 236 MovieClip "bdcoder" in Frame 2
onClipEvent (load) {
_global.getridofplatforms = false;
}
onClipEvent (enterFrame) {
if (_global.sliding == true) {
this.play();
_global.getridofplatforms = true;
}
}
Instance of Symbol 239 MovieClip "bdcoder" in Frame 2
onClipEvent (load) {
_global.nojumping = true;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 242 MovieClip in Frame 2
onClipEvent (load) {
_global.jbvk = 0;
_global.whipjumpcount = 0;
}
onClipEvent (enterFrame) {
if (((_global.whipping == false) and (_global.jbvk >= 21)) and (!Key.isDown(_global.attackfinal))) {
_global.whipping = true;
_global.damage = 1;
}
if (_global.whipjump == true) {
whipjumpcount++;
}
if (whipjumpcount >= 17) {
whipjumpcount = 0;
_global.whipjump = false;
}
if ((_global.whipping == true) and (_global.backdashing == false)) {
_global.backdashingcount = 0;
_global.jbvk++;
}
if (((_global.whipping == true) and (_global.jbvk >= 21)) and (!Key.isDown(_global.attackfinal))) {
_global.crouchwhipping = false;
_global.whipping = false;
_global.togglecrouchwhip = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.togglewhip = "off";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglestand = "on";
_global.toggleslide = "on";
_global.jbvk = 0;
}
}
Instance of Symbol 245 MovieClip in Frame 2
onClipEvent (load) {
_global.hurttimer = 0;
_global.recoverytimer = 0;
_global.recoverystart = false;
_global.recoverytimer = 0;
}
onClipEvent (enterFrame) {
if (_global.health >= _global.maxhealth) {
_global.health = _global.maxhealth;
}
if (_global.recoverystart == true) {
_global.togglecrouchwhip = "on";
_global.togglebackdash = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
_root.jonathan._alpha = 50;
_global.recoverytimer++;
}
if (_global.recoverytimer >= 80) {
_global.recoverystart = false;
_root.jonathan._alpha = 100;
_global.recoverytimer = 0;
}
if (_global.maincharhurt == false) {
_global.hurttimer = 0;
}
if (_global.maincharhurt == true) {
if ((!_root.bg.hitTest(_root.jonathan._x + 44, _root.jonathan._y - 70, true)) and (!_root.bg.hitTest(_root.jonathan._x - 44, _root.jonathan._y - 70, true))) {
if (_global.facing_direction == "left") {
_root.jonathan.Movement = 8;
}
if (_global.facing_direction == "right") {
_root.jonathan.Movement = -8;
}
} else {
if (_root.bg.hitTest(_root.jonathan._x + 44, _root.jonathan._y - 70, true)) {
_root.jonathan.Movement = _root.jonathan.Movement * 0;
}
if (_root.bg.hitTest(_root.jonathan._x - 44, _root.jonathan._y - 70, true)) {
_root.jonathan.Movement = _root.jonathan.Movement * 0;
}
}
_global.hurttimer++;
_global.crouchwhipping = false;
_global.togglestand = "off";
_global.togglecrouch = "off";
_global.togglewhip = "off";
_global.togglejump = "off";
_global.togglebackdash = "off";
_global.toggleslide = "off";
_global.togglemovement = "off";
_global.toggletaunt = "off";
_global.togglecrouchwhip = "off";
}
if (_global.hurttimer >= 8) {
_global.recoverystart = true;
_global.togglestand = "on";
_global.togglecrouch = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglebackdash = "on";
_global.toggleslide = "on";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglecrouchwhip = "on";
_global.maincharhurt = false;
}
}
Instance of Symbol 247 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
_global.attackstring = "A";
_global.jumpstring = "Z";
_global.backdashstring = "S";
_global.upstring = "\u2191";
_global.leftstring = "\u2190";
_global.downstring = "\u2193";
_global.rightstring = "\u2192";
_global.attackfinal = 65;
_global.jumpfinal = 90;
_global.backdashfinal = 83;
_global.upfinal = 38;
_global.downfinal = 40;
_global.leftfinal = 37;
_global.rightfinal = 39;
_root.specialitem.start();
_root.gotoAndStop(9);
};
}
Instance of Symbol 250 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
_root._quality = "LOW";
};
}
Instance of Symbol 252 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
_root._quality = "MEDIUM";
};
}
Instance of Symbol 254 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
_root._quality = "HIGH";
};
}
Frame 3
stop();
Instance of Symbol 257 MovieClip in Frame 3
onClipEvent (load) {
_global.jumpstring = "Z";
_global.timer = 0;
}
onClipEvent (enterFrame) {
if ((((((_global.jumpkey != 32) and (_global.jumpkey != 36)) and (_global.jumpkey != 37)) and (_global.jumpkey != 38)) and (_global.jumpkey != 39)) and (_global.jumpkey != 40)) {
_global.jumpstring = chr(_global.jumpkey);
}
if (Key.isDown(37)) {
_global.jumpstring = "\u2190";
}
if (Key.isDown(39)) {
_global.jumpstring = "\u2192";
}
if (Key.isDown(38)) {
_global.jumpstring = "\u2191";
}
if (Key.isDown(40)) {
_global.jumpstring = "\u2193";
}
if (Key.isDown(32)) {
_global.jumpstring = "SP";
}
}
Instance of Symbol 263 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menudeselect.start();
_root.gotoAndStop(2);
};
}
Instance of Symbol 99 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menuselect.start();
_root.gotoAndStop(4);
};
}
Frame 4
stop();
Instance of Symbol 267 MovieClip in Frame 4
onClipEvent (load) {
_global.backdashstring = "Z";
_global.timer = 0;
}
onClipEvent (enterFrame) {
if ((((((_global.backdashkey != 32) and (_global.backdashkey != 36)) and (_global.backdashkey != 37)) and (_global.backdashkey != 38)) and (_global.backdashkey != 39)) and (_global.backdashkey != 40)) {
_global.backdashstring = chr(_global.backdashkey);
}
if (Key.isDown(37)) {
_global.backdashstring = "\u2190";
}
if (Key.isDown(39)) {
_global.backdashstring = "\u2192";
}
if (Key.isDown(38)) {
_global.backdashstring = "\u2191";
}
if (Key.isDown(40)) {
_global.backdashstring = "\u2193";
}
if (Key.isDown(32)) {
_global.backdashstring = "SP";
}
}
Instance of Symbol 263 MovieClip in Frame 4
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menudeselect.start();
_root.gotoAndStop(3);
};
}
Instance of Symbol 99 MovieClip in Frame 4
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menuselect.start();
_root.gotoAndStop(5);
};
}
Frame 5
stop();
Instance of Symbol 275 MovieClip in Frame 5
onClipEvent (load) {
_global.upstring = "\u2191";
_global.timer = 0;
}
onClipEvent (enterFrame) {
if ((((((_global.upkey != 32) and (_global.upkey != 36)) and (_global.upkey != 37)) and (_global.upkey != 38)) and (_global.upkey != 39)) and (_global.upkey != 40)) {
_global.upstring = chr(_global.upkey);
}
if (Key.isDown(37)) {
_global.upstring = "\u2190";
}
if (Key.isDown(39)) {
_global.upstring = "\u2192";
}
if (Key.isDown(38)) {
_global.upstring = "\u2191";
}
if (Key.isDown(40)) {
_global.upstring = "\u2193";
}
if (Key.isDown(32)) {
_global.upstring = "SP";
}
}
Instance of Symbol 263 MovieClip in Frame 5
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menudeselect.start();
_root.gotoAndStop(4);
};
}
Instance of Symbol 99 MovieClip in Frame 5
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menuselect.start();
_root.gotoAndStop(6);
};
}
Frame 6
stop();
Instance of Symbol 283 MovieClip in Frame 6
onClipEvent (load) {
_global.downstring = "\u2193";
_global.timer = 0;
}
onClipEvent (enterFrame) {
if ((((((_global.downkey != 32) and (_global.downkey != 36)) and (_global.downkey != 37)) and (_global.downkey != 38)) and (_global.downkey != 39)) and (_global.downkey != 40)) {
_global.downstring = chr(_global.downkey);
}
if (Key.isDown(37)) {
_global.downstring = "\u2190";
}
if (Key.isDown(39)) {
_global.downstring = "\u2192";
}
if (Key.isDown(38)) {
_global.downstring = "\u2191";
}
if (Key.isDown(40)) {
_global.downstring = "\u2193";
}
if (Key.isDown(32)) {
_global.downstring = "SP";
}
}
Instance of Symbol 263 MovieClip in Frame 6
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menudeselect.start();
_root.gotoAndStop(5);
};
}
Instance of Symbol 97 MovieClip in Frame 6
onClipEvent (load) {
_global.detect = true;
}
onClipEvent (enterFrame) {
this.onPress = function () {
_global.timer = 0;
_global.detect = true;
_root.asdf.gotoAndPlay(1);
};
}
Instance of Symbol 99 MovieClip in Frame 6
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menuselect.start();
_root.gotoAndStop(7);
};
}
Frame 7
stop();
Instance of Symbol 291 MovieClip in Frame 7
onClipEvent (load) {
_global.leftstring = "\u2190";
_global.timer = 0;
}
onClipEvent (enterFrame) {
if ((((((_global.leftkey != 32) and (_global.leftkey != 36)) and (_global.leftkey != 37)) and (_global.leftkey != 38)) and (_global.leftkey != 39)) and (_global.leftkey != 40)) {
_global.leftstring = chr(_global.leftkey);
}
if (Key.isDown(37)) {
_global.leftstring = "\u2190";
}
if (Key.isDown(39)) {
_global.leftstring = "\u2192";
}
if (Key.isDown(38)) {
_global.leftstring = "\u2191";
}
if (Key.isDown(40)) {
_global.leftstring = "\u2193";
}
if (Key.isDown(32)) {
_global.leftstring = "SP";
}
}
Instance of Symbol 263 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menudeselect.start();
_root.gotoAndStop(6);
};
}
Instance of Symbol 99 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menuselect.start();
_root.gotoAndStop(8);
};
}
Frame 8
stop();
Instance of Symbol 299 MovieClip in Frame 8
onClipEvent (load) {
_global.rightstring = "\u2192";
_global.timer = 0;
}
onClipEvent (enterFrame) {
if ((((((_global.rightkey != 32) and (_global.rightkey != 36)) and (_global.rightkey != 37)) and (_global.rightkey != 38)) and (_global.rightkey != 39)) and (_global.rightkey != 40)) {
_global.rightstring = chr(_global.rightkey);
}
if (Key.isDown(37)) {
_global.rightstring = "\u2190";
}
if (Key.isDown(39)) {
_global.rightstring = "\u2192";
}
if (Key.isDown(38)) {
_global.rightstring = "\u2191";
}
if (Key.isDown(40)) {
_global.rightstring = "\u2193";
}
if (Key.isDown(32)) {
_global.rightstring = "SP";
}
}
Instance of Symbol 263 MovieClip in Frame 8
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menudeselect.start();
_root.gotoAndStop(7);
};
}
Instance of Symbol 99 MovieClip in Frame 8
onClipEvent (enterFrame) {
this.onPress = function () {
_root.menuselect.start();
_root.gotoAndStop(9);
};
}
Frame 9
stop();
Instance of Symbol 70 MovieClip in Frame 9
onClipEvent (enterFrame) {
if ((((_global.whipstring != "\u2190") and (_global.whipstring != "\u2192")) and (_global.whipstring != "\u2191")) and (_global.whipstring != "\u2193")) {
_global.attackfinal = ord(_global.whipstring);
}
if (_global.whipstring == "\u2190") {
_global.attackfinal = 37;
}
if (_global.whipstring == "\u2191") {
_global.attackfinal = 38;
}
if (_global.whipstring == "\u2192") {
_global.attackfinal = 39;
}
if (_global.whipstring == "\u2193") {
_global.attackfinal = 40;
}
}
Instance of Symbol 72 MovieClip in Frame 9
onClipEvent (enterFrame) {
if ((((_global.jumpstring != "\u2190") and (_global.jumpstring != "\u2192")) and (_global.jumpstring != "\u2191")) and (_global.jumpstring != "\u2193")) {
_global.jumpfinal = ord(_global.jumpstring);
}
if (_global.jumpstring == "\u2190") {
_global.jumpfinal = 37;
}
if (_global.jumpstring == "\u2191") {
_global.jumpfinal = 38;
}
if (_global.jumpstring == "\u2192") {
_global.jumpfinal = 39;
}
if (_global.jumpstring == "\u2193") {
_global.jumpfinal = 40;
}
}
Instance of Symbol 74 MovieClip in Frame 9
onClipEvent (enterFrame) {
if ((((_global.backdashstring != "\u2190") and (_global.backdashstring != "\u2192")) and (_global.backdashstring != "\u2191")) and (_global.backdashstring != "\u2193")) {
_global.backdashfinal = ord(_global.backdashstring);
}
if (_global.backdashstring == "\u2190") {
_global.backdashfinal = 37;
}
if (_global.backdashstring == "\u2191") {
_global.backdashfinal = 38;
}
if (_global.backdashstring == "\u2192") {
_global.backdashfinal = 39;
}
if (_global.backdashstring == "\u2193") {
_global.backdashfinal = 40;
}
}
Instance of Symbol 76 MovieClip in Frame 9
onClipEvent (enterFrame) {
if ((((_global.upstring != "\u2190") and (_global.upstring != "\u2192")) and (_global.upstring != "\u2191")) and (_global.upstring != "\u2193")) {
_global.upfinal = ord(_global.upstring);
}
if (_global.upstring == "\u2190") {
_global.upfinal = 37;
}
if (_global.upstring == "\u2191") {
_global.upfinal = 38;
}
if (_global.upstring == "\u2192") {
_global.upfinal = 39;
}
if (_global.upstring == "\u2193") {
_global.upfinal = 40;
}
}
Instance of Symbol 78 MovieClip in Frame 9
onClipEvent (enterFrame) {
if ((((_global.downstring != "\u2190") and (_global.downstring != "\u2192")) and (_global.downstring != "\u2191")) and (_global.downstring != "\u2193")) {
_global.downfinal = ord(_global.downstring);
}
if (_global.downstring == "\u2190") {
_global.downfinal = 37;
}
if (_global.downstring == "\u2191") {
_global.downfinal = 38;
}
if (_global.downstring == "\u2192") {
_global.downfinal = 39;
}
if (_global.downstring == "\u2193") {
_global.downfinal = 40;
}
}
Instance of Symbol 80 MovieClip in Frame 9
onClipEvent (enterFrame) {
if ((((_global.leftstring != "\u2190") and (_global.leftstring != "\u2192")) and (_global.leftstring != "\u2191")) and (_global.leftstring != "\u2193")) {
_global.leftfinal = ord(_global.leftstring);
}
if (_global.leftstring == "\u2190") {
_global.leftfinal = 37;
}
if (_global.leftstring == "\u2191") {
_global.leftfinal = 38;
}
if (_global.leftstring == "\u2192") {
_global.leftfinal = 39;
}
if (_global.leftstring == "\u2193") {
_global.leftfinal = 40;
}
}
Instance of Symbol 82 MovieClip in Frame 9
onClipEvent (enterFrame) {
if ((((_global.rightstring != "\u2190") and (_global.rightstring != "\u2192")) and (_global.rightstring != "\u2191")) and (_global.rightstring != "\u2193")) {
_global.rightfinal = ord(_global.rightstring);
}
if (_global.rightstring == "\u2190") {
_global.rightfinal = 37;
}
if (_global.rightstring == "\u2191") {
_global.rightfinal = 38;
}
if (_global.rightstring == "\u2192") {
_global.rightfinal = 39;
}
if (_global.rightstring == "\u2193") {
_global.rightfinal = 40;
}
}
Instance of Symbol 314 MovieClip in Frame 9
onClipEvent (enterFrame) {
this.onPress = function () {
_root.jonathanhurtsound.start();
_root.gotoAndStop(2);
};
}
Instance of Symbol 316 MovieClip in Frame 9
onClipEvent (enterFrame) {
this.onPress = function () {
_root.specialitem.start();
stopAllSounds();
_root.gotoAndStop(21);
};
}
Frame 21
_global.i = 0;
_global.healthup = 5;
_global.quest1name = "Something's Fishy";
_global.quest1requirement = "Fishheads";
_global.quest1acquired = 0;
_global.quest1required = 10;
_global.quest2name = "I'm Stumped";
_global.quest2requirement = "Stumps";
_global.quest2acquired = 0;
_global.quest2required = 4;
_global.quest3name = "On My Level";
_global.quest3requirement = "Reach Lv. 3";
this.onEnterFrame = function () {
if (_global.quest3acquired <= (_global.quest3required - 1)) {
_global.quest3acquired = _global.experience_level;
}
};
_global.quest3required = 3;
var fish_shoot = new Sound();
fish_shoot.attachSound("fish_shoot");
var fish_shoot2 = new Sound();
fish_shoot2.attachSound("fish_shoot2");
var jump_sound = new Sound();
jump_sound.attachSound("jump");
var exp_get = new Sound();
exp_get.attachSound("exp_get");
var ouchiloveyou = new Sound();
ouchiloveyou.attachSound("ouchiloveyou");
var levelupsound = new Sound();
levelupsound.attachSound("levelupsound");
var taunt_sound = new Sound();
taunt_sound.attachSound("taunt_sound");
var xdeathsound = new Sound();
xdeathsound.attachSound("xdeathsound");
var xhitsound = new Sound();
xhitsound.attachSound("xhitsound");
var land_sound = new Sound();
land_sound.attachSound("land");
var empty_tome = new Sound();
empty_tome.attachSound("empty_tome");
var colossus = new Sound();
colossus.attachSound("colossus");
var backdash_sound = new Sound();
backdash_sound.attachSound("backdash_sound");
var hard_land_sound = new Sound();
hard_land_sound.attachSound("hard_land");
var heart_sound = new Sound();
heart_sound.attachSound("heart_sound");
var slide_sound = new Sound();
slide_sound.attachSound("slide_sound");
var whip_sound = new Sound();
whip_sound.attachSound("whip_sound");
var whip_sound2 = new Sound();
whip_sound2.attachSound("whip_sound2");
var comeandgetit = new Sound();
comeandgetit.attachSound("comeandgetit");
var cmonchump = new Sound();
cmonchump.attachSound("cmonchump");
var jonathangrunt1 = new Sound();
jonathangrunt1.attachSound("jonathangrunt1");
var glassbreak = new Sound();
glassbreak.attachSound("glassbreak");
var beam = new Sound();
beam.attachSound("beam");
var stumphit = new Sound();
stumphit.attachSound("stumphit");
_root.colossus.start("", "1000");
Instance of Symbol 396 MovieClip "bg" in Frame 21
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 430 MovieClip in Frame 21
onClipEvent (load) {
this._x = _root.cam._x - (_root.cam._width / 2);
this._y = _root.cam._y - (_root.cam._height / 2);
}
onClipEvent (enterFrame) {
_root.heart._x = 1000;
_root.heart._y = 1000;
this._x = _root.cam._x - (_root.cam._width / 2);
this._y = _root.cam._y - (_root.cam._height / 2);
}
Instance of Symbol 434 MovieClip "itembar" in Frame 21
onClipEvent (load) {
this._visible = false;
_global.itemget = false;
_global.itemtimerestart = false;
itemtimer = false;
this._x = _root.cam._x - (_root.cam._width / 2);
this._y = _root.cam._y + (_root.cam._height / 2);
}
onClipEvent (enterFrame) {
if (_global.itemrestart == true) {
timer = 0;
_global.itemrestart = false;
}
if (_global.itemget == true) {
itemtimer = true;
this._visible = true;
}
if (_global.itemget == false) {
this._visible = false;
}
if (itemtimer == true) {
timer++;
}
if (timer >= 20) {
itemtimer = false;
}
if (itemtimer == false) {
_global.itemget = false;
timer = 0;
}
this._x = _root.cam._x - (_root.cam._width / 2);
this._y = _root.cam._y + (_root.cam._height / 2);
}
Instance of Symbol 468 MovieClip in Frame 21
onClipEvent (load) {
this._x = _root.cam._x + (_root.cam._width / 2);
this._y = _root.cam._y - (_root.cam._height / 2);
}
onClipEvent (enterFrame) {
this._x = _root.cam._x + (_root.cam._width / 2);
this._y = _root.cam._y - (_root.cam._height / 2);
}
Instance of Symbol 497 MovieClip "cam" in Frame 21
onClipEvent (enterFrame) {
this._x = _root.jonathan._x;
this._y = _root.jonathan._y - 100;
}
Instance of Symbol 233 MovieClip "bdcoder" in Frame 21
onClipEvent (load) {
_global.movementhinder = false;
_global.backdashingcount = 0;
}
onClipEvent (enterFrame) {
if (_global.backdashingcount >= 12) {
if (_global.facing_direction == "left") {
_root.jonathan.gotoAndStop("standing_left");
}
if (_global.facing_direction == "right") {
_root.jonathan.gotoAndStop("standing_right");
}
_global.crouchwhipping = false;
_global.whipping = false;
_global.togglecrouchwhip = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.togglewhip = "off";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglestand = "on";
_global.toggleslide = "on";
_global.jbvk = 0;
_global.backdashingcount = 0;
}
if (_global.backdashing == true) {
if (_global.jbvk >= 21) {
_global.whipjump = false;
_global.jbvk = 21;
}
this.play();
_global.movementhinder = true;
}
}
Instance of Symbol 236 MovieClip "bdcoder" in Frame 21
onClipEvent (load) {
_global.getridofplatforms = false;
timer = 0;
_global.slidingstart = false;
}
onClipEvent (enterFrame) {
if (_global.slidingstart == true) {
_root.jonathan.Yvelocity = 12;
timer++;
}
if (!_root.bg.hitTest(_root.jonathan._x, _root.jonathan._y + 20, true)) {
if (_global.sliding == true) {
_global.togglejump = "on";
_global.nojumping = true;
_global.backdashing = false;
_global.slidingstart = false;
_global.getridofplatforms = false;
_global.movementhinder = false;
timer = 15;
_global.sliding = false;
}
}
if (_global.sliding == true) {
_global.slidingstart = true;
_global.getridofplatforms = true;
}
if (timer >= 18) {
if (_root.bg.hitTest(_root.jonathan._x, _root.jonathan._y + 20, true)) {
if (_global.facing_direction == "left") {
_root.jonathan.gotoAndStop("crouching_left");
}
if (_global.facing_direction == "right") {
_root.jonathan.gotoAndStop("crouching_right");
}
}
if (!_root.bg.hitTest(_root.jonathan._x, _root.jonathan._y + 20, true)) {
if (_global.facing_direction == "left") {
_root.jonathan.gotoAndStop("jumping_left");
}
if (_global.facing_direction == "right") {
_root.jonathan.gotoAndStop("jumping_right");
}
}
_global.sliding = false;
_global.slidingstart = false;
_global.crouchwhipping = false;
_global.whipping = false;
_global.togglecrouchwhip = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.togglewhip = "off";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglestand = "on";
_global.toggleslide = "on";
_global.jbvk = 0;
_global.slidingstart = false;
}
if (_global.slidingstart == false) {
timer = 0;
}
}
Instance of Symbol 239 MovieClip "bdcoder" in Frame 21
onClipEvent (load) {
_global.nojumping = true;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 242 MovieClip in Frame 21
onClipEvent (load) {
_global.jbvk = 0;
_global.whipjumpcount = 0;
}
onClipEvent (enterFrame) {
if (((_global.whipping == false) and (_global.jbvk >= 21)) and (!Key.isDown(_global.attackfinal))) {
_global.whipping = true;
_global.damage = _global.attack / _global.damage;
}
if (_global.whipjump == true) {
_global.whipjumpcount++;
}
if (_global.whipjumpcount >= 17) {
_global.whipjumpcount = 0;
_global.whipjump = false;
}
if ((_global.whipping == true) and (_global.backdashing == false)) {
_global.backdashingcount = 0;
_global.jbvk++;
}
if (((_global.whipping == true) and (_global.jbvk >= 21)) and (!Key.isDown(_global.attackfinal))) {
_global.crouchwhipping = false;
_global.whipping = false;
_global.togglecrouchwhip = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.togglewhip = "off";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglestand = "on";
_global.toggleslide = "on";
_global.jbvk = 0;
}
}
Instance of Symbol 229 MovieClip "jonathan" in Frame 21
onClipEvent (load) {
_global.whipjump = false;
_global.damage = _global.attack;
_global.attack = 35;
_global.togglestand = "on";
_global.togglecrouch = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglebackdash = "on";
_global.toggleslide = "on";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglecrouchwhip = "on";
_global.whipping = false;
_global.subweapon = false;
_global.crouchwhipping = false;
_global.slidingstart = false;
_global.Zholdcount = 0;
_global.Sholdcount = 0;
_global.Aholdcount = 0;
_global.health = 99;
_global.maxhealth = 99;
_global.facing_direction = "left";
_global.backdashing = false;
_global.clipping = false;
_global.djfv = 0;
_global.maincharhurt = false;
backdashability = true;
Falling = true;
Movement = 0;
Movement_speed = 4;
Movement_friction = 0.7;
Jumping_amount = 30;
Yvelocity = 0;
Jumping = 1;
barvar = 12;
gravity = 2.75;
dashtimer = 0;
dashtime = 0;
Slidingspeed = 12;
}
onClipEvent (enterFrame) {
if (((Key.isDown(_global.upfinal) and Key.isDown(_global.downfinal)) and Key.isDown(_global.attackfinal)) and (_global.crouchwhipping == false)) {
_global.togglewhip = "off";
_global.togglecrouchwhipping = "off";
if (_global.crouchwhipping == true) {
if (_global.facing_direction == "left") {
this.gotoAndStop("crouching_left");
}
if (_global.facing_direction == "left") {
this.gotoAndStop("crouching_right");
}
}
}
_global.damage = _global.attack;
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.leftfinal)) and (Aholdcount <= 10)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = true;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.leftfinal)) and (Aholdcount >= 11)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = false;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.rightfinal)) and (Aholdcount <= 10)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = true;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.rightfinal)) and (Aholdcount >= 11)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = false;
_global.backdashing = false;
}
if ((_root.bg.hitTest(_x + 44, _y - 70, true) and Key.isDown(_global.rightfinal)) and Key.isDown(_global.attackfinal)) {
Movement = Movement * 0;
}
if ((_root.bg.hitTest(_x - 44, _y - 70, true) and Key.isDown(_global.leftfinal)) and Key.isDown(_global.attackfinal)) {
Movement = Movement * 0;
}
if ((_root.bg.hitTest(_x + 44, _y - 70, true) and Key.isDown(_global.rightfinal)) and (_global.whipjumpcount >= 0)) {
Movement = Movement * 0;
}
if ((_root.bg.hitTest(_x - 44, _y - 70, true) and Key.isDown(_global.leftfinal)) and (_global.whipjumpcount >= 0)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest(_x, _y - 90, true) and _root.bg.hitTest(_x, _y, true)) {
_global.clipping = true;
} else {
_global.clipping = false;
}
if (_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
if (_global.facing_direction == "left") {
if ((((!Key.isDown(_global.jumpfinal)) and (_global.sliding == false)) and (_global.stairjumping == false)) and (_global.stairwaytimer <= 1)) {
if (Key.isDown(_global.leftfinal)) {
Yvelocity = Yvelocity + 7;
}
}
if (_global.sliding == true) {
Yvelocity = Yvelocity + 10;
}
}
if (_global.facing_direction == "right") {
if (_global.backdashing == true) {
Yvelocity = Yvelocity + 7;
}
_rotation = 0;
}
}
if (_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
if (_global.facing_direction == "right") {
if ((((!Key.isDown(_global.jumpfinal)) and (_global.sliding == false)) and (_global.stairjumping == false)) and (_global.stairwaytimer <= 1)) {
if (Key.isDown(_global.rightfinal)) {
Yvelocity = Yvelocity + 7;
}
}
if (_global.sliding == true) {
Yvelocity = Yvelocity + 10;
}
}
if (_global.facing_direction == "left") {
if (_global.backdashing == true) {
Yvelocity = Yvelocity + 7;
}
_rotation = 0;
}
}
if ((!_root.bg.hitTest(_x, _y + 2, true)) and (_global.togglejump == "on")) {
if (_global.jv >= 23) {
if ((_global.facing_direction == "left") and (_global.whipjump == false)) {
this.gotoAndStop("doublejumpfallingleft");
}
if ((_global.facing_direction == "right") and (_global.whipjump == false)) {
this.gotoAndStop("doublejumpfallingright");
}
}
}
if (!Key.isDown(_global.jumpfinal)) {
_global.Zholdcount = 0;
}
if (Key.isDown(_global.jumpfinal)) {
_global.Zholdcount = _global.Zholdcount + 1;
}
if (!Key.isDown(_global.backdashfinal)) {
_global.Sholdcount = 0;
}
if (Key.isDown(_global.backdashfinal)) {
_global.Sholdcount = _global.Sholdcount + 1;
}
if (!Key.isDown(_global.attackfinal)) {
_global.Aholdcount = 0;
}
if (Key.isDown(_global.attackfinal) and (_global.backdashing == false)) {
_global.Aholdcount = _global.Aholdcount + 1;
}
if (_root.bg.hitTest(_x, _y - 90, true)) {
if (_global.clipping == false) {
Yvelocity = 5;
}
}
if ((!Key.isDown(_global.leftfinal)) and (!Key.isDown(_global.rightfinal))) {
if (_root.bg.hitTest(((_x + barvar) + (_width / 2)) + 10, _y - 75, true)) {
if (_global.backdashing == false) {
if (_global.facing_direction == "right") {
Movement = 0;
}
}
if (_global.backdashing == true) {
Movement = -8;
_global.backdashing = false;
}
if (_global.sliding == true) {
Movement = -5;
_global.sliding = false;
}
}
if (_root.bg.hitTest(((_x - barvar) - (_width / 2)) - 10, _y - 75, true)) {
if (_global.backdashing == false) {
if (_global.facing_direction == "left") {
Movement = 0;
}
}
if (_global.backdashing == true) {
Movement = 8;
_global.backdashing = false;
}
if (_global.sliding == true) {
Movement = 5;
_global.sliding = false;
}
}
}
if ((!Key.isDown(_global.leftfinal)) and (!Key.isDown(_global.rightfinal))) {
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 70, true) and (Movement <= -0.5)) {
if (_global.backdashing == false) {
Movement = Movement * 0;
}
}
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 70, true) and (Movement >= -0.5)) {
if ((_global.backdashing == false) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
}
}
if (Key.isDown(_global.rightfinal)) {
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 75, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 70, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 68, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
}
if (Key.isDown(_global.leftfinal)) {
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 75, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 70, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 68, true) and (_global.whipjump == false)) {
Movement = Movement * 0;
}
}
if ((Movement <= 0.25) and (Movement >= -0.25)) {
Movement = 0;
}
_y = (_y + Yvelocity);
_x = (_x + Movement);
if (!_root.bg.hitTest(_x, _y + 2, true)) {
_global.damage = _global.attack;
if (_global.maincharhurt == true) {
Movement = 0;
Yvelocity = 4;
if (_global.facing_direction == "left") {
this.gotoAndStop("hurt_air_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("hurt_air_right");
}
}
}
if (_root.bg.hitTest(_x, _y + 2, true)) {
if ((((((!Key.isDown(_global.leftfinal)) and (_global.crouchwhipping == false)) and (!Key.isDown(_global.rightfinal))) and Key.isDown(_global.attackfinal)) and Key.isDown(_global.upfinal)) and (_global.Aholdcount >= 12)) {
if ((_global.whipping == false) and (_global.subweapon == true)) {
if (_global.facing_direction == "right") {
gotoAndStop ("Standing_right");
}
if (_global.facing_direction == "left") {
gotoAndStop ("Standing_left");
}
}
}
if ((((((!Key.isDown(_global.leftfinal)) and (_global.crouchwhipping == false)) and (!Key.isDown(_global.rightfinal))) and Key.isDown(_global.attackfinal)) and (!Key.isDown(_global.upfinal))) and (_global.Aholdcount >= 12)) {
if ((_global.whipping == false) and (_global.subweapon == true)) {
if (_global.facing_direction == "right") {
gotoAndStop ("Standing_right");
}
if (_global.facing_direction == "left") {
gotoAndStop ("Standing_left");
}
}
}
if (((((Key.isDown(_global.attackfinal) and (Aholdcount <= 10)) and (!Key.isDown(_global.leftfinal))) and (!Key.isDown(_global.rightfinal))) and (!Key.isDown(_global.upfinal))) and (!Key.isDown(_global.downfinal))) {
_global.damage = _global.attack;
}
if (Key.isDown(_global.attackfinal) and (Aholdcount >= 10)) {
_global.damage = _global.attack / _global.damage;
}
if (_global.maincharhurt == true) {
Movement = 0;
if (_global.facing_direction == "left") {
this.gotoAndStop("hurt_ground_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("hurt_ground_right");
}
}
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.leftfinal)) and (Aholdcount <= 10)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = true;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.leftfinal)) and (Aholdcount >= 11)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = false;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.rightfinal)) and (Aholdcount <= 10)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = true;
_global.backdashing = false;
}
if (((Key.isDown(_global.attackfinal) and Key.isDown(_global.rightfinal)) and (Aholdcount >= 11)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = false;
_global.backdashing = false;
}
if (_root.bg.hitTest(_x, _y - 90, true) and _root.bg.hitTest(_x, _y, true)) {
_global.clipping = true;
} else {
_global.clipping = false;
}
if (_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
if (_global.facing_direction == "left") {
if ((((!Key.isDown(_global.jumpfinal)) and (_global.sliding == false)) and (_global.stairjumping == false)) and (_global.stairwaytimer <= 1)) {
if (Key.isDown(_global.leftfinal)) {
Yvelocity = Yvelocity + 7;
}
}
if (_global.sliding == true) {
Yvelocity = Yvelocity + 10;
}
}
if (_global.facing_direction == "right") {
if (_global.backdashing == true) {
Yvelocity = Yvelocity + 7;
}
}
}
if (_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
if (_global.facing_direction == "right") {
if ((((!Key.isDown(_global.jumpfinal)) and (_global.sliding == false)) and (_global.stairjumping == false)) and (_global.stairwaytimer <= 1)) {
if (Key.isDown(_global.rightfinal)) {
Yvelocity = Yvelocity + 7;
}
}
if (_global.sliding == true) {
Yvelocity = Yvelocity + 10;
}
}
if (_global.facing_direction == "left") {
if (_global.backdashing == true) {
Yvelocity = Yvelocity + 7;
}
}
}
if ((!_root.bg.hitTest(_x, _y + 2, true)) and (_global.togglejump == "on")) {
if (_global.jv >= 23) {
if ((_global.facing_direction == "left") and (_global.whipjump == false)) {
this.gotoAndStop("doublejumpfallingleft");
}
if ((_global.facing_direction == "right") and (_global.whipjump == false)) {
this.gotoAndStop("doublejumpfallingright");
}
}
}
if (!Key.isDown(_global.jumpfinal)) {
_global.Zholdcount = 0;
}
if (Key.isDown(_global.jumpfinal)) {
_global.Zholdcount = _global.Zholdcount + 1;
}
if (!Key.isDown(_global.backdashfinal)) {
_global.Sholdcount = 0;
}
if (Key.isDown(_global.backdashfinal)) {
_global.Sholdcount = _global.Sholdcount + 1;
}
if (!Key.isDown(_global.attackfinal)) {
_global.Aholdcount = 0;
}
if (Key.isDown(_global.attackfinal) and (_global.backdashing == false)) {
_global.Aholdcount = _global.Aholdcount + 1;
}
if (_root.bg.hitTest(_x, _y - 90, true)) {
if (_global.clipping == false) {
Yvelocity = 5;
}
}
if ((!Key.isDown(_global.leftfinal)) and (!Key.isDown(_global.rightfinal))) {
if (_root.bg.hitTest(((_x + barvar) + (_width / 2)) + 10, _y - 75, true)) {
if (_global.backdashing == false) {
if (_global.facing_direction == "right") {
Movement = 0;
}
}
if (_global.backdashing == true) {
Movement = -8;
_global.backdashing = false;
}
if (_global.sliding == true) {
Movement = -5;
_global.sliding = false;
}
}
if (_root.bg.hitTest(((_x - barvar) - (_width / 2)) - 10, _y - 75, true)) {
if (_global.backdashing == false) {
if (_global.facing_direction == "left") {
Movement = 0;
}
}
if (_global.backdashing == true) {
Movement = 8;
_global.backdashing = false;
}
if (_global.sliding == true) {
Movement = 5;
_global.sliding = false;
}
}
}
Movement = Movement * Movement_friction;
if ((Movement <= 0.25) and (Movement >= -0.25)) {
Movement = 0;
}
if (Falling == true) {
if (_global.togglejump == "on") {
if ((Key.isDown(_global.leftfinal) and (_global.whipjump == false)) and (_global.subweaponjump == false)) {
if (_global.jv <= 22) {
if ((!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayright.hitTest(_x, _y + 20, true))) {
this.gotoAndStop("Jumping_left");
}
}
}
if ((((!Key.isDown(_global.leftfinal)) and (_global.facing_direction == "left")) and (_global.jv <= 22)) and (Movement <= -1)) {
if (_global.jv <= 22) {
if ((!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayright.hitTest(_x, _y + 20, true))) {
this.gotoAndStop("Jumping_left");
}
}
}
if ((Key.isDown(_global.rightfinal) and (_global.whipjump == false)) and (_global.subweaponjump == false)) {
if (_global.jv <= 22) {
if ((!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true))) {
this.gotoAndStop("Jumping_right");
}
}
}
if ((((!Key.isDown(_global.rightfinal)) and (_global.facing_direction == "right")) and (_global.jv <= 22)) and (Movement >= 1)) {
if (_global.jv <= 22) {
if ((!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true))) {
this.gotoAndStop("Jumping_right");
}
}
}
}
if (Yvelocity <= 10) {
if (_global.clipping == false) {
Yvelocity = Yvelocity + gravity;
}
}
if ((Yvelocity >= 10) and (Yvelocity <= 18)) {
Yvelocity = Yvelocity + 0.2;
}
}
if (!_root.bg.hitTest(_x, _y + 2, true)) {
Falling = true;
if ((((((_global.facing_direction == "left") and (Movement <= -1)) and (!Key.isDown(_global.leftfinal))) and (_global.doublejump == false)) and (_global.jv <= 22)) and (_global.togglejump == "on")) {
if ((!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayright.hitTest(_x, _y + 20, true))) {
this.gotoAndStop("Jumping_left");
}
}
if ((((((_global.facing_direction == "right") and (Movement >= 1)) and (!Key.isDown(_global.rightfinal))) and (_global.doublejump == false)) and (_global.jv <= 22)) and (_global.togglejump == "on")) {
if ((!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true))) {
this.gotoAndStop("Jumping_right");
}
}
if (Jumping == 0) {
_global.nojumping = true;
if (((_global.doublejump == false) and (_global.jv <= 22)) and (_global.togglejump == "on")) {
if (_global.facing_direction == "left") {
if ((!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayright.hitTest(_x, _y + 20, true))) {
this.gotoAndStop("Jumping_left");
}
}
if (_global.facing_direction == "right") {
if ((!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true))) {
this.gotoAndStop("Jumping_right");
}
}
}
}
if (_global.backdashing == true) {
_global.nojumping = true;
if (_global.facing_direction == "left") {
if ((!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayright.hitTest(_x, _y + 20, true))) {
this.gotoAndStop("Jumping_left");
}
}
if (_global.facing_direction == "right") {
if ((!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayright.hitTest(_x, _y + 20, true))) {
this.gotoAndStop("Jumping_right");
}
}
_global.backdashing = false;
}
if ((_global.sliding == true) and _root.bg.hitTest(_root.jonathan._x, _root.jonathan._y + 5, true)) {
_global.nojumping = true;
if (_global.facing_direction == "left") {
if ((!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayright.hitTest(_x, _y + 20, true))) {
_rotation = 0;
this.gotoAndStop("Jumping_left");
}
}
if (_global.facing_direction == "right") {
if ((!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) and (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true))) {
_rotation = 0;
this.gotoAndStop("Jumping_right");
}
}
_global.sliding = false;
}
} else {
while (_root.bg.hitTest(_x, _y, true) and (!_root.bg.hitTest(_x, _y - 90, true))) {
if (((Yvelocity >= 12) and (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true))) and (!_root.bg.stairwayright.hitTest(_x, _y + 20, true))) {
if (_global.slidingstart == false) {
_root.land_sound.start();
}
}
_global.fall = 0;
_y = (_y - 1);
_global.nojumping = false;
Yvelocity = 0;
Falling = false;
Jumping = 0;
}
}
if (_root.bg.hitTest(_x, _y + 2, true)) {
if (((((_global.Aholdcount <= 7) and (_global.subweapon == true)) and (_global.whipping == false)) and (!Key.isDown(_global.downfinal))) and (_global.crouchwhipping == false)) {
if (_global.facing_direction == "left") {
this.gotoAndStop("subweapon_throw_ground_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("subweapon_throw_ground_right");
}
}
if ((((_global.whipping == true) and (_global.togglewhip == "on")) and (!Key.isDown(_global.downfinal))) and (_global.crouchwhipping == false)) {
if (_global.facing_direction == "left") {
this.gotoAndStop("whipping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("whipping_right");
}
}
if (((((((_global.Aholdcount <= 7) and Key.isDown(_global.attackfinal)) and (_global.whipping == false)) and Key.isDown(_global.upfinal)) and (!Key.isDown(_global.downfinal))) and (_global.crouchwhipping == false)) and (_global.whipjump == false)) {
if (_global.mp >= 16) {
_global.subweapon = true;
if (_global.facing_direction == "left") {
this.gotoAndStop("subweapon_throw_ground_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("subweapon_throw_ground_right");
}
}
}
if (((((Key.isDown(_global.attackfinal) and (!Key.isDown(_global.upfinal))) and (togglewhip == "on")) and (!Key.isDown(_global.downfinal))) and (_global.crouchwhipping == false)) and (_global.whipjump == false)) {
_global.whipping = true;
if (_global.facing_direction == "left") {
this.gotoAndStop("whipping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("whipping_right");
}
}
if (((((togglewhip == "on") and (_global.subweapon == false)) and (!Key.isDown(_global.downfinal))) and (_global.crouchwhipping == false)) and (_global.whipjump == true)) {
if (_global.facing_direction == "left") {
this.gotoAndStop("whipping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("whipping_right");
}
}
if ((((((_global.whipping == true) and (_global.subweapon == false)) and (_global.slidingstart == false)) and (_global.crouchwhipping == true)) and (_global.togglewhip == "on")) and Key.isDown(_global.downfinal)) {
if (_global.facing_direction == "left") {
this.gotoAndStop("crouch_whipping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("crouch_whipping_right");
}
}
if (((((Key.isDown(_global.attackfinal) and (_global.subweapon == false)) and (_global.slidingstart == false)) and (_global.togglecrouchwhip == "on")) and (togglewhip == "on")) and Key.isDown(_global.downfinal)) {
_global.whipping = true;
_global.crouchwhipping = true;
if (_global.facing_direction == "left") {
this.gotoAndStop("crouch_whipping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("crouch_whipping_right");
}
}
if (Key.isDown(_global.downfinal) and (!Key.isDown(_global.upfinal))) {
if (_global.backdashing == true) {
Movement = Movement * 0;
_global.backdashing = false;
}
if (((!Key.isDown(_global.jumpfinal)) and (_global.crouchwhipping == false)) and (_global.togglecrouch == "on")) {
if ((_global.sliding == false) and (_global.slidingstart == false)) {
_global.jv = 1;
if (_global.facing_direction == "left") {
_rotation = 0;
this.gotoAndStop("crouching_left");
}
if (_global.facing_direction == "right") {
_rotation = 0;
this.gotoAndStop("crouching_right");
}
}
}
if (((Key.isDown(_global.jumpfinal) and (_global.toggleslide == "on")) and (_global.crouchwhipping == false)) and (!Key.isDown(_global.attackfinal))) {
if (_root.bg.hitTest(_x, _y + 20)) {
if (Zholdcount <= 14.9) {
if (_global.facing_direction == "left") {
if (_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
if (_global.slidingstart == true) {
} else if (_global.slidingstart == false) {
_rotation = 0;
}
}
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
_rotation = 0;
}
this.gotoAndStop("sliding_left");
}
if (_global.facing_direction == "right") {
if (_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
if (_global.slidingstart == true) {
} else if (_global.slidingstart == false) {
_rotation = 0;
}
}
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
_rotation = 0;
}
this.gotoAndStop("sliding_right");
}
}
}
if (Zholdcount >= 15) {
if (_global.facing_direction == "left") {
_rotation = 0;
this.gotoAndStop("crouching_left");
}
if (_global.facing_direction == "right") {
_rotation = 0;
this.gotoAndStop("crouching_right");
}
}
}
}
if ((((((Key.isDown(_global.rightfinal) and Key.isDown(_global.jumpfinal)) and (!Key.isDown(_global.downfinal))) and (_global.Zholdcount >= 10)) and (!Key.isDown(_global.attackfinal))) and (_global.whipping == false)) and (_global.togglemovement == "on")) {
this.gotoAndStop("Walking_right");
}
if ((((((Key.isDown(_global.leftfinal) and Key.isDown(_global.jumpfinal)) and (!Key.isDown(_global.downfinal))) and (_global.Zholdcount >= 10)) and (!Key.isDown(_global.attackfinal))) and (_global.whipping == false)) and (_global.togglemovement == "on")) {
this.gotoAndStop("Walking_left");
}
if ((((((((Key.isDown(_global.backdashfinal) and (Sholdcount <= 10)) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.upfinal))) and (!Key.isDown(_global.leftfinal))) and (!Key.isDown(_global.rightfinal))) and (backdashability == true)) and (_global.togglebackdash == "on")) and (!Key.isDown(_global.attackfinal))) {
if (_global.clipping == false) {
_global.backdashing = true;
if (_global.facing_direction == "left") {
this.gotoAndStop("Backdash_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("Backdash_right");
}
}
}
if ((((((!Key.isDown(_global.leftfinal)) and (_global.maincharhurt == false)) and (Movement == 0)) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.upfinal))) and (_global.togglestand == "on")) {
if ((((_global.facing_direction == "left") and (_global.backdashing == false)) and (_global.whipping == false)) and (_global.whipjump == false)) {
_rotation = 0;
gotoAndStop ("Standing_left");
}
}
if ((((((!Key.isDown(_global.rightfinal)) and (_global.maincharhurt == false)) and (Movement == 0)) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.upfinal))) and (_global.togglestand == "on")) {
if ((((_global.facing_direction == "right") and (_global.backdashing == false)) and (_global.whipping == false)) and (_global.whipjump == false)) {
_rotation = 0;
gotoAndStop ("Standing_right");
}
}
if (((((((!Key.isDown(_global.leftfinal)) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.attackfinal))) and (Movement == 0)) and Key.isDown(_global.upfinal)) and (_global.toggletaunt == "on")) and (_global.whipping == false)) {
if (_global.facing_direction == "left") {
_global.backdashing = false;
gotoAndStop ("taunt_left");
}
}
if (((((((!Key.isDown(_global.rightfinal)) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.attackfinal))) and (Movement == 0)) and Key.isDown(_global.upfinal)) and (_global.toggletaunt == "on")) and (_global.whipping == false)) {
if (_global.facing_direction == "right") {
_global.backdashing = false;
gotoAndStop ("taunt_right");
}
}
if (((((((_global.facing_direction == "left") and (_global.maincharhurt == false)) and (!Key.isDown(_global.downfinal))) and (Movement <= -1)) and (!Key.isDown(_global.leftfinal))) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
_rotation = 0;
this.gotoAndStop("Stopping_left");
}
if (((((((_global.facing_direction == "right") and (_global.maincharhurt == false)) and (!Key.isDown(_global.downfinal))) and (Movement >= 1)) and (!Key.isDown(_global.rightfinal))) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
_rotation = 0;
this.gotoAndStop("Stopping_right");
}
}
if (_global.backdashing == true) {
if (dashtime == 0) {
if (_global.facing_direction == "left") {
Movement = 13;
}
if (_global.facing_direction == "right") {
Movement = -13;
}
dashtimer++;
if (dashtimer >= 5) {
dashtime = 1;
}
}
}
if ((_global.sliding == true) and (_global.slidingstart == true)) {
if (_root.bg.hitTest(_x, _y + 25, true)) {
if (_global.facing_direction == "left") {
Movement = -16;
}
if (_global.facing_direction == "right") {
Movement = 16;
}
}
}
if (_global.backdashing == false) {
dashtimer = 0;
dashtime = 0;
}
if (Key.isDown(_global.leftfinal)) {
if (Key.isDown(_global.downfinal)) {
if ((_global.sliding == false) and (_global.whipping == false)) {
if ((_global.jbvk <= 7) and (_global.jbvk >= 1)) {
_global.facing_direction = "left";
}
}
}
if ((!Key.isDown(_global.downfinal)) and (_global.togglemovement == "on")) {
_global.facing_direction = "left";
if (Movement >= -7) {
Movement = Movement - Movement_speed;
}
if (Key.isDown(_global.attackfinal) and (Zholdcount >= 5)) {
if ((_global.movementhinder == false) and (_global.togglemovement == "on")) {
_global.backdashing = false;
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount == 0)) {
this.gotoAndStop("Walking_left");
}
}
}
if (!Key.isDown(_global.attackfinal)) {
if ((_global.jbvk <= 7) and (_global.jbvk >= 1)) {
_global.facing_direction = "left";
}
if (Movement >= -7) {
Movement = Movement - Movement_speed;
}
if (((_global.movementhinder == false) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
_global.backdashing = false;
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount == 0)) {
this.gotoAndStop("Walking_left");
}
}
}
}
}
if (Key.isDown(_global.rightfinal)) {
if (Key.isDown(_global.downfinal)) {
if ((_global.sliding == false) and (_global.whipping == false)) {
if ((_global.jbvk <= 7) and (_global.jbvk >= 1)) {
_global.facing_direction = "right";
}
}
}
if (((!Key.isDown(_global.downfinal)) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
if ((_global.jbvk <= 7) and (_global.jbvk >= 1)) {
_global.facing_direction = "right";
}
if (Movement <= 7) {
Movement = Movement + Movement_speed;
}
if ((Key.isDown(_global.attackfinal) and (Zholdcount >= 5)) and (_global.whipping == false)) {
if ((_global.movementhinder == false) and (_global.togglemovement == "on")) {
_global.backdashing = false;
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount == 0)) {
this.gotoAndStop("Walking_right");
}
}
}
if (!Key.isDown(_global.attackfinal)) {
_global.facing_direction = "right";
if (Movement <= 7) {
Movement = Movement + Movement_speed;
}
if ((_global.movementhinder == false) and (_global.togglemovement == "on")) {
_global.backdashing = false;
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount == 0)) {
this.gotoAndStop("Walking_right");
}
}
}
}
}
if (Key.isDown(_global.jumpfinal)) {
if (((_global.Zholdcount <= 2) and _root.bg.hitTest(_x, _y + 2, true)) and (_global.togglejump == "on")) {
if (!Key.isDown(_global.downfinal)) {
_root.jump_sound.start();
if (_global.facing_direction == "left") {
this.gotoAndStop("Jumping_left");
}
if (_global.facing_direction == "right") {
this.gotoAndStop("Jumping_right");
}
Jumping = 1;
}
}
}
}
Instance of Symbol 523 MovieClip "fishhead_bullet_right" in Frame 21
onClipEvent (enterFrame) {
_root.fishhead_bullet_right._x = 2695;
_root.fishhead_bullet_right._y = 3182;
_root.fishhead_bullet_left._x = 2694;
_root.fishhead_bullet_right._y = 3182;
}
Instance of Symbol 531 MovieClip in Frame 21
onClipEvent (load) {
_global.projectilecount = 0;
i = 0;
maxobjs = 10000;
var monthArr = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
var dupearray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
delete monthArr[5];
monthArr[5] = i;
}
onClipEvent (enterFrame) {
_root.holywaterleft._x = -1026;
_root.holywaterright._x = -1026;
_root.holywaterleft._y = 0;
_root.holywaterright._y = 0;
if (((_global.quest1acquired == _global.quest1required) and (_global.quest2acquired == _global.quest2required)) and (_global.quest3acquired == _global.quest3required)) {
_root.gotoAndPlay(31);
}
_global.derp = monthArr[5];
i++;
monthArr[5] = i;
if (monthArr[5] >= (maxobjs - 1)) {
i = 0;
}
}
Instance of Symbol 245 MovieClip in Frame 21
onClipEvent (load) {
_global.hurttimer = 0;
_global.recoverytimer = 0;
_global.recoverystart = false;
_global.recoverytimer = 0;
}
onClipEvent (enterFrame) {
if (_global.health >= _global.maxhealth) {
_global.health = _global.maxhealth;
}
if (_global.recoverystart == true) {
_global.togglecrouchwhip = "on";
_global.togglebackdash = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
_root.jonathan._alpha = 50;
_global.recoverytimer++;
}
if (_global.recoverytimer >= 80) {
_global.recoverystart = false;
_root.jonathan._alpha = 100;
_global.recoverytimer = 0;
}
if (_global.maincharhurt == false) {
_global.hurttimer = 0;
}
if (_global.maincharhurt == true) {
if ((!_root.bg.hitTest(_root.jonathan._x + 44, _root.jonathan._y - 70, true)) and (!_root.bg.hitTest(_root.jonathan._x - 44, _root.jonathan._y - 70, true))) {
if (_global.facing_direction == "left") {
_root.jonathan.Movement = 8;
}
if (_global.facing_direction == "right") {
_root.jonathan.Movement = -8;
}
} else {
if (_root.bg.hitTest(_root.jonathan._x + 44, _root.jonathan._y - 70, true)) {
_root.jonathan.Movement = _root.jonathan.Movement * 0;
}
if (_root.bg.hitTest(_root.jonathan._x - 44, _root.jonathan._y - 70, true)) {
_root.jonathan.Movement = _root.jonathan.Movement * 0;
}
}
_global.hurttimer++;
_global.crouchwhipping = false;
_global.togglestand = "off";
_global.togglecrouch = "off";
_global.togglewhip = "off";
_global.togglejump = "off";
_global.togglebackdash = "off";
_global.toggleslide = "off";
_global.togglemovement = "off";
_global.toggletaunt = "off";
_global.togglecrouchwhip = "off";
}
if (_global.hurttimer >= 8) {
_global.doublejumponce = false;
_global.whipjumpcount = 0;
_global.whipjump = false;
_global.jv = 1;
_global.whipping = false;
_global.jbvk = 0;
_global.bv = 1;
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
_global.djfv = 1;
}
_global.togglebackdash = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
_global.fall = 0;
_global.backdashing = false;
_global.sliding = false;
_global.recoverystart = true;
_global.togglestand = "on";
_global.togglecrouch = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglebackdash = "on";
_global.toggleslide = "on";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglecrouchwhip = "on";
_global.maincharhurt = false;
}
}
Instance of Symbol 534 MovieClip in Frame 21
onClipEvent (load) {
_global.stairwaytimer = 0;
_global.stairjumping = false;
}
onClipEvent (enterFrame) {
if (_global.stairjumping == false) {
_global.stairwaytimer = 0;
}
if (Key.isDown(_global.jumpfinal)) {
_global.stairjumping = true;
}
if (_global.stairjumping == true) {
_global.stairwaytimer++;
}
if (_global.stairwaytimer >= 20) {
_global.stairjumping = false;
}
}
Instance of Symbol 537 MovieClip in Frame 21
onClipEvent (load) {
_global.swvk = 0;
_global.subweaponjumpcount = 0;
}
onClipEvent (enterFrame) {
if (((_global.subweapon == false) and (_global.swvk >= 7)) and (!Key.isDown(_global.attackfinal))) {
_global.subweapon = true;
}
if (_global.subweaponjump == true) {
_global.subweaponjumpcount++;
}
if (_global.subweaponjumpcount >= 10) {
_global.subweaponjumpcount = 0;
_global.subweaponjump = false;
}
if ((_global.subweapon == true) and (_global.backdashing == false)) {
_global.togglestand = "off";
_global.togglemovement = "off";
_global.toggletaunt = "off";
_global.togglecrouchwhip = "off";
_global.togglewhip = "off";
_global.whipping = false;
_global.backdashingcount = 0;
_global.swvk++;
}
if (((_global.subweapon == true) and (_global.swvk >= 7)) and (!Key.isDown(_global.attackfinal))) {
_global.crouchwhipping = false;
_global.togglecrouchwhip = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.togglewhip = "off";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglestand = "on";
_global.toggleslide = "on";
_global.swvk = 0;
_global.subweapon = false;
}
}
Instance of Symbol 560 MovieClip "heart" in Frame 21
onClipEvent (enterFrame) {
healthvalue = 5;
}
Instance of Symbol 563 MovieClip "box" in Frame 21
onClipEvent (load) {
i = 0;
j = 0;
if (_global.i >= 1) {
}
}
onClipEvent (enterFrame) {
i++;
j++;
_global.i = i + 1;
_global.j = _global.j + 1;
this.onPress = function () {
duplicateMovieClip (this, "circle" + _global.i, _global.i);
};
}
Instance of Symbol 573 MovieClip "exp_fishhead" in Frame 21
onClipEvent (load) {
experience = 25;
}
Instance of Symbol 573 MovieClip "exp_stump" in Frame 21
onClipEvent (load) {
experience = 35;
}
Instance of Symbol 578 MovieClip "healthbox" in Frame 21
onClipEvent (load) {
j = 0;
}
onClipEvent (enterFrame) {
j++;
_global.j = j + 1;
}
Frame 31
stopAllSounds();
Frame 34
stop();
var youshalldie = new Sound();
youshalldie.attachSound("youshalldie");
_root.youshalldie.start();
Instance of Symbol 584 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (this._y >= 0) {
this._y = this._y - 8;
}
}
Instance of Symbol 586 MovieClip in Frame 34
onClipEvent (enterFrame) {
this.onPress = function () {
stopAllSounds();
_root.gotoAndPlay(1);
};
}
Symbol 70 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.attackfinal;
};
Symbol 72 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.jumpfinal;
};
Symbol 74 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.backdashfinal;
};
Symbol 76 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.upfinal;
};
Symbol 78 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.downfinal;
};
Symbol 80 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.leftfinal;
};
Symbol 82 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.rightfinal;
};
Symbol 92 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.whipstring;
};
Symbol 94 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.whipkey;
};
Symbol 95 MovieClip Frame 2
stop();
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 2
onClipEvent (load) {
_global.whipkey = 65;
_global.detect = true;
k = 65;
}
onClipEvent (enterFrame) {
_global.detect = true;
var keyListener = {};
keyListener.onKeyDown = function () {
var _local3 = Key.getCode();
_global.whipkey = _local3;
_global.detect = false;
_parent.gotoAndStop(3);
};
Key.addListener(keyListener);
}
Symbol 95 MovieClip Frame 3
this.onLoad = function () {
_global.detect = true;
_global.timer++;
};
this.onEnterFrame = function () {
};
Instance of Symbol 129 MovieClip in Symbol 143 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.doublejump == true) {
if (Key.isDown(_global.jumpfinal)) {
_parent.gotoAndPlay(16);
}
}
}
Symbol 143 MovieClip Frame 12
gotoAndPlay (10);
Symbol 143 MovieClip Frame 25
gotoAndPlay (23);
Symbol 144 MovieClip Frame 1
if ((Key.isDown(_global.jumpfinal) and (_global.Zholdcount <= 5)) and (_global.nojumping == false)) {
_parent.Yvelocity = -24;
}
_global.jv = 1;
Instance of Symbol 143 MovieClip in Symbol 144 MovieClip Frame 1
onClipEvent (load) {
if (_global.jumpwhipping == true) {
this.play();
this._visible = false;
}
if (_global.jumpwhipping == false) {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (jv <= 23) {
this.gotoAndPlay(jv);
}
if (jwv <= 23) {
}
if (_global.jumpwhipping == true) {
this.play();
this._visible = false;
}
if (_global.jumpwhipping == false) {
this._visible = true;
}
}
Instance of Symbol 129 MovieClip in Symbol 144 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.doublejump == false) {
if (Key.isDown(_global.jumpfinal)) {
_global.doublejump = false;
}
if (!Key.isDown(_global.jumpfinal)) {
_global.doublejump = true;
}
}
if (_global.doublejump == true) {
if (Key.isDown(_global.jumpfinal)) {
_parent.gotoAndPlay(16);
}
}
}
Instance of Symbol 129 MovieClip in Symbol 144 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_global.doublejump = false;
}
Symbol 144 MovieClip Frame 2
if ((Key.isDown(_global.jumpfinal) and (Zholdcount <= 10)) and (_global.nojumping == false)) {
_parent.Yvelocity = -24;
}
_global.jv = 2;
Symbol 144 MovieClip Frame 3
if ((Key.isDown(_global.jumpfinal) and (Zholdcount <= 10)) and (_global.nojumping == false)) {
_parent.Yvelocity = -24;
}
_global.jv = 3;
Symbol 144 MovieClip Frame 4
if ((Key.isDown(_global.jumpfinal) and (Zholdcount <= 10)) and (_global.nojumping == false)) {
_parent.Yvelocity = -24;
}
_global.jv = 4;
Symbol 144 MovieClip Frame 5
if ((Key.isDown(_global.jumpfinal) and (Zholdcount <= 10)) and (_global.nojumping == false)) {
_parent.Yvelocity = -24;
}
_global.jv = 5;
Symbol 144 MovieClip Frame 6
_global.jv = 6;
Symbol 144 MovieClip Frame 7
_global.jv = 7;
Symbol 144 MovieClip Frame 8
_global.jv = 8;
Symbol 144 MovieClip Frame 9
_global.jv = 9;
Symbol 144 MovieClip Frame 10
_global.jv = 10;
Symbol 144 MovieClip Frame 11
_global.jv = 11;
Symbol 144 MovieClip Frame 12
gotoAndPlay (10);
_global.fall = _global.fall + 1;
Symbol 144 MovieClip Frame 16
_root.jump_sound.start();
if ((Key.isDown(_global.jumpfinal) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -22;
}
_global.jv = 16;
Symbol 144 MovieClip Frame 17
if ((Key.isDown(_global.jumpfinal) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -22;
}
_global.jv = 17;
Symbol 144 MovieClip Frame 18
if ((Key.isDown(_global.jumpfinal) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -22;
}
_global.jv = 18;
Symbol 144 MovieClip Frame 19
if ((Key.isDown(_global.jumpfinal) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -20;
}
_global.jv = 19;
Symbol 144 MovieClip Frame 20
if ((Key.isDown(_global.jumpfinal) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -16;
}
_global.jv = 20;
Symbol 144 MovieClip Frame 21
if ((Key.isDown(_global.jumpfinal) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -14;
}
_global.jv = 21;
Symbol 144 MovieClip Frame 22
_global.jv = 22;
Symbol 144 MovieClip Frame 23
_global.jv = 23;
Symbol 144 MovieClip Frame 24
_global.jv = 24;
Symbol 144 MovieClip Frame 25
gotoAndPlay (23);
Symbol 151 MovieClip Frame 7
gotoAndStop (2);
Symbol 152 MovieClip Frame 2
_global.djfv = 2;
Symbol 152 MovieClip Frame 3
_global.djfv = 3;
Symbol 152 MovieClip Frame 4
_global.djfv = 4;
Symbol 152 MovieClip Frame 5
_global.djfv = 5;
Symbol 152 MovieClip Frame 6
_global.djfv = 6;
Symbol 152 MovieClip Frame 7
_global.djfv = 7;
Symbol 152 MovieClip Frame 8
_global.djfv = 8;
Symbol 152 MovieClip Frame 9
_global.djfv = 9;
Symbol 152 MovieClip Frame 10
_global.djfv = 10;
Symbol 152 MovieClip Frame 11
_global.djfv = 11;
Symbol 152 MovieClip Frame 12
_global.djfv = 12;
Symbol 152 MovieClip Frame 13
_global.djfv = 13;
Symbol 152 MovieClip Frame 14
_global.djfv = 14;
Symbol 152 MovieClip Frame 15
_global.djfv = 15;
Symbol 152 MovieClip Frame 16
_global.djfv = 16;
Symbol 152 MovieClip Frame 17
_global.djfv = 17;
Symbol 152 MovieClip Frame 18
_global.djfv = 18;
Symbol 152 MovieClip Frame 19
_global.djfv = 19;
Symbol 152 MovieClip Frame 20
_global.djfv = 20;
Symbol 152 MovieClip Frame 21
_global.djfv = 21;
Symbol 152 MovieClip Frame 22
gotoAndPlay (21);
Symbol 166 MovieClip Frame 7
stop();
Symbol 170 MovieClip Frame 6
whipvar = Math.random(1);
if (whipvar <= 0.5) {
_root.whip_sound.start();
}
if (whipvar >= 0.51) {
_root.whip_sound2.start();
}
Symbol 170 MovieClip Frame 21
stop();
Instance of Symbol 169 MovieClip "whip" in Symbol 170 MovieClip Frame 21
onClipEvent (load) {
rotationgravity = 0;
uptimer = 0;
lefttimer = 0;
righttimer = 0;
downtimer = 0;
}
onClipEvent (enterFrame) {
if (!Key.isDown(_global.upfinal)) {
uptimer = 0;
}
if (!Key.isDown(_global.leftfinal)) {
lefttimer = 0;
}
if (!Key.isDown(_global.rightfinal)) {
righttimer = 0;
}
if (!Key.isDown(_global.downfinal)) {
downtimer = 0;
}
if (((Key.isDown(_global.upfinal) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.leftfinal))) and (!Key.isDown(_global.rightfinal))) {
uptimer++;
}
if (((Key.isDown(_global.leftfinal) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.upfinal))) and (!Key.isDown(_global.rightfinal))) {
lefttimer++;
}
if (((Key.isDown(_global.rightfinal) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.leftfinal))) and (!Key.isDown(_global.upfinal))) {
righttimer++;
}
if (((Key.isDown(_global.downfinal) and (!Key.isDown(_global.rightfinal))) and (!Key.isDown(_global.leftfinal))) and (!Key.isDown(_global.upfinal))) {
downtimer++;
}
if ((uptimer <= 4) and (uptimer >= 1)) {
this._rotation = this._rotation + 50;
}
if ((downtimer <= 4) and (downtimer >= 1)) {
if (_global.facing_direction == "left") {
this._rotation = this._rotation - 15;
}
if (_global.facing_direction == "right") {
this._rotation = this._rotation + 15;
}
}
if ((lefttimer <= 4) and (lefttimer >= 1)) {
if (_global.facing_direction == "left") {
this._rotation = this._rotation + 35;
}
if (_global.facing_direction == "right") {
this._rotation = this._rotation - 35;
}
}
if ((righttimer <= 4) and (righttimer >= 1)) {
if (_global.facing_direction == "left") {
this._rotation = this._rotation - 35;
}
if (_global.facing_direction == "right") {
this._rotation = this._rotation + 35;
}
}
rotationgravity = rotationgravity * 0.9;
if (!(this._rotation === -90)) {
this._rotation = this._rotation + rotationgravity;
}
if ((this._rotation >= -100) and (this._rotation <= -85)) {
this._rotation = -90;
}
if (Key.isDown(_global.attackfinal)) {
if (this._rotation == -90) {
rotationgravity = 0;
}
if ((this._rotation >= -89) and (this._rotation <= 0)) {
if (rotationgravity >= -12) {
rotationgravity = rotationgravity - 2;
}
}
if ((this._rotation >= -180) and (this._rotation <= -90)) {
if (rotationgravity <= 12) {
rotationgravity = rotationgravity + 2;
}
}
if ((this._rotation >= 0) and (this._rotation <= 90)) {
if (rotationgravity >= -12) {
rotationgravity = rotationgravity - 2;
}
}
if ((this._rotation >= 91) and (this._rotation <= 180)) {
if (rotationgravity <= 12) {
rotationgravity = rotationgravity + 2;
}
}
}
}
Symbol 175 MovieClip Frame 7
stop();
Symbol 181 MovieClip Frame 1
_global.wjv = 1;
Symbol 181 MovieClip Frame 2
_global.wjv = 2;
Symbol 181 MovieClip Frame 3
_global.wjv = 3;
Symbol 181 MovieClip Frame 4
_global.wjv = 4;
Symbol 181 MovieClip Frame 5
_global.wjv = 5;
Symbol 181 MovieClip Frame 6
_global.wjv = 6;
Symbol 181 MovieClip Frame 7
_global.wjv = 7;
Symbol 181 MovieClip Frame 8
_global.wjv = 8;
Symbol 181 MovieClip Frame 9
_global.wjv = 9;
whipvar = Math.random(1);
if (whipvar <= 0.5) {
_root.whip_sound.start();
}
if (whipvar >= 0.51) {
_root.whip_sound2.start();
}
Symbol 181 MovieClip Frame 10
_global.wjv = 10;
Symbol 181 MovieClip Frame 11
_global.wjv = 11;
Symbol 181 MovieClip Frame 12
_global.wjv = 12;
Symbol 181 MovieClip Frame 13
_global.wjv = 13;
Symbol 181 MovieClip Frame 14
_global.wjv = 14;
Symbol 181 MovieClip Frame 15
_global.wjv = 15;
Symbol 181 MovieClip Frame 16
_global.wjv = 16;
Symbol 181 MovieClip Frame 17
_global.wjv = 17;
stop();
Symbol 185 MovieClip Frame 1
_root.backdash_sound.start();
_global.bv = 1;
Symbol 185 MovieClip Frame 2
_global.bv = 2;
Symbol 185 MovieClip Frame 3
_global.bv = 3;
Symbol 185 MovieClip Frame 4
_global.bv = 4;
Symbol 185 MovieClip Frame 5
_global.bv = 5;
Symbol 185 MovieClip Frame 6
_global.bv = 6;
Symbol 185 MovieClip Frame 7
_global.bv = 7;
Symbol 185 MovieClip Frame 8
_global.bv = 8;
Symbol 185 MovieClip Frame 9
_global.bv = 9;
Symbol 185 MovieClip Frame 10
_global.bv = 10;
Symbol 185 MovieClip Frame 11
_global.bv = 11;
Symbol 185 MovieClip Frame 12
_global.backdashing = false;
_global.bv = 12;
stop();
Symbol 186 MovieClip Frame 8
stop();
Symbol 189 MovieClip Frame 10
_root.taunt_sound.start();
Symbol 189 MovieClip Frame 137
stop();
Symbol 203 MovieClip Frame 5
stop();
Symbol 206 MovieClip Frame 4
whipvar = Math.random(1);
if (whipvar <= 0.5) {
_root.whip_sound.start();
}
if (whipvar >= 0.51) {
_root.whip_sound2.start();
}
Instance of Symbol 203 MovieClip "whip" in Symbol 206 MovieClip Frame 12
onClipEvent (load) {
rotationgravity = 0;
uptimer = 0;
lefttimer = 0;
righttimer = 0;
downtimer = 0;
}
onClipEvent (enterFrame) {
if (!Key.isDown(_global.upfinal)) {
uptimer = 0;
}
if (!Key.isDown(_global.leftfinal)) {
lefttimer = 0;
}
if (!Key.isDown(_global.rightfinal)) {
righttimer = 0;
}
if (!Key.isDown(_global.downfinal)) {
downtimer = 0;
}
if (((Key.isDown(_global.upfinal) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.leftfinal))) and (!Key.isDown(_global.rightfinal))) {
uptimer++;
}
if (((Key.isDown(_global.leftfinal) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.upfinal))) and (!Key.isDown(_global.rightfinal))) {
lefttimer++;
}
if (((Key.isDown(_global.rightfinal) and (!Key.isDown(_global.downfinal))) and (!Key.isDown(_global.leftfinal))) and (!Key.isDown(_global.upfinal))) {
righttimer++;
}
if (((Key.isDown(_global.downfinal) and (!Key.isDown(_global.rightfinal))) and (!Key.isDown(_global.leftfinal))) and (!Key.isDown(_global.upfinal))) {
}
if ((uptimer <= 4) and (uptimer >= 1)) {
this._rotation = this._rotation + 50;
}
if ((downtimer <= 4) and (downtimer >= 1)) {
if (_global.facing_direction == "left") {
this._rotation = this._rotation - 15;
}
if (_global.facing_direction == "right") {
this._rotation = this._rotation + 15;
}
}
if ((lefttimer <= 4) and (lefttimer >= 1)) {
if (_global.facing_direction == "left") {
this._rotation = this._rotation + 35;
}
if (_global.facing_direction == "right") {
this._rotation = this._rotation - 35;
}
}
if ((righttimer <= 4) and (righttimer >= 1)) {
if (_global.facing_direction == "left") {
this._rotation = this._rotation - 35;
}
if (_global.facing_direction == "right") {
this._rotation = this._rotation + 35;
}
}
rotationgravity = rotationgravity * 0.9;
if (!(this._rotation === -90)) {
this._rotation = this._rotation + rotationgravity;
}
if ((this._rotation >= -100) and (this._rotation <= -85)) {
this._rotation = -90;
}
if (Key.isDown(_global.attackfinal)) {
if (this._rotation == -90) {
rotationgravity = 0;
}
if ((this._rotation >= -89) and (this._rotation <= 0)) {
if (rotationgravity >= -12) {
rotationgravity = rotationgravity - 2;
}
}
if ((this._rotation >= -180) and (this._rotation <= -90)) {
if (rotationgravity <= 12) {
rotationgravity = rotationgravity + 2;
}
}
if ((this._rotation >= 0) and (this._rotation <= 90)) {
if (rotationgravity >= -12) {
rotationgravity = rotationgravity - 2;
}
}
if ((this._rotation >= 91) and (this._rotation <= 180)) {
if (rotationgravity <= 12) {
rotationgravity = rotationgravity + 2;
}
}
}
}
Symbol 206 MovieClip Frame 16
stop();
Symbol 211 MovieClip Frame 3
_root.slide_sound.start();
Symbol 211 MovieClip Frame 12
_global.sliding = false;
Symbol 216 MovieClip Frame 1
_root.jonathanhurtsound.start();
Symbol 216 MovieClip Frame 8
stop();
Symbol 218 MovieClip Frame 1
_root.jonathanhurtsound.start();
Symbol 223 MovieClip Frame 5
throwvar = Math.random(1);
if (throwvar <= 0.33) {
_root.comeandgetit.start();
}
if ((throwvar >= 0.335) and (throwvar <= 0.66)) {
_root.cmonchump.start();
}
if (throwvar >= 0.665) {
_root.jonathangrunt1.start();
}
Symbol 223 MovieClip Frame 8
stop();
Symbol 228 MovieClip Frame 5
throwvar = Math.random(1);
if (throwvar <= 0.33) {
_root.comeandgetit.start();
}
if ((throwvar >= 0.335) and (throwvar <= 0.66)) {
_root.cmonchump.start();
}
if (throwvar >= 0.665) {
_root.jonathangrunt1.start();
}
Symbol 228 MovieClip Frame 8
stop();
Symbol 229 MovieClip Frame 1
stop();
_global.togglecrouchwhip = "on";
_global.doublejump = false;
_global.doublejumponce = true;
_global.whipjumpcount = 0;
_global.whipjump = false;
_global.jv = 1;
_global.whipping = false;
_global.jbvk = 0;
_global.bv = 1;
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
_global.djfv = 1;
}
_global.togglebackdash = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
_global.fall = 0;
_global.backdashing = false;
_global.sliding = false;
Instance of Symbol 104 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (enterFrame) {
_global.doublejumponce = false;
_global.whipjumpcount = 0;
_global.whipjump = false;
_global.jv = 1;
_global.whipping = false;
_global.jbvk = 0;
_global.bv = 1;
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
_global.djfv = 1;
}
_global.togglebackdash = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
_global.fall = 0;
_global.backdashing = false;
_global.sliding = false;
}
Symbol 229 MovieClip Frame 21
stop();
_global.jv = 1;
_global.djfv = 1;
_global.fall = 0;
_global.sliding = false;
_global.togglewhip = "on";
_global.togglejump = "on";
Instance of Symbol 144 MovieClip in Symbol 229 MovieClip Frame 33
onClipEvent (load) {
_global.whipjumpcount = 0;
_global.whipjump = false;
_global.subweaponjump = false;
_global.subweaponjumpcount = 0;
if (jv <= 22) {
this.gotoAndPlay(jv);
}
if (_global.doublejumponce == true) {
jv = 16;
this.gotoAndPlay(16);
}
_global.togglejump = "on";
}
onClipEvent (enterFrame) {
if (Key.isDown(_global.attackfinal) and (!Key.isDown(_global.upfinal))) {
_global.whipjump = true;
_parent.gotoAndStop("jumpwhipleft");
}
if ((Key.isDown(_global.attackfinal) and Key.isDown(_global.upfinal)) and (_global.Aholdcount <= 8)) {
if (_global.mp >= 16) {
_global.subweaponjump = true;
_parent.gotoAndStop("subweapon_throw_air_left");
}
}
}
Instance of Symbol 152 MovieClip in Symbol 229 MovieClip Frame 55
onClipEvent (load) {
_global.whipjumpcount = 0;
this.gotoAndPlay(djfv);
}
onClipEvent (enterFrame) {
_global.djfv = _global.djfv + 1;
if (_global.djfv >= 2) {
this.gotoAndPlay(djfv);
}
if (Key.isDown(_global.attackfinal)) {
_global.whipjump = true;
_global.doublejumponce = false;
_parent.gotoAndStop("jumpwhipleft");
}
if ((Key.isDown(_global.attackfinal) and Key.isDown(_global.upfinal)) and (_global.Aholdcount <= 8)) {
if (_global.mp >= 16) {
_global.doublejumponce = false;
_global.subweaponjump = true;
_parent.gotoAndStop("subweapon_throw_air_left");
}
}
}
Symbol 229 MovieClip Frame 71
_global.whipping = true;
_global.crouchwhipping = false;
_global.togglejump = "off";
_global.toggleslide = "off";
_global.togglemovement = "off";
_global.togglecrouch = "off";
_global.toggletaunt = "off";
Instance of Symbol 170 MovieClip "whipping" in Symbol 229 MovieClip Frame 71
onClipEvent (load) {
_global.Aholdcount = 0;
_global.togglestand = "off";
if (_global.whipjump == true) {
_global.whipjumpcount = _global.wjv;
_global.jbvk = 21;
this.gotoAndStop(21);
}
}
onClipEvent (enterFrame) {
_global.togglecrouchwhip = "off";
_global.togglemovement = "off";
}
Instance of Symbol 181 MovieClip "whipping" in Symbol 229 MovieClip Frame 85
onClipEvent (load) {
_global.togglemovement = "on";
}
onClipEvent (enterFrame) {
if (_global.whipjumpcount <= 14) {
_global.whipjump = true;
}
if (_global.whipjumpcount >= 15) {
_global.whipjump = false;
_global.nojumping = true;
_parent.gotoAndStop("Jumping_left");
}
if (_global.doublejumponce == false) {
if (Key.isDown(_global.jumpfinal) and (Zholdcount <= 0)) {
_global.doublejumponce = true;
_parent.gotoAndStop("Jumping_left");
}
}
}
Symbol 229 MovieClip Frame 100
_global.togglejump = "off";
_global.togglewhip = "on";
_global.whipping = false;
Instance of Symbol 185 MovieClip in Symbol 229 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndPlay(_global.bv);
_global.backdashing = true;
}
onClipEvent (enterFrame) {
_global.jbvk = 8;
_global.backdashingcount++;
}
Symbol 229 MovieClip Frame 111
_global.sliding = false;
_global.togglebackdash = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
Instance of Symbol 189 MovieClip in Symbol 229 MovieClip Frame 121
onClipEvent (enterFrame) {
_global.mp = _global.mp + 0.05;
}
Symbol 229 MovieClip Frame 130
_global.togglewhip = "on";
_global.toggleslide = "on";
_global.whipping = false;
Instance of Symbol 192 MovieClip in Symbol 229 MovieClip Frame 130
onClipEvent (load) {
_global.sliding = false;
}
Symbol 229 MovieClip Frame 142
_global.togglejump = "off";
_global.togglebackdash = "off";
_global.toggleslide = "off";
_global.togglemovement = "off";
_global.togglestand = "off";
Symbol 229 MovieClip Frame 159
_global.togglejump = "off";
Instance of Symbol 211 MovieClip in Symbol 229 MovieClip Frame 159
onClipEvent (load) {
_global.sliding = true;
_global.slidingstart = true;
}
Symbol 229 MovieClip Frame 172
_global.togglejump = "off";
Symbol 229 MovieClip Frame 189
_global.togglejump = "off";
Instance of Symbol 223 MovieClip in Symbol 229 MovieClip Frame 206
onClipEvent (load) {
timer = 0;
_global.meep = "pancakes";
}
onClipEvent (enterFrame) {
timer++;
if ((timer >= 2) and (timer <= 2.1)) {
_root.holywaterleft.duplicateMovieClip("hwl" + _global.derp, _global.derp);
_root["hwl" + _global.derp]._x = _parent._x - 20;
_root["hwl" + _global.derp]._y = _parent._y - 50;
_global.meep = _global.derp;
_global.mp = _global.mp - 15;
_global.derp = _global.derp + 20;
}
}
Instance of Symbol 228 MovieClip in Symbol 229 MovieClip Frame 232
onClipEvent (load) {
_global.togglemovement = "on";
timer = 0;
_global.meep = "pancakes";
}
onClipEvent (enterFrame) {
timer++;
if ((timer >= 2) and (timer <= 2.1)) {
_root.holywaterleft.duplicateMovieClip("hwl" + _global.derp, _global.derp);
_root["hwl" + _global.derp]._x = _parent._x - 30;
_root["hwl" + _global.derp]._y = _parent._y - 50;
_global.meep = _global.derp;
_global.mp = _global.mp - 15;
_global.derp = _global.derp + 20;
}
if (_global.subweaponjumpcount <= 5) {
_global.subweaponjump = true;
}
if (_global.subweaponjumpcount >= 6) {
_global.subweaponjump = false;
_global.nojumping = true;
_parent.gotoAndStop("Jumping_left");
}
if (_global.doublejumponce == false) {
if (Key.isDown(_global.jumpfinal) and (Zholdcount <= 0)) {
_global.doublejumponce = true;
_parent.gotoAndStop("Jumping_left");
}
}
}
Symbol 229 MovieClip Frame 253
stop();
_global.togglecrouchwhip = "on";
_global.doublejump = false;
_global.doublejumponce = true;
_global.whipjumpcount = 0;
_global.whipjump = false;
_global.jv = 1;
_global.whipping = false;
_global.jbvk = 0;
_global.bv = 1;
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
_global.djfv = 1;
}
_global.togglebackdash = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
_global.fall = 0;
_global.backdashing = false;
_global.sliding = false;
Instance of Symbol 104 MovieClip in Symbol 229 MovieClip Frame 253
onClipEvent (enterFrame) {
_global.doublejumponce = false;
_global.whipjumpcount = 0;
_global.whipjump = false;
_global.jv = 1;
_global.whipping = false;
_global.jbvk = 0;
_global.bv = 1;
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
_global.djfv = 1;
}
_global.togglebackdash = "on";
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
_global.fall = 0;
_global.backdashing = false;
_global.sliding = false;
}
Symbol 229 MovieClip Frame 274
stop();
_global.jv = 1;
_global.djfv = 1;
_global.fall = 0;
_global.sliding = false;
_global.togglewhip = "on";
_global.togglejump = "on";
Instance of Symbol 144 MovieClip in Symbol 229 MovieClip Frame 284
onClipEvent (load) {
_global.whipjumpcount = 0;
_global.whipjump = false;
_global.subweaponjump = false;
_global.subweaponjumpcount = 0;
if (jv <= 22) {
this.gotoAndPlay(jv);
}
if (_global.doublejumponce == true) {
jv = 16;
this.gotoAndPlay(16);
}
_global.togglejump = "on";
}
onClipEvent (enterFrame) {
if (Key.isDown(_global.attackfinal) and (!Key.isDown(_global.upfinal))) {
_global.whipjump = true;
_parent.gotoAndStop("jumpwhipright");
}
if ((Key.isDown(_global.attackfinal) and Key.isDown(_global.upfinal)) and (_global.Aholdcount <= 8)) {
if (_global.mp >= 16) {
_global.subweaponjump = true;
_parent.gotoAndStop("subweapon_throw_air_right");
}
}
}
Symbol 229 MovieClip Frame 314
_global.togglejump = "off";
_global.togglewhip = "on";
_global.whipping = false;
Instance of Symbol 185 MovieClip in Symbol 229 MovieClip Frame 314
onClipEvent (load) {
this.gotoAndPlay(_global.bv);
_global.backdashing = true;
}
onClipEvent (enterFrame) {
_global.jbvk = 8;
_global.backdashingcount++;
}
Symbol 229 MovieClip Frame 326
_global.sliding = false;
_global.togglebackdash = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
Instance of Symbol 189 MovieClip in Symbol 229 MovieClip Frame 337
onClipEvent (enterFrame) {
_global.mp = _global.mp + 0.05;
}
Instance of Symbol 152 MovieClip in Symbol 229 MovieClip Frame 350
onClipEvent (load) {
_global.whipjumpcount = 0;
this.gotoAndPlay(djfv);
}
onClipEvent (enterFrame) {
_global.djfv = _global.djfv + 1;
if (_global.djfv >= 2) {
this.gotoAndPlay(djfv);
}
if (Key.isDown(_global.attackfinal)) {
_global.whipjump = true;
_global.doublejumponce = true;
_parent.gotoAndStop("jumpwhipright");
}
if ((Key.isDown(_global.attackfinal) and Key.isDown(_global.upfinal)) and (_global.Aholdcount <= 8)) {
if (_global.mp >= 16) {
_global.doublejumponce = false;
_global.subweaponjump = true;
_parent.gotoAndStop("subweapon_throw_air_left");
}
}
}
Symbol 229 MovieClip Frame 367
_global.togglewhip = "on";
_global.toggleslide = "on";
_global.whipping = false;
Instance of Symbol 192 MovieClip in Symbol 229 MovieClip Frame 367
onClipEvent (load) {
_global.sliding = false;
}
Symbol 229 MovieClip Frame 378
_global.togglejump = "off";
_global.togglebackdash = "off";
_global.toggleslide = "off";
_global.togglemovement = "off";
_global.togglestand = "off";
Symbol 229 MovieClip Frame 405
_global.togglejump = "off";
Instance of Symbol 211 MovieClip in Symbol 229 MovieClip Frame 405
onClipEvent (load) {
_global.sliding = true;
_global.slidingstart = true;
}
Symbol 229 MovieClip Frame 415
_global.whipping = true;
_global.togglejump = "off";
_global.toggleslide = "off";
_global.togglemovement = "off";
_global.togglecrouch = "off";
_global.toggletaunt = "off";
Instance of Symbol 170 MovieClip "whipping" in Symbol 229 MovieClip Frame 415
onClipEvent (load) {
_global.Aholdcount = 0;
_global.togglestand == "off";
if (_global.whipjump == true) {
_global.whipjumpcount = _global.wjv + 5;
_global.jbvk = 21;
this.gotoAndStop(21);
}
}
onClipEvent (enterFrame) {
_global.togglecrouchwhip = "off";
}
Instance of Symbol 181 MovieClip "whipping" in Symbol 229 MovieClip Frame 427
onClipEvent (load) {
_global.togglemovement = "on";
}
onClipEvent (enterFrame) {
if (_global.whipjumpcount <= 14) {
_global.whipjump = true;
}
if (_global.whipjumpcount >= 15) {
_global.whipjump = false;
_global.nojumping = true;
_parent.gotoAndStop("Jumping_right");
}
if (_global.doublejumponce == false) {
if (Key.isDown(_global.jumpfinal) and (Zholdcount <= 0)) {
_global.doublejumponce = true;
_parent.gotoAndStop("Jumping_right");
}
}
}
Symbol 229 MovieClip Frame 442
_global.togglejump = "off";
Symbol 229 MovieClip Frame 461
_global.togglejump = "off";
Instance of Symbol 223 MovieClip in Symbol 229 MovieClip Frame 476
onClipEvent (load) {
timer = 0;
_global.meep = 0;
}
onClipEvent (enterFrame) {
timer++;
if ((timer >= 2) and (timer <= 2.1)) {
_root.holywaterright.duplicateMovieClip("hwr" + _global.derp, _global.derp);
_root["hwr" + _global.derp]._x = _parent._x + 20;
_root["hwr" + _global.derp]._y = _parent._y - 50;
_global.meep = _global.derp;
_global.mp = _global.mp - 15;
_global.derp = _global.derp + 20;
}
}
Instance of Symbol 228 MovieClip in Symbol 229 MovieClip Frame 502
onClipEvent (load) {
_global.togglemovement = "on";
timer = 0;
_global.meep = "pancakes";
}
onClipEvent (enterFrame) {
timer++;
if ((timer >= 2) and (timer <= 2.1)) {
_root.holywaterright.duplicateMovieClip("hwr" + _global.derp, _global.derp);
_root["hwr" + _global.derp]._x = _parent._x + 30;
_root["hwr" + _global.derp]._y = _parent._y - 50;
_global.meep = _global.derp;
_global.mp = _global.mp - 15;
_global.derp = _global.derp + 20;
}
if (_global.subweaponjumpcount <= 5) {
_global.subweaponjump = true;
}
if (_global.subweaponjumpcount >= 6) {
_global.subweaponjump = false;
_global.nojumping = true;
_parent.gotoAndStop("Jumping_right");
}
if (_global.doublejumponce == false) {
if (Key.isDown(_global.jumpfinal) and (Zholdcount <= 0)) {
_global.doublejumponce = true;
_parent.gotoAndStop("Jumping_right");
}
}
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 11
_global.backdashing = false;
_global.movementhinder = false;
gotoAndStop (1);
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 7
if (_root.jonathan.facing_direction == "left") {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
_global.slidingstart = false;
}
}
if (_root.jonathan.facing_direction == "right") {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
_global.slidingstart = false;
}
}
Symbol 236 MovieClip Frame 18
_global.sliding = false;
_global.slidingstart = false;
_global.getridofplatforms = false;
gotoAndStop (1);
_global.movementhinder = false;
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 18
_global.nojumping = false;
gotoAndStop (1);
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 24
_global.togglewhip = "off";
_global.whipping = false;
_global.jbvk = 0;
Instance of Symbol 236 MovieClip "bdcoder" in Symbol 242 MovieClip Frame 24
onClipEvent (load) {
_global.togglewhip = "off";
_global.whipping = false;
_global.jbvk = 0;
_parent.gotoAndStop(1);
}
Symbol 242 MovieClip Frame 25
gotoAndStop (1);
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 24
_global.togglewhip = "off";
_global.whipping = false;
_global.jbvk = 0;
Instance of Symbol 236 MovieClip "bdcoder" in Symbol 245 MovieClip Frame 24
onClipEvent (load) {
_global.togglewhip = "off";
_global.whipping = false;
_global.jbvk = 0;
_parent.gotoAndStop(1);
}
Symbol 245 MovieClip Frame 25
gotoAndStop (1);
Symbol 257 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.jumpstring;
};
Symbol 260 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.jumpkey;
};
Symbol 261 MovieClip Frame 2
stop();
Instance of Symbol 260 MovieClip in Symbol 261 MovieClip Frame 2
onClipEvent (load) {
_global.jumpkey = 90;
_global.detect = true;
k = 90;
}
onClipEvent (enterFrame) {
_global.detect = true;
var keyListener2 = {};
keyListener2.onKeyDown = function () {
var _local3 = Key.getCode();
_global.jumpkey = _local3;
_parent.gotoAndStop(3);
};
Key.addListener(keyListener2);
}
Symbol 261 MovieClip Frame 3
stop();
this.onLoad = function () {
_global.detect = true;
_global.timer++;
};
this.onEnterFrame = function () {
_global.timer = 1;
};
Symbol 267 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.backdashstring;
};
Symbol 270 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.backdashkey;
};
Symbol 271 MovieClip Frame 2
stop();
Instance of Symbol 270 MovieClip in Symbol 271 MovieClip Frame 2
onClipEvent (load) {
_global.backdashkey = 83;
_global.detect = true;
k = 83;
}
onClipEvent (enterFrame) {
_global.detect = true;
var keyListener2 = {};
keyListener2.onKeyDown = function () {
var _local3 = Key.getCode();
_global.backdashkey = _local3;
_parent.gotoAndStop(3);
};
Key.addListener(keyListener2);
}
Symbol 271 MovieClip Frame 3
stop();
this.onLoad = function () {
_global.detect = true;
_global.timer++;
};
this.onEnterFrame = function () {
_global.timer = 1;
};
Symbol 275 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.upstring;
};
Symbol 278 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.upkey;
};
Symbol 279 MovieClip Frame 2
stop();
Instance of Symbol 278 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
_global.upkey = 38;
_global.detect = true;
k = 38;
}
onClipEvent (enterFrame) {
_global.detect = true;
var keyListener2 = {};
keyListener2.onKeyDown = function () {
var _local3 = Key.getCode();
_global.upkey = _local3;
_parent.gotoAndStop(3);
};
Key.addListener(keyListener2);
}
Symbol 279 MovieClip Frame 3
stop();
this.onLoad = function () {
_global.detect = true;
_global.timer++;
};
this.onEnterFrame = function () {
_global.timer = 1;
};
Symbol 283 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.downstring;
};
Symbol 286 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.downkey;
};
Symbol 287 MovieClip Frame 2
stop();
Instance of Symbol 286 MovieClip in Symbol 287 MovieClip Frame 2
onClipEvent (load) {
_global.downkey = 40;
_global.detect = true;
k = 40;
}
onClipEvent (enterFrame) {
_global.detect = true;
var keyListener2 = {};
keyListener2.onKeyDown = function () {
var _local3 = Key.getCode();
_global.downkey = _local3;
_parent.gotoAndStop(3);
};
Key.addListener(keyListener2);
}
Symbol 287 MovieClip Frame 3
stop();
this.onLoad = function () {
_global.detect = true;
_global.timer++;
};
this.onEnterFrame = function () {
_global.timer = 1;
};
Symbol 291 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.leftstring;
};
Symbol 294 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.leftkey;
};
Symbol 295 MovieClip Frame 2
stop();
Instance of Symbol 294 MovieClip in Symbol 295 MovieClip Frame 2
onClipEvent (load) {
_global.leftkey = 37;
_global.detect = true;
k = 37;
}
onClipEvent (enterFrame) {
_global.detect = true;
var keyListener2 = {};
keyListener2.onKeyDown = function () {
var _local3 = Key.getCode();
_global.leftkey = _local3;
_parent.gotoAndStop(3);
};
Key.addListener(keyListener2);
}
Symbol 295 MovieClip Frame 3
stop();
this.onLoad = function () {
_global.detect = true;
_global.timer++;
};
this.onEnterFrame = function () {
_global.timer = 1;
};
Symbol 299 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.rightstring;
};
Symbol 302 MovieClip Frame 1
this.onEnterFrame = function () {
key.text = _global.rightkey;
};
Symbol 303 MovieClip Frame 2
stop();
Instance of Symbol 302 MovieClip in Symbol 303 MovieClip Frame 2
onClipEvent (load) {
_global.rightkey = 39;
_global.detect = true;
k = 39;
}
onClipEvent (enterFrame) {
_global.detect = true;
var keyListener2 = {};
keyListener2.onKeyDown = function () {
var _local3 = Key.getCode();
_global.rightkey = _local3;
_parent.gotoAndStop(3);
};
Key.addListener(keyListener2);
}
Symbol 303 MovieClip Frame 3
stop();
this.onLoad = function () {
_global.detect = true;
_global.timer++;
};
this.onEnterFrame = function () {
_global.timer = 1;
};
Symbol 388 MovieClip Frame 1
stop();
Instance of Symbol 388 MovieClip in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
if (_root.jonathan.Yvelocity <= -0.5) {
this.gotoAndStop(2);
}
if (_root.jonathan.Yvelocity >= 0) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.jonathan.Yvelocity <= -0.5) {
this.gotoAndStop(2);
}
if (_global.getridofplatforms == true) {
this.gotoAndStop(2);
}
if ((_root.jonathan.Yvelocity >= 0) and (_global.getridofplatforms == false)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 391 MovieClip "bg" in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 408 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
healthtext.text = _global.health;
Symbol 423 MovieClip Frame 1
exptext.text = _global.experience_level;
Symbol 425 MovieClip Frame 1
exptext.text = _global.experience_level;
Instance of Symbol 408 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
_global.subweapon_choice = "holy_water";
}
onClipEvent (enterFrame) {
if (_global.subweapon_choice == "knife") {
this.gotoAndStop(1);
}
if (_global.subweapon_choice == "holy_water") {
this.gotoAndStop(2);
}
if (_global.subweapon_choice == "cross") {
this.gotoAndStop(3);
}
if (_global.subweapon_choice == "discus") {
this.gotoAndStop(4);
}
}
Instance of Symbol 410 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
this._width = _global.health * 0.65;
}
onClipEvent (enterFrame) {
this._width = _global.health * 0.65;
}
Instance of Symbol 415 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
_global.mp = 65;
}
onClipEvent (enterFrame) {
if (_global.mp >= 0) {
this._width = _global.mp;
}
if (_global.mp >= 65) {
_global.mp = 65;
}
if (_global.mp <= 0) {
_global.mp = 0;
}
if (this._width <= 64.85) {
_global.mp = _global.mp + 0.15;
}
}
Instance of Symbol 417 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
_global.experience = 1;
_global.experience_level = 0;
}
onClipEvent (enterFrame) {
if (this._width <= 65) {
if (_global.experience_level >= 1) {
this._width = _global.experience / (3 + (_global.experience_level / 2));
}
if (_global.expereince_level <= 0) {
this._width = _global.experience / 3;
}
}
if (this._width >= 65) {
this._width = 65;
_global.attack = (_global.attack + _global.experience_level) + 2;
_global.experience_level = _global.experience_level + 1;
_root.levelupsound.start();
_parent.levelup._visible = true;
_global.experience = 0;
}
}
Instance of Symbol 429 MovieClip "levelup" in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (this._visible == true) {
timer++;
if (timer >= 20) {
this._visible = false;
}
}
if (this._visible == false) {
timer = 0;
}
}
Symbol 433 MovieClip Frame 1
this.onEnterFrame = function () {
itemval.text = _global.itemvalue;
};
Symbol 438 MovieClip Frame 1
this.onEnterFrame = function () {
quest1text.text = _global.quest1name;
};
Symbol 441 MovieClip Frame 1
this.onEnterFrame = function () {
itemtext.text = _global.quest1requirement;
};
Symbol 443 MovieClip Frame 1
this.onEnterFrame = function () {
itemtext.text = _global.quest1acquired;
};
Symbol 445 MovieClip Frame 1
this.onEnterFrame = function () {
itemtext.text = _global.quest1required;
};
Symbol 448 MovieClip Frame 1
this.onEnterFrame = function () {
quest2text.text = _global.quest2name;
};
Symbol 451 MovieClip Frame 1
this.onEnterFrame = function () {
itemtext.text = _global.quest2requirement;
};
Symbol 453 MovieClip Frame 1
this.onEnterFrame = function () {
itemtext.text = _global.quest2acquired;
};
Symbol 455 MovieClip Frame 1
this.onEnterFrame = function () {
itemtext.text = _global.quest2required;
};
Symbol 458 MovieClip Frame 1
this.onEnterFrame = function () {
quest3text.text = _global.quest3name;
};
Symbol 461 MovieClip Frame 1
this.onEnterFrame = function () {
itemtext.text = _global.quest3requirement;
};
Symbol 463 MovieClip Frame 1
this.onEnterFrame = function () {
itemtext.text = _global.quest3acquired;
};
Symbol 465 MovieClip Frame 1
this.onEnterFrame = function () {
itemtext.text = _global.quest3required;
};
Symbol 483 MovieClip Frame 13
stop();
Symbol 493 MovieClip Frame 10
stop();
Symbol 494 MovieClip Frame 1
stop();
Instance of Symbol 470 MovieClip in Symbol 494 MovieClip Frame 1
onClipEvent (load) {
gravity = 2;
speed = 3;
maxspeed = 4;
hitground = false;
}
onClipEvent (enterFrame) {
if (!_root.bg.hitTest(_parent._x + 5, _parent._y - 8, true)) {
_parent._x = _parent._x + speed;
}
_parent._y = _parent._y + gravity;
if (speed <= maxspeed) {
speed = speed + 0.5;
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
if (gravity <= 8) {
gravity = gravity + 0.5;
}
} else {
while (_root.bg.hitTest(_parent._x, _parent._y, true)) {
if (hitground == false) {
_parent.gotoAndPlay(2);
hitground = true;
}
_parent._y = _parent._y - 1;
gravity = 2;
}
}
}
Symbol 494 MovieClip Frame 2
_root.glassbreak.start();
Symbol 494 MovieClip Frame 14
stop();
Instance of Symbol 470 MovieClip in Symbol 494 MovieClip Frame 14
onClipEvent (load) {
if (_root.bg.hitTest(_parent._x, _parent._y + 2)) {
_parent.unloadMovie();
}
}
Symbol 495 MovieClip Frame 1
stop();
Instance of Symbol 470 MovieClip in Symbol 495 MovieClip Frame 1
onClipEvent (load) {
gravity = 2;
speed = 3;
maxspeed = 4;
hitground = false;
}
onClipEvent (enterFrame) {
if (!_root.bg.hitTest(_parent._x - 5, _parent._y - 8, true)) {
_parent._x = _parent._x - speed;
}
_parent._y = _parent._y + gravity;
if (speed <= maxspeed) {
speed = speed + 0.5;
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
if (gravity <= 8) {
gravity = gravity + 0.5;
}
} else {
while (_root.bg.hitTest(_parent._x, _parent._y, true)) {
if (hitground == false) {
_parent.gotoAndPlay(2);
hitground = true;
}
_parent._y = _parent._y - 1;
gravity = 2;
}
}
}
Symbol 495 MovieClip Frame 2
_root.glassbreak.start();
Symbol 495 MovieClip Frame 14
stop();
Instance of Symbol 470 MovieClip in Symbol 495 MovieClip Frame 14
onClipEvent (load) {
if (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
_parent.unloadMovie();
}
}
Symbol 497 MovieClip Frame 1
function camControl() {
rp.x = _x;
rp.y = _y;
var _local5 = camH * (_yscale * 0.01);
var _local6 = camW * (_xscale * 0.01);
var _local3 = sH / _local5;
var _local4 = sW / _local6;
_x2 = (_local6 / 2) * _local4;
_y2 = (_local5 / 2) * _local3;
_xscale2 = _local4 * 100;
_yscale2 = _local3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x + (value - _local2.x);
}
function get_x2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function set_y2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._y = _parent._y + (value - _local2.y);
}
function get_y2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function get_xscale2() {
return(_parent._xscale);
}
function set_xscale2(value) {
setProperty2("_xscale", value);
}
function get_yscale2() {
return(_parent._yscale);
}
function set_yscale2(value) {
setProperty2("_yscale", value);
}
function get_rotation2() {
return(parent.rotation);
}
function set_rotation2(value) {
setProperty2("_rotation", value);
}
function setProperty2(prop, n) {
var _local3 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local3);
_parent[prop] = n;
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x - (_local2.x - _local3.x);
_parent._y = _parent._y - (_local2.y - _local3.y);
}
_visible = false;
addProperty("_x2", get_x2, set_x2);
addProperty("_y2", get_y2, set_y2);
addProperty("_xscale2", get_xscale2, set_xscale2);
addProperty("_yscale2", get_yscale2, set_yscale2);
addProperty("_rotation2", get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {x:this._x, y:this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
Symbol 510 MovieClip Frame 22
stop();
this.onEnterFrame = function () {
_parent._parent.unloadMovie();
};
Symbol 511 MovieClip Frame 1
stop();
Instance of Symbol 506 MovieClip in Symbol 511 MovieClip Frame 28
onClipEvent (load) {
_root.stumphit.start();
}
Instance of Symbol 510 MovieClip in Symbol 511 MovieClip Frame 40
onClipEvent (load) {
if (_global.quest2acquired <= (_global.quest2required - 1)) {
_global.quest2acquired = _global.quest2acquired + 1;
}
movement_timer = Math.random(50) * 30;
movement_timer_value = Math.round(movement_timer);
_root.exp_stump.duplicateMovieClip("expstump" + _global.derp, _global.derp);
_root["expstump" + _global.derp]._x = _parent._parent._x;
_root["expstump" + _global.derp]._y = _parent._parent._y - 35;
_global.derp = _global.derp + 20;
}
Symbol 511 MovieClip Frame 83
stop();
Instance of Symbol 506 MovieClip in Symbol 511 MovieClip Frame 83
onClipEvent (load) {
_root.stumphit.start();
}
Instance of Symbol 510 MovieClip in Symbol 511 MovieClip Frame 95
onClipEvent (load) {
if (_global.quest2acquired <= (_global.quest2required - 1)) {
_global.quest2acquired = _global.quest2acquired + 1;
}
movement_timer = Math.random(50) * 30;
movement_timer_value = Math.round(movement_timer);
_root.exp_stump.duplicateMovieClip("expstump" + _global.derp, _global.derp);
_root["expstump" + _global.derp]._x = _parent._parent._x;
_root["expstump" + _global.derp]._y = _parent._parent._y - 35;
_global.derp = _global.derp + 20;
}
Instance of Symbol 511 MovieClip in Symbol 514 MovieClip Frame 1
onClipEvent (load) {
whiphurt = false;
holywaterhurt = false;
hurt = false;
hurt_timer = 0;
maxhealth = 135;
health = maxhealth;
death = false;
movement_phase = 0;
movement_timer_value = (Math.random(6) * 100) + 200;
movement_hundred_value = Math.random(6) * 300;
movement_hundred_rounded = Math.round(movement_hundred_value);
standing_timer = 0;
speed = 0;
facing_direction = "left";
movement_speed = 0;
movement_timer = 0;
gravity = 0;
power = 2;
_parent.health_bar._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root["hwl" + _global.meep])) {
if (hurt == false) {
holywaterhurt = true;
hurt = true;
}
}
if (this.hitTest(_root["hwr" + _global.meep])) {
if (hurt == false) {
holywaterhurt = true;
hurt = true;
}
}
if ((hurt_timer >= 2) and (hurt_timer <= 2.01)) {
_root.box.duplicateMovieClip("boxy" + _global.derp, _global.derp);
_root["boxy" + _global.derp]._x = _parent._x;
_root["boxy" + _global.derp]._y = _parent._y - 35;
_global.derp = _global.derp + 20;
health = health - _global.damage;
if (whiphurt == true) {
_root.xhitsound.start();
}
if (holywaterhurt == true) {
_root.beam.start();
}
}
if ((health <= (maxhealth - 5)) and (death == false)) {
_parent.health_bar._visible = true;
}
if (hurt == false) {
hurt_timer = 0;
}
_parent.health_bar._width = health / 3;
_parent._x = _parent._x + speed;
_parent._y = _parent._y + gravity;
if (_root.bg.hitTest(_parent._x - 28, _parent._y - 25, true) and (facing_direction == "left")) {
movement_timer = movement_timer_value + 1;
}
if (_root.bg.hitTest(_parent._x + 28, _parent._y - 25, true) and (facing_direction == "right")) {
movement_timer = movement_timer_value + 1;
}
if (_parent.hitTest(_root.jonathan.whipping.whip) and (hurt == false)) {
whiphurt = true;
hurt = true;
}
if (((hurt == true) and (facing_direction == "left")) and (death == false)) {
speed = 0;
if (hurt_timer <= 100) {
hurt_timer++;
}
if (hurt_timer >= 15) {
hurt = false;
}
this.gotoAndStop("hurt_left");
}
if (((hurt == true) and (facing_direction == "right")) and (death == false)) {
speed = 0;
if (hurt_timer <= 100) {
hurt_timer++;
}
if (hurt_timer >= 15) {
hurt = false;
}
this.gotoAndStop("hurt_right");
}
if (health <= 0) {
death = true;
}
if (death == true) {
_parent.health_bar._visible = false;
if (facing_direction == "left") {
this.gotoAndStop("die_left");
}
if (facing_direction == "right") {
this.gotoAndStop("die_right");
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
if (gravity <= 8) {
gravity = gravity + 0.5;
}
} else {
while (_root.bg.hitTest(_parent._x, _parent._y, true)) {
_parent._y = _parent._y - 1;
gravity = 2;
}
}
if (_root.bg.hitTest(_parent._x, _parent._y + 5, true)) {
if ((movement_timer <= 400) and (movement_phase <= 1)) {
movement_timer++;
}
if (((movement_timer >= movement_timer_value) and (facing_direction == "left")) and (death == false)) {
facing_direction = "right";
movement_hundred_value = Math.random(6) * 300;
movement_hundred_rounded = Math.round(movement_hundred_value);
movement_timer_value = (Math.random(6) * 100) + movement_hundred_rounded;
movement_phase = movement_phase + 1;
movement_timer = 0;
}
if (((movement_timer >= movement_timer_value) and (facing_direction == "right")) and (death == false)) {
facing_direction = "left";
movement_hundred_value = Math.random(6) * 300;
movement_hundred_rounded = Math.round(movement_hundred_value);
movement_timer_value = (Math.random(6) * 100) + movement_hundred_rounded;
movement_phase = movement_phase + 1;
movement_timer = 0;
}
if (((facing_direction == "left") and (hurt == false)) and (death == false)) {
if (movement_phase <= 1) {
standing_timer = 0;
speed = -1;
this.gotoAndStop("walking_left");
}
if (movement_phase >= 2) {
speed = 0;
this.gotoAndStop("standing_left");
if (standing_timer <= 100) {
standing_timer++;
}
if (standing_timer >= 50) {
movement_phase = 0;
}
}
}
if (((facing_direction == "right") and (hurt == false)) and (death == false)) {
if (movement_phase <= 1) {
standing_timer = 0;
speed = 1;
this.gotoAndStop("walking_right");
}
if (movement_phase >= 2) {
speed = 0;
this.gotoAndStop("standing_right");
if (standing_timer <= 100) {
standing_timer++;
}
if (standing_timer >= 50) {
movement_phase = 0;
}
}
}
}
if (((_global.backdashingcount <= 0) and (death == false)) and (_global.jbvk <= 7)) {
if (((_parent.hitTest(_root.jonathan._x, _root.jonathan._y - 35) and (!_parent.hitTest(_root.jonathan.whipping.whip))) and (_global.recoverystart == false)) and (_global.maincharhurt == false)) {
_global.health = _global.health - 10;
_global.maincharhurt = true;
}
}
}
Instance of Symbol 513 MovieClip "health_bar" in Symbol 514 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 517 MovieClip Frame 9
stop();
Instance of Symbol 522 MovieClip "fishhead_bullet_left" in Symbol 523 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.bg.hitTest(_parent._x, _parent._y, true)) {
_parent._x = _parent._x + 5;
}
if (_root.bg.hitTest(_parent._x, _parent._y, true)) {
_root.fish_shoot.start();
_parent.unloadMovie();
}
if (_root.jonathan.whipping.whip.hitTest(this)) {
_root.fish_shoot.start();
_parent.unloadMovie();
}
if ((_global.backdashingcount <= 0) and (_global.jbvk <= 7)) {
if (((this.hitTest(_root.jonathan) and (_global.recoverystart == false)) and (_global.maincharhurt == false)) and (!this.hitTest(_root.jonathan.whipping.whip))) {
_global.health = _global.health - 5;
_global.maincharhurt = true;
}
}
}
Instance of Symbol 528 MovieClip "fishhead_bullet_left" in Symbol 529 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.bg.hitTest(_parent._x, _parent._y, true)) {
_parent._x = _parent._x - 5;
}
if (_root.bg.hitTest(_parent._x, _parent._y, true)) {
_root.fish_shoot.start();
_parent.unloadMovie();
}
if (_root.jonathan.whipping.whip.hitTest(this)) {
_root.fish_shoot.start();
_parent.unloadMovie();
}
if ((_global.backdashingcount <= 0) and (_global.jbvk <= 7)) {
if (((this.hitTest(_root.jonathan) and (_global.recoverystart == false)) and (_global.maincharhurt == false)) and (!this.hitTest(_root.jonathan.whipping.whip))) {
_global.health = _global.health - 5;
_global.maincharhurt = true;
}
}
}
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 24
_global.togglewhip = "off";
_global.whipping = false;
_global.jbvk = 0;
Instance of Symbol 236 MovieClip "bdcoder" in Symbol 534 MovieClip Frame 24
onClipEvent (load) {
_global.togglewhip = "off";
_global.whipping = false;
_global.jbvk = 0;
_parent.gotoAndStop(1);
}
Symbol 534 MovieClip Frame 25
gotoAndStop (1);
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 24
_global.togglewhip = "off";
_global.whipping = false;
_global.jbvk = 0;
Instance of Symbol 236 MovieClip "bdcoder" in Symbol 537 MovieClip Frame 24
onClipEvent (load) {
_global.togglewhip = "off";
_global.whipping = false;
_global.jbvk = 0;
_parent.gotoAndStop(1);
}
Symbol 537 MovieClip Frame 25
gotoAndStop (1);
Symbol 545 MovieClip Frame 70
_parent._parent.facing_direction = "right";
_parent._parent.gotoAndStop("still_right");
Symbol 548 MovieClip Frame 45
stop();
Symbol 551 MovieClip Frame 70
_parent._parent.facing_direction = "left";
_parent._parent.gotoAndStop("still_left");
Symbol 552 MovieClip Frame 1
stop();
Instance of Symbol 542 MovieClip in Symbol 552 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.facing_direction = "left";
}
Instance of Symbol 548 MovieClip in Symbol 552 MovieClip Frame 32
onClipEvent (load) {
timer = 0;
timerrandom = Math.random(3) * 30;
timerround = Math.round(timerrandom) + 50;
}
onClipEvent (enterFrame) {
timerrandom = Math.random(3) * 30;
timer++;
if ((timer >= timerround) and (timer <= (timerround + 0.1))) {
_root.fish_shoot2.start();
duplicateMovieClip (_root.fishhead_bullet_left, "circle" + _global.derp, _global.derp);
_root["circle" + _global.derp]._x = _parent._parent._x - 20;
_root["circle" + _global.derp]._y = _parent._parent._y - 20;
_global.derp = _global.derp + 20;
duplicateMovieClip (_root.fishhead_vortex_right, "square" + _global.derp, _global.derp);
_root["square" + _global.derp]._x = _parent._parent._x - 20;
_root["square" + _global.derp]._y = _parent._parent._y - 50;
_global.derp = _global.derp + 20;
}
if (timer >= (timerround + 10)) {
this.gotoAndPlay(1);
timer = 0;
}
if ((timer >= 1) and (timer <= 1.1)) {
timerround = Math.round(timerrandom) + 50;
}
}
Symbol 552 MovieClip Frame 50
_root.xhitsound.start();
Instance of Symbol 550 MovieClip in Symbol 552 MovieClip Frame 50
onClipEvent (load) {
if (_global.quest1acquired <= (_global.quest1required - 1)) {
_global.quest1acquired = _global.quest1acquired + 1;
}
timer = 0;
movement_timer = Math.random(100) * 30;
movement_timer_value = Math.round(movement_timer);
_root.exp_fishhead.duplicateMovieClip("expfish" + _global.derp, _global.derp);
_root["expfish" + _global.derp]._x = _parent._parent._x;
_root["expfish" + _global.derp]._y = _parent._parent._y - 35;
_global.derp = _global.derp + 20;
_root.heart.duplicateMovieClip("heartache" + _global.derp, _global.derp);
_root["heartache" + _global.derp]._x = _parent._parent._x;
_root["heartache" + _global.derp]._y = _parent._parent._y;
_global.derp = _global.derp + 20;
}
onClipEvent (enterFrame) {
timer++;
_parent._alpha = _parent._alpha - 5;
if (timer >= 10) {
_parent._parent.unloadMovie();
}
}
Instance of Symbol 542 MovieClip in Symbol 552 MovieClip Frame 87
onClipEvent (enterFrame) {
_parent.facing_direction = "right";
}
Symbol 552 MovieClip Frame 98
stop();
Instance of Symbol 548 MovieClip in Symbol 552 MovieClip Frame 98
onClipEvent (load) {
timer = 0;
timerrandom = Math.random(3) * 30;
timerround = Math.round(timerrandom) + 50;
}
onClipEvent (enterFrame) {
timerrandom = Math.random(3) * 30;
timer++;
if ((timer >= timerround) and (timer <= (timerround + 0.1))) {
_root.fish_shoot2.start();
duplicateMovieClip (_root.fishhead_bullet_right, "circle" + _global.derp, _global.derp);
_root["circle" + _global.derp]._x = _parent._parent._x + 20;
_root["circle" + _global.derp]._y = _parent._parent._y - 20;
_global.derp = _global.derp + 20;
duplicateMovieClip (_root.fishhead_vortex_left, "square" + _global.derp, _global.derp);
_root["square" + _global.derp]._x = _parent._parent._x + 20;
_root["square" + _global.derp]._y = _parent._parent._y - 20;
_global.derp = _global.derp + 20;
}
if (timer >= (timerround + 10)) {
this.gotoAndPlay(1);
timer = 0;
}
if ((timer >= 1) and (timer <= 1.1)) {
timerround = Math.round(timerrandom) + 50;
}
}
Symbol 552 MovieClip Frame 119
_root.xhitsound.start();
Instance of Symbol 550 MovieClip in Symbol 552 MovieClip Frame 119
onClipEvent (load) {
if (_global.quest1acquired <= (_global.quest1required - 1)) {
_global.quest1acquired = _global.quest1acquired + 1;
}
timer = 0;
movement_timer = Math.random(100) * 30;
movement_timer_value = Math.round(movement_timer);
_root.exp_fishhead.duplicateMovieClip("expfish" + _global.derp, _global.derp);
_root["expfish" + _global.derp]._x = _parent._parent._x;
_root["expfish" + _global.derp]._y = _parent._parent._y - 35;
_global.derp = _global.derp + 20;
_root.heart.duplicateMovieClip("heartache" + _global.derp, _global.derp);
_root["heartache" + _global.derp]._x = _parent._parent._x;
_root["heartache" + _global.derp]._y = _parent._parent._y;
_global.derp = _global.derp + 20;
}
onClipEvent (enterFrame) {
timer++;
_parent._alpha = _parent._alpha - 5;
if (timer >= 10) {
_parent._parent.unloadMovie();
}
}
Instance of Symbol 552 MovieClip in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
whiphurt = false;
holywaterhurt = false;
gravity = 2;
facing_direction = "right";
timer = 0;
timerstartrightleft = false;
timerstartleftright = false;
health = 25;
maxhealth = 25;
dead = false;
hurt = false;
hurttimer = 0;
movement_timer = Math.random(100) * 30;
movement_timer_value = Math.round(movement_timer);
_parent.health_bar._visible = false;
}
onClipEvent (enterFrame) {
_parent.health_bar._width = health * 2.24;
if ((health <= (maxhealth - 1)) and (dead == false)) {
_parent.health_bar._visible = true;
}
if (hurt == false) {
hurttimer = 0;
}
movement_timer = Math.random(100) * 30;
movement_timer_value = Math.round(movement_timer);
_parent._y = _parent._y + gravity;
if (_parent.hitTest(_root.jonathan.whipping.whip) and (hurt == false)) {
whiphurt = true;
hurt = true;
}
if (this.hitTest(_root["hwl" + _global.meep])) {
if (hurt == false) {
holywaterhurt = true;
hurt = true;
}
}
if (this.hitTest(_root["hwr" + _global.meep])) {
if (hurt == false) {
holywaterhurt = true;
hurt = true;
}
}
if ((hurt == true) and (dead == false)) {
hurttimer++;
if ((hurttimer >= 1) and (hurttimer <= 1.1)) {
health = health - _global.damage;
if (whiphurt == true) {
_root.xhitsound.start();
}
if (holywaterhurt == true) {
_root.beam.start();
}
_root.box.duplicateMovieClip("boxeee" + _global.derp, _global.derp);
_root["boxeee" + _global.derp]._x = _parent._x;
_root["boxeee" + _global.derp]._y = _parent._y - 35;
_global.derp = _global.derp + 20;
}
if (hurttimer >= 10) {
hurt = false;
}
}
if (health <= 0) {
hurt = false;
dead = true;
}
if (dead == true) {
if (facing_direction == "left") {
this.gotoAndStop("fishhead_dead_left");
}
if (facing_direction == "right") {
this.gotoAndStop("fishhead_dead_right");
}
}
if (dead == false) {
if (timerstartrightleft == true) {
timer++;
if (timer >= 10) {
facing_direction = "left";
}
}
if (timerstartleftright == true) {
timer++;
if (timer >= 10) {
facing_direction = "right";
}
}
if (_root.jonathan._x <= _parent._x) {
if (facing_direction == "right") {
this.gotoAndStop("right_left_transition");
facing_direction = "null";
timerstartrightleft = true;
} else if (facing_direction == "left") {
}
}
if (_root.jonathan._x >= _parent._x) {
if (facing_direction == "left") {
this.gotoAndStop("left_right_transition");
facing_direction = "null";
timerstartleftright = true;
}
}
if (facing_direction == "left") {
timerstartrightleft = false;
timerstartleftright = false;
timer = 0;
if (_root.jonathan._x <= (_parent._x - 400)) {
this.gotoAndStop("still_left");
}
if (_root.jonathan._x >= (_parent._x - 399)) {
this.gotoAndStop("fishhead_shoot_left");
}
}
if (facing_direction == "right") {
timerstartrightleft = false;
timerstartleftright = false;
timer = 0;
if (_root.jonathan._x >= (_parent._x + 400)) {
this.gotoAndStop("still_right");
}
if (_root.jonathan._x <= (_parent._x + 399)) {
this.gotoAndStop("fishhead_shoot_right");
}
}
}
if (!_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
if (gravity <= 8) {
gravity = gravity + 0.5;
}
} else {
while (_root.bg.hitTest(_parent._x, _parent._y, true)) {
_parent._y = _parent._y - 1;
gravity = 2;
}
}
if ((!_root.enemybg.hitTest(_parent._x, _parent._y + 2, true)) and (!_root.bg.hitTest(_parent._x, _parent._y, true))) {
} else if (_root.enemybg.hitTest(_parent._x, _parent._y + 2, true)) {
_parent._y = _parent._y - 1;
gravity = 0;
}
if (((_global.backdashingcount <= 0) and (death == false)) and (_global.jbvk <= 7)) {
if (((_parent.hitTest(_root.jonathan._x, _root.jonathan._y - 35) and (!_parent.hitTest(_root.jonathan.whipping.whip))) and (_global.recoverystart == false)) and (_global.maincharhurt == false)) {
_global.health = _global.health - 10;
_global.maincharhurt = true;
}
}
}
Instance of Symbol 513 MovieClip "health_bar" in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 556 MovieClip "heart" in Symbol 557 MovieClip Frame 1
onClipEvent (load) {
gravity = 0;
movement = 0;
xcount = 0;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + gravity;
if (!_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
xcount++;
_parent._x = _parent._x + movement;
if (xcount <= 25) {
movement = 3;
}
if ((xcount <= 50) and (xcount >= 26)) {
movement = -3;
}
if (xcount >= 101) {
xcount = 0;
}
gravity = 3;
} else {
while (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
movement = 0;
xcount = 0;
gravity = 0;
_parent._y = _parent._y - 1;
}
}
if (_root.jonathan.hitTest(_parent._x, _parent._y, true)) {
_root.heart_sound.start();
if (_global.health <= (_global.maxhealth - 5)) {
_global.health = _global.health + 5;
}
_parent.unloadMovie();
}
}
Instance of Symbol 559 MovieClip in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
gravity = 0;
rotationvar = 0;
movement = 0;
xcount = 0;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + gravity;
if (!_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
xcount++;
_parent._x = _parent._x + movement;
if (xcount <= 25) {
movement = 3;
}
if ((xcount <= 50) and (xcount >= 26)) {
movement = -3;
}
if (xcount >= 101) {
xcount = 0;
}
gravity = 3;
rotationvar = 35;
} else {
while (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
movement = 0;
xcount = 0;
rotationvar = 0;
this._rotation = _parent._rotation;
gravity = 0;
_parent._y = _parent._y - 1;
}
}
if (_root.jonathan.hitTest(_parent._x, _parent._y - 70, true)) {
_global.healthup = _parent.healthvalue;
_root.healthbox.duplicateMovieClip("healthboxdupe" + _global.derp, _global.derp);
_root["healthboxdupe" + _global.derp]._x = _root.jonathan._x;
_root["healthboxdupe" + _global.derp]._y = _root.jonathan._y - 70;
_global.itemget = true;
_global.itemrestart = true;
_global.itemvalue = "Caviar";
_root.heart_sound.start();
if (_global.health <= (_global.maxhealth - 5)) {
_global.health = _global.health + 5;
}
_parent.unloadMovie();
}
}
Symbol 562 MovieClip Frame 1
this.onLoad = function () {
dmgtext.text = _global.damage;
};
this.onEnterFrame = function () {
dmgtext.text = _global.damage;
};
Instance of Symbol 562 MovieClip in Symbol 563 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (_global.i >= 1) {
_parent._y = _parent._y - 0.5;
}
if ((timer >= 40) and (_global.i >= 1)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 562 MovieClip in Symbol 563 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (_global.i >= 1) {
_parent._y = _parent._y - 0.5;
}
if ((timer >= 20) and (_global.i >= 1)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 572 MovieClip in Symbol 573 MovieClip Frame 1
onClipEvent (load) {
gravity = 0;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + gravity;
if (!_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
gravity = 3;
} else {
while (_root.bg.hitTest(_parent._x, _parent._y + 2, true)) {
gravity = 0;
_parent._y = _parent._y - 1;
}
}
if (_root.jonathan.hitTest(_parent._x, _parent._y - 35, true)) {
_global.itemget = true;
_global.itemrestart = true;
_global.itemvalue = "Exp + " + _parent.experience;
_root.exp_get.start();
_global.experience = _global.experience + _parent.experience;
_parent.unloadMovie();
}
}
Symbol 575 MovieClip Frame 1
this.onLoad = function () {
healthuptext.text = _global.healthup;
};
this.onEnterFrame = function () {
healthuptext.text = _global.healthup;
};
Instance of Symbol 575 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (_global.i >= 1) {
_parent._y = _parent._y - 0.5;
}
if ((timer >= 40) and (_global.i >= 1)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 575 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (_global.j >= 1) {
_parent._y = _parent._y - 0.5;
}
if ((timer >= 20) and (_global.j >= 1)) {
_parent.removeMovieClip();
}
}