Frame 1
stop();
Frame 2
movespeed = 24;
life = 100;
gravity = 20;
enemyspeed = 6;
stop();
Instance of Symbol 25 MovieClip in Frame 2
onClipEvent (load) {
this._width = 99999 /* 0x01869F */;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.life = 0;
}
}
Instance of Symbol 122 MovieClip "Player" in Frame 2
onClipEvent (enterFrame) {
if ((Key.isDown(37) && (_root.crouching == false)) && (_root.GOTGUN == undefined)) {
this._x = this._x - _root.movespeed;
this._xscale = -100;
_root.running = true;
this.gotoAndStop(2);
} else if ((Key.isDown(39) && (_root.crouching == false)) && (_root.GOTGUN == undefined)) {
this._x = this._x + _root.movespeed;
this._xscale = 100;
_root.running = true;
this.gotoAndStop(2);
} else if ((Key.isDown(37) && (_root.crouching == false)) && (_root.GOTGUN == true)) {
this._x = this._x - _root.movespeed;
this._xscale = -100;
_root.running = true;
this.gotoAndStop(5);
_root.gun._xscale = 100;
} else if ((Key.isDown(39) && (_root.crouching == false)) && (_root.GOTGUN == true)) {
this._x = this._x + _root.movespeed;
this._xscale = 100;
_root.running = true;
this.gotoAndStop(5);
_root.gun._xscale = -100;
} else {
_root.running = false;
}
if ((((_root.running == false) && (_root.jumping == false)) && (_root.crouching == false)) && (_root.GOTGUN == undefined)) {
this.gotoAndStop(1);
}
if ((((_root.running == false) && (_root.jumping == false)) && (_root.crouching == false)) && (_root.GOTGUN == true)) {
this.gotoAndStop(6);
}
if (Key.isDown(40) && (_root.jumping == false)) {
this.gotoAndStop(4);
_root.crouching = true;
} else {
_root.crouching = false;
}
if (_root.gravity >= 0) {
this._y = this._y + _root.gravity;
}
if ((Key.isDown(32) && (_root.jumping == false)) && (_root.crouching == false)) {
_root.jumping = true;
this.gotoAndStop(3);
}
if (_root.jumping == true) {
this._y = this._y - (_root.movespeed - _root.gravity);
} else {
_root.jumping = false;
}
if (this.hitTest(_root.Ground1)) {
_root.gravity = 0;
_root.jumping = false;
} else if (this.hitTest(_root.Ground2)) {
_root.gravity = 0;
_root.jumping = false;
} else {
_root.gravity = _root.gravity + 2;
}
if (this.hitTest(_root.TEST)) {
_root.Background1._x = _root.Background1._x - 550;
_root.Background2._x = _root.Background2._x - 550;
_root.Background3._x = _root.Background3._x - 550;
_root.Background4._x = _root.Background4._x - 550;
_root.Ground1._x = _root.Ground1._x - 550;
this._x = this._x - 550;
}
if (this.hitTest(_root.TEST2)) {
_root.Background1._x = _root.Background1._x + 550;
_root.Background2._x = _root.Background2._x + 550;
_root.Background3._x = _root.Background3._x + 550;
_root.Background4._x = _root.Background4._x + 550;
_root.Ground1._x = _root.Ground1._x + 550;
this._x = this._x + 550;
}
if (this.hitTest(_root.Enemy1)) {
_root.life = _root.life - 5;
_root.hittestenemy = true;
}
}
Frame 3
stop();
Frame 4
movespeed = 24;
life = 100;
gravity = 20;
enemyspeed = 6;
stop();
Instance of Symbol 25 MovieClip in Frame 4
onClipEvent (load) {
this._width = 99999 /* 0x01869F */;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.life = 0;
}
}
Instance of Symbol 122 MovieClip "Player" in Frame 4
onClipEvent (enterFrame) {
if ((Key.isDown(37) && (_root.crouching == false)) && (_root.GOTGUN == undefined)) {
this._x = this._x - _root.movespeed;
this._xscale = -100;
_root.running = true;
this.gotoAndStop(2);
} else if ((Key.isDown(39) && (_root.crouching == false)) && (_root.GOTGUN == undefined)) {
this._x = this._x + _root.movespeed;
this._xscale = 100;
_root.running = true;
this.gotoAndStop(2);
} else if ((Key.isDown(37) && (_root.crouching == false)) && (_root.GOTGUN == true)) {
this._x = this._x - _root.movespeed;
this._xscale = -100;
_root.running = true;
this.gotoAndStop(5);
_root.gun._xscale = 100;
} else if ((Key.isDown(39) && (_root.crouching == false)) && (_root.GOTGUN == true)) {
this._x = this._x + _root.movespeed;
this._xscale = 100;
_root.running = true;
this.gotoAndStop(5);
_root.gun._xscale = -100;
} else {
_root.running = false;
}
if ((((_root.running == false) && (_root.jumping == false)) && (_root.crouching == false)) && (_root.GOTGUN == undefined)) {
this.gotoAndStop(1);
}
if ((((_root.running == false) && (_root.jumping == false)) && (_root.crouching == false)) && (_root.GOTGUN == true)) {
this.gotoAndStop(6);
}
if (Key.isDown(40) && (_root.jumping == false)) {
this.gotoAndStop(4);
_root.crouching = true;
} else {
_root.crouching = false;
}
if (_root.gravity >= 0) {
this._y = this._y + _root.gravity;
}
if ((Key.isDown(32) && (_root.jumping == false)) && (_root.crouching == false)) {
_root.jumping = true;
this.gotoAndStop(3);
}
if (_root.jumping == true) {
this._y = this._y - (_root.movespeed - _root.gravity);
} else {
_root.jumping = false;
}
if (this.hitTest(_root.Ground1)) {
_root.gravity = 0;
_root.jumping = false;
} else if (this.hitTest(_root.Ground2)) {
_root.gravity = 0;
_root.jumping = false;
} else {
_root.gravity = _root.gravity + 2;
}
if (this.hitTest(_root.TEST)) {
_root.Background1._x = _root.Background1._x - 550;
_root.Background2._x = _root.Background2._x - 550;
_root.Background3._x = _root.Background3._x - 550;
_root.Background4._x = _root.Background4._x - 550;
_root.Ground1._x = _root.Ground1._x - 550;
this._x = this._x - 550;
}
if (this.hitTest(_root.TEST2)) {
_root.Background1._x = _root.Background1._x + 550;
_root.Background2._x = _root.Background2._x + 550;
_root.Background3._x = _root.Background3._x + 550;
_root.Background4._x = _root.Background4._x + 550;
_root.Ground1._x = _root.Ground1._x + 550;
this._x = this._x + 550;
}
if (this.hitTest(_root.Enemy1)) {
_root.life = _root.life - 5;
_root.hittestenemy = true;
}
}
Symbol 16 Button
on (release) {
gotoAndStop (2);
}
Instance of Symbol 27 MovieClip in Symbol 30 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.life <= 0) {
_root.gotoAndStop(3);
}
this._width = _root.life;
}
Symbol 75 MovieClip Frame 17
gotoAndPlay (10);
Symbol 76 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 9
gotoAndPlay (4);
Symbol 100 MovieClip Frame 4
gotoAndPlay (2);
Symbol 104 MovieClip Frame 1
stop();
Instance of Symbol 104 MovieClip "gun" in Symbol 116 MovieClip Frame 1
onClipEvent (enterFrame) {
ax = _root._xmouse - (_root.Player._x + this._x);
ay = _root._ymouse - (_root.Player._y + this._y);
angle = (180 * Math.atan2(ay, ax)) / Math.PI;
this._rotation = 90 + angle;
}
Instance of Symbol 104 MovieClip "gun" in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
ax = _root._xmouse - (_root.Player._x + this._x);
ay = _root._ymouse - (_root.Player._y + this._y);
angle = (180 * Math.atan2(ay, ax)) / Math.PI;
this._rotation = 90 + angle;
}
Symbol 122 MovieClip Frame 1
stop();
stop();
Instance of Symbol 60 MovieClip in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Symbol 122 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 4
stop();
Symbol 122 MovieClip Frame 5
stop();
Symbol 122 MovieClip Frame 6
stop();
Symbol 132 Button
on (release) {
gotoAndStop (2);
}