Frame 1
_global.i = 0;
_global.damage = 45;
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");
Instance of Symbol 29 MovieClip "bg" in Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 31 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = _root.jonathan._x;
this._y = _root.jonathan._y - 100;
}
Instance of Symbol 144 MovieClip "jonathan" in Frame 1
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.whipping = false;
_global.crouchwhipping = false;
_global.slidingstart = false;
backdashability = true;
Falling = true;
Movement = 0;
Movement_speed = 4;
Movement_friction = 0.7;
Jumping_amount = 30;
Health = 99;
Yvelocity = 0;
Jumping = 1;
facing_direction = "left";
barvar = 12;
gravity = 2.75;
_global.Zholdcount = 0;
_global.Sholdcount = 0;
_global.Aholdcount = 0;
_global.backdashing = false;
dashtimer = 0;
dashtime = 0;
_global.djfv = 0;
Slidingspeed = 12;
_global.clipping = false;
}
onClipEvent (enterFrame) {
if (((Key.isDown(65) and Key.isDown(37)) and (Aholdcount <= 10)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = true;
_global.backdashing = false;
}
if (((Key.isDown(65) and Key.isDown(37)) and (Aholdcount >= 11)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = false;
_global.backdashing = false;
}
if (((Key.isDown(65) and Key.isDown(39)) and (Aholdcount <= 10)) and _root.bg.hitTest(_x, _y + 2, true)) {
_global.togglemovement = "off";
_global.whipping = true;
_global.backdashing = false;
}
if (((Key.isDown(65) and Key.isDown(39)) 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(39)) and Key.isDown(65)) {
Movement = Movement * 0;
}
if ((_root.bg.hitTest(_x - 44, _y - 70, true) and Key.isDown(37)) and Key.isDown(65)) {
Movement = Movement * 0;
}
if ((_root.bg.hitTest(_x + 44, _y - 70, true) and Key.isDown(39)) and (_global.whipjumpcount >= 0)) {
Movement = Movement * 0;
}
if ((_root.bg.hitTest(_x - 44, _y - 70, true) and Key.isDown(37)) 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(90)) 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(90)) 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 + 2, 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(90)) {
_global.Zholdcount = 0;
}
if (Key.isDown(90)) {
_global.Zholdcount = _global.Zholdcount + 1;
}
if (!Key.isDown(83)) {
_global.Sholdcount = 0;
}
if (Key.isDown(83)) {
_global.Sholdcount = _global.Sholdcount + 1;
}
if (!Key.isDown(65)) {
_global.Aholdcount = 0;
}
if (Key.isDown(65) 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(37)) and (!Key.isDown(39))) {
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(37)) and (!Key.isDown(39))) {
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(39)) {
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(37)) {
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;
}
}
_y = (_y + Yvelocity);
_x = (_x + Movement);
Movement = Movement * Movement_friction;
if ((Movement <= 0.25) and (Movement >= -0.25)) {
Movement = 0;
}
if (Falling == true) {
if (_global.togglejump == "on") {
if (Key.isDown(37) and (_global.whipjump == false)) {
if (_global.jv <= 22) {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
trace("CODE ERROR = 1");
this.gotoAndStop("Jumping_left");
}
}
}
if ((((!Key.isDown(37)) and (facing_direction == "left")) and (_global.jv <= 22)) and (Movement <= -1)) {
if (_global.jv <= 22) {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
trace("CODE ERROR = 2");
this.gotoAndStop("Jumping_left");
}
}
}
if (Key.isDown(39) and (_global.whipjump == false)) {
if (_global.jv <= 22) {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
trace("CODE ERROR = 3");
this.gotoAndStop("Jumping_right");
}
}
}
if ((((!Key.isDown(39)) and (facing_direction == "right")) and (_global.jv <= 22)) and (Movement >= 1)) {
if (_global.jv <= 22) {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
trace("CODE ERROR = 4");
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 ((((((facing_direction == "left") and (Movement <= -1)) and (!Key.isDown(37))) and (_global.doublejump == false)) and (_global.jv <= 22)) and (_global.togglejump == "on")) {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
trace("CODE ERROR = 5");
this.gotoAndStop("Jumping_left");
}
}
if ((((((facing_direction == "right") and (Movement >= 1)) and (!Key.isDown(39))) and (_global.doublejump == false)) and (_global.jv <= 22)) and (_global.togglejump == "on")) {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
trace("CODE ERROR = 6");
this.gotoAndStop("Jumping_right");
}
}
if (Jumping == 0) {
_global.nojumping = true;
if (((_global.doublejump == false) and (_global.jv <= 22)) and (_global.togglejump == "on")) {
if (facing_direction == "left") {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
trace("CODE ERROR = 7");
this.gotoAndStop("Jumping_left");
}
}
if (facing_direction == "right") {
if (!_root.bg.stairwayright.hitTest(_x, _y + 20, true)) {
trace("CODE ERROR = 8");
this.gotoAndStop("Jumping_right");
}
}
}
}
if (_global.backdashing == true) {
_global.nojumping = true;
if (facing_direction == "left") {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
this.gotoAndStop("Jumping_left");
}
}
if (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 (facing_direction == "left") {
if (!_root.bg.stairwayleft.hitTest(_x, _y + 20, true)) {
_rotation = 0;
this.gotoAndStop("Jumping_left");
}
}
if (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(40))) and (_global.crouchwhipping == false)) {
if (facing_direction == "left") {
this.gotoAndStop("whipping_left");
}
if (facing_direction == "right") {
this.gotoAndStop("whipping_right");
}
}
if (((((Key.isDown(65) and (_global.Aholdcount <= 16)) and (togglewhip == "on")) and (!Key.isDown(40))) and (_global.crouchwhipping == false)) and (_global.whipjump == false)) {
_global.whipping = true;
if (facing_direction == "left") {
this.gotoAndStop("whipping_left");
}
if (facing_direction == "right") {
this.gotoAndStop("whipping_right");
}
}
if ((((togglewhip == "on") and (!Key.isDown(40))) and (_global.crouchwhipping == false)) and (_global.whipjump == true)) {
if (facing_direction == "left") {
this.gotoAndStop("whipping_left");
}
if (facing_direction == "right") {
this.gotoAndStop("whipping_right");
}
}
if ((((_global.whipping == true) and (_global.crouchwhipping == true)) and (_global.togglewhip == "on")) and Key.isDown(40)) {
if (facing_direction == "left") {
this.gotoAndStop("crouch_whipping_left");
}
if (facing_direction == "right") {
this.gotoAndStop("crouch_whipping_right");
}
}
if (((Key.isDown(65) and (_global.Aholdcount <= 25)) and (togglewhip == "on")) and Key.isDown(40)) {
_global.whipping = true;
_global.crouchwhipping = true;
if (facing_direction == "left") {
this.gotoAndStop("crouch_whipping_left");
}
if (facing_direction == "right") {
this.gotoAndStop("crouch_whipping_right");
}
}
if (Key.isDown(40) and (!Key.isDown(38))) {
if (_global.backdashing == true) {
Movement = Movement * 0;
_global.backdashing = false;
}
if (((!Key.isDown(90)) and (_global.crouchwhipping == false)) and (_global.togglecrouch == "on")) {
if ((_global.sliding == false) and (_global.slidingstart == false)) {
_global.jv = 1;
if (facing_direction == "left") {
_rotation = 0;
this.gotoAndStop("crouching_left");
}
if (facing_direction == "right") {
_rotation = 0;
this.gotoAndStop("crouching_right");
}
}
}
if (((Key.isDown(90) and (_global.toggleslide == "on")) and (_global.crouchwhipping == false)) and (!Key.isDown(65))) {
if (Zholdcount <= 14.9) {
if (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 (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 (facing_direction == "left") {
_rotation = 0;
this.gotoAndStop("crouching_left");
}
if (facing_direction == "right") {
_rotation = 0;
this.gotoAndStop("crouching_right");
}
}
}
}
if ((((((Key.isDown(39) and Key.isDown(90)) and (!Key.isDown(40))) and (_global.Zholdcount >= 10)) and (!Key.isDown(65))) and (_global.whipping == false)) and (_global.togglemovement == "on")) {
this.gotoAndStop("Walking_right");
}
if ((((((Key.isDown(37) and Key.isDown(90)) and (!Key.isDown(40))) and (_global.Zholdcount >= 10)) and (!Key.isDown(65))) and (_global.whipping == false)) and (_global.togglemovement == "on")) {
this.gotoAndStop("Walking_left");
}
if ((((((((Key.isDown(83) and (Sholdcount <= 10)) and (!Key.isDown(40))) and (!Key.isDown(38))) and (!Key.isDown(37))) and (!Key.isDown(39))) and (backdashability == true)) and (_global.togglebackdash == "on")) and (!Key.isDown(65))) {
if (_global.clipping == false) {
_global.backdashing = true;
if (facing_direction == "left") {
this.gotoAndStop("Backdash_left");
}
if (facing_direction == "right") {
this.gotoAndStop("Backdash_right");
}
}
}
if (((((!Key.isDown(37)) and (Movement == 0)) and (!Key.isDown(40))) and (!Key.isDown(38))) and (_global.togglestand == "on")) {
if ((((facing_direction == "left") and (_global.backdashing == false)) and (_global.whipping == false)) and (_global.whipjump == false)) {
_rotation = 0;
gotoAndStop ("Standing_left");
}
}
if (((((!Key.isDown(39)) and (Movement == 0)) and (!Key.isDown(40))) and (!Key.isDown(38))) and (_global.togglestand == "on")) {
if ((((facing_direction == "right") and (_global.backdashing == false)) and (_global.whipping == false)) and (_global.whipjump == false)) {
_rotation = 0;
gotoAndStop ("Standing_right");
}
}
if (((((!Key.isDown(37)) and (!Key.isDown(65))) and (Movement == 0)) and Key.isDown(38)) and (_global.toggletaunt == "on")) {
if (facing_direction == "left") {
_global.backdashing = false;
gotoAndStop ("taunt_left");
}
}
if (((((!Key.isDown(39)) and (!Key.isDown(65))) and (Movement == 0)) and Key.isDown(38)) and (_global.toggletaunt == "on")) {
if (facing_direction == "right") {
_global.backdashing = false;
gotoAndStop ("taunt_right");
}
}
if ((((((facing_direction == "left") and (!Key.isDown(40))) and (Movement <= -1)) and (!Key.isDown(37))) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
_rotation = 0;
this.gotoAndStop("Stopping_left");
}
if ((((((facing_direction == "right") and (!Key.isDown(40))) and (Movement >= 1)) and (!Key.isDown(39))) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
_rotation = 0;
this.gotoAndStop("Stopping_right");
}
}
if (_global.backdashing == true) {
if (dashtime == 0) {
if (facing_direction == "left") {
Movement = 13;
}
if (facing_direction == "right") {
Movement = -13;
}
dashtimer++;
if (dashtimer >= 5) {
dashtime = 1;
}
}
}
if ((_global.sliding == true) and (_global.slidingstart == true)) {
if (facing_direction == "left") {
Movement = -20;
}
if (facing_direction == "right") {
Movement = 20;
}
}
if (_global.backdashing == false) {
dashtimer = 0;
dashtime = 0;
}
if (Key.isDown(37)) {
if (Key.isDown(40)) {
if (_global.sliding == false) {
facing_direction = "left";
}
}
if ((!Key.isDown(40)) and (_global.togglemovement == "on")) {
facing_direction = "left";
if (Movement >= -7) {
Movement = Movement - Movement_speed;
}
if (Key.isDown(65) 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(65)) {
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(39)) {
if (Key.isDown(40)) {
if (_global.sliding == false) {
facing_direction = "right";
}
}
if (((!Key.isDown(40)) and (_global.togglemovement == "on")) and (_global.whipping == false)) {
facing_direction = "right";
if (Movement <= 7) {
Movement = Movement + Movement_speed;
}
if ((Key.isDown(65) 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(65)) {
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(90)) {
if (((_global.Zholdcount <= 2) and _root.bg.hitTest(_x, _y + 2, true)) and (_global.togglejump == "on")) {
if (!Key.isDown(40)) {
_root.jump_sound.start();
if (facing_direction == "left") {
this.gotoAndStop("Jumping_left");
}
if (facing_direction == "right") {
this.gotoAndStop("Jumping_right");
}
Jumping = 1;
}
}
}
}
Instance of Symbol 149 MovieClip "bdcoder" in Frame 1
onClipEvent (load) {
_global.movementhinder = false;
}
onClipEvent (enterFrame) {
if (_global.backdashing == true) {
this.play();
_global.movementhinder = true;
}
}
Instance of Symbol 152 MovieClip "bdcoder" in Frame 1
onClipEvent (load) {
_global.getridofplatforms = false;
}
onClipEvent (enterFrame) {
if (_global.sliding == true) {
this.play();
_global.getridofplatforms = true;
}
}
Instance of Symbol 155 MovieClip "bdcoder" in Frame 1
onClipEvent (load) {
_global.nojumping = true;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 158 MovieClip in Frame 1
onClipEvent (load) {
_global.jbvk = 0;
_global.whipjumpcount = 0;
}
onClipEvent (enterFrame) {
if (_global.whipjump == true) {
whipjumpcount++;
}
if (whipjumpcount >= 17) {
whipjumpcount = 0;
_global.whipjump = false;
}
if ((_global.whipping == true) and (_global.backdashing == false)) {
_global.jbvk++;
}
if (_global.jbvk >= 21) {
_global.crouchwhipping = false;
_global.whipping = false;
_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 178 MovieClip "box" in Frame 1
onClipEvent (load) {
i = 0;
if (_global.i >= 1) {
}
}
onClipEvent (enterFrame) {
i++;
_global.i = i + 1;
trace(_global.i);
this.onPress = function () {
duplicateMovieClip (this, "circle" + _global.i, _global.i);
};
}
Symbol 28 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip in Symbol 29 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);
}
}
Symbol 31 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;
Instance of Symbol 61 MovieClip in Symbol 75 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.doublejump == true) {
if (Key.isDown(90)) {
_parent.gotoAndPlay(16);
}
}
}
Symbol 75 MovieClip Frame 12
gotoAndPlay (10);
Symbol 75 MovieClip Frame 25
gotoAndPlay (23);
Symbol 76 MovieClip Frame 1
if ((Key.isDown(90) and (_global.Zholdcount <= 5)) and (_global.nojumping == false)) {
_parent.Yvelocity = -24;
}
_global.jv = 1;
Instance of Symbol 75 MovieClip in Symbol 76 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 61 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_global.doublejump == false) {
if (Key.isDown(90)) {
_global.doublejump = false;
}
if (!Key.isDown(90)) {
_global.doublejump = true;
}
}
if (_global.doublejump == true) {
if (Key.isDown(90)) {
_parent.gotoAndPlay(16);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_global.doublejump = false;
}
Symbol 76 MovieClip Frame 2
if ((Key.isDown(90) and (Zholdcount <= 10)) and (_global.nojumping == false)) {
_parent.Yvelocity = -24;
}
_global.jv = 2;
Symbol 76 MovieClip Frame 3
if ((Key.isDown(90) and (Zholdcount <= 10)) and (_global.nojumping == false)) {
_parent.Yvelocity = -24;
}
_global.jv = 3;
Symbol 76 MovieClip Frame 4
if ((Key.isDown(90) and (Zholdcount <= 10)) and (_global.nojumping == false)) {
_parent.Yvelocity = -24;
}
_global.jv = 4;
Symbol 76 MovieClip Frame 5
if ((Key.isDown(90) and (Zholdcount <= 10)) and (_global.nojumping == false)) {
_parent.Yvelocity = -24;
}
_global.jv = 5;
Symbol 76 MovieClip Frame 6
_global.jv = 6;
Symbol 76 MovieClip Frame 7
_global.jv = 7;
Symbol 76 MovieClip Frame 8
_global.jv = 8;
Symbol 76 MovieClip Frame 9
_global.jv = 9;
Symbol 76 MovieClip Frame 10
_global.jv = 10;
Symbol 76 MovieClip Frame 11
_global.jv = 11;
Symbol 76 MovieClip Frame 12
gotoAndPlay (10);
_global.fall = _global.fall + 1;
Symbol 76 MovieClip Frame 16
_root.jump_sound.start();
if ((Key.isDown(90) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -22;
}
_global.jv = 16;
Symbol 76 MovieClip Frame 17
if ((Key.isDown(90) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -22;
}
_global.jv = 17;
Symbol 76 MovieClip Frame 18
if ((Key.isDown(90) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -22;
}
_global.jv = 18;
Symbol 76 MovieClip Frame 19
if ((Key.isDown(90) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -20;
}
_global.jv = 19;
Symbol 76 MovieClip Frame 20
if ((Key.isDown(90) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -16;
}
_global.jv = 20;
Symbol 76 MovieClip Frame 21
if ((Key.isDown(90) and (_global.Zholdcount <= 50)) and (_global.doublejumponce == false)) {
_parent.Yvelocity = -14;
}
_global.jv = 21;
Symbol 76 MovieClip Frame 22
_global.jv = 22;
Symbol 76 MovieClip Frame 23
_global.jv = 23;
Symbol 76 MovieClip Frame 24
_global.jv = 24;
Symbol 76 MovieClip Frame 25
gotoAndPlay (23);
Symbol 83 MovieClip Frame 7
gotoAndStop (2);
Symbol 84 MovieClip Frame 2
_global.djfv = 2;
Symbol 84 MovieClip Frame 3
_global.djfv = 3;
Symbol 84 MovieClip Frame 4
_global.djfv = 4;
Symbol 84 MovieClip Frame 5
_global.djfv = 5;
Symbol 84 MovieClip Frame 6
_global.djfv = 6;
Symbol 84 MovieClip Frame 7
_global.djfv = 7;
Symbol 84 MovieClip Frame 8
_global.djfv = 8;
Symbol 84 MovieClip Frame 9
_global.djfv = 9;
Symbol 84 MovieClip Frame 10
_global.djfv = 10;
Symbol 84 MovieClip Frame 11
_global.djfv = 11;
Symbol 84 MovieClip Frame 12
_global.djfv = 12;
Symbol 84 MovieClip Frame 13
_global.djfv = 13;
Symbol 84 MovieClip Frame 14
_global.djfv = 14;
Symbol 84 MovieClip Frame 15
_global.djfv = 15;
Symbol 84 MovieClip Frame 16
_global.djfv = 16;
Symbol 84 MovieClip Frame 17
_global.djfv = 17;
Symbol 84 MovieClip Frame 18
_global.djfv = 18;
Symbol 84 MovieClip Frame 19
_global.djfv = 19;
Symbol 84 MovieClip Frame 20
_global.djfv = 20;
Symbol 84 MovieClip Frame 21
_global.djfv = 21;
Symbol 84 MovieClip Frame 22
gotoAndPlay (21);
Symbol 98 MovieClip Frame 7
stop();
Symbol 102 MovieClip Frame 6
whipvar = Math.random(1);
trace(whipvar);
if (whipvar <= 0.5) {
_root.whip_sound.start();
}
if (whipvar >= 0.51) {
_root.whip_sound2.start();
}
Symbol 102 MovieClip Frame 21
stop();
_global.crouchwhipping = false;
_global.whipping = false;
_global.toggletaunt = "on";
_global.togglecrouch = "on";
_global.togglewhip = "off";
_global.togglemovement = "on";
_global.toggletaunt = "on";
_global.togglestand = "on";
_global.toggleslide = "on";
_global.whipjump = false;
if (facing_direction == "left") {
_root.jonathan.gotoAndStop("standing_left");
}
if (facing_direction == "right") {
_root.jonathan.gotoAndStop("standing_right");
}
Symbol 107 MovieClip Frame 7
stop();
Symbol 113 MovieClip Frame 1
_global.wjv = 1;
Symbol 113 MovieClip Frame 2
_global.wjv = 2;
Symbol 113 MovieClip Frame 3
_global.wjv = 3;
Symbol 113 MovieClip Frame 4
_global.wjv = 4;
Symbol 113 MovieClip Frame 5
_global.wjv = 5;
Symbol 113 MovieClip Frame 6
_global.wjv = 6;
Symbol 113 MovieClip Frame 7
_global.wjv = 7;
Symbol 113 MovieClip Frame 8
_global.wjv = 8;
Symbol 113 MovieClip Frame 9
_global.wjv = 9;
whipvar = Math.random(1);
trace(whipvar);
if (whipvar <= 0.5) {
_root.whip_sound.start();
}
if (whipvar >= 0.51) {
_root.whip_sound2.start();
}
Symbol 113 MovieClip Frame 10
_global.wjv = 10;
Symbol 113 MovieClip Frame 11
_global.wjv = 11;
Symbol 113 MovieClip Frame 12
_global.wjv = 12;
Symbol 113 MovieClip Frame 13
_global.wjv = 13;
Symbol 113 MovieClip Frame 14
_global.wjv = 14;
Symbol 113 MovieClip Frame 15
_global.wjv = 15;
Symbol 113 MovieClip Frame 16
_global.wjv = 16;
Symbol 113 MovieClip Frame 17
_global.wjv = 17;
stop();
Symbol 117 MovieClip Frame 1
_root.backdash_sound.start();
_global.bv = 1;
Symbol 117 MovieClip Frame 2
_global.bv = 2;
Symbol 117 MovieClip Frame 3
_global.bv = 3;
Symbol 117 MovieClip Frame 4
_global.bv = 4;
Symbol 117 MovieClip Frame 5
_global.bv = 5;
Symbol 117 MovieClip Frame 6
_global.bv = 6;
Symbol 117 MovieClip Frame 7
_global.bv = 7;
Symbol 117 MovieClip Frame 8
_global.bv = 8;
Symbol 117 MovieClip Frame 9
_global.bv = 9;
Symbol 117 MovieClip Frame 10
_global.bv = 10;
Symbol 117 MovieClip Frame 11
_global.bv = 11;
Symbol 117 MovieClip Frame 12
_global.backdashing = false;
_global.bv = 12;
stop();
Symbol 118 MovieClip Frame 8
stop();
Symbol 121 MovieClip Frame 10
_root.taunt_sound.start();
Symbol 121 MovieClip Frame 137
stop();
Symbol 135 MovieClip Frame 5
stop();
Symbol 138 MovieClip Frame 4
whipvar = Math.random(1);
trace(whipvar);
if (whipvar <= 0.5) {
_root.whip_sound.start();
}
if (whipvar >= 0.51) {
_root.whip_sound2.start();
}
Symbol 138 MovieClip Frame 16
stop();
Symbol 143 MovieClip Frame 3
_root.slide_sound.start();
Symbol 143 MovieClip Frame 19
_global.sliding = false;
Symbol 144 MovieClip Frame 1
stop();
_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 36 MovieClip in Symbol 144 MovieClip Frame 1
onClipEvent (enterFrame) {
stop();
_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 144 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 76 MovieClip in Symbol 144 MovieClip Frame 33
onClipEvent (load) {
_global.whipjumpcount = 0;
_global.whipjump = false;
if (jv <= 22) {
this.gotoAndPlay(jv);
}
if (_global.doublejumponce == true) {
jv = 16;
this.gotoAndPlay(16);
}
_global.togglejump = "on";
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
_global.whipjump = true;
_parent.gotoAndStop("jumpwhipleft");
}
}
Instance of Symbol 84 MovieClip in Symbol 144 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(65)) {
_global.whipjump = true;
_global.doublejumponce = false;
_parent.gotoAndStop("jumpwhipleft");
}
}
Symbol 144 MovieClip Frame 71
_global.whipping = true;
_global.togglejump = "off";
_global.toggleslide = "off";
_global.togglemovement = "off";
_global.togglecrouch = "off";
_global.toggletaunt = "off";
Instance of Symbol 102 MovieClip "whipping" in Symbol 144 MovieClip Frame 71
onClipEvent (load) {
_global.Aholdcount = 0;
_global.togglestand == "off";
if (_global.whipjump == true) {
_global.whipjumpcount = _global.wjv;
this.gotoAndPlay(_global.wjv);
}
}
Instance of Symbol 113 MovieClip "whipping" in Symbol 144 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(90) and (Zholdcount <= 0)) {
_global.doublejumponce = true;
_parent.gotoAndStop("Jumping_left");
}
}
}
Symbol 144 MovieClip Frame 100
_global.togglejump = "off";
_global.togglewhip = "on";
_global.whipping = false;
Instance of Symbol 117 MovieClip in Symbol 144 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndPlay(_global.bv);
_global.backdashing = true;
}
onClipEvent (enterFrame) {
_global.jbvk = 0;
}
Symbol 144 MovieClip Frame 111
_global.sliding = false;
_global.togglebackdash = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
Symbol 144 MovieClip Frame 130
_global.togglewhip = "on";
_global.toggleslide = "on";
_global.whipping = false;
Instance of Symbol 124 MovieClip in Symbol 144 MovieClip Frame 130
onClipEvent (load) {
_global.sliding = false;
}
Symbol 144 MovieClip Frame 142
_global.togglejump = "off";
_global.togglebackdash = "off";
_global.toggleslide = "off";
_global.togglemovement = "off";
Symbol 144 MovieClip Frame 159
_global.togglejump = "off";
Instance of Symbol 143 MovieClip in Symbol 144 MovieClip Frame 159
onClipEvent (load) {
_global.sliding = true;
_global.slidingstart = true;
}
Symbol 144 MovieClip Frame 187
stop();
_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 36 MovieClip in Symbol 144 MovieClip Frame 187
onClipEvent (enterFrame) {
stop();
_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 144 MovieClip Frame 208
stop();
_global.jv = 1;
_global.djfv = 1;
_global.fall = 0;
_global.sliding = false;
_global.togglewhip = "on";
_global.togglejump = "on";
Instance of Symbol 76 MovieClip in Symbol 144 MovieClip Frame 218
onClipEvent (load) {
_global.whipjumpcount = 0;
_global.whipjump = false;
if (jv <= 22) {
this.gotoAndPlay(jv);
}
if (_global.doublejumponce == true) {
jv = 16;
this.gotoAndPlay(16);
}
_global.togglejump = "on";
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
_global.whipjump = true;
_parent.gotoAndStop("jumpwhipright");
}
}
Symbol 144 MovieClip Frame 248
_global.togglejump = "off";
_global.togglewhip = "on";
_global.whipping = false;
Instance of Symbol 117 MovieClip in Symbol 144 MovieClip Frame 248
onClipEvent (load) {
this.gotoAndPlay(_global.bv);
_global.backdashing = true;
}
onClipEvent (enterFrame) {
_global.jbvk = 0;
}
Symbol 144 MovieClip Frame 260
_global.sliding = false;
_global.togglebackdash = "on";
_global.toggleslide = "on";
_global.togglewhip = "on";
_global.togglejump = "on";
_global.togglemovement = "on";
_global.togglejump = "on";
Instance of Symbol 84 MovieClip in Symbol 144 MovieClip Frame 284
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(65)) {
_global.whipjump = true;
_global.doublejumponce = true;
_parent.gotoAndStop("jumpwhipright");
}
}
Symbol 144 MovieClip Frame 301
_global.togglewhip = "on";
_global.toggleslide = "on";
_global.whipping = false;
Instance of Symbol 124 MovieClip in Symbol 144 MovieClip Frame 301
onClipEvent (load) {
_global.sliding = false;
}
Symbol 144 MovieClip Frame 312
_global.togglejump = "off";
_global.togglebackdash = "off";
_global.toggleslide = "off";
_global.togglemovement = "off";
Symbol 144 MovieClip Frame 339
_global.togglejump = "off";
Instance of Symbol 143 MovieClip in Symbol 144 MovieClip Frame 339
onClipEvent (load) {
_global.sliding = true;
_global.slidingstart = true;
}
Symbol 144 MovieClip Frame 349
_global.whipping = true;
_global.togglejump = "off";
_global.toggleslide = "off";
_global.togglemovement = "off";
_global.togglecrouch = "off";
_global.toggletaunt = "off";
Instance of Symbol 102 MovieClip "whipping" in Symbol 144 MovieClip Frame 349
onClipEvent (load) {
_global.Aholdcount = 0;
_global.togglestand == "off";
if (_global.whipjump == true) {
_global.whipjumpcount = _global.wjv + 5;
this.gotoAndPlay(_global.wjv);
}
}
Instance of Symbol 113 MovieClip "whipping" in Symbol 144 MovieClip Frame 361
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(90) and (Zholdcount <= 0)) {
_global.doublejumponce = true;
_parent.gotoAndStop("Jumping_right");
}
}
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 11
_global.backdashing = false;
_global.movementhinder = false;
gotoAndStop (1);
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 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 152 MovieClip Frame 18
_global.sliding = false;
_global.getridofplatforms = false;
gotoAndStop (1);
_global.movementhinder = false;
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 18
_global.nojumping = false;
gotoAndStop (1);
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 24
_global.togglewhip = "off";
_global.whipping = false;
_global.jbvk = 0;
Instance of Symbol 152 MovieClip "bdcoder" in Symbol 158 MovieClip Frame 24
onClipEvent (load) {
_global.togglewhip = "off";
_global.whipping = false;
_global.jbvk = 0;
_parent.gotoAndStop(1);
}
Symbol 158 MovieClip Frame 25
gotoAndStop (1);
Instance of Symbol 171 MovieClip "gx" in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
hit = false;
death = false;
timer = 0;
xposneg = 1;
xposnegrandom = 1;
xposnegrandomvariable = 0;
yposneg = 1;
xmovement = Math.random(6) * 10;
xposition = 0;
power = 1;
xspeed = 0;
yspeed = 0;
health = 100;
hitcount = 0;
_parent.health_bar._visible = false;
}
onClipEvent (enterFrame) {
if ((health <= 199) and (health >= 1)) {
_parent.health_bar._visible = true;
}
if (health <= 0) {
death = true;
}
if ((hitcount == 0) and (death == false)) {
_alpha = 100;
}
_parent.health_bar._width = health / 3;
if (((_parent.hitTest(_root.jonathan.whipping.whip) and (death == false)) and (hit == false)) and (hitcount == 0)) {
_root.box.duplicateMovieClip("boxx" + _global.i, _global.i);
_root["boxx" + _global.i]._x = _parent._x;
_root["boxx" + _global.i]._y = _parent._y;
hit = true;
}
if (((hit == true) and (death == false)) and (health >= 1)) {
_root.xhitsound.start();
health = health - _global.damage;
hitcount++;
hit = false;
}
if ((hitcount >= 1) and (death == false)) {
hitcount++;
}
if ((hitcount >= 10) and (death == false)) {
_alpha = 100;
hitcount = 0;
hit = false;
}
if (death == true) {
hitcount = 0;
_parent.health_bar._visible = false;
if (_alpha >= 100) {
_root.xdeathsound.start();
_root.box.duplicateMovieClip("boxx" + _global.i, _global.i);
_root["boxx" + _global.i]._x = _parent._x;
_root["boxx" + _global.i]._y = _parent._y;
}
_alpha = (_alpha - 5);
if (_alpha <= 0) {
_parent.unloadMovie();
}
}
if ((death == false) and (hitcount == 0)) {
xspeed = xspeed * 0.9;
yspeed = yspeed * 0.9;
if ((_parent._x <= (_root.jonathan._x + 250)) and (_parent._x >= (_root.jonathan._x - 250))) {
_parent._x = _parent._x + xspeed;
}
if ((_parent._y >= (_root.jonathan._y - 300)) and (_parent._y <= (_root.jonathan._y + 50))) {
_parent._y = _parent._y + yspeed;
}
if (_parent._y >= ((_root.jonathan._y + 50) - 5)) {
timer = 60;
_parent._y = _parent._y - 12;
yspeed = 0;
}
if (_parent._x >= ((_root.jonathan._x + 250) - 5)) {
timer = 60;
_parent._x = _parent._x - 12;
xspeed = 0;
}
if (_parent._x <= ((_root.jonathan._x - 250) + 5)) {
timer = 60;
_parent._x = _parent._x + 12;
xspeed = 0;
}
if (_parent._y <= ((_root.jonathan._y - 300) + 5)) {
timer = 60;
_parent._y = _parent._y + 12;
yspeed = 0;
}
if (timer <= 100) {
timer++;
}
if (timer >= 60) {
xrandom = Math.round(Math.random(2));
if (xrandom == 0) {
xrandom = -1;
}
xposneg = (xposneg = xposneg * xrandom);
xmovement = (Math.random(6) * 100) * xposneg;
yposneg = (yposneg = yposneg * -1);
ymovement = (Math.random(6) * 100) * yposneg;
timer = 0;
xposition = 0;
}
if (timer <= 59) {
if ((_parent._x >= ((_root.jonathan._x + 250) - 5)) and (xmovement >= 1)) {
xmovement = xmovement * 1;
xspeed = -6;
}
if ((_parent._x <= ((_root.jonathan._x - 250) + 5)) and (xmovement <= -1)) {
xmovement = xmovement * 1;
xspeed = 18;
}
if ((_parent._y <= ((_root.jonathan._y - 300) + 5)) and (ymovement <= -1)) {
xmovement = xmovement * 1;
xspeed = 6;
}
if ((_parent._y >= ((_root.jonathan._y + 50) - 5)) and (ymovement >= 1)) {
xmovement = xmovement * 1;
xspeed = 6;
}
if ((xposition <= xmovement) and (xmovement >= 1)) {
xposition = xposition + 0.25;
if (xspeed <= 12) {
xspeed = xspeed + power;
}
} else if ((xposition >= xmovement) and (xmovement <= -1)) {
xposition = xposition - 0.25;
if (xspeed >= -12) {
xspeed = xspeed - power;
}
}
if ((yposition <= ymovement) and (ymovement >= 1)) {
yposition = yposition + 0.25;
if (yspeed <= 12) {
yspeed = yspeed + power;
}
} else if ((yposition >= ymovement) and (ymovement <= -1)) {
yposition = yposition - 0.25;
if (yspeed >= -12) {
yspeed = yspeed - power;
}
}
}
}
}
Symbol 177 MovieClip Frame 1
this.onEnterFrame = function () {
dmgtext.text = _global.damage;
};
Instance of Symbol 177 MovieClip in Symbol 178 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 177 MovieClip in Symbol 178 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 191 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
hit = false;
death = false;
timer = 0;
xposneg = 1;
xposnegrandom = 1;
xposnegrandomvariable = 0;
yposneg = 1;
xmovement = Math.random(6) * 10;
xposition = 0;
power = 1;
xspeed = 0;
yspeed = 0;
health = 100;
hitcount = 0;
_parent.health_bar._visible = false;
}
onClipEvent (enterFrame) {
if ((health <= 199) and (health >= 1)) {
_parent.health_bar._visible = true;
}
if (health <= 0) {
death = true;
}
if ((hitcount == 0) and (death == false)) {
_alpha = 100;
}
_parent.health_bar._width = health / 3;
if (((_parent.hitTest(_root.jonathan.whipping.whip) and (death == false)) and (hit == false)) and (hitcount == 0)) {
_root.box.duplicateMovieClip("boxx" + _global.i, _global.i);
_root["boxx" + _global.i]._x = _parent._x;
_root["boxx" + _global.i]._y = _parent._y;
hit = true;
}
if (((hit == true) and (death == false)) and (health >= 1)) {
_root.xhitsound.start();
health = health - _global.damage;
hitcount++;
hit = false;
}
if ((hitcount >= 1) and (death == false)) {
hitcount++;
}
if ((hitcount >= 10) and (death == false)) {
_alpha = 100;
hitcount = 0;
hit = false;
}
if (death == true) {
hitcount = 0;
_parent.health_bar._visible = false;
if (_alpha >= 100) {
_root.xdeathsound.start();
_root.box.duplicateMovieClip("boxx" + _global.i, _global.i);
_root["boxx" + _global.i]._x = _parent._x;
_root["boxx" + _global.i]._y = _parent._y;
}
_alpha = (_alpha - 5);
if (_alpha <= 0) {
_parent.unloadMovie();
}
}
if ((death == false) and (hitcount == 0)) {
xspeed = xspeed * 0.9;
yspeed = yspeed * 0.9;
if ((_parent._x <= (_root.jonathan._x + 250)) and (_parent._x >= (_root.jonathan._x - 250))) {
_parent._x = _parent._x + xspeed;
}
if ((_parent._y >= (_root.jonathan._y - 300)) and (_parent._y <= (_root.jonathan._y + 50))) {
_parent._y = _parent._y + yspeed;
}
if (_parent._y >= ((_root.jonathan._y + 50) - 5)) {
timer = 60;
_parent._y = _parent._y - 12;
yspeed = 0;
}
if (_parent._x >= ((_root.jonathan._x + 250) - 5)) {
timer = 60;
_parent._x = _parent._x - 12;
xspeed = 0;
}
if (_parent._x <= ((_root.jonathan._x - 250) + 5)) {
timer = 60;
_parent._x = _parent._x + 12;
xspeed = 0;
}
if (_parent._y <= ((_root.jonathan._y - 300) + 5)) {
timer = 60;
_parent._y = _parent._y + 12;
yspeed = 0;
}
if (timer <= 100) {
timer++;
}
if (timer >= 60) {
xrandom = Math.round(Math.random(2));
if (xrandom == 0) {
xrandom = -1;
}
xposneg = (xposneg = xposneg * xrandom);
xmovement = (Math.random(6) * 100) * xposneg;
yposneg = (yposneg = yposneg * -1);
ymovement = (Math.random(6) * 100) * yposneg;
timer = 0;
xposition = 0;
}
if (timer <= 59) {
if ((_parent._x >= ((_root.jonathan._x + 250) - 5)) and (xmovement >= 1)) {
xmovement = xmovement * 1;
xspeed = -6;
}
if ((_parent._x <= ((_root.jonathan._x - 250) + 5)) and (xmovement <= -1)) {
xmovement = xmovement * 1;
xspeed = 18;
}
if ((_parent._y <= ((_root.jonathan._y - 300) + 5)) and (ymovement <= -1)) {
xmovement = xmovement * 1;
xspeed = 6;
}
if ((_parent._y >= ((_root.jonathan._y + 50) - 5)) and (ymovement >= 1)) {
xmovement = xmovement * 1;
xspeed = 6;
}
if ((xposition <= xmovement) and (xmovement >= 1)) {
xposition = xposition + 0.25;
if (xspeed <= 12) {
xspeed = xspeed + power;
}
} else if ((xposition >= xmovement) and (xmovement <= -1)) {
xposition = xposition - 0.25;
if (xspeed >= -12) {
xspeed = xspeed - power;
}
}
if ((yposition <= ymovement) and (ymovement >= 1)) {
yposition = yposition + 0.25;
if (yspeed <= 12) {
yspeed = yspeed + power;
}
} else if ((yposition >= ymovement) and (ymovement <= -1)) {
yposition = yposition - 0.25;
if (yspeed >= -12) {
yspeed = yspeed - power;
}
}
}
}
}
Instance of Symbol 203 MovieClip in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
hit = false;
death = false;
timer = 0;
xposneg = 1;
xposnegrandom = 1;
xposnegrandomvariable = 0;
yposneg = 1;
xmovement = Math.random(6) * 10;
xposition = 0;
power = 1;
xspeed = 0;
yspeed = 0;
health = 100;
hitcount = 0;
_parent.health_bar._visible = false;
}
onClipEvent (enterFrame) {
if ((health <= 199) and (health >= 1)) {
_parent.health_bar._visible = true;
}
if (health <= 0) {
death = true;
}
if ((hitcount == 0) and (death == false)) {
_alpha = 100;
}
_parent.health_bar._width = health / 3;
if (((_parent.hitTest(_root.jonathan.whipping.whip) and (death == false)) and (hit == false)) and (hitcount == 0)) {
_root.box.duplicateMovieClip("boxx" + _global.i, _global.i);
_root["boxx" + _global.i]._x = _parent._x;
_root["boxx" + _global.i]._y = _parent._y;
hit = true;
}
if (((hit == true) and (death == false)) and (health >= 1)) {
_root.xhitsound.start();
health = health - _global.damage;
hitcount++;
hit = false;
}
if ((hitcount >= 1) and (death == false)) {
hitcount++;
}
if ((hitcount >= 10) and (death == false)) {
_alpha = 100;
hitcount = 0;
hit = false;
}
if (death == true) {
hitcount = 0;
_parent.health_bar._visible = false;
if (_alpha >= 100) {
_root.xdeathsound.start();
_root.box.duplicateMovieClip("boxx" + _global.i, _global.i);
_root["boxx" + _global.i]._x = _parent._x;
_root["boxx" + _global.i]._y = _parent._y;
}
_alpha = (_alpha - 5);
if (_alpha <= 0) {
_parent.unloadMovie();
}
}
if ((death == false) and (hitcount == 0)) {
xspeed = xspeed * 0.9;
yspeed = yspeed * 0.9;
if ((_parent._x <= (_root.jonathan._x + 250)) and (_parent._x >= (_root.jonathan._x - 250))) {
_parent._x = _parent._x + xspeed;
}
if ((_parent._y >= (_root.jonathan._y - 300)) and (_parent._y <= (_root.jonathan._y + 50))) {
_parent._y = _parent._y + yspeed;
}
if (_parent._y >= ((_root.jonathan._y + 50) - 5)) {
timer = 60;
_parent._y = _parent._y - 12;
yspeed = 0;
}
if (_parent._x >= ((_root.jonathan._x + 250) - 5)) {
timer = 60;
_parent._x = _parent._x - 12;
xspeed = 0;
}
if (_parent._x <= ((_root.jonathan._x - 250) + 5)) {
timer = 60;
_parent._x = _parent._x + 12;
xspeed = 0;
}
if (_parent._y <= ((_root.jonathan._y - 300) + 5)) {
timer = 60;
_parent._y = _parent._y + 12;
yspeed = 0;
}
if (timer <= 100) {
timer++;
}
if (timer >= 60) {
xrandom = Math.round(Math.random(2));
if (xrandom == 0) {
xrandom = -1;
}
xposneg = (xposneg = xposneg * xrandom);
xmovement = (Math.random(6) * 100) * xposneg;
yposneg = (yposneg = yposneg * -1);
ymovement = (Math.random(6) * 100) * yposneg;
timer = 0;
xposition = 0;
}
if (timer <= 59) {
if ((_parent._x >= ((_root.jonathan._x + 250) - 5)) and (xmovement >= 1)) {
xmovement = xmovement * 1;
xspeed = -6;
}
if ((_parent._x <= ((_root.jonathan._x - 250) + 5)) and (xmovement <= -1)) {
xmovement = xmovement * 1;
xspeed = 18;
}
if ((_parent._y <= ((_root.jonathan._y - 300) + 5)) and (ymovement <= -1)) {
xmovement = xmovement * 1;
xspeed = 6;
}
if ((_parent._y >= ((_root.jonathan._y + 50) - 5)) and (ymovement >= 1)) {
xmovement = xmovement * 1;
xspeed = 6;
}
if ((xposition <= xmovement) and (xmovement >= 1)) {
xposition = xposition + 0.25;
if (xspeed <= 12) {
xspeed = xspeed + power;
}
} else if ((xposition >= xmovement) and (xmovement <= -1)) {
xposition = xposition - 0.25;
if (xspeed >= -12) {
xspeed = xspeed - power;
}
}
if ((yposition <= ymovement) and (ymovement >= 1)) {
yposition = yposition + 0.25;
if (yspeed <= 12) {
yspeed = yspeed + power;
}
} else if ((yposition >= ymovement) and (ymovement <= -1)) {
yposition = yposition - 0.25;
if (yspeed >= -12) {
yspeed = yspeed - power;
}
}
}
}
}