Frame 1
var jump_sound = new Sound();
jump_sound.attachSound("jump");
var taunt_sound = new Sound();
taunt_sound.attachSound("taunt_sound");
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");
_root.empty_tome.start("", "1000");
_root.empty_tome.setVolume(30);
Instance of Symbol 12 MovieClip "bg" in Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 24 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.jonathan.hitTest(this.barrierleft)) {
this._x = _root.jonathan._x + 140;
if (!Key.isDown(37)) {
this._x = this._x - 7;
}
}
if (_root.jonathan.hitTest(this.barrierright)) {
this._x = _root.jonathan._x - 140;
if (!Key.isDown(39)) {
this._x = this._x + 7;
}
}
if (this.barrierup.hitTest(_root.jonathan._x, _root.jonathan._y - 93, true)) {
if (_root.jonathan.Yvelocity <= -1) {
this._y = this._y + _root.jonathan.Yvelocity;
}
if (_root.jonathan.Yvelocity >= 0) {
this._y = this._y - 5;
}
}
if (this.barrierdown.hitTest(_root.jonathan._x, _root.jonathan._y + 2, true)) {
if (_root.jonathan.Yvelocity >= 1) {
this._y = this._y + _root.jonathan.Yvelocity;
}
if (_root.jonathan.Yvelocity <= 0) {
this._y = this._y + 5;
}
}
}
Instance of Symbol 87 MovieClip "jonathan" in Frame 1
onClipEvent (load) {
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.backdashing = false;
dashtimer = 0;
dashtime = 0;
}
onClipEvent (enterFrame) {
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 (_root.bg.hitTest(_x, _y - 90, true)) {
Yvelocity = 5;
}
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 75, true)) {
if (_global.backdashing == false) {
Movement = -3;
}
if (_global.backdashing == true) {
Movement = -5;
_global.backdashing = false;
}
}
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 75, true)) {
if (_global.backdashing == false) {
Movement = 3;
}
if (_global.backdashing == true) {
Movement = 5;
_global.backdashing = false;
}
}
}
if (Key.isDown(39)) {
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 75, true)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 70, true)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x + barvar) + (_width / 2), _y - 68, true)) {
Movement = Movement * 0;
}
}
if (Key.isDown(37)) {
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 75, true)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 70, true)) {
Movement = Movement * 0;
}
if (_root.bg.hitTest((_x - barvar) - (_width / 2), _y - 68, true)) {
Movement = Movement * 0;
}
}
if (_root.bg.hitTest(((_x - barvar) - (_width / 2)) - 25, _y - 75, true)) {
backdashability = false;
}
if (_root.bg.hitTest(((_x + barvar) + (_width / 2)) + 25, _y - 75, true)) {
backdashability = false;
}
if ((!_root.bg.hitTest(((_x - barvar) - (_width / 2)) - 25, _y - 75, true)) and (!_root.bg.hitTest(((_x + barvar) + (_width / 2)) + 25, _y - 75, true))) {
backdashability = true;
}
_y = (_y + Yvelocity);
_x = (_x + Movement);
Movement = Movement * Movement_friction;
if ((Movement <= 0.25) and (Movement >= -0.25)) {
Movement = 0;
}
if (Falling == true) {
if (Key.isDown(37)) {
this.gotoAndStop("Jumping_left");
}
if (Key.isDown(39)) {
this.gotoAndStop("Jumping_right");
}
if (Yvelocity <= 10) {
Yvelocity = Yvelocity + gravity;
}
}
if (!_root.bg.hitTest(_x, _y + 2, true)) {
Falling = true;
Jumping = 1;
} else {
while (_root.bg.hitTest(_x, _y, true)) {
if (Jumping == 1) {
if (_global.fall <= 15) {
_root.land_sound.start();
}
if (_global.fall >= 16.1) {
_root.hard_land_sound.start();
}
}
_y = (_y - 1);
Yvelocity = 0;
Falling = false;
Jumping = 0;
}
}
if (_root.bg.hitTest(_x, _y + 2, true)) {
if (((((Key.isDown(83) and (Sholdcount <= 10)) and (!Key.isDown(38))) and (!Key.isDown(37))) and (!Key.isDown(39))) and (backdashability == true)) {
_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(38))) {
if ((facing_direction == "left") and (_global.backdashing == false)) {
gotoAndStop ("Standing_left");
}
}
if (((!Key.isDown(39)) and (Movement == 0)) and (!Key.isDown(38))) {
if ((facing_direction == "right") and (_global.backdashing == false)) {
gotoAndStop ("Standing_right");
}
}
if (((!Key.isDown(37)) and (Movement == 0)) and Key.isDown(38)) {
if (facing_direction == "left") {
_global.backdashing = false;
gotoAndStop ("taunt_left");
}
}
if (((!Key.isDown(39)) and (Movement == 0)) and Key.isDown(38)) {
if (facing_direction == "right") {
_global.backdashing = false;
gotoAndStop ("taunt_right");
}
}
if (((facing_direction == "left") and (Movement <= -1)) and (!Key.isDown(37))) {
this.gotoAndStop("Stopping_left");
}
if (((facing_direction == "right") and (Movement >= 1)) and (!Key.isDown(39))) {
this.gotoAndStop("Stopping_right");
}
}
if (Key.isDown(90)) {
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount <= 2)) {
_root.jump_sound.start();
if (facing_direction == "left") {
this.gotoAndStop("Jumping_left");
}
if (facing_direction == "right") {
this.gotoAndStop("Jumping_right");
}
Jumping = 1;
}
}
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.backdashing == false) {
dashtimer = 0;
dashtime = 0;
}
if (Key.isDown(37)) {
facing_direction = "left";
if (_global.movementhinder == false) {
_global.backdashing = false;
if (Movement >= -7) {
Movement = Movement - Movement_speed;
}
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount == 0)) {
this.gotoAndStop("Walking_left");
}
}
}
if (Key.isDown(39)) {
facing_direction = "right";
if (_global.movementhinder == false) {
_global.backdashing = false;
if (Movement <= 7) {
Movement = Movement + Movement_speed;
}
if (_root.bg.hitTest(_x, _y + 2, true) and (_global.Zholdcount == 0)) {
this.gotoAndStop("Walking_right");
}
}
}
if ((Key.isDown(39) and Key.isDown(90)) and (_global.Zholdcount >= 10)) {
if (_root.bg.hitTest(_x, _y + 2, true)) {
this.gotoAndStop("Walking_right");
}
}
if ((Key.isDown(37) and Key.isDown(90)) and (_global.Zholdcount >= 10)) {
if (_root.bg.hitTest(_x, _y + 2, true)) {
this.gotoAndStop("Walking_left");
}
}
}
Instance of Symbol 89 MovieClip "bdcoder" in Frame 1
onClipEvent (load) {
_global.movementhinder = false;
}
onClipEvent (enterFrame) {
if (_global.backdashing == true) {
this.play();
_global.movementhinder = true;
}
trace(_global.movementhinder);
}
Symbol 24 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 67 MovieClip Frame 1
if (Key.isDown(90) and (_global.Zholdcount <= 5)) {
_parent.Yvelocity = -25;
}
_global.jv = 1;
Instance of Symbol 53 MovieClip in Symbol 67 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 53 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_global.doublejump = false;
}
Symbol 67 MovieClip Frame 2
if (Key.isDown(90) and (Zholdcount <= 10)) {
_parent.Yvelocity = -25;
}
_global.jv = 2;
Symbol 67 MovieClip Frame 3
if (Key.isDown(90) and (Zholdcount <= 10)) {
_parent.Yvelocity = -25;
}
_global.jv = 3;
Symbol 67 MovieClip Frame 4
if (Key.isDown(90) and (Zholdcount <= 10)) {
_parent.Yvelocity = -25;
}
_global.jv = 4;
Symbol 67 MovieClip Frame 5
if (Key.isDown(90) and (Zholdcount <= 10)) {
_parent.Yvelocity = -25;
}
_global.jv = 5;
Symbol 67 MovieClip Frame 6
if (Key.isDown(90) and (Zholdcount <= 10)) {
_parent.Yvelocity = -25;
}
_global.jv = 6;
Symbol 67 MovieClip Frame 7
if (Key.isDown(90) and (Zholdcount <= 10)) {
_parent.Yvelocity = -25;
}
_global.jv = 7;
Symbol 67 MovieClip Frame 8
_global.jv = 8;
Symbol 67 MovieClip Frame 9
_global.jv = 9;
Symbol 67 MovieClip Frame 10
_global.jv = 10;
Symbol 67 MovieClip Frame 11
_global.jv = 11;
Symbol 67 MovieClip Frame 12
gotoAndPlay (10);
_global.fall = _global.fall + 1;
Symbol 67 MovieClip Frame 16
_root.jump_sound.start();
if (Key.isDown(90) and (_global.Zholdcount <= 50)) {
_parent.Yvelocity = -32;
}
_global.jv = 16;
Symbol 67 MovieClip Frame 17
if (Key.isDown(90) and (_global.Zholdcount <= 50)) {
_parent.Yvelocity = -32;
}
_global.jv = 17;
Symbol 67 MovieClip Frame 18
if (Key.isDown(90) and (_global.Zholdcount <= 50)) {
_parent.Yvelocity = -32;
}
_global.jv = 18;
Symbol 67 MovieClip Frame 19
_global.jv = 19;
Symbol 67 MovieClip Frame 20
_global.jv = 20;
Symbol 67 MovieClip Frame 21
_global.jv = 21;
gotoAndPlay (19);
Symbol 67 MovieClip Frame 22
gotoAndPlay (19);
Symbol 74 MovieClip Frame 7
gotoAndStop (2);
Symbol 78 MovieClip Frame 1
_root.backdash_sound.start();
_global.bv = 1;
Symbol 78 MovieClip Frame 2
_global.bv = 2;
Symbol 78 MovieClip Frame 3
_global.bv = 3;
Symbol 78 MovieClip Frame 4
_global.bv = 4;
Symbol 78 MovieClip Frame 5
_global.bv = 5;
Symbol 78 MovieClip Frame 6
_global.bv = 6;
Symbol 78 MovieClip Frame 7
_global.bv = 7;
Symbol 78 MovieClip Frame 8
_global.bv = 8;
Symbol 78 MovieClip Frame 9
_global.bv = 9;
Symbol 78 MovieClip Frame 10
_global.bv = 10;
Symbol 78 MovieClip Frame 11
_global.bv = 11;
Symbol 78 MovieClip Frame 12
_global.backdashing = false;
_global.bv = 12;
stop();
Symbol 79 MovieClip Frame 8
stop();
Symbol 86 MovieClip Frame 10
_root.taunt_sound.start();
Symbol 86 MovieClip Frame 137
stop();
Symbol 87 MovieClip Frame 1
stop();
_global.jv = 1;
_global.bv = 1;
_global.fall = 0;
_global.backdashing = false;
Symbol 87 MovieClip Frame 21
stop();
_global.jv = 1;
_global.fall = 0;
Instance of Symbol 67 MovieClip in Symbol 87 MovieClip Frame 33
onClipEvent (load) {
this.gotoAndPlay(jv);
}
Instance of Symbol 78 MovieClip in Symbol 87 MovieClip Frame 57
onClipEvent (load) {
this.gotoAndPlay(_global.bv);
_global.backdashing = true;
}
Symbol 87 MovieClip Frame 99
stop();
_global.jv = 1;
_global.bv = 1;
_global.fall = 0;
_global.backdashing = false;
Symbol 87 MovieClip Frame 120
stop();
_global.jv = 1;
_global.fall = 0;
Instance of Symbol 67 MovieClip in Symbol 87 MovieClip Frame 130
onClipEvent (load) {
this.gotoAndPlay(jv);
}
Instance of Symbol 78 MovieClip in Symbol 87 MovieClip Frame 152
onClipEvent (load) {
this.gotoAndPlay(_global.bv);
_global.backdashing = true;
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 23
_global.backdashing = false;
_global.movementhinder = false;
gotoAndStop (1);