Frame 1
stop();
_root.hp = 900;
Instance of Symbol 20 MovieClip in Frame 1
onClipEvent (enterFrame) {
_y = (_y + ((_root.hero._y - _y) / 4));
_x = (_x + ((_root.hero._x - _x) / 4));
}
Instance of Symbol 24 MovieClip "cam" in Frame 1
onClipEvent (enterFrame) {
_y = (_y + ((_root.hero._y - _y) / 4));
_x = (_x + ((_root.hero._x - _x) / 4));
}
Instance of Symbol 40 MovieClip "hero" in Frame 1
onClipEvent (load) {
gravity = 0;
jumpheight = 12;
speed = 6;
rightface = this._xscale;
}
onClipEvent (enterFrame) {
gravity++;
this._y = this._y + gravity;
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
gravity = 0;
}
if (Key.isDown(17) and _root.ground.hitTest(this._x, this._y + 3, true)) {
gravity = -gravity;
this._y = this._y - 3;
this._xscale;
this.gotoAndStop(4);
}
if (Key.isDown(16) and _root.ground.hitTest(this._x, this._y + 3, true)) {
gravity = -gravity;
this._y = this._y - 3;
this._xscale;
this.gotoAndStop(5);
}
if (Key.isDown(38) and _root.ground.hitTest(this._x, this._y + 3, true)) {
gravity = -jumpheight;
this._y = this._y - 3;
this.gotoAndStop(3);
}
if (Key.isDown(39)) {
this._x = this._x + speed;
this._xscale = rightface;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(2);
} else if (_root.ground.hitTest(!this)) {
this.gotoAndStop(1);
}
} else if (Key.isDown(37)) {
this._x = this._x - speed;
this._xscale = -rightface;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(2);
} else if (_root.ground.hitTest(!this)) {
this.gotoAndStop(1);
}
} else if (_root.ground.hitTest(this._x, this._y + 3, true)) {
this.gotoAndStop(1);
}
if (_root.ground.hitTest(_x + (_width / 2), _y - (_height / 2), true) || (_root.ground.hitTest(_x + (_width / 2), _y - ((_height / 6) * 4), true))) {
_x = (_x - speed);
}
if (_root.ground.hitTest(_x - (_width / 2), _y - (_height / 2), true) || (_root.ground.hitTest(_x - (_width / 2), _y - ((_height / 6) * 4), true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, _y - _height, true)) {
gravity = 2;
}
}
onClipEvent (enterFrame) {
if (_root.hpBar < 1) {
play();
}
}
Instance of Symbol 50 MovieClip "enemy1" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hp = _root.hp - (random(20) + 4);
}
}
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
if (this._x < _root.hero._x) {
this._xscale = 100;
this._x = this._x + speed;
} else if (this._x > _root.hero._x) {
this._xscale = -100;
this._x = this._x - speed;
}
}
Instance of Symbol 62 MovieClip "enemy" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hp = _root.hp - (random(20) + 4);
}
}
onClipEvent (load) {
speed = 9;
}
onClipEvent (enterFrame) {
if (this._x < _root.hero._x) {
this._xscale = 100;
this._x = this._x + speed;
} else if (this._x > _root.hero._x) {
this._xscale = -100;
this._x = this._x - speed;
}
}
Instance of Symbol 69 MovieClip "clock1" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hp = _root.hp - (random(20) + 4);
}
}
onClipEvent (load) {
speed = 5;
}
onClipEvent (enterFrame) {
if (this._x < _root.hero._x) {
this._xscale = 100;
this._x = this._x + speed;
} else if (this._x > _root.hero._x) {
this._xscale = -100;
this._x = this._x - speed;
}
}
Instance of Symbol 74 MovieClip "clock2" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hp = _root.hp - (random(20) + 4);
}
}
onClipEvent (load) {
speed = 8;
}
onClipEvent (enterFrame) {
if (this._x < _root.hero._x) {
this._xscale = 100;
this._x = this._x + speed;
} else if (this._x > _root.hero._x) {
this._xscale = -100;
this._x = this._x - speed;
}
}
Instance of Symbol 81 MovieClip "clock3" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hp = _root.hp - (random(20) + 4);
}
}
Instance of Symbol 85 MovieClip "clock4" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hp = _root.hp - (random(20) + 4);
}
}
Instance of Symbol 87 MovieClip in Frame 1
onClipEvent (load) {
startDrag ("", true);
Mouse.hide();
}
onClipEvent (mouseDown) {
_root.gun.play();
if (this.hitTest(_root.enemy)) {
_root.enemy.nextFrame();
_root.score1++;
}
}
onClipEvent (mouseDown) {
_root.gun.play();
if (this.hitTest(_root.enemy1)) {
_root.enemy1.nextFrame();
_root.score1++;
}
}
onClipEvent (mouseDown) {
_root.gun.play();
if (this.hitTest(_root.clock1)) {
_root.clock1.nextFrame();
_root.score1++;
}
}
onClipEvent (mouseDown) {
_root.gun.play();
if (this.hitTest(_root.clock2)) {
_root.clock2.nextFrame();
_root.score1++;
}
}
onClipEvent (mouseDown) {
_root.gun.play();
if (this.hitTest(_root.clock3)) {
_root.clock3.nextFrame();
_root.score1++;
}
}
onClipEvent (mouseDown) {
_root.gun.play();
if (this.hitTest(_root.clock4)) {
_root.clock4.nextFrame();
_root.score1++;
}
}
onClipEvent (mouseDown) {
_root.gun.play();
if (this.hitTest(_root.clock5)) {
_root.clock5.nextFrame();
_root.score1++;
}
}
onClipEvent (mouseDown) {
_root.gun.play();
if (this.hitTest(_root.clock4)) {
_root.clock4.nextFrame();
_root.score1++;
}
}
Instance of Symbol 74 MovieClip "clock5" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hp = _root.hp - (random(20) + 4);
}
}
onClipEvent (load) {
speed = 14;
}
onClipEvent (enterFrame) {
if (this._x < _root.hero._x) {
this._xscale = 100;
this._x = this._x + speed;
} else if (this._x > _root.hero._x) {
this._xscale = -100;
this._x = this._x - speed;
}
}
Frame 2
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 4
_root.gotoAndStop(4);
Instance of Symbol 7 MovieClip "hpBar" in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.hp;
if (_root.hp < 0) {
_root.hp = 0;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 19 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hp < 1) {
nextFrame();
_root.hp = 900;
}
}
Symbol 24 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _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 = false;
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;
Symbol 34 MovieClip Frame 1
stop();
if (mouseDown) {
}
Instance of Symbol 34 MovieClip in Symbol 35 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(1)) {
this.gotoAndPlay(10);
}
}
Symbol 40 MovieClip Frame 1
stop();
Instance of Symbol 35 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (mouseMove) {
_rotation = ((Math.atan2(_y - _parent._ymouse, _x - _parent._xmouse) * 180) / Math.PI);
}
Symbol 40 MovieClip Frame 2
stop();
Symbol 49 MovieClip Frame 23
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 20
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 68 MovieClip Frame 20
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 73 MovieClip Frame 19
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 80 MovieClip Frame 30
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();