Frame 1
Stage.showMenu = false;
Frame 2
Instance of Symbol 30 MovieClip in Frame 3
onClipEvent (enterFrame) {
stop();
}
Frame 838
stop();
explode = new Sound(this);
explode.attachSound("explode");
immune = new Sound(this);
immune.attachSound("immune");
jump = new Sound(this);
jump.attachSound("jump");
kiplosion = new Sound(this);
kiplosion.attachSound("kiplosion");
scream1 = new Sound(this);
scream1.attachSound("scream1");
scream2 = new Sound(this);
scream2.attachSound("scream2");
wallhit = new Sound(this);
wallhit.attachSound("wallhit");
yell = new Sound(this);
yell.attachSound("yell");
giant_footstep = new Sound(this);
giant_footstep.attachSound("giant_footstep");
flyby = new Sound(this);
flyby.attachSound("flyby");
persian_attack = new Sound(persian_attack);
persian_attack.attachSound("persian_attack");
persian_intro = new Sound(persian_intro);
persian_intro.attachSound("persian_intro");
persian_ending = new Sound(persian_ending);
persian_ending.attachSound("persian_ending");
Instance of Symbol 34 MovieClip in Frame 838
on (release) {
_parent.play();
}
Instance of Symbol 87 MovieClip "vcam" in Frame 839
onClipEvent (load) {
shake = 0;
}
onClipEvent (enterFrame) {
if (shake != 0) {
this._y = this._y - shake;
if (shake < 0) {
shake = 0;
}
shake = shake * -1;
}
}
Frame 874
wallhit.start();
Frame 892
stop();
Instance of Symbol 102 MovieClip "player" in Frame 892
onClipEvent (load) {
var grav = 0;
var speed = 8;
var jumpHeight = 26;
var jumpSpeed = 8;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
jump_cd = 0;
crash_cd = 0;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (grav <= 16) {
grav = grav + 2;
}
if (jump_cd > 0) {
jump_cd--;
}
if (crash_cd > 0) {
crash_cd--;
}
_y = (_y + grav);
if (((_root.ground.hitTest(_x, _y - 4, true) || (_root.ground.hitTest(_x, _y - 16, true))) && (_root.player_sprite.landing == -1)) && (crash_cd <= 0)) {
_root.player_sprite.landing = 1;
jump_cd = 10;
crash_cd = 20;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.player_sprite._currentframe <= 4) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
}
if (Key.isDown(38)) {
if (_root.ground.hitTest(_x, _y + 5, true)) {
if ((_root.player_sprite._currentframe <= 3) && (jump_cd == 0)) {
grav = -jumpHeight;
_y = (_y - jumpSpeed);
_parent.jump.start();
_root.vcam.shake = 3;
}
}
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
jumpSpeed = 0;
}
}
Instance of Symbol 118 MovieClip "player_sprite" in Frame 892
onClipEvent (load) {
jumping = false;
var scale = _xscale;
landing = -1;
landcount = 0;
}
onClipEvent (enterFrame) {
if (_root.player.grav < 0) {
jumping = true;
} else {
jumping = false;
}
this._x = _root.player._x;
this._y = _root.player._y - 22;
if (landing >= 1) {
if (landcount == 1) {
this.gotoAndPlay("land");
_parent.kiplosion.start();
_root.vcam.shake = 10;
}
landcount++;
if (landcount >= 7) {
landcount = 0;
landing = -1;
}
} else if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(37)) {
_xscale = (-scale);
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(32)) {
this.gotoAndStop("atk");
_parent.yell.start();
} else if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("stand");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
}
Instance of Symbol 34 MovieClip in Frame 892
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
}
}
Frame 907
stop();
Instance of Symbol 102 MovieClip "player" in Frame 907
onClipEvent (load) {
var grav = 0;
var speed = 8;
var jumpHeight = 26;
var jumpSpeed = 8;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
jump_cd = 0;
crash_cd = 0;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (grav <= 16) {
grav = grav + 2;
}
if (jump_cd > 0) {
jump_cd--;
}
if (crash_cd > 0) {
crash_cd--;
}
_y = (_y + grav);
if (((_root.ground.hitTest(_x, _y - 4, true) || (_root.ground.hitTest(_x, _y - 16, true))) && (_root.player_sprite.landing == -1)) && (crash_cd <= 0)) {
_root.player_sprite.landing = 1;
jump_cd = 10;
crash_cd = 20;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.player_sprite._currentframe <= 4) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
}
if (Key.isDown(38)) {
if (_root.ground.hitTest(_x, _y + 5, true)) {
if ((_root.player_sprite._currentframe <= 3) && (jump_cd == 0)) {
grav = -jumpHeight;
_y = (_y - jumpSpeed);
_parent.jump.start();
_root.vcam.shake = 3;
}
}
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
jumpSpeed = 0;
}
}
Instance of Symbol 118 MovieClip "player_sprite" in Frame 907
onClipEvent (load) {
jumping = false;
var scale = _xscale;
landing = -1;
landcount = 0;
}
onClipEvent (enterFrame) {
if (_root.player.grav < 0) {
jumping = true;
} else {
jumping = false;
}
this._x = _root.player._x;
this._y = _root.player._y - 22;
if (landing >= 1) {
if (landcount == 1) {
this.gotoAndPlay("land");
_parent.kiplosion.start();
_root.vcam.shake = 10;
}
landcount++;
if (landcount >= 7) {
landcount = 0;
landing = -1;
}
} else if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(37)) {
_xscale = (-scale);
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(32)) {
this.gotoAndStop("atk");
_parent.yell.start();
} else if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("stand");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
}
Instance of Symbol 34 MovieClip in Frame 907
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
}
}
Frame 922
stop();
Instance of Symbol 102 MovieClip "player" in Frame 922
onClipEvent (load) {
var grav = 0;
var speed = 8;
var jumpHeight = 26;
var jumpSpeed = 8;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
jump_cd = 0;
crash_cd = 0;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (grav <= 16) {
grav = grav + 2;
}
if (jump_cd > 0) {
jump_cd--;
}
if (crash_cd > 0) {
crash_cd--;
}
_y = (_y + grav);
if (((_root.ground.hitTest(_x, _y - 4, true) || (_root.ground.hitTest(_x, _y - 16, true))) && (_root.player_sprite.landing == -1)) && (crash_cd <= 0)) {
_root.player_sprite.landing = 1;
jump_cd = 10;
crash_cd = 20;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.player_sprite._currentframe <= 4) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
}
if (Key.isDown(38)) {
if (_root.ground.hitTest(_x, _y + 5, true)) {
if ((_root.player_sprite._currentframe <= 3) && (jump_cd == 0)) {
grav = -jumpHeight;
_y = (_y - jumpSpeed);
_parent.jump.start();
_root.vcam.shake = 3;
}
}
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
if (grav < 0) {
grav = (-grav) / 2;
}
}
}
Instance of Symbol 118 MovieClip "player_sprite" in Frame 922
onClipEvent (load) {
jumping = false;
var scale = _xscale;
landing = -1;
landcount = 0;
}
onClipEvent (enterFrame) {
if (_root.player.grav < 0) {
jumping = true;
} else {
jumping = false;
}
this._x = _root.player._x;
this._y = _root.player._y - 22;
if (landing >= 1) {
if (landcount == 1) {
this.gotoAndPlay("land");
_parent.kiplosion.start();
_root.vcam.shake = 10;
}
landcount++;
if (landcount >= 7) {
landcount = 0;
landing = -1;
}
} else if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(37)) {
_xscale = (-scale);
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(32)) {
this.gotoAndStop("atk");
_parent.yell.start();
} else if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("stand");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
}
Instance of Symbol 125 MovieClip in Frame 922
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.player.hitTest(_x + 10, _y, true)) {
_xscale = (_xscale * -1);
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
} else if (_root.player.hitTest(_x - 10, _y, true)) {
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
}
}
}
Instance of Symbol 127 MovieClip "joe_shot" in Frame 922
onClipEvent (load) {
activate = false;
speed = 16;
facing = 1;
angle = 1;
}
onClipEvent (enterFrame) {
if (activate) {
this._x = this._x - (speed * facing);
if (_root.player.hitTest(_x + 10, _y, true)) {
activate = false;
_parent.immune.start();
}
} else if (!activate) {
this._x = this._x + ((1.2 * speed) * facing);
this._y = this._y - ((angle * 0.01) * speed);
}
}
Instance of Symbol 132 MovieClip in Frame 922
onClipEvent (load) {
count = 0;
facing = 1;
scale = _xscale;
death = 0;
}
onClipEvent (enterFrame) {
if (death == 0) {
if (_root.player._x > _x) {
this._xscale = -scale;
facing = -1;
} else {
this._xscale = scale;
facing = 1;
}
}
if (_currentframe == 30) {
_root.joe_shot.facing = facing;
_root.joe_shot._x = this._x;
_root.joe_shot._y = this._y;
_root.joe_shot.angle = random(100);
_root.joe_shot.activate = true;
count++;
}
if (_root.player.hitTest(this) && (death == 0)) {
death = 1;
gotoAndPlay ("death");
_parent.scream1.start();
}
}
Instance of Symbol 135 MovieClip in Frame 922
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 135 MovieClip in Frame 922
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 34 MovieClip in Frame 922
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
}
}
Instance of Symbol 125 MovieClip in Frame 922
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.player.hitTest(_x + 10, _y, true)) {
_xscale = (_xscale * -1);
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
} else if (_root.player.hitTest(_x - 10, _y, true)) {
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
}
}
}
Frame 938
stop();
Instance of Symbol 102 MovieClip "player" in Frame 938
onClipEvent (load) {
var grav = 0;
var speed = 8;
var jumpHeight = 26;
var jumpSpeed = 8;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
jump_cd = 0;
crash_cd = 0;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (grav <= 16) {
grav = grav + 2;
}
if (jump_cd > 0) {
jump_cd--;
}
if (crash_cd > 0) {
crash_cd--;
}
_y = (_y + grav);
if (((_root.ground.hitTest(_x, _y - 4, true) || (_root.ground.hitTest(_x, _y - 16, true))) && (_root.player_sprite.landing == -1)) && (crash_cd <= 0)) {
_root.player_sprite.landing = 1;
jump_cd = 10;
crash_cd = 20;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.player_sprite._currentframe <= 4) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
}
if (Key.isDown(38)) {
if (_root.ground.hitTest(_x, _y + 5, true)) {
if ((_root.player_sprite._currentframe <= 3) && (jump_cd == 0)) {
grav = -jumpHeight;
_y = (_y - jumpSpeed);
_parent.jump.start();
_root.vcam.shake = 3;
}
}
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
if (grav < 0) {
grav = (-grav) / 2;
}
}
}
Instance of Symbol 118 MovieClip "player_sprite" in Frame 938
onClipEvent (load) {
jumping = false;
var scale = _xscale;
landing = -1;
landcount = 0;
}
onClipEvent (enterFrame) {
if (_root.player.grav < 0) {
jumping = true;
} else {
jumping = false;
}
this._x = _root.player._x;
this._y = _root.player._y - 22;
if (landing >= 1) {
if (landcount == 1) {
this.gotoAndPlay("land");
_parent.kiplosion.start();
_root.vcam.shake = 10;
}
landcount++;
if (landcount >= 7) {
landcount = 0;
landing = -1;
}
} else if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(37)) {
_xscale = (-scale);
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(32)) {
this.gotoAndStop("atk");
_parent.yell.start();
} else if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("stand");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
}
Instance of Symbol 127 MovieClip "joe_shot" in Frame 938
onClipEvent (load) {
activate = false;
speed = 16;
facing = 1;
angle = 1;
}
onClipEvent (enterFrame) {
if (activate) {
this._x = this._x - (speed * facing);
if (_root.player.hitTest(_x + 10, _y, true)) {
activate = false;
_parent.immune.start();
}
} else if (!activate) {
this._x = this._x + ((1.2 * speed) * facing);
this._y = this._y - ((angle * 0.01) * speed);
}
}
Instance of Symbol 132 MovieClip in Frame 938
onClipEvent (load) {
count = 0;
facing = 1;
scale = _xscale;
death = 0;
}
onClipEvent (enterFrame) {
if (death == 0) {
if (_root.player._x > _x) {
this._xscale = -scale;
facing = -1;
} else {
this._xscale = scale;
facing = 1;
}
}
if (_currentframe == 30) {
_root.joe_shot.facing = facing;
_root.joe_shot._x = this._x;
_root.joe_shot._y = this._y;
_root.joe_shot.angle = random(100);
_root.joe_shot.activate = true;
count++;
}
if (_root.player.hitTest(this) && (death == 0)) {
death = 1;
gotoAndPlay ("death");
_parent.scream1.start();
}
}
Instance of Symbol 135 MovieClip in Frame 938
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 135 MovieClip in Frame 938
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 34 MovieClip in Frame 938
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
}
}
Instance of Symbol 142 MovieClip in Frame 938
onClipEvent (load) {
activate = false;
speed = 16;
}
onClipEvent (enterFrame) {
if (!activate) {
if ((_root.player._x + 100) >= _x) {
this.play();
_parent.scream2.start();
activate = true;
}
} else if (activate) {
this._x = this._x + speed;
this._y = this._y + ((speed * random(5)) * 0.25);
}
}
Instance of Symbol 47 MovieClip "player_sprite" in Frame 953
onClipEvent (enterFrame) {
stop();
}
Instance of Symbol 47 MovieClip "player_sprite" in Frame 969
onClipEvent (enterFrame) {
stop();
}
Instance of Symbol 161 MovieClip in Frame 1005
onClipEvent (load) {
speed = 3;
death = 0;
}
onClipEvent (enterFrame) {
if (death == 0) {
if (_root.player.hitTest(this) && (death == 0)) {
death = 1;
_root.vcam.shake = 3;
gotoAndPlay ("death");
_parent.wallhit.start();
}
if ((_currentframe == 4) || (_currentframe == 12)) {
_root.vcam.shake = 1;
_parent.giant_footstep.start();
}
this._x = this._x - speed;
}
if (_currentframe == 34) {
_parent.wallhit.start();
_root.vcam.shake = 7;
}
if (_currentframe == 67) {
_parent.kiplosion.start();
}
}
Instance of Symbol 34 MovieClip in Frame 1005
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
}
}
Frame 1028
stop();
Instance of Symbol 102 MovieClip "player" in Frame 1028
onClipEvent (load) {
var grav = 0;
var speed = 8;
var jumpHeight = 26;
var jumpSpeed = 8;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
jump_cd = 0;
crash_cd = 0;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (grav <= 16) {
grav = grav + 2;
}
if (jump_cd > 0) {
jump_cd--;
}
if (crash_cd > 0) {
crash_cd--;
}
_y = (_y + grav);
if (((_root.ground.hitTest(_x, _y - 4, true) || (_root.ground.hitTest(_x, _y - 16, true))) && (_root.player_sprite.landing == -1)) && (crash_cd <= 0)) {
_root.player_sprite.landing = 1;
jump_cd = 10;
crash_cd = 20;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.player_sprite._currentframe <= 4) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
}
if (Key.isDown(38)) {
if (_root.ground.hitTest(_x, _y + 5, true)) {
if ((_root.player_sprite._currentframe <= 3) && (jump_cd == 0)) {
grav = -jumpHeight;
_y = (_y - jumpSpeed);
_parent.jump.start();
_root.vcam.shake = 3;
}
}
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
if (grav < 0) {
grav = (-grav) / 2;
}
}
}
Instance of Symbol 118 MovieClip "player_sprite" in Frame 1028
onClipEvent (load) {
jumping = false;
var scale = _xscale;
landing = -1;
landcount = 0;
}
onClipEvent (enterFrame) {
if (_root.player.grav < 0) {
jumping = true;
} else {
jumping = false;
}
this._x = _root.player._x;
this._y = _root.player._y - 22;
if (landing >= 1) {
if (landcount == 1) {
this.gotoAndPlay("land");
_parent.kiplosion.start();
_root.vcam.shake = 10;
}
landcount++;
if (landcount >= 7) {
landcount = 0;
landing = -1;
}
} else if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(37)) {
_xscale = (-scale);
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(32)) {
this.gotoAndStop("atk");
_parent.yell.start();
} else if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("stand");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
}
Frame 1045
stop();
Instance of Symbol 102 MovieClip "player" in Frame 1045
onClipEvent (load) {
var grav = 0;
var speed = 8;
var jumpHeight = 26;
var jumpSpeed = 8;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
jump_cd = 0;
crash_cd = 0;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (grav <= 16) {
grav = grav + 2;
}
if (jump_cd > 0) {
jump_cd--;
}
if (crash_cd > 0) {
crash_cd--;
}
_y = (_y + grav);
if (((_root.ground.hitTest(_x, _y - 4, true) || (_root.ground.hitTest(_x, _y - 16, true))) && (_root.player_sprite.landing == -1)) && (crash_cd <= 0)) {
_root.player_sprite.landing = 1;
jump_cd = 10;
crash_cd = 20;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.player_sprite._currentframe <= 4) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
}
if (Key.isDown(38)) {
if (_root.ground.hitTest(_x, _y + 5, true)) {
if ((_root.player_sprite._currentframe <= 3) && (jump_cd == 0)) {
grav = -jumpHeight;
_y = (_y - jumpSpeed);
_parent.jump.start();
_root.vcam.shake = 3;
}
}
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
if (grav < 0) {
grav = (-grav) / 2;
}
}
}
Instance of Symbol 118 MovieClip "player_sprite" in Frame 1045
onClipEvent (load) {
jumping = false;
var scale = _xscale;
landing = -1;
landcount = 0;
}
onClipEvent (enterFrame) {
if (_root.player.grav < 0) {
jumping = true;
} else {
jumping = false;
}
this._x = _root.player._x;
this._y = _root.player._y - 22;
if (landing >= 1) {
if (landcount == 1) {
this.gotoAndPlay("land");
_parent.kiplosion.start();
_root.vcam.shake = 10;
}
landcount++;
if (landcount >= 7) {
landcount = 0;
landing = -1;
}
} else if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(37)) {
_xscale = (-scale);
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(32)) {
this.gotoAndStop("atk");
_parent.yell.start();
} else if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("stand");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
}
Instance of Symbol 127 MovieClip "joe_shot" in Frame 1045
onClipEvent (load) {
activate = false;
speed = 16;
facing = 1;
angle = 1;
}
onClipEvent (enterFrame) {
if (activate) {
this._x = this._x - (speed * facing);
if (_root.player.hitTest(_x + 10, _y, true)) {
activate = false;
_parent.immune.start();
}
} else if (!activate) {
this._x = this._x + ((1.2 * speed) * facing);
this._y = this._y - ((angle * 0.01) * speed);
}
}
Instance of Symbol 135 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 34 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
}
}
Instance of Symbol 135 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 135 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 135 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 135 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 135 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 135 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 135 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 135 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 135 MovieClip in Frame 1045
onClipEvent (enterFrame) {
if (_root.player.hitTest(_x, _y, true)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 173 MovieClip in Frame 1045
onClipEvent (load) {
speed = 8;
dir = 1;
count = 0;
death = 0;
}
onClipEvent (enterFrame) {
if (death == 0) {
if (_root.player.hitTest(this) && (death == 0)) {
this.gotoAndPlay("death");
_parent.kiplosion.start();
death = 1;
}
this._x = this._x + speed;
count++;
if (count >= 34) {
count = 0;
speed = speed * -1;
}
}
}
Frame 1060
stop();
Instance of Symbol 102 MovieClip "player" in Frame 1060
onClipEvent (load) {
var grav = 0;
var speed = 8;
var jumpHeight = 26;
var jumpSpeed = 8;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
jump_cd = 0;
crash_cd = 0;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (grav <= 16) {
grav = grav + 2;
}
if (jump_cd > 0) {
jump_cd--;
}
if (crash_cd > 0) {
crash_cd--;
}
_y = (_y + grav);
if (((_root.ground.hitTest(_x, _y - 4, true) || (_root.ground.hitTest(_x, _y - 16, true))) && (_root.player_sprite.landing == -1)) && (crash_cd <= 0)) {
_root.player_sprite.landing = 1;
jump_cd = 10;
crash_cd = 20;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.player_sprite._currentframe <= 4) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
}
if (Key.isDown(38)) {
if (_root.ground.hitTest(_x, _y + 5, true)) {
if ((_root.player_sprite._currentframe <= 3) && (jump_cd == 0)) {
grav = -jumpHeight;
_y = (_y - jumpSpeed);
_parent.jump.start();
_root.vcam.shake = 3;
}
}
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
if (grav < 0) {
grav = (-grav) / 2;
}
}
}
Instance of Symbol 118 MovieClip "player_sprite" in Frame 1060
onClipEvent (load) {
jumping = false;
var scale = _xscale;
landing = -1;
landcount = 0;
}
onClipEvent (enterFrame) {
if (_root.player.grav < 0) {
jumping = true;
} else {
jumping = false;
}
this._x = _root.player._x;
this._y = _root.player._y - 22;
if (landing >= 1) {
if (landcount == 1) {
this.gotoAndPlay("land");
_parent.kiplosion.start();
_root.vcam.shake = 10;
}
landcount++;
if (landcount >= 7) {
landcount = 0;
landing = -1;
}
} else if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(37)) {
_xscale = (-scale);
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(32)) {
this.gotoAndStop("atk");
_parent.yell.start();
} else if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("stand");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
}
Instance of Symbol 127 MovieClip "joe_shot" in Frame 1060
onClipEvent (load) {
activate = false;
speed = 16;
facing = 1;
angle = 1;
}
onClipEvent (enterFrame) {
if (activate) {
this._x = this._x - (speed * facing);
if (_root.player.hitTest(_x + 10, _y, true)) {
activate = false;
_parent.immune.start();
}
} else if (!activate) {
this._x = this._x + ((1.2 * speed) * facing);
this._y = this._y - ((angle * 0.01) * speed);
}
}
Instance of Symbol 34 MovieClip in Frame 1060
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
}
}
Instance of Symbol 125 MovieClip in Frame 1060
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.player.hitTest(_x + 10, _y, true)) {
_xscale = (_xscale * -1);
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
} else if (_root.player.hitTest(_x - 10, _y, true)) {
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
}
}
}
Instance of Symbol 176 MovieClip in Frame 1060
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (this.hitTest(_root.player._x, _root.player._y + 10, true)) {
_yscale = (_yscale * -1);
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
} else if (this.hitTest(_root.player._x, _root.player._y - 10, true)) {
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
}
}
}
Instance of Symbol 176 MovieClip in Frame 1060
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (this.hitTest(_root.player._x, _root.player._y + 10, true)) {
_yscale = (_yscale * -1);
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
} else if (this.hitTest(_root.player._x, _root.player._y - 10, true)) {
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
}
}
}
Frame 1077
stop();
Instance of Symbol 102 MovieClip "player" in Frame 1077
onClipEvent (load) {
var grav = 0;
var speed = 8;
var jumpHeight = 26;
var jumpSpeed = 8;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
jump_cd = 0;
crash_cd = 0;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (grav <= 16) {
grav = grav + 2;
}
if (jump_cd > 0) {
jump_cd--;
}
if (crash_cd > 0) {
crash_cd--;
}
_y = (_y + grav);
if (((_root.ground.hitTest(_x, _y - 4, true) || (_root.ground.hitTest(_x, _y - 16, true))) && (_root.player_sprite.landing == -1)) && (crash_cd <= 0)) {
_root.player_sprite.landing = 1;
jump_cd = 10;
crash_cd = 20;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.player_sprite._currentframe <= 4) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
}
if (Key.isDown(38)) {
if (_root.ground.hitTest(_x, _y + 5, true)) {
if ((_root.player_sprite._currentframe <= 3) && (jump_cd == 0)) {
grav = -jumpHeight;
_y = (_y - jumpSpeed);
_parent.jump.start();
_root.vcam.shake = 3;
}
}
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
if (grav < 0) {
grav = (-grav) / 2;
}
}
}
Instance of Symbol 118 MovieClip "player_sprite" in Frame 1077
onClipEvent (load) {
jumping = false;
var scale = _xscale;
landing = -1;
landcount = 0;
}
onClipEvent (enterFrame) {
if (_root.player.grav < 0) {
jumping = true;
} else {
jumping = false;
}
this._x = _root.player._x;
this._y = _root.player._y - 22;
if (landing >= 1) {
if (landcount == 1) {
this.gotoAndPlay("land");
_parent.kiplosion.start();
_root.vcam.shake = 10;
}
landcount++;
if (landcount >= 7) {
landcount = 0;
landing = -1;
}
} else if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(37)) {
_xscale = (-scale);
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(32)) {
this.gotoAndStop("atk");
_parent.yell.start();
} else if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("stand");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
}
Instance of Symbol 127 MovieClip "joe_shot" in Frame 1077
onClipEvent (load) {
activate = false;
speed = 16;
facing = 1;
angle = 1;
}
onClipEvent (enterFrame) {
if (activate) {
this._x = this._x - (speed * facing);
if (_root.player.hitTest(_x + 10, _y, true)) {
activate = false;
_parent.immune.start();
}
} else if (!activate) {
this._x = this._x + ((1.2 * speed) * facing);
this._y = this._y - ((angle * 0.01) * speed);
}
}
Instance of Symbol 34 MovieClip in Frame 1077
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
}
}
Instance of Symbol 176 MovieClip in Frame 1077
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (this.hitTest(_root.player._x, _root.player._y + 10, true)) {
_yscale = (_yscale * -1);
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
} else if (this.hitTest(_root.player._x, _root.player._y - 10, true)) {
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
}
}
}
Instance of Symbol 176 MovieClip in Frame 1077
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (this.hitTest(_root.player._x, _root.player._y + 10, true)) {
_yscale = (_yscale * -1);
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
} else if (this.hitTest(_root.player._x, _root.player._y - 10, true)) {
this.gotoAndPlay(2);
_root.vcam.shake = 5;
_parent.wallhit.start();
}
}
}
Instance of Symbol 132 MovieClip in Frame 1077
onClipEvent (load) {
count = 0;
facing = 1;
scale = _xscale;
death = 0;
}
onClipEvent (enterFrame) {
if (death == 0) {
if (_root.player._x > _x) {
this._xscale = -scale;
facing = -1;
} else {
this._xscale = scale;
facing = 1;
}
}
if (_currentframe == 30) {
_root.joe_shot.facing = facing;
_root.joe_shot._x = this._x;
_root.joe_shot._y = this._y;
_root.joe_shot.angle = random(100);
_root.joe_shot.activate = true;
count++;
}
if (_root.player.hitTest(this) && (death == 0)) {
death = 1;
gotoAndPlay ("death");
_parent.scream1.start();
}
}
Frame 1225
explode.start();
Frame 1263
jump.start();
Instance of Symbol 87 MovieClip "vcam" in Frame 1275
onClipEvent (load) {
shake = 0;
}
onClipEvent (enterFrame) {
if (shake != 0) {
this._y = this._y - shake;
if (shake < 0) {
shake = 0;
}
shake = shake * -1;
}
}
Frame 1286
flyby.start();
Frame 1300
flyby.start();
Frame 1426
wallhit.start();
Frame 1456
stop();
Instance of Symbol 102 MovieClip "player" in Frame 1456
onClipEvent (load) {
var grav = 0;
var speed = 8;
var jumpHeight = 26;
var jumpSpeed = 8;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
jump_cd = 0;
crash_cd = 0;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (grav <= 16) {
grav = grav + 2;
}
if (jump_cd > 0) {
jump_cd--;
}
if (crash_cd > 0) {
crash_cd--;
}
_y = (_y + grav);
if (((_root.ground.hitTest(_x, _y - 4, true) || (_root.ground.hitTest(_x, _y - 16, true))) && (_root.player_sprite.landing == -1)) && (crash_cd <= 0)) {
_root.player_sprite.landing = 1;
jump_cd = 10;
crash_cd = 20;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.player_sprite._currentframe <= 4) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
}
if (Key.isDown(38)) {
if (_root.ground.hitTest(_x, _y + 5, true)) {
if ((_root.player_sprite._currentframe <= 3) && (jump_cd == 0)) {
grav = -jumpHeight;
_y = (_y - jumpSpeed);
_parent.jump.start();
_root.vcam.shake = 3;
}
}
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
if (grav < 0) {
grav = (-grav) / 2;
}
}
}
Instance of Symbol 118 MovieClip "player_sprite" in Frame 1456
onClipEvent (load) {
jumping = false;
var scale = _xscale;
landing = -1;
landcount = 0;
}
onClipEvent (enterFrame) {
if (_root.player.grav < 0) {
jumping = true;
} else {
jumping = false;
}
this._x = _root.player._x;
this._y = _root.player._y - 22;
if (landing >= 1) {
if (landcount == 1) {
this.gotoAndPlay("land");
_parent.kiplosion.start();
_root.vcam.shake = 10;
}
landcount++;
if (landcount >= 7) {
landcount = 0;
landing = -1;
}
} else if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(37)) {
_xscale = (-scale);
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(32)) {
this.gotoAndStop("atk");
_parent.yell.start();
} else if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("stand");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
}
Instance of Symbol 202 MovieClip in Frame 1456
onClipEvent (load) {
death = 0;
}
onClipEvent (enterFrame) {
if (death == 0) {
if (this.hitTest(_root.player)) {
this.gotoAndPlay(1);
death = 1;
_root.vcam.shake = 5;
_parent.explode.start();
}
}
}
Instance of Symbol 34 MovieClip in Frame 1456
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_parent.play();
}
}
Instance of Symbol 87 MovieClip "vcam" in Frame 1456
onClipEvent (load) {
shake = 0;
}
onClipEvent (enterFrame) {
if (shake != 0) {
this._y = this._y - shake;
if (shake < 0) {
shake = 0;
}
shake = shake * -1;
}
}
Frame 1492
kiplosion.start();
Instance of Symbol 87 MovieClip "vcam" in Frame 1497
onClipEvent (load) {
shake = 0;
}
onClipEvent (enterFrame) {
if (shake != 0) {
this._y = this._y - shake;
if (shake < 0) {
shake = 0;
}
shake = shake * -1;
}
}
Frame 1554
persian_intro.start();
Frame 1636
stop();
Instance of Symbol 102 MovieClip "player" in Frame 1636
onClipEvent (load) {
var grav = 0;
var speed = 8;
var jumpHeight = 26;
var jumpSpeed = 8;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
jump_cd = 0;
crash_cd = 0;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (grav <= 16) {
grav = grav + 2;
}
if (jump_cd > 0) {
jump_cd--;
}
if (crash_cd > 0) {
crash_cd--;
}
_y = (_y + grav);
if (((_root.ground.hitTest(_x, _y - 4, true) || (_root.ground.hitTest(_x, _y - 16, true))) && (_root.player_sprite.landing == -1)) && (crash_cd <= 0)) {
_root.player_sprite.landing = 1;
jump_cd = 10;
crash_cd = 20;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.player_sprite._currentframe <= 4) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
}
if (Key.isDown(38)) {
if (_root.ground.hitTest(_x, _y + 5, true)) {
if ((_root.player_sprite._currentframe <= 3) && (jump_cd == 0)) {
grav = -jumpHeight;
_y = (_y - jumpSpeed);
_parent.jump.start();
_root.vcam.shake = 3;
}
}
}
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 10, true)) {
if (grav < 0) {
grav = (-grav) / 2;
}
}
}
Instance of Symbol 118 MovieClip "player_sprite" in Frame 1636
onClipEvent (load) {
jumping = false;
var scale = _xscale;
landing = -1;
landcount = 0;
}
onClipEvent (enterFrame) {
if (_root.player.grav < 0) {
jumping = true;
} else {
jumping = false;
}
this._x = _root.player._x;
this._y = _root.player._y - 22;
if (landing >= 1) {
if (landcount == 1) {
this.gotoAndPlay("land");
_parent.kiplosion.start();
_root.vcam.shake = 10;
}
landcount++;
if (landcount >= 7) {
landcount = 0;
landing = -1;
}
} else if (Key.isDown(39)) {
_xscale = scale;
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(37)) {
_xscale = (-scale);
if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("run");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
} else if (Key.isDown(32)) {
this.gotoAndStop("atk");
_parent.yell.start();
_root.persian.sparta++;
} else if (_root.ground.hitTest(_root.player._x, _root.player._y + 5, true)) {
this.gotoAndStop("stand");
} else if (jumping) {
this.gotoAndStop("jump");
} else {
this.gotoAndStop("fall");
}
}
Instance of Symbol 245 MovieClip "persian" in Frame 1636
onClipEvent (load) {
jump_cd = 50;
atk_cd = 0;
speed_x = 3;
speed_y = 16;
sparta = 0;
death = 0;
}
onClipEvent (enterFrame) {
if ((sparta < 20) && (death == 0)) {
if ((atk_cd > 15) || (atk_cd < 5)) {
this.gotoAndStop("atk");
}
if (atk_cd <= 0) {
_parent.persian_attack.start();
_root.persian_atk.gotoAndPlay(1);
atk_cd = 15;
} else if (atk_cd == 5) {
atk_cd--;
this.gotoAndStop("stand");
} else {
atk_cd--;
}
if (jump_cd == 0) {
this.gotoAndStop("jump");
this._y = this._y - speed_y;
speed_y--;
if (speed_y < -16) {
speed_y = 16;
jump_cd = 50;
this.gotoAndStop("stand");
}
} else if (jump_cd > 0) {
jump_cd--;
}
} else if (death == 0) {
_root.vcam.shake = 5;
_parent.explode.start();
this.gotoAndPlay("death");
_root.bar.gotoAndStop(1);
death = 1;
}
if (_currentframe == 50) {
_parent.play();
}
}
Instance of Symbol 276 MovieClip "persian_atk" in Frame 1636
onClipEvent (load) {
force = 0;
}
onClipEvent (enterFrame) {
force = 25 - _currentframe;
this._x = _root.persian._x - 32;
this._y = _root.persian._y - 55;
if (_root.player.hitTest(this)) {
_root.player._x = _root.player._x - force;
}
}
Symbol 24 Button
on (release) {
_root.play();
}
Symbol 25 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 25 MovieClip Frame 2
gotoAndPlay (1);
Symbol 87 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_local4 = sX / this._width;
_local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = (100 + zoom) * _local4;
_parent._yscale = (100 + zoom) * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = true;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
zoom = 0;
Symbol 96 MovieClip Frame 7
stop();
Symbol 117 MovieClip Frame 23
stop();
Symbol 118 MovieClip Frame 12
gotoAndStop (1);
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 7
stop();
Symbol 132 MovieClip Frame 52
gotoAndPlay (1);
Symbol 132 MovieClip Frame 79
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 6
gotoAndPlay (4);
Symbol 161 MovieClip Frame 17
gotoAndPlay (1);
Symbol 161 MovieClip Frame 88
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 22
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 7
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 20
stop();
Symbol 244 MovieClip Frame 17
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 50
stop();
Symbol 273 MovieClip Frame 31
stop();
Symbol 276 MovieClip Frame 11
stop();