Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 325) {
gotoAndPlay ("loop2");
}
Instance of Symbol 66 MovieClip in Frame 10
on (release) {
getURL ("http://www.freeonlinegames.com/?alias2", "_blank");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 2;
if (tgprel <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 175
function next() {
gotoAndPlay ("next");
}
overall = new Sound();
overall.setVolume(100);
stopAllSounds();
Mouse.show();
transition._visible = 0;
transition.stop();
Frame 220
bout_instructions.gotoAndPlay(2);
Frame 238
_root.playpiton.gotoAndPlay(2);
stop();
Frame 254
gotoAndStop (255);
Frame 255
function next() {
stopAllSounds();
gotoAndStop (258);
}
transition.gotoAndPlay("unfade");
Frame 258
function colorize() {
colorchange = new Object();
colorchange = {rb:0, ra:red, gb:0, ga:green, bb:0, ba:blue, aa:100, ab:0};
for (a in game) {
if (game[a] != game.bonom) {
gamecolor = new Color(game[a]);
gamecolor.setTransform(colorchange);
}
}
gamecolor = new Color(game);
gamecolor.setTransform(colorchange);
gamecolor = new Color(pointer);
gamecolor.setTransform(colorchange);
}
function automsg(msg, time) {
automessage.message = msg;
automessage.loopsmax = time;
automessage.loops = 0;
automessage.gotoAndPlay(2);
}
function showscore(cible, xbonus, ybonus) {
var _local1 = cible;
duplicateMovieClip (game.scoremonitor, "scoremonitor" + game.n, game.n);
scoremntr = game["scoremonitor" + game.n];
scoremntr.score = _local1.score;
scoremntr._x = (_local1._x + _local1._parent._x) + xbonus;
scoremntr._y = ((_local1._y + _local1._parent._y) + _local1.middle) + ybonus;
scoremntr.gotoAndPlay(2);
game.n++;
}
function next(stopsound) {
herofirerate = game.sprites.hero.firerate;
if (stopsound) {
stopAllSounds();
}
game.foreground.swapDepths(game.foreground.depthorig);
game.decor.swapDepths(game.decor.depthorig);
game.sprites.swapDepths(game.sprites.depthorig);
game.nextFrame();
game.sprites.hero.firerate = herofirerate;
area = game._currentframe;
_root.transition.gotoAndPlay("unfade");
}
function areachange(area) {
targetarea = area;
transition.gotoAndPlay(2);
}
function death() {
retryclip.gotoAndStop(2);
lives = lives - 1;
if (lives == 0) {
defeatscene();
} else {
game.restoredepth();
game.gotoAndStop("dead");
}
}
function retry() {
stopAllSounds();
game.gotoAndPlay("retry");
}
function victoryscene() {
gotoAndPlay (260);
}
function defeatscene() {
gotoAndPlay (380);
}
function titlescene() {
gotoAndPlay (175);
}
function timescoreloss() {
secondselapsed++;
}
function shake(amplitude, number, loss, xfactor) {
if (((shakemode == 1) && (shaker._currentframe == 1)) && (!herodead)) {
shaker.shakefactor = amplitude * shakeadjust;
shaker.loopsmax = number;
shaker.damp = loss;
shaker.xshake = xfactor * shakeadjust;
shaker.gotoAndPlay(1);
}
}
function shakey(power) {
game.ydecal = game.ydecal + power;
}
function dieshake() {
shake(20, 3, 2, 0);
}
function hitshake(factor) {
shake(factor / 3, 2, 2, 0);
}
function groundshake() {
shake(15, 4, 1.5, 0);
}
_root.closeButton.gotoAndStop(1);
winner = 0;
extralifegot = 0;
Mouse.hide();
startDrag (cursor, true);
n = 100;
score = 0;
herofirerate = 0;
lives = 5;
secondselapsed = 0;
shakemode = 1;
shakeadjust = 2;
hero = game.sprites.hero;
area = 1;
_quality = "MEDIUM";
_root.transition.gotoAndPlay("unfade");
interval_timeloss = setInterval(timescoreloss, 1000);
stop();
Instance of Symbol 820 MovieClip "game" in Frame 258
onClipEvent (load) {
function ybasechange(cible, ydiv) {
ycible = cible;
ydivcible = ydiv;
ymover.gotoAndPlay(2);
ybasemem = ydecalbase;
}
function xbasechange(cible) {
xcible = cible;
xmover.gotoAndPlay(2);
xbasemem = xdecalbase;
}
function reset() {
xdecalbase = xdecalorig;
ydecalbase = yorig;
ydecal = 0;
_x = xorig;
_y = yorig;
_xscale = 100;
_yscale = 100;
}
function restoredepth() {
sprites.swapDepths(sprites.depthorig);
foreground.swapDepths(foreground.depthorig);
decor.swapDepths(decor.depthorig);
}
ydecalorig = _y;
ydecalbase = _y;
}
onClipEvent (enterFrame) {
_y = ((ydecal / ycameradiv) + ydecalbase);
}
Instance of Symbol 823 MovieClip "status_rot" in Frame 258
onClipEvent (load) {
hero = _parent.game.sprites.hero;
}
Instance of Symbol 831 MovieClip "status_boss" in Frame 258
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 854 MovieClip "shaker" in Frame 258
onClipEvent (load) {
game = _root.game;
stop();
}
Frame 259
stopAllSounds();
gotoAndStop (258);
Frame 260
Mouse.show();
clearInterval(interval_timeloss);
finalseconds = secondselapsed;
scoretimebonus = 30000 - (30 * finalseconds);
finalscore = score + scoretimebonus;
minutes = int(finalseconds / 60);
seconds = finalseconds - (60 * minutes);
finaltime = (minutes + ":") + seconds;
Frame 378
stop();
Frame 379
gotoAndPlay (175);
Frame 380
Mouse.show();
stopAllSounds();
Frame 439
stop();
Frame 440
gotoAndPlay (175);
Symbol 5 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 50
stop();
_parent.play();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 77 Button
on (release) {
if ((_root.diffoption._currentframe == 1) && (_root.instructions._currentframe == 1)) {
_root.diffoption.gotoAndPlay(2);
}
}
Symbol 78 Button
on (release) {
if ((_root.diffoption._currentframe == 1) && (_root.instructions._currentframe == 1)) {
_root.diffoption.gotoAndPlay(2);
}
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 21
stop();
Symbol 85 Button
on (release) {
if ((_root.transition._currentframe == 1) && (_root.instructions._currentframe == 1)) {
_root.difficulty = 1;
_root.transition.gotoAndPlay("fade");
}
}
Symbol 86 Button
on (release) {
if ((_root.transition._currentframe == 1) && (_root.instructions._currentframe == 1)) {
_root.difficulty = 2;
_root.transition.gotoAndPlay("fade");
}
}
Symbol 87 Button
on (release) {
if ((_root.transition._currentframe == 1) && (_root.instructions._currentframe == 1)) {
_root.difficulty = 3;
_root.transition.gotoAndPlay("fade");
}
}
Symbol 95 MovieClip Frame 1
_visible = 0;
stop();
Symbol 95 MovieClip Frame 2
_visible = 1;
Symbol 95 MovieClip Frame 10
stop();
Symbol 103 Button
on (release) {
if (_root.instructions._currentframe == 1) {
_root.instructions.gotoAndPlay(2);
}
}
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 21
stop();
Symbol 109 MovieClip Frame 1
_visible = 0;
Symbol 111 MovieClip Frame 1
_visible = 0;
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 20
gotoAndStop ("stand");
Symbol 119 MovieClip Frame 1
rotfactor = 4;
translatefactor = -10;
Instance of Symbol 118 MovieClip "anim" in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
function rotate() {
if (_rotation > 0) {
_rotation = -90;
} else {
_rotation = (-90 + (-90 - _rotation));
_x = (-_x);
}
track();
}
function track() {
var _local1 = _parent;
if (owner.tracktime) {
if (_local1._parent.gun._ymouse >= 0) {
rotcible = (90 + (((-Math.atan(_local1._parent.gun._xmouse / _local1._parent.gun._ymouse)) * 180) / Math.PI)) / _local1.rotfactor;
if (rotcible > 25) {
rotcible = 25;
}
} else {
rotcible = (-90 + (((-Math.atan(_local1._parent.gun._xmouse / _local1._parent.gun._ymouse)) * 180) / Math.PI)) / _local1.rotfactor;
}
rotspeed = (rotcible - _rotation) / 3;
_rotation = (_rotation + rotspeed);
if (_rotation < -90) {
_rotation = -90;
}
xcible = xorig + (_rotation / _local1.translatefactor);
ycible = yorig - (Math.abs(_rotation) / Math.abs(1.5 * _local1.translatefactor));
_x = (_x + ((xcible - _x) / 2));
_y = (_y + ((ycible - _y) / 2));
}
}
xorig = _x;
yorig = _y;
owner = _parent._parent;
}
onClipEvent (enterFrame) {
track();
}
Symbol 125 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 6
_parent._parent.expression("fire");
Symbol 126 MovieClip Frame 17
_parent._parent.expression("normal");
Symbol 126 MovieClip Frame 20
gotoAndStop ("stand");
Symbol 127 MovieClip Frame 1
rotfactor = 1.1;
translatefactor = 10;
Instance of Symbol 126 MovieClip "anim" in Symbol 127 MovieClip Frame 1
onClipEvent (load) {
function rotate() {
if (_rotation > 0) {
_rotation = -90;
} else {
_rotation = (-90 + (-90 - _rotation));
_x = (-_x);
}
track();
}
function track() {
var _local1 = _parent;
if (owner.tracktime) {
if (_local1._parent.gun._ymouse >= 0) {
rotcible = (90 + (((-Math.atan(_local1._parent.gun._xmouse / _local1._parent.gun._ymouse)) * 180) / Math.PI)) / _local1.rotfactor;
if (rotcible > 25) {
rotcible = 25;
}
} else {
rotcible = (-90 + (((-Math.atan(_local1._parent.gun._xmouse / _local1._parent.gun._ymouse)) * 180) / Math.PI)) / _local1.rotfactor;
}
rotspeed = (rotcible - _rotation) / 3;
_rotation = (_rotation + rotspeed);
if (_rotation < -90) {
_rotation = -90;
}
xcible = xorig + (_rotation / _local1.translatefactor);
ycible = yorig - (Math.abs(_rotation) / Math.abs(1.5 * _local1.translatefactor));
_x = (_x + ((xcible - _x) / 2));
_y = (_y + ((ycible - _y) / 2));
}
}
xorig = _x;
yorig = _y;
owner = _parent._parent;
}
onClipEvent (enterFrame) {
track();
}
Symbol 129 MovieClip Frame 1
_visible = 0;
Symbol 132 MovieClip Frame 1
_visible = 0;
Symbol 134 MovieClip Frame 1
_visible = 0;
Symbol 138 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip "testzone" in Symbol 138 MovieClip Frame 6
onClipEvent (load) {
prolonj = 15;
owner = _parent._parent._parent;
shot = owner.shot;
rot = (_parent._rotation + _parent._parent._rotation) / 57.3;
mindist = 400;
if (owner.direction == -1) {
rot = (-90 + (-90 - _parent._rotation)) / 57.3;
}
brake = 0;
cible = 0;
parentx = (((_root.game._x + _root.game.sprites._x) + owner._x) + _parent._parent._x) + _parent._x;
parenty = (((_root.game._y + _root.game.sprites._y) + owner._y) + _parent._parent._y) + _parent._y;
cibles = new Array();
decorcibles = new Array();
for (a in _root.game.sprites) {
if ((_root.game.sprites[a] != owner) && (_root.game.sprites[a].hitzone.hitTest(_parent.testline))) {
cibles.push(_root.game.sprites[a]);
}
}
for (a in _root.game.decor) {
if (_root.game.decor[a].hitzone.hitTest(_parent.testline)) {
decorcibles.push(_root.game.decor[a]);
}
}
do {
if (!((_root.game.decor.hitTest((parentx + (_x * Math.cos(rot))) - (_y * Math.sin(rot)), (parenty + (_x * Math.sin(rot))) + (_y * Math.cos(rot)), 1) == 0) and (_x < 500))) {
break;
}
_x = (_x + 30);
for (a in cibles) {
if (hitTest(cibles[a].hitzone)) {
dist = Math.sqrt(((cibles[a]._x - owner._x) * (cibles[a]._x - owner._x)) + ((cibles[a]._y - owner._y) * (cibles[a]._y - owner._y)));
if (dist < mindist) {
mindist = dist;
cible = cibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 1, 2);
brake = 1;
}
}
}
} while (brake != 1);
for (a in decorcibles) {
if (hitTest(decorcibles[a].hitzone)) {
cible = decorcibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 3, 3);
}
}
xsanscible = _x;
shot._yscale = shot._yscale * ((0.32 * (_x + prolonj)) / shot._yscale);
shot.gotoAndPlay("shot");
if (_x >= 500) {
shot.badang._visible = 0;
}
}
Symbol 138 MovieClip Frame 9
if (owner.firerate >= 4) {
call("shootok");
}
Symbol 138 MovieClip Frame 10
if (owner.firerate >= 3) {
call("shootok");
}
Symbol 138 MovieClip Frame 11
if (owner.firerate >= 2) {
call("shootok");
}
Symbol 138 MovieClip Frame 12
if (owner.firerate >= 1) {
call("shootok");
}
Symbol 138 MovieClip Frame 13
if (_parent._parent.tracktime) {
_parent._parent.shoottime = 1;
if (_parent._parent.gonnashoot) {
_parent._parent.shoot();
}
}
Symbol 138 MovieClip Frame 20
gotoAndStop ("stand");
Symbol 139 MovieClip Frame 1
rotfactor = 1;
translatefactor = -15;
Instance of Symbol 138 MovieClip "anim" in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
function rotate() {
if (_rotation > 0) {
_rotation = -90;
} else {
_rotation = (-90 + (-90 - _rotation));
_x = (-_x);
}
track();
}
function track() {
var _local1 = _parent;
if (owner.tracktime) {
if (_local1._parent.gun._ymouse >= 0) {
rotcible = (90 + (((-Math.atan(_local1._parent.gun._xmouse / _local1._parent.gun._ymouse)) * 180) / Math.PI)) / _local1.rotfactor;
if (rotcible > 25) {
rotcible = 25;
}
} else {
rotcible = (-90 + (((-Math.atan(_local1._parent.gun._xmouse / _local1._parent.gun._ymouse)) * 180) / Math.PI)) / _local1.rotfactor;
}
rotspeed = (rotcible - _rotation) / 3;
_rotation = (_rotation + rotspeed);
if (_rotation < -90) {
_rotation = -90;
}
xcible = xorig + (_rotation / _local1.translatefactor);
ycible = yorig - (Math.abs(_rotation) / Math.abs(1.5 * _local1.translatefactor));
_x = (_x + ((xcible - _x) / 2));
_y = (_y + ((ycible - _y) / 2));
}
}
xorig = _x;
yorig = _y;
owner = _parent._parent;
}
onClipEvent (enterFrame) {
track();
}
Symbol 145 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 145 MovieClip Frame 2
_parent._parent.slidemove();
Symbol 145 MovieClip Frame 3
gotoAndPlay (2);
Symbol 147 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 147 MovieClip Frame 2
_parent.gotoAndPlay(frame);
Symbol 147 MovieClip Frame 3
gotoAndPlay (2);
Symbol 148 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 148 MovieClip Frame 2
_parent._parent.move();
Symbol 148 MovieClip Frame 3
gotoAndPlay (2);
Symbol 149 MovieClip Frame 1
Instance of Symbol 147 MovieClip in Symbol 149 MovieClip Frame 5
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 147 MovieClip in Symbol 149 MovieClip Frame 25
onClipEvent (load) {
frame = "walk_fwd_loop";
}
Instance of Symbol 147 MovieClip in Symbol 149 MovieClip Frame 47
onClipEvent (load) {
frame = "walk_rew_loop";
}
Instance of Symbol 158 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._parent._xscale < 0) {
_xscale = ((100 * _parent._parent._parent._xscale) / _parent._parent._parent.xscaleorig);
}
}
onClipEvent (enterFrame) {
if (_parent._parent._parent._xscale < 0) {
_xscale = ((100 * _parent._parent._parent._xscale) / _parent._parent._parent.xscaleorig);
}
}
Symbol 161 MovieClip Frame 1
_visible = 0;
stop();
Symbol 161 MovieClip Frame 5
_visible = 1;
Symbol 161 MovieClip Frame 14
gotoAndStop (1);
Symbol 161 MovieClip Frame 20
_visible = 1;
Symbol 161 MovieClip Frame 44
gotoAndStop (1);
Symbol 161 MovieClip Frame 50
_visible = 1;
Symbol 161 MovieClip Frame 75
gotoAndStop (1);
Symbol 163 MovieClip Frame 1
_parent.ground = 0;
_visible = 0;
gotoAndPlay (2);
Symbol 163 MovieClip Frame 2
if (_parent.yspeed > 12) {
_parent.groundcheck();
var ladered = 0;
for (a in _parent.decor.ladders) {
if (_parent.decor.ladders[a].hitzone.hitTest(_parent.climbzone)) {
_parent.ladder = _parent.decor.ladders[a];
_parent.gotoAndPlay("climbdown_st");
ladered = 1;
}
}
if (_parent.ground && (!ladered)) {
_parent.gotoAndStop("falling");
}
_parent.jumpxspeed = _parent.xspeed;
}
Symbol 163 MovieClip Frame 4
gotoAndPlay (2);
Symbol 165 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 165 MovieClip Frame 2
if (key.isDown(_parent.key_left)) {
_parent.dirkey = _parent.key_left;
_parent.otherdirkey = _parent.key_right;
if (_parent.direction == 1) {
_parent.gotoAndPlay("walk_rew");
} else {
_parent.gotoAndPlay("walk_fwd");
}
} else if (key.isDown(_parent.key_right)) {
_parent.dirkey = _parent.key_right;
_parent.otherdirkey = _parent.key_left;
if (_parent.direction == 1) {
_parent.gotoAndPlay("walk_fwd");
} else {
_parent.gotoAndPlay("walk_rew");
}
}
Symbol 165 MovieClip Frame 4
gotoAndPlay (2);
Symbol 167 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 167 MovieClip Frame 2
if ((_parent._xmouse < 0) and _parent.active) {
_parent.movedirection = _parent.movedirection * -1;
_parent.direction = _parent.direction * -1;
_parent._xscale = _parent._xscale * -1;
_parent.maing.swapDepths(_parent.gun);
_parent.head.anim.rotate();
_parent.gun.anim.rotate();
}
Symbol 167 MovieClip Frame 5
gotoAndPlay (2);
Symbol 169 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 169 MovieClip Frame 2
if (Key.isDown(_parent.key_jump) || (Key.isDown(_parent.key_jump2))) {
_parent.groundcheck();
var ladered = 0;
for (a in _parent.decor.ladders) {
if (_parent.decor.ladders[a].hitzone.hitTest(_parent.climbzone) && (_parent.decor.ladders[a].hitzone.hitTest(_parent.hitzone))) {
_parent.ladder = _parent.decor.ladders[a];
_parent.gotoAndPlay("climb_st");
ladered = 1;
}
}
if (_parent.ground && (!ladered)) {
_parent.gotoAndPlay("jump");
}
}
Symbol 169 MovieClip Frame 4
gotoAndPlay (2);
Symbol 171 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 171 MovieClip Frame 2
if (_parent._xmouse < 0) {
_parent.direction = _parent.direction * -1;
_parent._xscale = _parent._xscale * -1;
_parent.head.anim.rotate();
_parent.maing.swapDepths(_parent.gun);
_parent.gun.anim.rotate();
_parent.gun.anim.rotcible = _parent.gun._rotation;
_parent.footchange = 1;
_parent.gotoAndPlay(_parent.dirchangeframe);
}
Symbol 171 MovieClip Frame 6
gotoAndPlay (2);
Symbol 173 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 173 MovieClip Frame 2
_parent.xspeed = _parent.xspeed + ((_parent.origxspeed - _parent.xspeed) / 2);
Symbol 173 MovieClip Frame 4
gotoAndPlay (2);
Symbol 174 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 174 MovieClip Frame 2
if ((key.isDown(_parent.key_esquiv) && (_parent.rolltime)) && (_parent.esquivframe != 0)) {
_parent.gotoAndPlay(_parent.esquivframe);
}
Symbol 174 MovieClip Frame 4
gotoAndPlay (2);
Symbol 175 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 175 MovieClip Frame 2
if (key.isDown(_parent.dirkey)) {
} else {
if (key.isDown(_parent.otherdirkey)) {
if (_parent.movedirection == 1) {
_parent.foots.gotoAndPlay("walk_rew2");
} else {
_parent.foots.gotoAndPlay("walk_fwd2");
}
_parent.xspeed = _parent.xspeed * -1;
} else if (!_parent.footchange) {
_parent.foots.gotoAndPlay("stand");
_parent.xspeed = 0;
}
_parent.gotoAndPlay(_parent.endframe);
}
Symbol 175 MovieClip Frame 3
gotoAndPlay (2);
Symbol 176 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 176 MovieClip Frame 2
if (key.isDown(_parent.dirkey) && (_parent.active)) {
_parent.gotoAndPlay(_parent.loopframe);
} else {
if (key.isDown(_parent.otherdirkey)) {
if (_parent.movedirection == 1) {
_parent.foots.gotoAndPlay("walk_rew2");
} else {
_parent.foots.gotoAndPlay("walk_fwd2");
}
_parent.xspeed = _parent.xspeed * -1;
_parent.call(_parent.dirchangeframe);
} else if (!_parent.footchange) {
_parent.foots.gotoAndPlay("stand");
_parent.xspeed = 0;
}
_parent.gotoAndPlay(_parent.endframe);
}
Symbol 176 MovieClip Frame 4
gotoAndPlay (2);
Symbol 177 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 177 MovieClip Frame 2
_parent.slidemove();
Symbol 177 MovieClip Frame 3
gotoAndPlay (2);
Symbol 178 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 178 MovieClip Frame 2
_parent.move();
Symbol 178 MovieClip Frame 3
gotoAndPlay (2);
Symbol 179 MovieClip Frame 1
_visible = 0;
dirchange = 0;
gotoAndPlay (2);
Symbol 179 MovieClip Frame 2
if (key.isDown(_parent.key_left)) {
if (_parent.jumpxspeed >= 0) {
_parent.xspeed = _parent.xspeed - 1.5;
if (dirchange == 0) {
_parent.movedirection = -_parent.direction;
_parent.dirkey = _parent.key_left;
dirchange = 1;
}
}
} else if (key.isDown(_parent.key_right)) {
if (_parent.jumpxspeed <= 0) {
_parent.xspeed = _parent.xspeed + 1.5;
if (dirchange == 0) {
_parent.movedirection = _parent.direction;
_parent.dirkey = _parent.key_right;
dirchange = 1;
}
}
}
Symbol 179 MovieClip Frame 4
gotoAndPlay (2);
Symbol 181 MovieClip Frame 1
_parent.ground = 0;
_visible = 0;
gotoAndPlay (2);
Symbol 181 MovieClip Frame 2
_parent.groundcheck();
if (_parent.ground == 1) {
_parent.gotoAndPlay(frame);
}
Symbol 181 MovieClip Frame 3
gotoAndPlay (2);
Symbol 182 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 182 MovieClip Frame 2
_parent.stop();
Symbol 182 MovieClip Frame 3
stop();
Symbol 183 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 183 MovieClip Frame 2
for (a in _parent.decor.ladders) {
if (_parent.decor.ladders[a].hitzone.hitTest(_parent.climbzone) && (_parent.decor.ladders[a].hitzone.hitTest(_parent.hitzone))) {
_parent.ladder = _parent.decor.ladders[a];
_parent.gotoAndPlay("climb_st");
}
}
Symbol 183 MovieClip Frame 4
gotoAndPlay (2);
Symbol 184 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 184 MovieClip Frame 2
if (_parent.foots._currentframe < 10) {
if (key.isDown(_parent.key_left)) {
if (_parent.direction == 1) {
_parent.foots.gotoAndPlay("walk_rew");
_parent.xspeed = _parent.backwalkspeed * _parent.direction;
_parent.esquivframe = "roll_rew";
} else {
_parent.foots.gotoAndPlay("walk_fwd");
_parent.xspeed = _parent.walkspeed * _parent.direction;
_parent.esquivframe = "roll_fwd";
}
} else if (key.isDown(_parent.key_right)) {
if (_parent.direction == -1) {
_parent.foots.gotoAndPlay("walk_rew");
_parent.xspeed = _parent.backwalkspeed * _parent.direction;
_parent.esquivframe = "roll_rew";
} else {
_parent.foots.gotoAndPlay("walk_fwd");
_parent.xspeed = _parent.walkspeed * _parent.direction;
_parent.esquivframe = "roll_fwd";
}
}
}
Symbol 184 MovieClip Frame 4
gotoAndPlay (2);
Symbol 187 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 187 MovieClip Frame 2
_parent.camxmove();
Symbol 187 MovieClip Frame 3
gotoAndPlay (2);
Symbol 188 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 188 MovieClip Frame 2
if ((_parent._xmouse < 0) and _parent.active) {
_parent.movedirection = _parent.movedirection * -1;
_parent.direction = _parent.direction * -1;
_parent._xscale = _parent._xscale * -1;
_parent.climbzone._xscale = _parent.climbzone._xscale * -1;
_parent.foot_r._xscale = _parent.foot_r._xscale * -1;
_parent.foot_l._xscale = _parent.foot_l._xscale * -1;
_parent.maing.swapDepths(_parent.gun);
_parent.head.anim.rotate();
_parent.gun.anim.rotate();
}
Symbol 188 MovieClip Frame 5
gotoAndPlay (2);
Symbol 189 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 189 MovieClip Frame 2
if (key.isDown(_parent.key_up) && (!_parent.decor.hitTest((_parent.absx + _parent._x) + (10 * ((_parent.direction * _parent.foot_r._xscale) / 100)), (_parent.absy + _parent._y) + (2 * _parent.middle), 1))) {
if (_parent.ladder.hitzone.hitTest(_parent.climbzone)) {
_parent.gotoAndPlay("climb_reloop");
} else {
_parent.yaccel = _parent.yaccelorig;
_parent.xspeed = 4 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.yspeed = -16;
_parent.gotoAndPlay("jump_st3");
}
} else if ((Key.isDown(_parent.key_left) && ((_parent.direction * (_parent.foot_r._xscale / 100)) == 1)) || (Key.isDown(_parent.key_right) && ((_parent.direction * (_parent.foot_r._xscale / 100)) == -1))) {
_parent.yaccel = _parent.yaccelorig;
_parent.xspeed = -6 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.move();
_parent.yspeed = -16;
_parent.gotoAndPlay("jump_st3");
} else if (Key.isDown(_parent.key_down)) {
if (_parent.ladder.upzone.hitTest(_parent.climbzone)) {
_parent.gotoAndPlay("climbdown_reloop");
} else {
_parent.xspeed = -2 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.gotoAndPlay("climb_end");
}
}
Symbol 189 MovieClip Frame 4
gotoAndPlay (2);
Symbol 190 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 190 MovieClip Frame 2
_parent.ymove();
Symbol 190 MovieClip Frame 3
gotoAndPlay (2);
Symbol 191 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 191 MovieClip Frame 2
if (key.isDown(_parent.key_up) && (!_parent.decor.hitTest((_parent.absx + _parent._x) + (10 * ((_parent.direction * _parent.foot_r._xscale) / 100)), (_parent.absy + _parent._y) + (2 * _parent.middle), 1))) {
if (_parent.ladder.hitzone.hitTest(_parent.climbzone)) {
_parent.gotoAndPlay("climb_reloop2");
} else {
_parent.yaccel = _parent.yaccelorig;
_parent.xspeed = 4 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.yspeed = -16;
_parent.gotoAndPlay("jump_st3");
}
} else if ((Key.isDown(_parent.key_left) && ((_parent.direction * (_parent.foot_r._xscale / 100)) == 1)) || (Key.isDown(_parent.key_right) && ((_parent.direction * (_parent.foot_r._xscale / 100)) == -1))) {
_parent.yaccel = _parent.yaccelorig;
_parent.xspeed = -6 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.move();
_parent.yspeed = -16;
_parent.gotoAndPlay("jump_st3");
} else if (key.isDown(_parent.key_down)) {
if (_parent.ladder.upzone.hitTest(_parent.climbzone)) {
_parent.gotoAndPlay("climbdown_reloop2");
} else {
_parent.xspeed = -2 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.gotoAndPlay("climb_end2");
}
}
Symbol 191 MovieClip Frame 4
gotoAndPlay (2);
Symbol 192 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 192 MovieClip Frame 2
_parent.gotoAndStop(frame);
Symbol 192 MovieClip Frame 3
gotoAndPlay (2);
Symbol 193 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 193 MovieClip Frame 2
if (!_parent.ladder.hitzone.hitTest(_parent.climbzone)) {
_parent.gotoAndPlay("climb_end");
}
Symbol 193 MovieClip Frame 5
gotoAndPlay (2);
Symbol 199 MovieClip Frame 8
stop();
Symbol 213 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 213 MovieClip Frame 2
_root.game.xspeed = (_root.game.xcible - _root.game._x) / _root.game.divider;
_parent.xdecal = _parent.xdecal - _root.game.xspeed;
Symbol 213 MovieClip Frame 3
gotoAndPlay (2);
Symbol 214 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 214 MovieClip Frame 2
if (_parent.gotook == 1) {
_parent.gotoAndPlay(frame);
} else if (_parent.gotook == 2) {
_parent.gotoAndPlay(frame2);
} else if (_parent.gotook == 3) {
_parent.gotoAndPlay(frame3);
}
Symbol 214 MovieClip Frame 3
gotoAndPlay (2);
Symbol 215 MovieClip Frame 1
tracktime = 0;
shoottime = 0;
Instance of Symbol 114 MovieClip "maing" in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
xorig = _x - _parent.gun._x;
yorig = _y - _parent.gun._y;
_rotation = ((_parent.gun._rotation + _parent.gun.anim._rotation) + _parent.gun.anim.gun._rotation);
_x = (_parent.gun._x + _parent.gun.anim._x);
_y = (_parent.gun._y + _parent.gun.anim._y);
anim._x = _parent.gun.anim.gun._x + 25;
anim._y = _parent.gun.anim.gun._y;
this.swapDepths(_parent.gun);
this.swapDepths(_parent.gun);
}
Instance of Symbol 139 MovieClip "gun" in Symbol 215 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.gun_control._x;
_y = _parent.gun_control._y;
_rotation = _parent.gun_control._rotation;
with (_parent.maing) {
_rotation = (_parent.gun._rotation + _parent.gun.anim._rotation) + _parent.gun.anim.gun._rotation;
_x = _parent.gun._x + _parent.gun.anim._x;
_y = _parent.gun._y + _parent.gun.anim._y;
anim._x = _parent.gun.anim.gun._x + 25;
anim._xscale = (80 - (Math.abs(_parent.xspeed) * _parent.movedirection)) - (_rotation / 3);
anim._rotation = (0.3 * (_y + (_rotation / 5))) + 10;
anim._y = _parent.gun.anim.gun._y;
}
}
onClipEvent (load) {
_x = _parent.gun_control._x;
_y = _parent.gun_control._y;
_rotation = _parent.gun_control._rotation;
with (_parent.maing) {
_rotation = (_parent.gun._rotation + _parent.gun.anim._rotation) + _parent.gun.anim.gun._rotation;
_x = _parent.gun._x + _parent.gun.anim._x;
_y = _parent.gun._y + _parent.gun.anim._y;
anim._x = _parent.gun.anim.gun._x + 25;
anim._xscale = (80 - (Math.abs(_parent.xspeed) * _parent.movedirection)) - (_rotation / 3);
anim._rotation = (0.3 * (_y + (_rotation / 5))) + 10;
anim._y = _parent.gun.anim.gun._y;
}
}
Symbol 215 MovieClip Frame 2
expression("normal");
if (gonnashoot && (!tracktime)) {
gun.anim._rotation = gun.anim.rotcible;
shoot();
}
if (active) {
tracktime = 1;
shoottime = 1;
}
Symbol 215 MovieClip Frame 27
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 29
onClipEvent (load) {
frame = "stand_loop";
}
Symbol 215 MovieClip Frame 34
movedirection = 1;
origxspeed = walkspeed * direction;
xspeed = walkspeed * direction;
loopframe = "walk_fwd_loop";
endframe = "walk_fwd_end";
dirchangeframe = "walk_rew";
esquivframe = "roll_fwd";
if ((foots._currentframe < 10) || (footchange)) {
foots.gotoAndPlay("walk_fwd");
footchange = 0;
}
Instance of Symbol 175 MovieClip in Symbol 215 MovieClip Frame 37
onClipEvent (load) {
frame = "walk_fwd_loop";
}
Instance of Symbol 176 MovieClip in Symbol 215 MovieClip Frame 45
onClipEvent (load) {
frame = "walk_fwd_loop";
}
Symbol 215 MovieClip Frame 47
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 51
onClipEvent (load) {
frame = "stand";
}
Symbol 215 MovieClip Frame 58
movedirection = -1;
origxspeed = backwalkspeed * direction;
xspeed = backwalkspeed * direction;
loopframe = "walk_rew_loop";
endframe = "walk_rew_end";
dirchangeframe = "walk_fwd";
esquivframe = "roll_rew";
if ((foots._currentframe < 10) || (footchange)) {
foots.gotoAndPlay("walk_rew");
footchange = 0;
}
Instance of Symbol 175 MovieClip in Symbol 215 MovieClip Frame 61
onClipEvent (load) {
frame = "walk_fwd_loop";
}
Instance of Symbol 176 MovieClip in Symbol 215 MovieClip Frame 69
onClipEvent (load) {
frame = "walk_fwd_loop";
}
Symbol 215 MovieClip Frame 71
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 74
onClipEvent (load) {
frame = "stand";
}
Symbol 215 MovieClip Frame 80
if (key.isDown(key_right)) {
xspeed = walkspeed;
} else if (key.isDown(key_left)) {
xspeed = -walkspeed;
}
jumpxspeed = xspeed;
Symbol 215 MovieClip Frame 82
yspeed = -20;
if (key.isDown(key_right)) {
jumpxspeed = walkspeed;
} else if (key.isDown(key_left)) {
jumpxspeed = -walkspeed;
}
xspeed = 1.4 * jumpxspeed;
ymove();
Symbol 215 MovieClip Frame 86
Instance of Symbol 181 MovieClip in Symbol 215 MovieClip Frame 86
onClipEvent (load) {
frame = "land";
}
Symbol 215 MovieClip Frame 91
xspeed = xspeed / 2;
Symbol 215 MovieClip Frame 97
Symbol 215 MovieClip Frame 98
xspeed = 0;
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 98
onClipEvent (load) {
frame = "stand";
}
Symbol 215 MovieClip Frame 110
yaccel = 0;
yspeed = 0;
xspeed = 0;
Instance of Symbol 185 MovieClip "foot_l" in Symbol 215 MovieClip Frame 110
onClipEvent (load) {
gotoAndStop(_parent._currentframe - 109);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._currentframe - 109);
}
Instance of Symbol 186 MovieClip "foot_r" in Symbol 215 MovieClip Frame 110
onClipEvent (load) {
gotoAndStop(_parent._currentframe - 109);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._currentframe - 109);
}
Symbol 215 MovieClip Frame 114
yspeed = 0;
Symbol 215 MovieClip Frame 115
yspeed = climbspeed;
Symbol 215 MovieClip Frame 120
yspeed = 0;
Symbol 215 MovieClip Frame 121
yspeed = climbspeed;
Symbol 215 MovieClip Frame 126
gotoAndPlay ("climb_loop");
Instance of Symbol 192 MovieClip in Symbol 215 MovieClip Frame 126
onClipEvent (load) {
frame = "climb_loop";
}
Symbol 215 MovieClip Frame 128
yaccel = yaccelorig;
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 132
onClipEvent (load) {
frame = "stand";
}
Symbol 215 MovieClip Frame 134
yaccel = yaccelorig;
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 139
onClipEvent (load) {
frame = "stand";
}
Symbol 215 MovieClip Frame 142
yaccel = 0;
xspeed = 0;
Symbol 215 MovieClip Frame 144
yspeed = 0;
Symbol 215 MovieClip Frame 146
yspeed = 0;
Instance of Symbol 182 MovieClip in Symbol 215 MovieClip Frame 146
onClipEvent (load) {
frame = "climb_loop";
}
Symbol 215 MovieClip Frame 147
yspeed = -climbspeed;
Symbol 215 MovieClip Frame 152
yspeed = 0;
Instance of Symbol 182 MovieClip in Symbol 215 MovieClip Frame 152
onClipEvent (load) {
frame = "climb_loop";
}
Symbol 215 MovieClip Frame 153
yspeed = -climbspeed;
Instance of Symbol 192 MovieClip in Symbol 215 MovieClip Frame 158
onClipEvent (load) {
frame = "climbdown_loop";
}
Symbol 215 MovieClip Frame 170
expression("ouch");
yaccel = yaccelorig;
tracktime = 1;
shoottime = 1;
Symbol 215 MovieClip Frame 174
Symbol 215 MovieClip Frame 177
Instance of Symbol 181 MovieClip in Symbol 215 MovieClip Frame 177
onClipEvent (load) {
frame = "rvol_resume";
}
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 180
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 119 MovieClip "body" in Symbol 215 MovieClip Frame 183
/* no clip actions */
Instance of Symbol 127 MovieClip "head" in Symbol 215 MovieClip Frame 183
/* no clip actions */
Symbol 215 MovieClip Frame 184
tracktime = 0;
shoottime = 0;
rolltime = 0;
esquivframe = 0;
rotbar.gotoAndPlay(2);
xspeed = rollspeed * direction;
gun.anim.gotoAndStop(1);
with (head) {
anim._x = 0;
anim._y = 0;
anim._rotation = 0;
}
with (body) {
anim._x = 0;
anim._y = 0;
anim._rotation = 0;
}
with (gun) {
anim._x = 0;
anim._y = 0;
anim._rotation = 0;
}
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 194
onClipEvent (load) {
frame = "stand";
}
Symbol 215 MovieClip Frame 205
tracktime = 0;
shoottime = 0;
rolltime = 0;
esquivframe = 0;
rotbar.gotoAndPlay(2);
xspeed = (-rollspeed) * direction;
gun.anim.gotoAndStop(1);
ymove();
with (head) {
anim._x = 0;
anim._y = 0;
anim._rotation = 0;
}
with (body) {
anim._x = 0;
anim._y = 0;
anim._rotation = 0;
}
with (gun) {
anim._x = 0;
anim._y = 0;
anim._rotation = 0;
}
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 215
onClipEvent (load) {
frame = "stand";
}
Symbol 215 MovieClip Frame 226
for (a in _parent) {
if (_parent[a].hitzone.hitTest(punchzone) && (_parent[a] != this)) {
_parent[a].hit(this, this, 10 * direction, -20, 5, 3);
}
}
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 237
onClipEvent (load) {
frame = "stand";
}
Symbol 215 MovieClip Frame 245
var hited = 0;
for (a in _parent) {
if (_parent[a].hitzone.hitTest(bangzone) && (_parent[a] != this)) {
_parent[a].hit(this, this, (5 + (5 * Math.random())) * direction, -15 - (8 * Math.random()), 2, 2, 1);
hited = 1;
}
}
if (hited) {
_root.hitshake(5);
} else {
bashbang._visible = 0;
}
Instance of Symbol 147 MovieClip in Symbol 215 MovieClip Frame 255
onClipEvent (load) {
frame = "stand";
}
Symbol 215 MovieClip Frame 270
foots._visible = 0;
maing._visible = 0;
gun._visible = 0;
Symbol 215 MovieClip Frame 297
foots._visible = 1;
maing._visible = 1;
gun._visible = 1;
Symbol 215 MovieClip Frame 304
_root.gotext.gotoAndPlay(2);
gotoAndPlay ("stand");
activate();
Symbol 215 MovieClip Frame 332
gotook = 0;
if (readytoactivate) {
activate();
gotook = 2;
} else {
gotook = 1;
}
Instance of Symbol 214 MovieClip in Symbol 215 MovieClip Frame 332
onClipEvent (load) {
frame = "dumbstance_loop";
frame2 = "stand";
}
Symbol 215 MovieClip Frame 339
activate();
Instance of Symbol 139 MovieClip "gun" in Symbol 215 MovieClip Frame 393
onClipEvent (enterFrame) {
_x = _parent.gun_control._x;
_y = _parent.gun_control._y;
_rotation = _parent.gun_control._rotation;
with (_parent.maing) {
_rotation = (_parent.gun._rotation + _parent.gun.anim._rotation) + _parent.gun.anim.gun._rotation;
_x = _parent.gun._x + _parent.gun.anim._x;
_y = _parent.gun._y + _parent.gun.anim._y;
anim._x = _parent.gun.anim.gun._x + 25;
anim._xscale = (80 - (Math.abs(_parent.xspeed) * _parent.movedirection)) - (_rotation / 3);
anim._rotation = (0.3 * (_y + (_rotation / 5))) + 10;
anim._y = _parent.gun.anim.gun._y;
}
}
Symbol 215 MovieClip Frame 424
_root.death();
stop();
Symbol 229 Button
on (release) {
if (_parent._currentframe == 13) {
_parent.gotoAndPlay(15);
}
}
Symbol 231 MovieClip Frame 1
_visible = 0;
stop();
Symbol 231 MovieClip Frame 2
_visible = 1;
Symbol 231 MovieClip Frame 13
stop();
Symbol 231 MovieClip Frame 25
gotoAndStop (1);
Symbol 233 MovieClip Frame 2
_visible = 1;
Symbol 233 MovieClip Frame 17
_root.next(stopsound);
Symbol 233 MovieClip Frame 29
gotoAndStop (1);
_visible = 0;
Symbol 241 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?alias2", "_blank");
}
Symbol 253 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?alias2", "_blank");
}
Symbol 257 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?alias2", "_blank");
}
Symbol 261 Button
on (release) {
getURL ("http://www.freeonlinegames.com/downloads/Alias2.exe", "_blank");
}
Symbol 263 MovieClip Frame 24
stop();
Symbol 265 MovieClip Frame 20
gotoAndPlay (1);
Symbol 271 Button
on (release) {
nextFrame();
}
Symbol 277 Button
on (release) {
if (transition._currentframe == 1) {
transition.gotoAndPlay(2);
}
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 5
gotoAndPlay (1);
Symbol 290 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 1
_visible = 0;
gotoAndStop (2);
Symbol 293 MovieClip Frame 3
_visible = 1;
Symbol 293 MovieClip Frame 10
event_mid();
Symbol 293 MovieClip Frame 21
event();
stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 25
event();
stop();
Symbol 298 MovieClip Frame 1
_root.game.decor.ladders.push(this);
stop();
Symbol 299 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 12
event_show();
gotoAndStop (1);
Symbol 299 MovieClip Frame 20
stop();
Symbol 304 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 304 MovieClip Frame 2
if (hitTest(trigobject)) {
event();
}
Symbol 304 MovieClip Frame 4
gotoAndPlay (2);
Symbol 304 MovieClip Frame 20
_visible = 0;
Instance of Symbol 304 MovieClip "eventzone" in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
function event() {
_parent.gotoAndPlay("activate");
}
trigobject = _root.game.sprites.hero.feetzone;
}
Instance of Symbol 304 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
function event() {
if (key.isDown(trigobject._parent.key_right)) {
trigobject._parent.yspeed = -10;
trigobject._parent.xspeed = 6;
}
}
trigobject = _root.game.sprites.hero.feetzone;
}
Instance of Symbol 304 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
function event() {
if (key.isDown(trigobject._parent.key_left)) {
trigobject._parent.yspeed = -10;
trigobject._parent.xspeed = -6;
}
}
trigobject = _root.game.sprites.hero.feetzone;
}
Symbol 305 MovieClip Frame 2
stop();
Symbol 305 MovieClip Frame 25
gotoAndStop ("ready");
Instance of Symbol 304 MovieClip in Symbol 305 MovieClip Frame 30
onClipEvent (load) {
function event() {
if (key.isDown(trigobject._parent.key_right)) {
trigobject._parent.yspeed = -7;
trigobject._parent.xspeed = 6;
}
}
trigobject = _root.game.sprites.hero.feetzone;
}
Instance of Symbol 304 MovieClip in Symbol 305 MovieClip Frame 30
onClipEvent (load) {
function event() {
if (key.isDown(trigobject._parent.key_left)) {
trigobject._parent.yspeed = -7;
trigobject._parent.xspeed = -6;
}
}
trigobject = _root.game.sprites.hero.feetzone;
}
Symbol 305 MovieClip Frame 34
event_activate();
stop();
Symbol 310 MovieClip Frame 3
for (a in game.sprites) {
if (game.sprites[a].hitzone.hitTest(testzone)) {
game.sprites[a].hit(_parent._parent, this, 0, -14, 10, 5);
}
}
for (a in game.decor) {
if (game.decor[a].hitzone.hitTest(testzone)) {
game.decor[a].hit(_parent._parent, this, 0, -14, 10, 5);
game.decor[a].burn();
}
}
Symbol 310 MovieClip Frame 7
call("burncheck");
Symbol 310 MovieClip Frame 10
gotoAndPlay (1);
Instance of Symbol 310 MovieClip "model" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
game = _parent._parent._parent._parent._parent;
}
Instance of Symbol 311 MovieClip "anim" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
_xscale = (_xscale * (120 / _parent._parent._xscale));
_yscale = (_yscale * (120 / _parent._parent._yscale));
model._rotation = -_parent._parent._rotation;
}
Symbol 323 MovieClip Frame 1
function burn() {
gotoAndPlay (2);
}
stop();
Symbol 323 MovieClip Frame 39
afterburn();
stop();
Symbol 324 MovieClip Frame 1
function burn() {
gotoAndPlay (2);
}
stop();
Symbol 324 MovieClip Frame 2
pl1.gotoAndPlay(2);
pl2.gotoAndPlay(2);
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 46
stop();
Symbol 334 MovieClip Frame 56
stop();
Symbol 336 MovieClip Frame 1
_parent.ladders.push(this);
stop();
Symbol 338 MovieClip Frame 1
_parent.ladders.push(this);
stop();
Symbol 346 MovieClip Frame 40
gotoAndPlay (1);
Symbol 354 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 354 MovieClip Frame 6
event_vanish();
Symbol 354 MovieClip Frame 7
stop();
Symbol 354 MovieClip Frame 14
event_appear();
gotoAndStop (1);
Symbol 363 MovieClip Frame 1
spritex = (_x + _parent._x) - _parent._parent.sprites._x;
spritey = (_y + _parent._y) - _parent._parent.sprites._y;
Symbol 363 MovieClip Frame 2
if (_parent._parent.sprites.hero.feetzone.hitTest(feetzone) && (!off)) {
gotoAndStop ("vanishstart");
}
Instance of Symbol 147 MovieClip in Symbol 363 MovieClip Frame 6
onClipEvent (load) {
frame = 2;
}
Symbol 363 MovieClip Frame 15
lines._xscale = 5;
Instance of Symbol 358 MovieClip "lines" in Symbol 363 MovieClip Frame 15
onClipEvent (load) {
_xscale = 5;
}
onClipEvent (enterFrame) {
_xscale = (_xscale + _parent.vanishspeed);
if (_xscale >= 100) {
_xscale = 100;
_parent.gotoAndPlay("vanish");
}
}
Symbol 363 MovieClip Frame 24
event_destroy();
_visible = 0;
stop();
Symbol 368 MovieClip Frame 15
stop();
Symbol 369 MovieClip Frame 1
if (active) {
lift.gotoAndStop("active");
stop();
} else {
lift.gotoAndStop("inactive");
gotoAndPlay ("wait");
}
Symbol 369 MovieClip Frame 31
if (active) {
gotoAndStop ("move");
} else {
stop();
}
Symbol 370 MovieClip Frame 1
_visible = 0;
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 13
if (speaking) {
gotoAndPlay ("speak");
} else {
gotoAndStop (1);
}
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 10
explode();
event_destroy();
Symbol 378 MovieClip Frame 14
surprise._x = spritex;
surprise._y = spritey;
surprise.activate();
stop();
Symbol 382 MovieClip Frame 1
_visible = 0;
Symbol 385 MovieClip Frame 1
_visible = 0;
stop();
Symbol 387 MovieClip Frame 61
for (a in _parent._parent.sprites) {
if (_parent._parent.sprites[a].hitzone.hitTest(bangzone)) {
_parent._parent.sprites[a]._y = _y;
_parent._parent.sprites[a].hit(this, smasher, 0, 0, 99999, 0);
}
}
Symbol 387 MovieClip Frame 62
if ((Math.abs(_parent._parent.sprites.hero._x - _x) < 400) && (Math.abs(_parent._parent.sprites.hero._y - _y) < 350)) {
sound.gotoAndPlay(2);
_root.shake(22 - (Math.abs(_parent._parent.sprites.hero._x - _x) / 20), 4, 2, 0);
}
Symbol 387 MovieClip Frame 80
gotoAndPlay (1);
Symbol 397 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 88
stop();
Symbol 397 MovieClip Frame 130
gotoAndStop ("closed");
Symbol 399 MovieClip Frame 1
_root.game.decor.ladders.push(this);
stop();
Symbol 405 MovieClip Frame 15
stop();
Symbol 406 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 406 MovieClip Frame 2
_parent.ymove();
Symbol 406 MovieClip Frame 3
gotoAndPlay (2);
Symbol 407 MovieClip Frame 1
if (active) {
lift.gotoAndStop("active");
stop();
} else {
lift.gotoAndStop("inactive");
gotoAndPlay ("wait");
}
Symbol 407 MovieClip Frame 31
if (active) {
gotoAndStop ("move");
} else {
stop();
}
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 16
stop();
Symbol 410 MovieClip Frame 37
gotoAndStop (1);
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 11
Instance of Symbol 192 MovieClip in Symbol 415 MovieClip Frame 11
onClipEvent (load) {
frame = 1;
}
Instance of Symbol 147 MovieClip in Symbol 418 MovieClip Frame 7
onClipEvent (load) {
frame = 1;
}
Symbol 418 MovieClip Frame 15
event_destroy();
explode();
removeMovieClip(this);
_visible = 0;
stop();
Symbol 419 MovieClip Frame 1
n = 100;
ladders = new Array();
stop();
Instance of Symbol 293 MovieClip "platform1" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function event() {
_parent._parent.decor.vdoor2.gotoAndPlay("vanish");
_parent.platform2.gotoAndPlay("enter");
}
}
Instance of Symbol 293 MovieClip "platform2" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function event_mid() {
_parent._parent.sprites.robot2.activate();
}
}
Instance of Symbol 296 MovieClip "roofplatform1" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function event() {
_parent.platform1.gotoAndPlay("enter");
_parent._parent.sprites.robot1.activate();
}
}
Instance of Symbol 299 MovieClip "ladder7" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function event_show() {
_parent._parent.sprites.robot3.spawn();
}
gotoAndStop (20);
}
Instance of Symbol 305 MovieClip "switch1" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function event_activate() {
_parent.lifthoriz2.activate();
}
gotoAndStop (10);
}
Instance of Symbol 324 MovieClip in Symbol 419 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 334 MovieClip "bigdoor1" in Symbol 419 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 298 MovieClip "ladder1" in Symbol 419 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 298 MovieClip "ladder4" in Symbol 419 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 323 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 336 MovieClip "ladder5" in Symbol 419 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 336 MovieClip "ladder6" in Symbol 419 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 336 MovieClip in Symbol 419 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 354 MovieClip "vdoor1" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function event_appear() {
var _local1 = _parent;
_local1.vblock1.gotoAndPlay("vanish");
_local1.vblock2.gotoAndPlay("vanish");
_local1.vblock3.gotoAndPlay("vanish");
_local1.vblock4.gotoAndPlay("vanish");
}
gotoAndStop (7);
}
Instance of Symbol 354 MovieClip "vdoor2" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function event_appear() {
var _local1 = _parent;
_local1.vblock1.gotoAndPlay("vanish");
_local1.vblock2.gotoAndPlay("vanish");
_local1.vblock3.gotoAndPlay("vanish");
_local1.vblock4.gotoAndPlay("vanish");
}
gotoAndStop (7);
}
Instance of Symbol 363 MovieClip "vblock1" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
off = 1;
vanishspeed = 10;
}
Instance of Symbol 363 MovieClip "vblock2" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
off = 1;
vanishspeed = 10;
}
Instance of Symbol 363 MovieClip "vblock3" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
off = 1;
vanishspeed = 10;
}
Instance of Symbol 354 MovieClip "door2" in Symbol 419 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 363 MovieClip "vblock4" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
off = 1;
vanishspeed = 10;
}
Instance of Symbol 354 MovieClip in Symbol 419 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 369 MovieClip "lifthoriz1" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function activate() {
active = 1;
lift.gotoAndPlay("activate");
gotoAndPlay (2);
}
function move() {
lift._x = lift._x + xspeed;
if (lift.feetzone.hitTest(hero.feetzone)) {
hero.xchange(xspeed);
}
if (((lift._x + xspeed) > xmax) || ((lift._x + xspeed) < xmin)) {
xspeed = xspeed * -1;
gotoAndPlay (2);
}
}
active = 1;
xmin = lift._x;
xmax = _parent[_name + "_xmax"]._x - _x;
_parent[_name + "_xmax"].gotoAndStop(2);
xspeedinit = -3;
xspeed = xspeedinit;
hero = _parent._parent.sprites.hero;
}
Instance of Symbol 363 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function event_destroy() {
_parent._parent.sprites.itemdrop(spritex, spritey, "firerate", 0);
}
vanishspeed = 10;
}
Instance of Symbol 363 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function event_destroy() {
_parent._parent.sprites.itemdrop(spritex, spritey, "firerate", 0);
}
vanishspeed = 10;
}
Instance of Symbol 109 MovieClip in Symbol 419 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 378 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function explode() {
_visible = 0;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion._xscale = _xscale;
currentexplosion._yscale = _xscale;
currentexplosion.gotoAndPlay(2);
currentexplosion._visible = 1;
sprites.n++;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + (damagerand * Math.random());
life = life - damage;
if (life <= 0) {
killer = attacker;
if (killer == ennemy) {
score = int(_xscale);
_root.showscore(this);
}
life = 0;
_root.shake(10, 3, 2, 0);
gotoAndPlay (10);
}
}
spritex = (_x + _parent._x) - _parent._parent.sprites._x;
spritey = ((_y + _parent._y) - _parent._parent.sprites._y) + (_height / 2);
life = 5 + (5 * Math.random());
surprise = _parent._parent.sprites[_name + "_surprise"];
explosion = _parent._parent.sprites.explosion_crate;
sprites = _parent._parent.sprites;
ennemy = _parent._parent.sprites.hero;
}
onClipEvent (load) {
function event_destroy() {
_parent._parent.sprites.itemdrop(spritex - 25, spritey, "life", 0);
_parent._parent.sprites.itemdrop(spritex + 25, spritey, "life", 0);
}
}
Instance of Symbol 378 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function explode() {
_visible = 0;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion._xscale = _xscale;
currentexplosion._yscale = _xscale;
currentexplosion.gotoAndPlay(2);
currentexplosion._visible = 1;
sprites.n++;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + (damagerand * Math.random());
life = life - damage;
if (life <= 0) {
killer = attacker;
if (killer == ennemy) {
score = int(_xscale);
_root.showscore(this);
}
life = 0;
_root.shake(10, 3, 2, 0);
gotoAndPlay (10);
}
}
spritex = (_x + _parent._x) - _parent._parent.sprites._x;
spritey = ((_y + _parent._y) - _parent._parent.sprites._y) + (_height / 2);
life = 5 + (5 * Math.random());
surprise = _parent._parent.sprites[_name + "_surprise"];
explosion = _parent._parent.sprites.explosion_crate;
sprites = _parent._parent.sprites;
ennemy = _parent._parent.sprites.hero;
}
onClipEvent (load) {
function event_destroy() {
_parent._parent.sprites.itemdrop(spritex, spritey, "life", 0);
}
}
Instance of Symbol 378 MovieClip "crate3" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function explode() {
_visible = 0;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion._xscale = _xscale;
currentexplosion._yscale = _xscale;
currentexplosion.gotoAndPlay(2);
currentexplosion._visible = 1;
sprites.n++;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + (damagerand * Math.random());
life = life - damage;
if (life <= 0) {
killer = attacker;
if (killer == ennemy) {
score = int(_xscale);
_root.showscore(this);
}
life = 0;
_root.shake(10, 3, 2, 0);
gotoAndPlay (10);
}
}
spritex = (_x + _parent._x) - _parent._parent.sprites._x;
spritey = ((_y + _parent._y) - _parent._parent.sprites._y) + (_height / 2);
life = 5 + (5 * Math.random());
surprise = _parent._parent.sprites[_name + "_surprise"];
explosion = _parent._parent.sprites.explosion_crate;
sprites = _parent._parent.sprites;
ennemy = _parent._parent.sprites.hero;
}
onClipEvent (load) {
function event_destroy() {
_parent._parent.sprites.itemdrop(spritex - 25, spritey, "life", 0);
_parent._parent.sprites.itemdrop(spritex + 25, spritey, "life", 0);
}
}
Instance of Symbol 378 MovieClip "crate14" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function explode() {
_visible = 0;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion._xscale = _xscale;
currentexplosion._yscale = _xscale;
currentexplosion.gotoAndPlay(2);
currentexplosion._visible = 1;
sprites.n++;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + (damagerand * Math.random());
life = life - damage;
if (life <= 0) {
killer = attacker;
if (killer == ennemy) {
score = int(_xscale);
_root.showscore(this);
}
life = 0;
_root.shake(10, 3, 2, 0);
gotoAndPlay (10);
}
}
spritex = (_x + _parent._x) - _parent._parent.sprites._x;
spritey = ((_y + _parent._y) - _parent._parent.sprites._y) + (_height / 2);
life = 5 + (5 * Math.random());
surprise = _parent._parent.sprites[_name + "_surprise"];
explosion = _parent._parent.sprites.explosion_crate;
sprites = _parent._parent.sprites;
ennemy = _parent._parent.sprites.hero;
}
Instance of Symbol 378 MovieClip "crate14" in Symbol 419 MovieClip Frame 1
onClipEvent (load) {
function explode() {
_visible = 0;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion._xscale = _xscale;
currentexplosion._yscale = _xscale;
currentexplosion.gotoAndPlay(2);
currentexplosion._visible = 1;
sprites.n++;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + (damagerand * Math.random());
life = life - damage;
if (life <= 0) {
killer = attacker;
if (killer == ennemy) {
score = int(_xscale);
_root.showscore(this);
}
life = 0;
_root.shake(10, 3, 2, 0);
gotoAndPlay (10);
}
}
spritex = (_x + _parent._x) - _parent._parent.sprites._x;
spritey = ((_y + _parent._y) - _parent._parent.sprites._y) + (_height / 2);
life = 5 + (5 * Math.random());
surprise = _parent._parent.sprites[_name + "_surprise"];
explosion = _parent._parent.sprites.explosion_crate;
sprites = _parent._parent.sprites;
ennemy = _parent._parent.sprites.hero;
}
Symbol 419 MovieClip Frame 2
newladders = new Array();
for (a in ladders) {
if (ladders[a]._x) {
newladders.push(ladders[a]);
}
}
ladders = newladders;
Instance of Symbol 305 MovieClip "switch2" in Symbol 419 MovieClip Frame 2
onClipEvent (load) {
function event_activate() {
var _local1 = _parent;
_root.automsg("Destroy the computer to activate the elevator to the eastern exit.", 10);
_local1._parent.sprites.hero.desactivate();
xmem = _local1._parent._x;
ymem = _local1._parent.ydecalbase;
_local1._parent.xbasechange(-_local1.testzone._x);
_local1._parent.ybasechange(-_local1.testzone._y, _local1._parent.ycameradiv);
interval_opendoor = setInterval(opendoor, 1000);
}
function opendoor() {
_parent.flipdoor1.gotoAndPlay("open");
clearInterval(interval_opendoor);
interval_back = setInterval(back, 1000);
}
function back() {
_parent._parent.ybasechange(ymem, 1);
_parent._parent.xbasechange(xmem);
clearInterval(interval_back);
interval_reactivate = setInterval(reactivate, 2000);
}
function reactivate() {
_parent._parent.sprites.hero.activate();
clearInterval(interval_reactivate);
}
}
Instance of Symbol 354 MovieClip "wallcr1_host" in Symbol 419 MovieClip Frame 2
onClipEvent (load) {
function event_vanish() {
_parent._parent.sprites.robot4.spawn();
}
gotoAndStop (7);
}
Instance of Symbol 387 MovieClip in Symbol 419 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (40);
}
Instance of Symbol 369 MovieClip "lifthoriz2" in Symbol 419 MovieClip Frame 2
onClipEvent (load) {
function activate() {
active = 1;
lift.gotoAndPlay("activate");
gotoAndPlay (2);
}
function move() {
lift._x = lift._x + xspeed;
if (lift.feetzone.hitTest(hero.feetzone)) {
hero.xchange(xspeed);
}
if (((lift._x + xspeed) > xmax) || ((lift._x + xspeed) < xmin)) {
xspeed = xspeed * -1;
gotoAndPlay (2);
}
}
active = 1;
xmin = lift._x;
xmax = _parent[_name + "_xmax"]._x - _x;
_parent[_name + "_xmax"].gotoAndStop(2);
xspeedinit = -3;
xspeed = xspeedinit;
hero = _parent._parent.sprites.hero;
}
onClipEvent (load) {
active = 0;
}
Instance of Symbol 407 MovieClip "liftvert" in Symbol 419 MovieClip Frame 2
onClipEvent (load) {
function activate() {
active = 1;
lift.gotoAndPlay("activate");
gotoAndPlay (2);
}
function ymove() {
if (lift.feetzone.hitTest(hero.feetzone)) {
hero.ychange(yspeed);
}
lift._y = lift._y + yspeed;
gear._rotation = gear._rotation - (3 * yspeed);
if (((lift._y + yspeed) > ymax) || ((lift._y + yspeed) < ymin)) {
yspeed = yspeed * -1;
gotoAndPlay (2);
}
}
ymax = lift._y;
ymin = _parent[_name + "_ymin"]._y - _y;
_parent[_name + "_ymin"].gotoAndStop(2);
yspeedinit = -3;
yspeed = yspeedinit;
active = 1;
hero = _parent._parent.sprites.hero;
}
onClipEvent (load) {
active = 0;
}
Instance of Symbol 418 MovieClip in Symbol 419 MovieClip Frame 2
onClipEvent (load) {
function event_destroy() {
_parent._parent.sprites.hero.desactivate();
_root.automsg("Elevator is activated.", 5);
interval_pan = setInterval(pan, 500);
}
function pan() {
var _local1 = _parent;
xmem = _local1._parent.xdecalbase;
ymem = _local1._parent.ydecalbase;
_local1._parent.ybasechange(-_local1.testzone2._y, 1);
clearInterval(interval_pan);
interval_opendoor = setInterval(opendoor, 1000);
}
function opendoor() {
_parent.liftvert.activate();
clearInterval(interval_opendoor);
interval_back = setInterval(back, 1000);
}
function back() {
_parent._parent.ybasechange(ymem, 1);
clearInterval(interval_back);
interval_reactivate = setInterval(reactivate, 2000);
}
function reactivate() {
_parent._parent.sprites.hero.activate();
clearInterval(interval_reactivate);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + int(damagerand * Math.random());
life = life - damage;
if (life <= 0) {
gotoAndStop (15);
} else {
hitline.gotoAndPlay(2);
}
}
function explode() {
_visible = 0;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion._xscale = _xscale;
currentexplosion._yscale = _xscale;
currentexplosion.gotoAndPlay(2);
currentexplosion._visible = 1;
sprites.n++;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion._x = _x;
currentexplosion._y = _y - 120;
currentexplosion._xscale = _xscale;
currentexplosion._yscale = _xscale;
currentexplosion.gotoAndPlay(2);
currentexplosion._visible = 1;
sprites.n++;
}
sprites = _parent._parent.sprites;
explosion = sprites.explosion_big;
life = 20;
}
Instance of Symbol 370 MovieClip "boss1_xmin" in Symbol 419 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 370 MovieClip "boss1_xmax" in Symbol 419 MovieClip Frame 2
/* no clip actions */
Symbol 425 MovieClip Frame 1
Symbol 425 MovieClip Frame 13
removeMovieClip(this);
_visible = 0;
gotoAndStop (1);
Symbol 436 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 1
Symbol 437 MovieClip Frame 15
stop();
Symbol 438 MovieClip Frame 1
Instance of Symbol 422 MovieClip in Symbol 438 MovieClip Frame 3
onClipEvent (load) {
_y = (_y * (60 / _parent._yscale));
if (_y < -60) {
_yscale = (_yscale / (-(_y / 60)));
}
}
Instance of Symbol 425 MovieClip "badang" in Symbol 438 MovieClip Frame 3
onClipEvent (load) {
_rotation = (_rotation + ((10 * Math.random()) - 5));
_xscale = (_xscale * (25 / _parent._xscale));
_yscale = (_yscale * (40 / _parent._yscale));
}
Instance of Symbol 437 MovieClip "explosion" in Symbol 438 MovieClip Frame 3
onClipEvent (load) {
_y = (_y * (50 / _parent._yscale));
_xscale = (_xscale * (25 / _parent._xscale));
_yscale = (_yscale * (40 / _parent._yscale));
}
Symbol 438 MovieClip Frame 18
removeMovieClip(this);
_visible = 0;
stop();
Symbol 441 MovieClip Frame 10
removeMovieClip(this);
_visible = 0;
stop();
Symbol 445 MovieClip Frame 1
_visible = 0;
Symbol 445 MovieClip Frame 2
_visible = 1;
Symbol 445 MovieClip Frame 20
removeMovieClip(this);
_visible = 0;
stop();
Symbol 446 MovieClip Frame 1
Instance of Symbol 422 MovieClip in Symbol 446 MovieClip Frame 3
onClipEvent (load) {
_y = (_y * (60 / _parent._yscale));
if (_y < -60) {
_yscale = (_yscale / (-(_y / 60)));
}
}
Instance of Symbol 425 MovieClip "badang" in Symbol 446 MovieClip Frame 3
onClipEvent (load) {
_rotation = (_rotation + ((10 * Math.random()) - 5));
_xscale = (_xscale * (25 / _parent._xscale));
_yscale = (_yscale * (40 / _parent._yscale));
}
Instance of Symbol 437 MovieClip "explosion" in Symbol 446 MovieClip Frame 3
onClipEvent (load) {
_y = (_y * (50 / _parent._yscale));
_xscale = (_xscale * (25 / _parent._xscale));
_yscale = (_yscale * (40 / _parent._yscale));
}
Symbol 446 MovieClip Frame 18
removeMovieClip(this);
_visible = 0;
stop();
Symbol 455 MovieClip Frame 1
function hit() {
gotoAndPlay (40);
}
Instance of Symbol 147 MovieClip in Symbol 455 MovieClip Frame 30
onClipEvent (load) {
frame = "stand";
}
Symbol 455 MovieClip Frame 40
_root.dieshake();
Symbol 455 MovieClip Frame 55
event_destroy();
removeMovieClip(this);
_visible = 0;
stop();
Symbol 460 MovieClip Frame 10
gotoAndPlay (1);
Symbol 463 MovieClip Frame 1
_parent._parent.shoottime = 1;
stop();
Symbol 463 MovieClip Frame 5
_parent._parent.shoottime = 0;
Symbol 463 MovieClip Frame 33
_parent._parent.shoot();
Instance of Symbol 109 MovieClip in Symbol 463 MovieClip Frame 33
onClipEvent (load) {
owner = _parent._parent._parent;
shot = owner.shot;
rot = _parent._rotation / 57.3;
mindist = 500;
if (owner.direction == -1) {
rot = (-90 + (-90 - _parent._rotation)) / 57.3;
}
brake = 0;
cible = 0;
parentx = ((_root.game._x + _root.game.sprites._x) + owner._x) + _parent._x;
parenty = ((_root.game._y + _root.game.sprites._y) + owner._y) + _parent._y;
while (_x < 400) {
_x = (_x + 30);
for (a in _root.game.sprites) {
if (hitTest(_root.game.sprites[a].hitzone) and (_root.game.sprites[a] != owner)) {
dist = Math.sqrt(((_root.game.sprites[a]._x - owner._x) * (_root.game.sprites[a]._x - owner._x)) + ((_root.game.sprites[a]._y - owner._y) * (_root.game.sprites[a]._y - owner._y)));
if (dist < mindist) {
cible = _root.game.sprites[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 1, 5);
brake = 1;
}
}
}
if (brake == 1) {
}
}
xsanscible = _x;
_parent.testline._width = _x;
for (a in owner.decor) {
if (owner.decor[a].hitTest(this)) {
owner.decor[a].hit();
trace(owner.decor[a]);
}
}
shot._yscale = shot._yscale * ((0.32 * (_x + prolonj)) / shot._yscale);
shot.gotoAndPlay("shot");
}
Symbol 463 MovieClip Frame 52
gotoAndStop (1);
Instance of Symbol 463 MovieClip "anim" in Symbol 464 MovieClip Frame 1
/* no clip actions */
Symbol 468 MovieClip Frame 1
_visible = 0;
gotoAndPlay(20 * Math.random());
Symbol 468 MovieClip Frame 20
if (((_parent.active && (Math.abs(_parent.xdist) <= _parent.range)) && (_parent.shoottime)) && (_parent.ennemy.life > 0)) {
_parent.gun.anim.gotoAndPlay("shoot");
}
gotoAndPlay((5 * Math.random()) + 1);
Symbol 471 MovieClip Frame 1
gotoAndPlay (3);
Instance of Symbol 147 MovieClip in Symbol 471 MovieClip Frame 7
onClipEvent (load) {
frame = "stand_loop";
}
Instance of Symbol 147 MovieClip in Symbol 471 MovieClip Frame 20
onClipEvent (load) {
frame = "stand_loop";
}
Symbol 471 MovieClip Frame 40
event_die();
if (host.parasite == this) {
host.parasite = 0;
} else if (host.parasite2 == this) {
host.parasite2 = 0;
}
if ((!host.parasite) && (!host.parasite2)) {
host.gotoAndPlay("vanish");
}
if (host2.parasite == this) {
host2.parasite = 0;
} else if (host2.parasite2 == this) {
host2.parasite2 = 0;
}
if ((!host2.parasite) && (!host2.parasite2)) {
host2.gotoAndPlay("vanish");
}
Symbol 471 MovieClip Frame 56
_visible = 0;
stop();
Symbol 471 MovieClip Frame 68
activate();
Instance of Symbol 147 MovieClip in Symbol 471 MovieClip Frame 68
onClipEvent (load) {
frame = "stand_loop";
}
Symbol 477 MovieClip Frame 1
_visible = 0;
loops = 0;
gotoAndPlay (2);
Symbol 477 MovieClip Frame 16
loops++;
if (loops >= delay) {
loops = 0;
_parent.nextFrame();
}
Symbol 477 MovieClip Frame 17
gotoAndPlay (2);
Symbol 484 MovieClip Frame 1
_visible = 0;
Symbol 492 MovieClip Frame 1
_visible = 0;
stop();
Symbol 493 MovieClip Frame 2
stop();
Instance of Symbol 477 MovieClip in Symbol 493 MovieClip Frame 2
onClipEvent (load) {
delay = _parent.startdelay;
}
Symbol 493 MovieClip Frame 3
stop();
Instance of Symbol 477 MovieClip in Symbol 493 MovieClip Frame 3
onClipEvent (load) {
delay = _parent.delay;
}
Symbol 493 MovieClip Frame 6
if ((Math.abs(_parent.hero._x - _x) < 400) && (Math.abs(_parent.hero._y - _y) < 350)) {
sound.gotoAndPlay(2);
}
bangzone._height = _height;
laser._height = _height;
for (a in _parent) {
if ((_parent[a] != this) && (_parent[a].hitzone.hitTest(bangzone))) {
_parent[a].hit(this, this, ((5 + (5 * Math.random())) * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -14, 10, 5);
}
}
play();
Instance of Symbol 490 MovieClip "laser" in Symbol 493 MovieClip Frame 6
/* no clip actions */
Symbol 493 MovieClip Frame 15
gotoAndStop (3);
Symbol 498 MovieClip Frame 7
gotoAndPlay (1);
Symbol 503 MovieClip Frame 1
_visible = 0;
Symbol 503 MovieClip Frame 2
_visible = 1;
Symbol 503 MovieClip Frame 14
explode();
Symbol 503 MovieClip Frame 16
for (a in _parent) {
if ((hitTest(_parent[a].hitzone) && (_parent[a] != this)) && (_parent[a] != owner)) {
_parent[a].hit(this, 0, (4 * (_parent[a]._x - _x)) / Math.abs(_x - _parent[a]._x), -12, 5, 5);
}
}
for (a in _parent._parent.decor) {
if (hitTest(_parent._parent.decor[a].hitzone)) {
_parent._parent.decor[a].hit(this, 0, (4 * (_parent._parent.decor[a]._x - _x)) / Math.abs(_x - _parent._parent.decort[a]._x), -12, 5, 5);
}
}
Symbol 503 MovieClip Frame 22
removeMovieClip(this);
_visible = 0;
stop();
Symbol 506 MovieClip Frame 6
removeMovieClip(this);
_visible = 0;
stop();
Symbol 512 MovieClip Frame 1
_visible = 0;
Symbol 514 MovieClip Frame 1
_visible = 0;
Symbol 514 MovieClip Frame 2
_visible = 1;
Symbol 514 MovieClip Frame 67
explode();
Symbol 514 MovieClip Frame 68
for (a in _parent) {
if ((bangzone.hitTest(_parent[a].hitzone) && (_parent[a] != this)) && (_parent[a] != owner)) {
_parent[a].hit(this, 0, (4 * (_parent[a]._x - _x)) / Math.abs(_x - _parent[a]._x), -12, 10, 5);
}
}
for (a in _parent._parent.decor) {
if (bangzone.hitTest(_parent._parent.decor[a])) {
_parent._parent.decor[a].hit(this, 0, (4 * (_parent[a]._x - _x)) / Math.abs(_x - _parent[a]._x), -12, 10, 5);
}
}
Symbol 514 MovieClip Frame 75
_visible = 0;
_parent.grenades = _parent.grenades - 1;
removeMovieClip(this);
stop();
Symbol 520 MovieClip Frame 1
_visible = 0;
Symbol 520 MovieClip Frame 2
_visible = 1;
Symbol 520 MovieClip Frame 67
explode();
Symbol 520 MovieClip Frame 68
for (a in _parent) {
if ((bangzone.hitTest(_parent[a].hitzone) && (_parent[a] != this)) && (_parent[a] != owner)) {
_parent[a].hit(this, 0, (4 * (_parent[a]._x - _x)) / Math.abs(_x - _parent[a]._x), -12, 10, 5);
}
}
for (a in _parent._parent.decor) {
if (bangzone.hitTest(_parent._parent.decor[a])) {
_parent._parent.decor[a].hit(this, 0, (4 * (_parent[a]._x - _x)) / Math.abs(_x - _parent[a]._x), -12, 10, 5);
}
}
Symbol 520 MovieClip Frame 75
_visible = 0;
_parent.grenades = _parent.grenades - 1;
removeMovieClip(this);
stop();
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 2
_parent.bonom.lifechange(10);
_parent.bonom.misc.gotoAndPlay("life");
Symbol 523 MovieClip Frame 5
stop();
Symbol 523 MovieClip Frame 6
_root.lives = _root.lives + 1;
_root.extralifegot = _root.extralifegot + 1;
_parent.bonom.misc.gotoAndPlay("life");
Symbol 523 MovieClip Frame 10
stop();
Symbol 523 MovieClip Frame 11
_parent.bonom.fireratechange(1);
_parent.bonom.misc.gotoAndPlay("firerate");
Symbol 525 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 525 MovieClip Frame 2
if (_parent.decor.hitTest(_parent.absx, _parent.absy + 5, true)) {
_parent.ground = 1;
} else {
_parent.ground = 0;
}
Symbol 525 MovieClip Frame 5
gotoAndPlay (2);
Symbol 526 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 526 MovieClip Frame 2
if (_parent.hitTest(_parent.bonom.hitzone)) {
_parent.itemframe = _parent.iteminside._currentframe;
_parent.gotoAndPlay("ramasse");
}
Symbol 526 MovieClip Frame 6
gotoAndPlay (2);
Symbol 527 MovieClip Frame 1
_visible = 0;
stop();
Symbol 527 MovieClip Frame 2
_visible = 1;
yspeed = -6;
yaccel = 2;
play();
Symbol 527 MovieClip Frame 20
if (forever) {
stop();
}
Symbol 527 MovieClip Frame 141
removeMovieClip(this);
Symbol 527 MovieClip Frame 148
iteminside.gotoAndStop(itemframe + 1);
Symbol 527 MovieClip Frame 157
removeMovieClip(this);
Symbol 528 MovieClip Frame 1
_visible = 0;
Symbol 528 MovieClip Frame 4
_visible = 1;
for (a in _parent) {
if (_parent[a].hitzone.hitTest(testzone)) {
_parent[a].hit(owner, this, 0, -15, 10, 10);
}
}
for (a in _parent._parent.decor) {
if (_parent._parent.decor[a].hitzone.hitTest(testzone)) {
_parent._parent.decor[a].hit(owner, this, 0, -15, 10, 10);
}
}
Symbol 528 MovieClip Frame 11
removeMovieClip(this);
_visible = 0;
stop();
Symbol 531 MovieClip Frame 1
_visible = 0;
Symbol 531 MovieClip Frame 2
_visible = 1;
Symbol 531 MovieClip Frame 4
Symbol 531 MovieClip Frame 17
removeMovieClip(this);
_visible = 0;
stop();
Symbol 534 MovieClip Frame 1
_visible = 0;
Symbol 534 MovieClip Frame 2
_visible = 1;
Symbol 534 MovieClip Frame 21
removeMovieClip(this);
_visible = 0;
stop();
Symbol 535 MovieClip Frame 1
_visible = 0;
Symbol 535 MovieClip Frame 2
if (hitTest(_parent.hero.hitzone)) {
event();
}
Symbol 535 MovieClip Frame 15
gotoAndPlay (2);
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 6
stop();
Symbol 541 MovieClip Frame 1
_visible = 0;
stop();
Symbol 541 MovieClip Frame 2
_visible = 1;
stopAllSounds();
Symbol 541 MovieClip Frame 50
_root.victoryscene();
Symbol 548 MovieClip Frame 4
gotoAndPlay (1);
Symbol 551 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 551 MovieClip Frame 2
if (_parent.gotook == 1) {
_parent.gotoAndStop(frame);
} else if (_parent.gotook == 2) {
_parent.gotoAndStop(frame2);
}
Symbol 551 MovieClip Frame 3
gotoAndPlay (2);
Symbol 552 MovieClip Frame 15
stop();
_visible = 0;
Symbol 553 MovieClip Frame 1
Instance of Symbol 147 MovieClip in Symbol 553 MovieClip Frame 21
onClipEvent (load) {
frame = "stand";
}
Symbol 553 MovieClip Frame 32
gotook = 0;
if (life <= 0) {
gotook = 1;
}
Instance of Symbol 551 MovieClip in Symbol 553 MovieClip Frame 32
onClipEvent (load) {
frame = "drop_r";
}
Instance of Symbol 147 MovieClip in Symbol 553 MovieClip Frame 48
onClipEvent (load) {
frame = "stand_loop";
}
Symbol 553 MovieClip Frame 52
gotook = 0;
if (life <= 0) {
gotook = 1;
}
Instance of Symbol 551 MovieClip in Symbol 553 MovieClip Frame 52
onClipEvent (load) {
frame = "drop_l";
}
Instance of Symbol 147 MovieClip in Symbol 553 MovieClip Frame 68
onClipEvent (load) {
frame = "stand_loop";
}
Symbol 553 MovieClip Frame 75
anim.model.gotoAndStop("drop");
falling = 1;
Instance of Symbol 552 MovieClip "explosion" in Symbol 553 MovieClip Frame 75
/* no clip actions */
Symbol 553 MovieClip Frame 80
call("drop_r");
Instance of Symbol 552 MovieClip "explosion" in Symbol 553 MovieClip Frame 80
/* no clip actions */
Instance of Symbol 552 MovieClip "explosion" in Symbol 553 MovieClip Frame 80
/* no clip actions */
Symbol 553 MovieClip Frame 85
_root.groundshake();
Symbol 553 MovieClip Frame 88
_visible = 1;
for (a in _parent) {
if (_parent[a].hitzone.hitTest(testzone)) {
_parent[a].hit(owner, this, 0, -15, 10, 10);
}
}
for (a in _parent._parent.decor) {
if (_parent._parent.decor[a].hitzone.hitTest(testzone)) {
_parent._parent.decor[a].hit(owner, this, 0, -15, 10, 10);
_parent._parent.decor[a].burn();
}
}
Symbol 553 MovieClip Frame 97
removeMovieClip(this);
_visible = 0;
stop();
Symbol 558 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 8
_parent._parent.shoot();
Instance of Symbol 147 MovieClip in Symbol 558 MovieClip Frame 15
onClipEvent (load) {
frame = "stand";
}
Symbol 562 MovieClip Frame 1
_visible = 0;
stop();
Symbol 564 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 564 MovieClip Frame 2
with (_parent) {
if (((_x < xmin) || (_x > xmax)) || (decor.hitTest((absx + _x) + ((wallsight * xspeed) / Math.abs(xspeed)), (absy + _y) - 10, 1))) {
xspeed = xspeed * -1;
direction = direction * -1;
_xscale = direction * xscaleorig;
}
}
Symbol 564 MovieClip Frame 6
gotoAndPlay (2);
Symbol 567 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 567 MovieClip Frame 30
_parent.timescoreloss();
Symbol 567 MovieClip Frame 31
gotoAndPlay (2);
Symbol 568 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 568 MovieClip Frame 2
_parent.rvolmove();
Symbol 568 MovieClip Frame 3
gotoAndPlay (2);
Symbol 571 MovieClip Frame 2
xspeed = walkspeed * direction;
Symbol 571 MovieClip Frame 3
if (bangzone.hitTest(ennemy.hitzone)) {
defensebang();
}
Symbol 571 MovieClip Frame 7
if (bomber && (testzone.hitTest(ennemy.hitzone))) {
body.canon.gotoAndPlay("shoot");
}
Symbol 571 MovieClip Frame 8
call("stand_loop");
Instance of Symbol 147 MovieClip in Symbol 571 MovieClip Frame 12
onClipEvent (load) {
frame = "stand_loop";
}
Instance of Symbol 147 MovieClip in Symbol 571 MovieClip Frame 40
onClipEvent (load) {
frame = "stand";
}
Symbol 571 MovieClip Frame 70
event_die();
removeMovieClip(this);
_visible = 0;
stop();
Instance of Symbol 147 MovieClip in Symbol 571 MovieClip Frame 86
onClipEvent (load) {
frame = "stand";
}
Symbol 576 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 12
gotoAndStop (1);
Symbol 577 MovieClip Frame 2
if (testzone.hitTest(_parent._parent.ennemy.hitzone)) {
_parent._parent.shoot();
}
Symbol 577 MovieClip Frame 26
if (testzone.hitTest(_parent._parent.ennemy.hitzone)) {
_parent._parent.shoot();
}
Symbol 577 MovieClip Frame 51
gotoAndPlay (2);
Symbol 578 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 25
gotoAndStop (1);
Instance of Symbol 580 MovieClip "wheel" in Symbol 581 MovieClip Frame 1
onClipEvent (load) {
_rotation = (180 * Math.random());
}
Symbol 586 MovieClip Frame 1
_visible = 0;
Symbol 589 MovieClip Frame 14
if (bangzone.hitTest(_parent.ennemy.hitzone)) {
_parent.defensebang();
}
Symbol 590 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 590 MovieClip Frame 2
_parent.groundmove();
Symbol 590 MovieClip Frame 3
gotoAndPlay (2);
Symbol 591 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 591 MovieClip Frame 2
with (_parent) {
if (decor.hitTest((absx + _x) + ((wallsight * xspeed) / Math.abs(xspeed)), (absy + _y) - 10, 1)) {
xspeedmem = xspeedmem * -1;
xspeed = xspeed * -1;
direction = direction * -1;
_xscale = direction * xscaleorig;
}
}
Symbol 591 MovieClip Frame 10
gotoAndPlay (2);
Symbol 592 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 592 MovieClip Frame 3
var wall = 0;
for (a in _parent._parent.solidsprites) {
if ((_parent._parent.solidsprites[a] != _parent) && (_parent._parent.solidsprites[a].hitzone.hitTest(testzone))) {
wall = 1;
obstacle = _parent._parent.solidsprites[a];
}
}
if (wall == 1) {
if ((_parent.blocked && (obstacle.direction != _parent.direction)) && (obstacle.blocked)) {
_parent.direction = _parent.direction * -1;
_parent.xspeed = _parent.xspeed * -1;
_parent._xscale = _parent.direction * _parent.xscaleorig;
_parent.blocked = 0;
} else if (!_parent.blocked) {
_parent.blocked = 1;
}
} else if ((wall == 0) && (_parent.blocked)) {
_parent.blocked = 0;
}
Symbol 592 MovieClip Frame 11
gotoAndPlay (3);
Symbol 593 MovieClip Frame 1
_parent.ground = 0;
_visible = 0;
gotoAndPlay (2);
Symbol 593 MovieClip Frame 2
if (_parent.decor.hitTest(_parent.absx + _parent._x, _parent.absy + _parent._y, 1)) {
_parent.gotoAndPlay(frame);
}
Symbol 593 MovieClip Frame 3
gotoAndPlay (2);
Symbol 594 MovieClip Frame 3
xspeed = walkspeed * direction;
Instance of Symbol 147 MovieClip in Symbol 594 MovieClip Frame 20
onClipEvent (load) {
frame = "stand_loop";
}
Instance of Symbol 147 MovieClip in Symbol 594 MovieClip Frame 39
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 147 MovieClip in Symbol 594 MovieClip Frame 54
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 147 MovieClip in Symbol 594 MovieClip Frame 69
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 147 MovieClip in Symbol 594 MovieClip Frame 85
onClipEvent (load) {
frame = "stand";
}
Symbol 594 MovieClip Frame 90
body.launcher.gotoAndStop("middle");
xspeed = xspeed - (3 * direction);
yspeed = yspeed - 10;
Symbol 594 MovieClip Frame 93
lying = 1;
yaccel = yaccel * 1.5;
Instance of Symbol 593 MovieClip in Symbol 594 MovieClip Frame 95
onClipEvent (load) {
frame = "rvol_strong_land";
}
Symbol 594 MovieClip Frame 101
yaccel = yaccelinit;
body.gotoAndPlay("land");
Instance of Symbol 593 MovieClip in Symbol 594 MovieClip Frame 116
onClipEvent (load) {
frame = "releve";
}
Symbol 594 MovieClip Frame 124
lying = 0;
yaccel = yaccelinit;
Symbol 594 MovieClip Frame 132
body.launcher.play();
Instance of Symbol 147 MovieClip in Symbol 594 MovieClip Frame 132
onClipEvent (load) {
frame = "stand";
}
Symbol 594 MovieClip Frame 140
body.launcher.gotoAndStop("middle");
Instance of Symbol 593 MovieClip in Symbol 594 MovieClip Frame 155
onClipEvent (load) {
frame = "releve";
}
Symbol 594 MovieClip Frame 160
xspeed = 0;
Symbol 594 MovieClip Frame 196
event_die();
removeMovieClip(this);
_visible = 0;
stop();
Symbol 594 MovieClip Frame 220
activate();
Instance of Symbol 147 MovieClip in Symbol 594 MovieClip Frame 220
onClipEvent (load) {
frame = "stand_loop";
}
Symbol 599 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 599 MovieClip Frame 2
if (_parent.testzone.hitTest(_parent.ennemy.hitzone)) {
_parent.gotoAndPlay(frame);
}
Symbol 599 MovieClip Frame 6
gotoAndPlay (2);
Symbol 602 MovieClip Frame 1
stop();
Instance of Symbol 147 MovieClip in Symbol 602 MovieClip Frame 11
onClipEvent (load) {
frame = 1;
}
Symbol 604 MovieClip Frame 3
if (mobile) {
gotoAndPlay ("walk");
} else {
gotoAndPlay ("shoot_immobile");
}
Instance of Symbol 147 MovieClip in Symbol 604 MovieClip Frame 30
onClipEvent (load) {
frame = "stand_loop";
}
Symbol 604 MovieClip Frame 41
xspeed = walkspeed * direction;
Symbol 604 MovieClip Frame 50
xspeed = (walkspeed * 0.5) * direction;
Instance of Symbol 599 MovieClip in Symbol 604 MovieClip Frame 50
onClipEvent (load) {
frame = "shoot";
}
Instance of Symbol 147 MovieClip in Symbol 604 MovieClip Frame 60
onClipEvent (load) {
frame = "walk_loop";
}
Instance of Symbol 599 MovieClip in Symbol 604 MovieClip Frame 83
onClipEvent (load) {
frame = "shoot_2";
}
Instance of Symbol 147 MovieClip in Symbol 604 MovieClip Frame 84
onClipEvent (load) {
if (_parent.mobile) {
frame = "shoot_2";
} else {
frame = "shoot_ready";
}
}
Symbol 604 MovieClip Frame 86
shoot();
Instance of Symbol 599 MovieClip in Symbol 604 MovieClip Frame 110
onClipEvent (load) {
frame = "shoot_2";
}
Instance of Symbol 147 MovieClip in Symbol 604 MovieClip Frame 111
onClipEvent (load) {
if (_parent.mobile) {
frame = _parent._currentframe + 1;
} else {
frame = "shoot_ready";
}
}
Instance of Symbol 147 MovieClip in Symbol 604 MovieClip Frame 121
onClipEvent (load) {
frame = "walk_middle";
}
Symbol 604 MovieClip Frame 145
event_die();
removeMovieClip(this);
_visible = 0;
stop();
Symbol 604 MovieClip Frame 159
activate();
Instance of Symbol 147 MovieClip in Symbol 604 MovieClip Frame 159
onClipEvent (load) {
frame = "walk";
}
Instance of Symbol 147 MovieClip in Symbol 604 MovieClip Frame 172
onClipEvent (load) {
frame = "shoot_ready";
}
Symbol 605 MovieClip Frame 1
_visible = 0;
stop();
Symbol 606 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 606 MovieClip Frame 2
if (hitTest(_parent.hero.hitzone)) {
event();
}
Symbol 606 MovieClip Frame 4
gotoAndPlay (2);
Symbol 606 MovieClip Frame 20
_visible = 0;
Symbol 608 MovieClip Frame 1
_visible = 0;
stop();
Symbol 608 MovieClip Frame 2
stop();
Symbol 609 MovieClip Frame 1
grenade.stop();
gbomb.stop();
explosion.stop();
explosion_crate.stop();
explosion_big.stop();
smoke.stop();
solidsprites = new Array();
stop();
Instance of Symbol 455 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function event_destroy() {
_parent._parent.decor.bigdoor1.gotoAndPlay("open");
}
}
Instance of Symbol 471 MovieClip "ceilcr1" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function spawn() {
active = 1;
_visible = 1;
gotoAndPlay (60);
}
function desactivate() {
active = 0;
_visible = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
active = 1;
_visible = 1;
yspeed = 4 + (2 * Math.random());
gotoAndPlay (3);
}
function shoot() {
decordept = game.decor.getDepth();
duplicateMovieClip (shots, "shot" + game.n, -game.n);
shot = game["shot" + game.n];
shot._x = (((gun._y * _xscale) / 100) + _x) + _parent._x;
shot._y = (((gun._x * _yscale) / 100) + _y) + _parent._y;
shot._rotation = ((gun.anim._rotation + 90) + _rotation) + int(-3 * Math.random());
game.n = game.n + 1;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
_parent.badang(this);
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
if (attacker == ennemy) {
score = 300 + int(100 * Math.random());
_local1.score = _local1.score + score;
_local1.showscore(this);
}
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x + (30 * direction), _y, "random");
}
xspeed = 0;
gotoAndPlay (30);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
gotoAndPlay (10);
}
}
ennemy = _parent._parent.sprites.hero;
active = 1;
range = 200;
xspeed = 3 + (2 * Math.random());
lifemax = 20;
life = lifemax;
game = _parent._parent;
xscaleorig = Math.abs(_xscale);
host = _parent._parent.decor[_name + "_host"];
host.spritex = (host._x + host._parent._x) - _parent._parent.sprites._x;
host.parasite = this;
absx = (_x + _parent._x) + _parent._parent._x;
shots = _parent._parent.laser;
dept = _parent._parent.decor.getDepth();
xmin = _parent[_name + "_xmin"]._x;
_parent[_name + "_xmin"].gotoAndStop(2);
xmax = _parent[_name + "_xmax"]._x;
_parent[_name + "_xmax"].gotoAndStop(2);
_rotation = 90;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
if (_x <= xmin) {
xspeed = xspeed * -1;
_x = xmin;
} else if (_x >= xmax) {
xspeed = xspeed * -1;
_x = xmax;
}
absy = (_x + _parent._x) + _parent._parent._x;
if (shoottime) {
ennemyx = ennemy._x;
ennemyy = ennemy._y + ennemy.middle;
}
xdist = 1 * (ennemyx - _x);
ydist = ennemyy - _y;
if (ydist > 0) {
rotcible = 0 + (((-Math.atan(xdist / ydist)) * 180) / Math.PI);
} else {
rotcible = -180 + (((-Math.atan(xdist / ydist)) * 180) / Math.PI);
}
if (rotcible > 45) {
rotcible = 45;
} else if (rotcible < -45) {
rotcible = -45;
}
gun.anim._rotation = gun.anim._rotation + ((rotcible - gun.anim._rotation) / 6);
}
Instance of Symbol 370 MovieClip "ceilcr1_xmin" in Symbol 609 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 493 MovieClip "vertlaser1" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function countdown() {
nextFrame();
}
function startcountdown() {
gotoAndStop (3);
}
delay = 1;
startdelay = 1;
basedown._y = _parent[_name + "_basedown"]._y - _y;
_parent[_name + "_basedown"].gotoAndStop(2);
}
Instance of Symbol 493 MovieClip "vertlaser2" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function countdown() {
nextFrame();
}
function startcountdown() {
gotoAndStop (3);
}
delay = 1;
startdelay = 1;
basedown._y = _parent[_name + "_basedown"]._y - _y;
_parent[_name + "_basedown"].gotoAndStop(2);
}
onClipEvent (load) {
startdelay = 3;
}
Instance of Symbol 503 MovieClip "missile" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function explode() {
gotoAndPlay (15);
xspeed = xspeed / 4;
}
function hit() {
gotoAndPlay (10);
}
decor = _parent._parent.decor;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
xspeed = xspeed + (xaccel * direction);
if (_currentframe < 10) {
if (decor.hitTest((_x + _parent._x) + _parent._parent._x, (_y + _parent._y) + _parent._parent._y, 1)) {
explode();
} else if (hitzone.hitTest(owner.ennemy.hitzone)) {
explode();
}
}
}
Instance of Symbol 514 MovieClip "grenade" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function explode() {
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay (67);
}
function hit() {
explode();
}
projectile = 1;
decor = _parent._parent.decor;
middle = (-_height) / 2;
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
if (yaccel > 0) {
_x = (_x + xspeed);
grenade.grenade._rotation = grenade.grenade._rotation + (8 * xspeed);
if (decor.hitTest((absx + _x) + (2 * xspeed), (absy + _y) + middle, 1)) {
xspeed = xspeed * -0.6;
}
if (((yspeed < 0) && (!decor.hitTest(absx + _x, ((absy + _y) - 10) + yspeed, 1))) || ((yspeed >= 0) && (!decor.hitTest(absx + _x, absy + _y, 1)))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
xspeed = xspeed / 1.4;
yspeed = yspeed * -0.5;
if (yspeed > -3) {
yspeed = 0;
}
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
}
Instance of Symbol 520 MovieClip "gbomb" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function explode() {
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay (67);
}
function hit() {
explode();
}
projectile = 1;
decor = _parent._parent.decor;
middle = (-_height) / 2;
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
if (yaccel > 0) {
_x = (_x + xspeed);
grenade.grenade._rotation = grenade.grenade._rotation + (8 * xspeed);
if (decor.hitTest((absx + _x) + (2 * xspeed), (absy + _y) + middle, 1)) {
xspeed = xspeed * -0.6;
}
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
explode();
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
}
Instance of Symbol 527 MovieClip "object" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
yaccel = 0;
yspeed = 0;
bonom = _parent.hero;
decor = _parent._parent.decor;
}
onClipEvent (enterFrame) {
if (yspeed != 0) {
_y = (_y + yspeed);
}
absx = (_x + _parent._x) + _parent._parent._x;
absy = (_y + _parent._y) + _parent._parent._y;
if (decor.hitTest(absx, absy, true) == 0) {
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
while (decor.hitTest(absx, ((_y + _parent._y) + _parent._parent._y) - 2, true)) {
_y = (_y - 2);
}
}
}
Instance of Symbol 503 MovieClip "missile2" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function explode() {
gotoAndPlay (15);
xspeed = xspeed / 4;
}
function hit() {
}
xaccel = 0.2;
decor = _parent._parent.decor;
life = 5;
projectile = 1;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
xspeed = xspeed + (xaccel * direction);
if (_currentframe < 10) {
if (decor.hitTest((_x + _parent._x) + _parent._parent._x, (_y + _parent._y) + _parent._parent._y, 1)) {
explode();
} else if (hitzone.hitTest(owner.ennemy.hitzone)) {
explode();
}
}
}
Instance of Symbol 534 MovieClip "smoke" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function move() {
_y = (_y + yspeed);
}
yspeed = -3;
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function event() {
var _local1 = _root;
var _local2 = _parent;
_local2.hero.desactivate();
_local1.currentspeaker = _local2._parent.decor.speaker2;
_local1.text_speaker._x = (_local2._parent.decor._x + _local2._parent._x) + _local1.currentspeaker._x;
_local1.text_speaker._y = (_local2._parent.decor._y + _local2._parent._y) + _local1.currentspeaker._y;
_local1.text_speaker.gotoAndStop(3);
_local1.currentspeaker.gotoAndPlay(2);
_local1.currentspeaker.speaking = 1;
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1._parent.decor.bigdoor1.gotoAndPlay("close");
_local1._parent.foreground.gotoAndStop(2);
_local1.gotoAndStop(2);
gotoAndStop (20);
}
}
Instance of Symbol 215 MovieClip "hero" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
function fireratechange(factor) {
firerate = firerate + factor;
}
function desactivate() {
active = 0;
tracktime = 0;
shoottime = 0;
key_left = 2000;
key_right = 2001;
key_jump = 2002;
key_jump2 = 2003;
}
function activate() {
active = 1;
tracktime = 1;
shoottime = 1;
key_left = 65;
key_right = 68;
key_jump = 87;
key_jump2 = 32;
}
function expression(frame) {
head.anim.model.gotoAndStop(frame);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
if (life > 0) {
damage = damagebase + int(Math.random() * damagerand);
damage = int(damage / armor);
xspeed = rvolx;
yspeed = rvoly;
ymove();
lifechange(-damage);
_parent.badang(this);
if (life > 0) {
gotoAndPlay(rvolframe);
}
}
}
function lifechange(factor) {
life = life + factor;
if (life > lifemax) {
life = lifemax;
} else if (life < 0) {
life = 0;
}
lifebar._xscale = (life / lifemax) * 100;
diecheck();
}
function diecheck() {
var _local1 = _parent;
var _local2 = _root;
if ((life <= 0) && (!_local2.winner)) {
_local2.herodead = 1;
xspeed = 0;
yspeed = 0;
yaccel = 0;
tracktime = 0;
shoottime = 0;
_local2.dieshake();
this.swapDepths(16000);
_local1._parent.foreground._visible = 0;
_local1.diescreen._x = _x;
_local1.diescreen._y = _y;
_local1.diescreen.gotoAndPlay(2);
_local1.diescreen.swapDepths(15000);
active = 0;
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay(dieframe);
}
}
function shoot() {
var _local1 = _parent;
shoottime = 0;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
xspeed = xspeed - (((2 * (90 + gun.anim._rotation)) / 90) * direction);
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function badang(bangx, bangy, style) {
var _local1 = _parent;
_local1.badang._rotation = _local1.badang._rotation + 20;
duplicateMovieClip (_local1.hitbadang, "hitbadang" + _local1.n, _local1.n);
bang = _local1["hitbadang" + _local1.n];
bang._x = _x + bangx;
bang._y = (_y + middle) + bangy;
_local1.n = _local1.n + 1;
}
function groundcheck() {
if ((yspeed >= 0) && (decor.hitTest(absx + _x, ((absy + _y) + (yspeed / 2)) + 2, 1))) {
ground = 1;
}
}
function camxmove() {
if (((_x + xdecal) < game.camxmax) && ((_x + xdecal) > game.camxmin)) {
game._x = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
}
}
function move() {
if ((!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) && (!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (middle * 1.5), 1))) {
_x = (_x + xspeed);
}
camxmove();
}
function xchange(factor) {
var _local1 = factor;
if ((!decor.hitTest((absx + _x) + ((20 * _local1) / Math.abs(_local1)), (absy + _y) - 3, 1)) && (!decor.hitTest((absx + _x) + _local1, (absy + _y) + (middle * 1.5), 1))) {
_x = (_x + _local1);
}
camxmove();
}
function ychange(factor) {
_y = (_y + factor);
_parent._parent.ydecal = _parent._parent.ydecal - factor;
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
ychange(yspeed);
} else {
yspeed = 0;
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
active = 1;
xorig = _x;
yorig = _y;
middle = (-_height) / 2;
lifemax = 100;
life = lifemax;
rvolframe = 170;
dieframe = 400;
waitingland = 0;
xdecal = 0;
yspeed = 0;
xspeed = 0;
yaccel = 3;
yaccelorig = 3;
key_left = 65;
key_right = 68;
key_jump = 87;
key_up = 87;
key_down = 83;
key_jump2 = 32;
key_esquiv = 83;
footchange = 0;
xscaleorig = _xscale;
direction = 1;
movedirection = 1;
friction = 1.4;
climbspeed = -1.5;
walkspeed = 6;
rollspeed = 10;
backwalkspeed = -6;
decor = _parent._parent.decor;
game = _parent._parent;
shots = _parent._parent.shots;
lifebar = _root.status.lifebar;
lifebar._xscale = (life / lifemax) * 100;
rotbar = _root.status_rot;
this.swapDepths(0);
_root.herodead = 0;
tracktime = 1;
rolltime = 1;
armor = 1.3 - (0.3 * _root.difficulty);
firerate = _root.herofirerate;
fireratemax = 4;
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
xdecal = xdecal + ((xdecalcible - xdecal) / 6);
}
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((life > 0) && (decor.hitTest(absx + _x, (absy + _y) - 2, 1))) {
ychange(-1);
}
while ((life > 0) && (decor.hitTest((absx + _x) + 12, (absy + _y) - 3, 1))) {
_x = (_x - 3);
}
while ((life > 0) && (decor.hitTest((absx + _x) - 12, (absy + _y) - 3, 1))) {
_x = (_x + 3);
}
}
onClipEvent (mouseDown) {
punchok = 0;
if (active) {
gonnashoot = 1;
for (a in _parent) {
if ((_parent[a].hitzone.hitTest(punchzone) && (_parent[a] != this)) && (_parent[a].projectile != 1)) {
punchok = 1;
}
}
}
if (punchok && (decor.hitTest(absx + _x, ((absy + _y) + (yspeed / 2)) + 2, 1))) {
tracktime = 0;
shoottime = 0;
gun.anim._rotation = 0;
gotoAndPlay (240);
} else if (shoottime) {
shoot();
}
}
onClipEvent (mouseUp) {
gonnashoot = 0;
}
onClipEvent (load) {
desactivate();
xorig = 122.75;
yorig = 165.9;
gotoAndPlay (270);
}
Instance of Symbol 541 MovieClip "megaexplosion" in Symbol 609 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(10000);
}
Symbol 609 MovieClip Frame 2
solidsprites = new Array();
stop();
Instance of Symbol 553 MovieClip in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = rvolx;
if (life > 0) {
damage = damagebase + int(Math.random() * damagerand);
damage = int(damage / armor);
life = life - damage;
if (_local1 > 0) {
gotoAndPlay (30);
} else if (_local1 < 0) {
gotoAndPlay (50);
}
_root.hitshake(damage);
xspeed = _local1 / 16;
yspeed = rvoly;
}
}
life = 10;
armor = 1;
yaccel = 3;
yspeed = 0;
falling = 0;
score = 100;
projectile = 1;
}
onClipEvent (enterFrame) {
if (falling) {
parentx = _parent._x + _parent._parent._x;
parenty = _parent._y + _parent._parent._y;
yspeed = yspeed + yaccel;
_y = (_y + yspeed);
_x = (_x + xspeed);
anim.model._rotation = anim.model._rotation - xspeed;
explosion._y = explosion._y - yspeed;
explosion._x = explosion._x - xspeed;
if (_parent._parent.decor.hitTest(parentx + _x, (parenty + _y) + 10, 1)) {
yspeed = 0;
falling = 0;
_rotation = 0;
_root.score = _root.score + score;
_root.showscore(this);
_root.groundshake();
gotoAndPlay (85);
}
}
}
Instance of Symbol 553 MovieClip in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = rvolx;
if (life > 0) {
damage = damagebase + int(Math.random() * damagerand);
damage = int(damage / armor);
life = life - damage;
if (_local1 > 0) {
gotoAndPlay (30);
} else if (_local1 < 0) {
gotoAndPlay (50);
}
_root.hitshake(damage);
xspeed = _local1 / 16;
yspeed = rvoly;
}
}
life = 10;
armor = 1;
yaccel = 3;
yspeed = 0;
falling = 0;
score = 100;
projectile = 1;
}
onClipEvent (enterFrame) {
if (falling) {
parentx = _parent._x + _parent._parent._x;
parenty = _parent._y + _parent._parent._y;
yspeed = yspeed + yaccel;
_y = (_y + yspeed);
_x = (_x + xspeed);
anim.model._rotation = anim.model._rotation - xspeed;
explosion._y = explosion._y - yspeed;
explosion._x = explosion._x - xspeed;
if (_parent._parent.decor.hitTest(parentx + _x, (parenty + _y) + 10, 1)) {
yspeed = 0;
falling = 0;
_rotation = 0;
_root.score = _root.score + score;
_root.showscore(this);
_root.groundshake();
gotoAndPlay (85);
}
}
}
Instance of Symbol 493 MovieClip "vertlaser4" in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function countdown() {
nextFrame();
}
function startcountdown() {
gotoAndStop (3);
}
delay = 1;
startdelay = 1;
basedown._y = _parent[_name + "_basedown"]._y - _y;
_parent[_name + "_basedown"].gotoAndStop(2);
}
Instance of Symbol 571 MovieClip "helico1" in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (xscaleorig * direction);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (80);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (1);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (2);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
damage = damagebase + int(damagerand * Math.random());
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
_local1.score = _local1.score + score;
_local1.showscore(this);
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (50);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
sound.gotoAndPlay(2);
}
}
function move() {
_x = (_x + xspeed);
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
xspeed = xspeed / 1.3;
}
function ymove() {
_y = (_y + yspeed);
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function shoot() {
var _local1 = _parent;
duplicateMovieClip (grenade, "grenade" + _local1.n, _local1.n);
grenad = _local1["grenade" + _local1.n];
grenad._x = _x + xspeed;
grenad._y = _y + 40;
grenad.xspeed = 0;
grenad.yspeed = 5;
grenad.direction = direction;
grenad.yaccel = 2;
grenad.owner = this;
_local1.n = _local1.n + 1;
}
decor = _parent._parent.decor;
ennemy = _parent.hero;
game = _parent._parent;
lifemax = 7;
life = lifemax;
xscaleorig = _xscale;
wallsight = 75;
walkspeed = 8;
friction = 1.4;
yspeed = 0;
yaccel = 3;
yaccelinit = 3;
weight = 1;
middle = 0;
basescore = 50;
timescore = 100;
bomber = 1;
grenade = _parent.gbomb;
xmin = _parent[_name + "_xmin"]._x;
_parent[_name + "_xmin"].gotoAndStop(2);
xmax = _parent[_name + "_xmax"]._x;
_parent[_name + "_xmax"].gotoAndStop(2);
setdirection(1);
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
}
onClipEvent (load) {
setdirection(-1);
}
Instance of Symbol 571 MovieClip "helico2" in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (xscaleorig * direction);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (80);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (1);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (2);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
damage = damagebase + int(damagerand * Math.random());
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
_local1.score = _local1.score + score;
_local1.showscore(this);
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (50);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
sound.gotoAndPlay(2);
}
}
function move() {
_x = (_x + xspeed);
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
xspeed = xspeed / 1.3;
}
function ymove() {
_y = (_y + yspeed);
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function shoot() {
var _local1 = _parent;
duplicateMovieClip (grenade, "grenade" + _local1.n, _local1.n);
grenad = _local1["grenade" + _local1.n];
grenad._x = _x + xspeed;
grenad._y = _y + 40;
grenad.xspeed = 0;
grenad.yspeed = 5;
grenad.direction = direction;
grenad.yaccel = 2;
grenad.owner = this;
_local1.n = _local1.n + 1;
}
decor = _parent._parent.decor;
ennemy = _parent.hero;
game = _parent._parent;
lifemax = 7;
life = lifemax;
xscaleorig = _xscale;
wallsight = 75;
walkspeed = 8;
friction = 1.4;
yspeed = 0;
yaccel = 3;
yaccelinit = 3;
weight = 1;
middle = 0;
basescore = 50;
timescore = 100;
bomber = 1;
grenade = _parent.gbomb;
xmin = _parent[_name + "_xmin"]._x;
_parent[_name + "_xmin"].gotoAndStop(2);
xmax = _parent[_name + "_xmax"]._x;
_parent[_name + "_xmax"].gotoAndStop(2);
setdirection(1);
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
}
onClipEvent (load) {
setdirection(-1);
}
Instance of Symbol 594 MovieClip "crate3_surprise" in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
setdirection(-1);
}
Instance of Symbol 604 MovieClip in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (xscaleorig * direction);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function lifechange(factor) {
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
if (projectile.hitTest(canonzone) || (attacker != ennemy)) {
_parent.badang(this);
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
yspeed = 0;
yaccel = 0;
score = basescore + timescore;
if (attacker == ennemy) {
score = score + 100;
}
_local1.score = _local1.score + score;
_local1.showscore(this);
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (128);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
canon.gotoAndPlay("hit");
xspeed = xspeed + (rvolx / weight);
}
} else {
score = score - 30;
}
}
function move() {
_x = (_x + xspeed);
}
function rvolmove() {
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
_x = (_x + xspeed);
}
if (decor.hitTest(absx, absy + 10, 1)) {
xspeed = xspeed / friction;
}
}
function ymove() {
_y = (_y + yspeed);
}
function shoot() {
var _local1 = _parent;
duplicateMovieClip (grenade, "grenade" + _local1.n, _local1.n);
grenad = _local1["grenade" + _local1.n];
grenad._x = _x;
grenad._y = _y - 50;
grenad.xspeed = (ennemy._x - _x) / (20 + (20 * Math.random()));
grenad.yspeed = -15 - (10 * Math.random());
grenad.direction = direction;
grenad.yaccel = 2;
grenad.owner = this;
_local1.n = _local1.n + 1;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _root.hero;
lifemax = 10;
life = lifemax;
xscaleorig = _xscale;
wallsight = 75;
walkspeed = 3.1;
friction = 1.4;
yspeed = 0;
yaccel = 3;
yaccelinit = 3;
weight = 2;
middle = (-_height) * 0.75;
grenade = _parent.grenade;
mobile = 1;
score = 0;
basescore = 150;
timescore = 100;
setdirection(1);
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 604 MovieClip in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (xscaleorig * direction);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function lifechange(factor) {
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
if (projectile.hitTest(canonzone) || (attacker != ennemy)) {
_parent.badang(this);
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
yspeed = 0;
yaccel = 0;
score = basescore + timescore;
if (attacker == ennemy) {
score = score + 100;
}
_local1.score = _local1.score + score;
_local1.showscore(this);
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (128);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
canon.gotoAndPlay("hit");
xspeed = xspeed + (rvolx / weight);
}
} else {
score = score - 30;
}
}
function move() {
_x = (_x + xspeed);
}
function rvolmove() {
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
_x = (_x + xspeed);
}
if (decor.hitTest(absx, absy + 10, 1)) {
xspeed = xspeed / friction;
}
}
function ymove() {
_y = (_y + yspeed);
}
function shoot() {
var _local1 = _parent;
duplicateMovieClip (grenade, "grenade" + _local1.n, _local1.n);
grenad = _local1["grenade" + _local1.n];
grenad._x = _x;
grenad._y = _y - 50;
grenad.xspeed = (ennemy._x - _x) / (20 + (20 * Math.random()));
grenad.yspeed = -15 - (10 * Math.random());
grenad.direction = direction;
grenad.yaccel = 2;
grenad.owner = this;
_local1.n = _local1.n + 1;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _root.hero;
lifemax = 10;
life = lifemax;
xscaleorig = _xscale;
wallsight = 75;
walkspeed = 3.1;
friction = 1.4;
yspeed = 0;
yaccel = 3;
yaccelinit = 3;
weight = 2;
middle = (-_height) * 0.75;
grenade = _parent.grenade;
mobile = 1;
score = 0;
basescore = 150;
timescore = 100;
setdirection(1);
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
mobile = 0;
}
Instance of Symbol 493 MovieClip "vertlaser5" in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function countdown() {
nextFrame();
}
function startcountdown() {
gotoAndStop (3);
}
delay = 1;
startdelay = 1;
basedown._y = _parent[_name + "_basedown"]._y - _y;
_parent[_name + "_basedown"].gotoAndStop(2);
}
Instance of Symbol 493 MovieClip "vertlaser6" in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function countdown() {
nextFrame();
}
function startcountdown() {
gotoAndStop (3);
}
delay = 1;
startdelay = 1;
basedown._y = _parent[_name + "_basedown"]._y - _y;
_parent[_name + "_basedown"].gotoAndStop(2);
}
onClipEvent (load) {
startdelay = 3;
}
Instance of Symbol 594 MovieClip "hiddenrobot" in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
spawn();
}
Instance of Symbol 605 MovieClip in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
_parent.itemdrop(_x, _y, "firerate", 1);
}
Instance of Symbol 606 MovieClip in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1.hero.hit(this, 0, (4 * (_local1.hero._x - _x)) / Math.abs(_x - _local1.hero._x), -25, 20, 10);
}
}
Instance of Symbol 606 MovieClip in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1.hero.hit(this, 0, (4 * (_local1.hero._x - _x)) / Math.abs(_x - _local1.hero._x), -25, 20, 10);
}
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function event() {
var _local1 = _parent;
_root.automsg("Reminder: the security system is all wrong...", 5);
_local1._parent.decor.vdoor1.gotoAndPlay("appear");
_local1._parent.foreground.gotoAndStop(3);
_local1._parent.decor.gotoAndStop(2);
_local1._parent.bg.gotoAndStop(2);
_local1.gotoAndStop(3);
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 2
onClipEvent (load) {
function event() {
_root.automsg("New feature - climbing: use w and s to climb up/down.", 7);
gotoAndStop (20);
}
}
Symbol 609 MovieClip Frame 3
solidsprites = new Array();
stop();
Instance of Symbol 594 MovieClip "robot1" in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
function event_die() {
var _local1 = _parent;
if ((_local1.robot2.life <= 0) && (_local1._parent.decor.ladder7._currentframe == 20)) {
_local1._parent.decor.ladder7.gotoAndPlay("show");
}
}
setdirection(1);
desactivate();
}
Instance of Symbol 594 MovieClip "robot2" in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
function event_die() {
var _local1 = _parent;
_local1.robotyay.spawn();
if ((_local1.robot1.life <= 0) && (_local1._parent.decor.ladder7._currentframe == 20)) {
_local1._parent.decor.ladder7.gotoAndPlay("show");
}
}
desactivate();
}
Instance of Symbol 604 MovieClip "robot3" in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (xscaleorig * direction);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function lifechange(factor) {
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
if (projectile.hitTest(canonzone) || (attacker != ennemy)) {
_parent.badang(this);
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
yspeed = 0;
yaccel = 0;
score = basescore + timescore;
if (attacker == ennemy) {
score = score + 100;
}
_local1.score = _local1.score + score;
_local1.showscore(this);
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (128);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
canon.gotoAndPlay("hit");
xspeed = xspeed + (rvolx / weight);
}
} else {
score = score - 30;
}
}
function move() {
_x = (_x + xspeed);
}
function rvolmove() {
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
_x = (_x + xspeed);
}
if (decor.hitTest(absx, absy + 10, 1)) {
xspeed = xspeed / friction;
}
}
function ymove() {
_y = (_y + yspeed);
}
function shoot() {
var _local1 = _parent;
duplicateMovieClip (grenade, "grenade" + _local1.n, _local1.n);
grenad = _local1["grenade" + _local1.n];
grenad._x = _x;
grenad._y = _y - 50;
grenad.xspeed = (ennemy._x - _x) / (20 + (20 * Math.random()));
grenad.yspeed = -15 - (10 * Math.random());
grenad.direction = direction;
grenad.yaccel = 2;
grenad.owner = this;
_local1.n = _local1.n + 1;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _root.hero;
lifemax = 10;
life = lifemax;
xscaleorig = _xscale;
wallsight = 75;
walkspeed = 3.1;
friction = 1.4;
yspeed = 0;
yaccel = 3;
yaccelinit = 3;
weight = 2;
middle = (-_height) * 0.75;
grenade = _parent.grenade;
mobile = 1;
score = 0;
basescore = 150;
timescore = 100;
setdirection(1);
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
function event_die() {
_parent._parent.decor.switch1.gotoAndPlay("rise");
}
desactivate();
mobile = 0;
}
Instance of Symbol 604 MovieClip "robot4" in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (xscaleorig * direction);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function lifechange(factor) {
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
if (projectile.hitTest(canonzone) || (attacker != ennemy)) {
_parent.badang(this);
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
yspeed = 0;
yaccel = 0;
score = basescore + timescore;
if (attacker == ennemy) {
score = score + 100;
}
_local1.score = _local1.score + score;
_local1.showscore(this);
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (128);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
canon.gotoAndPlay("hit");
xspeed = xspeed + (rvolx / weight);
}
} else {
score = score - 30;
}
}
function move() {
_x = (_x + xspeed);
}
function rvolmove() {
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
_x = (_x + xspeed);
}
if (decor.hitTest(absx, absy + 10, 1)) {
xspeed = xspeed / friction;
}
}
function ymove() {
_y = (_y + yspeed);
}
function shoot() {
var _local1 = _parent;
duplicateMovieClip (grenade, "grenade" + _local1.n, _local1.n);
grenad = _local1["grenade" + _local1.n];
grenad._x = _x;
grenad._y = _y - 50;
grenad.xspeed = (ennemy._x - _x) / (20 + (20 * Math.random()));
grenad.yspeed = -15 - (10 * Math.random());
grenad.direction = direction;
grenad.yaccel = 2;
grenad.owner = this;
_local1.n = _local1.n + 1;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _root.hero;
lifemax = 10;
life = lifemax;
xscaleorig = _xscale;
wallsight = 75;
walkspeed = 3.1;
friction = 1.4;
yspeed = 0;
yaccel = 3;
yaccelinit = 3;
weight = 2;
middle = (-_height) * 0.75;
grenade = _parent.grenade;
mobile = 1;
score = 0;
basescore = 150;
timescore = 100;
setdirection(1);
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
mobile = 0;
}
Instance of Symbol 493 MovieClip "vertlaser7" in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
function countdown() {
nextFrame();
}
function startcountdown() {
gotoAndStop (3);
}
delay = 1;
startdelay = 1;
basedown._y = _parent[_name + "_basedown"]._y - _y;
_parent[_name + "_basedown"].gotoAndStop(2);
}
Instance of Symbol 594 MovieClip "crate14_surprise" in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
_parent._parent.decor.crate14.surprise = this;
}
Instance of Symbol 594 MovieClip "robotyay" in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
setdirection(-1);
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
function event() {
_parent._parent.decor.vdoor2.gotoAndPlay("appear");
_parent._parent.decor.roofplatform1.gotoAndPlay("open");
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
function event() {
_parent._parent.decor.bigdoor2.gotoAndPlay("open");
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1._parent.decor.bigdoor2.gotoAndPlay("close");
_local1._parent.foreground.gotoAndStop(4);
_local1._parent.bg.gotoAndStop(3);
_local1.gotoAndStop(4);
gotoAndStop (20);
}
}
Instance of Symbol 605 MovieClip in Symbol 609 MovieClip Frame 3
onClipEvent (load) {
_parent.itemdrop(_x, _y, "life", 1);
gotoAndStop (2);
}
Instance of Symbol 471 MovieClip "ceilcr2" in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function spawn() {
active = 1;
_visible = 1;
gotoAndPlay (60);
}
function desactivate() {
active = 0;
_visible = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
active = 1;
_visible = 1;
yspeed = 4 + (2 * Math.random());
gotoAndPlay (3);
}
function shoot() {
decordept = game.decor.getDepth();
duplicateMovieClip (shots, "shot" + game.n, -game.n);
shot = game["shot" + game.n];
shot._x = (((gun._y * _xscale) / 100) + _x) + _parent._x;
shot._y = (((gun._x * _yscale) / 100) + _y) + _parent._y;
shot._rotation = ((gun.anim._rotation + 90) + _rotation) + int(-3 * Math.random());
game.n = game.n + 1;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
_parent.badang(this);
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
if (attacker == ennemy) {
score = 300 + int(100 * Math.random());
_local1.score = _local1.score + score;
_local1.showscore(this);
}
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x + (30 * direction), _y, "random");
}
xspeed = 0;
gotoAndPlay (30);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
gotoAndPlay (10);
}
}
ennemy = _parent._parent.sprites.hero;
active = 1;
range = 200;
xspeed = 3 + (2 * Math.random());
lifemax = 20;
life = lifemax;
game = _parent._parent;
xscaleorig = Math.abs(_xscale);
host = _parent._parent.decor[_name + "_host"];
host.spritex = (host._x + host._parent._x) - _parent._parent.sprites._x;
host.parasite = this;
absx = (_x + _parent._x) + _parent._parent._x;
shots = _parent._parent.laser;
dept = _parent._parent.decor.getDepth();
xmin = _parent[_name + "_xmin"]._x;
_parent[_name + "_xmin"].gotoAndStop(2);
xmax = _parent[_name + "_xmax"]._x;
_parent[_name + "_xmax"].gotoAndStop(2);
_rotation = 90;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
if (_x <= xmin) {
xspeed = xspeed * -1;
_x = xmin;
} else if (_x >= xmax) {
xspeed = xspeed * -1;
_x = xmax;
}
absy = (_x + _parent._x) + _parent._parent._x;
if (shoottime) {
ennemyx = ennemy._x;
ennemyy = ennemy._y + ennemy.middle;
}
xdist = 1 * (ennemyx - _x);
ydist = ennemyy - _y;
if (ydist > 0) {
rotcible = 0 + (((-Math.atan(xdist / ydist)) * 180) / Math.PI);
} else {
rotcible = -180 + (((-Math.atan(xdist / ydist)) * 180) / Math.PI);
}
if (rotcible > 45) {
rotcible = 45;
} else if (rotcible < -45) {
rotcible = -45;
}
gun.anim._rotation = gun.anim._rotation + ((rotcible - gun.anim._rotation) / 6);
}
onClipEvent (load) {
desactivate();
}
Instance of Symbol 370 MovieClip "ceilcr2_xmin" in Symbol 609 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 471 MovieClip "wallcr1" in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function setdirection(factor) {
direction = factor;
_xscale = (xscaleorig * direction);
}
function spawn() {
active = 1;
_visible = 1;
gotoAndPlay (60);
}
function desactivate() {
active = 0;
_visible = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
active = 1;
_visible = 1;
yspeed = mobile * (4 + (2 * Math.random()));
gotoAndPlay (3);
}
function shoot() {
decordept = game.decor.getDepth();
duplicateMovieClip (shots, "shot" + game.n, -game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _parent._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _parent._y;
shot._rotation = ((gun.anim._rotation + 90) + int(-3 * Math.random())) * direction;
game.n = game.n + 1;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
_parent.badang(this);
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
if (attacker == ennemy) {
score = 300 + int(100 * Math.random());
_local1.score = _local1.score + score;
_local1.showscore(this);
}
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x + (30 * direction), _y, "random");
}
yspeed = 0;
ymin = -1000;
ymax = 1000;
gotoAndPlay (30);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
gotoAndPlay (10);
}
}
ennemy = _parent._parent.sprites.hero;
mobile = 1;
active = 1;
range = 400;
yspeed = 4 + (2 * Math.random());
lifemax = 20;
life = lifemax;
game = _parent._parent;
xscaleorig = Math.abs(_xscale);
host = _parent._parent.decor[_name + "_host"];
host.spritex = (host._x + host._parent._x) - _parent._parent.sprites._x;
host.parasite = this;
direction = (_x - host.spritex) / Math.abs(_x - host.spritex);
_xscale = (xscaleorig * direction);
absx = (_x + _parent._x) + _parent._parent._x;
shots = _parent._parent.laser;
dept = _parent._parent.decor.getDepth();
ymin = _parent[_name + "_ymin"]._y;
_parent[_name + "_ymin"].gotoAndStop(2);
ymax = _parent[_name + "_ymax"]._y;
_parent[_name + "_ymax"].gotoAndStop(2);
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
if (_y <= ymin) {
yspeed = yspeed * -1;
_y = ymin;
} else if (_y >= ymax) {
yspeed = yspeed * -1;
_y = ymax;
}
absy = (_y + _parent._y) + _parent._parent._y;
if (shoottime) {
ennemyx = ennemy._x;
ennemyy = ennemy._y + ennemy.middle;
}
xdist = direction * (ennemyx - _x);
ydist = ennemyy - _y;
if (ydist > 0) {
rotcible = 90 + (((-Math.atan(xdist / ydist)) * 180) / Math.PI);
} else {
rotcible = -90 + (((-Math.atan(xdist / ydist)) * 180) / Math.PI);
}
if (rotcible > 45) {
rotcible = 45;
} else if (rotcible < -45) {
rotcible = -45;
}
gun.anim._rotation = gun.anim._rotation + ((rotcible - gun.anim._rotation) / 6);
}
onClipEvent (load) {
function event_die() {
_parent.robot3.spawn();
}
setdirection(-1);
mobile = 0;
desactivate();
host = _parent._parent.decor.wallcr1_host;
host.parasite = this;
host.parasite2 = _parent.ceilcr2;
host.parasite2.host = host;
}
Instance of Symbol 608 MovieClip "wallcr1_ymin" in Symbol 609 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 571 MovieClip "helico11" in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (xscaleorig * direction);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (80);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (1);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (2);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
damage = damagebase + int(damagerand * Math.random());
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
_local1.score = _local1.score + score;
_local1.showscore(this);
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (50);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
sound.gotoAndPlay(2);
}
}
function move() {
_x = (_x + xspeed);
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
xspeed = xspeed / 1.3;
}
function ymove() {
_y = (_y + yspeed);
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function shoot() {
var _local1 = _parent;
duplicateMovieClip (grenade, "grenade" + _local1.n, _local1.n);
grenad = _local1["grenade" + _local1.n];
grenad._x = _x + xspeed;
grenad._y = _y + 40;
grenad.xspeed = 0;
grenad.yspeed = 5;
grenad.direction = direction;
grenad.yaccel = 2;
grenad.owner = this;
_local1.n = _local1.n + 1;
}
decor = _parent._parent.decor;
ennemy = _parent.hero;
game = _parent._parent;
lifemax = 7;
life = lifemax;
xscaleorig = _xscale;
wallsight = 75;
walkspeed = 8;
friction = 1.4;
yspeed = 0;
yaccel = 3;
yaccelinit = 3;
weight = 1;
middle = 0;
basescore = 50;
timescore = 100;
bomber = 1;
grenade = _parent.gbomb;
xmin = _parent[_name + "_xmin"]._x;
_parent[_name + "_xmin"].gotoAndStop(2);
xmax = _parent[_name + "_xmax"]._x;
_parent[_name + "_xmax"].gotoAndStop(2);
setdirection(1);
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
}
onClipEvent (load) {
setdirection(-1);
walkspeed = 3;
wallsight = 25;
bomber = 0;
}
Instance of Symbol 571 MovieClip "helico12" in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (xscaleorig * direction);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (80);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (1);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (2);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
damage = damagebase + int(damagerand * Math.random());
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
_local1.score = _local1.score + score;
_local1.showscore(this);
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (50);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
sound.gotoAndPlay(2);
}
}
function move() {
_x = (_x + xspeed);
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
xspeed = xspeed / 1.3;
}
function ymove() {
_y = (_y + yspeed);
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function shoot() {
var _local1 = _parent;
duplicateMovieClip (grenade, "grenade" + _local1.n, _local1.n);
grenad = _local1["grenade" + _local1.n];
grenad._x = _x + xspeed;
grenad._y = _y + 40;
grenad.xspeed = 0;
grenad.yspeed = 5;
grenad.direction = direction;
grenad.yaccel = 2;
grenad.owner = this;
_local1.n = _local1.n + 1;
}
decor = _parent._parent.decor;
ennemy = _parent.hero;
game = _parent._parent;
lifemax = 7;
life = lifemax;
xscaleorig = _xscale;
wallsight = 75;
walkspeed = 8;
friction = 1.4;
yspeed = 0;
yaccel = 3;
yaccelinit = 3;
weight = 1;
middle = 0;
basescore = 50;
timescore = 100;
bomber = 1;
grenade = _parent.gbomb;
xmin = _parent[_name + "_xmin"]._x;
_parent[_name + "_xmin"].gotoAndStop(2);
xmax = _parent[_name + "_xmax"]._x;
_parent[_name + "_xmax"].gotoAndStop(2);
setdirection(1);
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
}
onClipEvent (load) {
setdirection(1);
walkspeed = 3;
wallsight = 25;
bomber = 0;
}
Instance of Symbol 605 MovieClip in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
_parent.itemdrop(_x, _y, "life", 1);
_parent.itemdrop(_x + 30, _y, "life", 1);
_parent.itemdrop(_x - 30, _y, "life", 1);
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function event() {
_parent._parent.decor.bigdoor3.gotoAndPlay("open");
_parent.gotoAndStop(4);
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function event() {
_parent._parent.decor.bigdoor3.gotoAndPlay("close");
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip "ez_up" in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function event() {
_parent.ez_down.gotoAndPlay(2);
_parent._parent.ybasechange(200, 1);
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip "ez_down" in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1.ez_up.gotoAndPlay(2);
_local1.ez_up2.gotoAndPlay(2);
_local1._parent.ybasechange(151, 4);
gotoAndStop (20);
}
gotoAndStop (20);
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function event() {
var _local1 = _root;
var _local2 = _parent;
_local2.hero.desactivate();
_local1.currentspeaker = _local2._parent.decor.speaker2;
_local1.text_speaker._x = (_local2._parent.decor._x + _local2._parent._x) + _local1.currentspeaker._x;
_local1.text_speaker._y = (_local2._parent.decor._y + _local2._parent._y) + _local1.currentspeaker._y;
_local1.text_speaker.gotoAndStop(3);
_local1.currentspeaker.gotoAndPlay(2);
_local1.currentspeaker.speaking = 1;
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip "ez_up2" in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function event() {
_parent.ez_down.gotoAndPlay(2);
_parent._parent.ybasechange(200, 1);
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function event() {
_parent._parent.decor.eastdoor.gotoAndPlay("open");
_root.automsg("good! now rush outside and repell the incoming human troops.", 9);
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1.ceilcr2.spawn();
_local1.wallcr1.spawn();
_local1._parent.decor.wallcr1_host.gotoAndPlay("appear");
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function event() {
_root.transition.stopsound = 1;
_root.transition.gotoAndPlay("fade");
gotoAndStop (20);
}
}
Instance of Symbol 594 MovieClip "robot3" in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
}
Instance of Symbol 594 MovieClip "robot4" in Symbol 609 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
setdirection(-1);
}
Symbol 610 MovieClip Frame 1
_visible = 0;
stop();
Symbol 610 MovieClip Frame 2
_parent.ydecalbase = _parent.ydecalbase + ((_parent.ycible - _parent.ydecalbase) / 10);
_parent.ycameradiv = _parent.ycameradiv + ((_parent.ydivcible - _parent.ycameradiv) / 10);
Symbol 610 MovieClip Frame 3
call("move");
Symbol 610 MovieClip Frame 4
call("move");
Symbol 610 MovieClip Frame 5
call("move");
Symbol 610 MovieClip Frame 6
call("move");
Symbol 610 MovieClip Frame 7
call("move");
Symbol 610 MovieClip Frame 8
call("move");
Symbol 610 MovieClip Frame 9
call("move");
Symbol 610 MovieClip Frame 10
call("move");
Symbol 610 MovieClip Frame 11
call("move");
Symbol 610 MovieClip Frame 12
call("move");
Symbol 610 MovieClip Frame 13
call("move");
Symbol 610 MovieClip Frame 14
call("move");
Symbol 610 MovieClip Frame 15
call("move");
Symbol 610 MovieClip Frame 16
call("move");
Symbol 610 MovieClip Frame 17
call("move");
Symbol 610 MovieClip Frame 18
call("move");
Symbol 610 MovieClip Frame 19
call("move");
Symbol 610 MovieClip Frame 20
call("move");
Symbol 610 MovieClip Frame 21
call("move");
Symbol 610 MovieClip Frame 22
call("move");
Symbol 610 MovieClip Frame 23
call("move");
Symbol 610 MovieClip Frame 24
call("move");
Symbol 610 MovieClip Frame 25
call("move");
Symbol 610 MovieClip Frame 26
call("move");
Symbol 610 MovieClip Frame 27
call("move");
Symbol 610 MovieClip Frame 28
call("move");
Symbol 610 MovieClip Frame 29
call("move");
Symbol 610 MovieClip Frame 30
call("move");
Symbol 610 MovieClip Frame 31
call("move");
Symbol 610 MovieClip Frame 32
call("move");
Symbol 610 MovieClip Frame 33
call("move");
Symbol 610 MovieClip Frame 34
call("move");
Symbol 610 MovieClip Frame 35
call("move");
Symbol 610 MovieClip Frame 36
call("move");
Symbol 610 MovieClip Frame 37
call("move");
Symbol 610 MovieClip Frame 38
call("move");
Symbol 610 MovieClip Frame 39
call("move");
Symbol 610 MovieClip Frame 40
call("move");
Symbol 610 MovieClip Frame 41
call("move");
Symbol 610 MovieClip Frame 42
call("move");
Symbol 610 MovieClip Frame 43
call("move");
Symbol 610 MovieClip Frame 44
call("move");
Symbol 610 MovieClip Frame 45
call("move");
Symbol 610 MovieClip Frame 46
call("move");
Symbol 610 MovieClip Frame 47
call("move");
Symbol 610 MovieClip Frame 48
call("move");
Symbol 610 MovieClip Frame 49
call("move");
Symbol 610 MovieClip Frame 50
call("move");
Symbol 610 MovieClip Frame 51
call("move");
Symbol 610 MovieClip Frame 52
call("move");
Symbol 610 MovieClip Frame 53
call("move");
Symbol 610 MovieClip Frame 54
call("move");
Symbol 610 MovieClip Frame 55
call("move");
Symbol 610 MovieClip Frame 56
call("move");
Symbol 610 MovieClip Frame 57
call("move");
Symbol 610 MovieClip Frame 58
call("move");
Symbol 610 MovieClip Frame 59
call("move");
Symbol 610 MovieClip Frame 60
call("move");
Symbol 610 MovieClip Frame 61
call("move");
Symbol 610 MovieClip Frame 62
call("move");
Symbol 610 MovieClip Frame 63
call("move");
Symbol 610 MovieClip Frame 64
call("move");
Symbol 610 MovieClip Frame 65
call("move");
Symbol 610 MovieClip Frame 66
call("move");
Symbol 610 MovieClip Frame 67
call("move");
Symbol 610 MovieClip Frame 68
call("move");
Symbol 610 MovieClip Frame 69
call("move");
Symbol 610 MovieClip Frame 70
call("move");
Instance of Symbol 192 MovieClip in Symbol 610 MovieClip Frame 71
onClipEvent (load) {
frame == 1;
}
Symbol 611 MovieClip Frame 1
_visible = 0;
stop();
Symbol 611 MovieClip Frame 2
_parent.xdecalbase = _parent.xdecalbase + ((_parent.xcible - _parent._x) / 10);
Symbol 611 MovieClip Frame 3
call("move");
Symbol 611 MovieClip Frame 4
call("move");
Symbol 611 MovieClip Frame 5
call("move");
Symbol 611 MovieClip Frame 6
call("move");
Symbol 611 MovieClip Frame 7
call("move");
Symbol 611 MovieClip Frame 8
call("move");
Symbol 611 MovieClip Frame 9
call("move");
Symbol 611 MovieClip Frame 10
call("move");
Symbol 611 MovieClip Frame 11
call("move");
Symbol 611 MovieClip Frame 12
call("move");
Symbol 611 MovieClip Frame 13
call("move");
Symbol 611 MovieClip Frame 14
call("move");
Symbol 611 MovieClip Frame 15
call("move");
Symbol 611 MovieClip Frame 16
call("move");
Symbol 611 MovieClip Frame 17
call("move");
Symbol 611 MovieClip Frame 18
call("move");
Symbol 611 MovieClip Frame 19
call("move");
Symbol 611 MovieClip Frame 20
call("move");
Symbol 611 MovieClip Frame 21
call("move");
Symbol 611 MovieClip Frame 22
call("move");
Symbol 611 MovieClip Frame 23
call("move");
Symbol 611 MovieClip Frame 24
call("move");
Symbol 611 MovieClip Frame 25
call("move");
Symbol 611 MovieClip Frame 26
call("move");
Symbol 611 MovieClip Frame 27
call("move");
Symbol 611 MovieClip Frame 28
call("move");
Symbol 611 MovieClip Frame 29
call("move");
Symbol 611 MovieClip Frame 30
call("move");
Symbol 611 MovieClip Frame 31
call("move");
Symbol 611 MovieClip Frame 32
call("move");
Symbol 611 MovieClip Frame 33
call("move");
Symbol 611 MovieClip Frame 34
call("move");
Symbol 611 MovieClip Frame 35
call("move");
Symbol 611 MovieClip Frame 36
call("move");
Symbol 611 MovieClip Frame 37
call("move");
Symbol 611 MovieClip Frame 38
call("move");
Symbol 611 MovieClip Frame 39
call("move");
Symbol 611 MovieClip Frame 40
call("move");
Symbol 611 MovieClip Frame 41
call("move");
Symbol 611 MovieClip Frame 42
call("move");
Symbol 611 MovieClip Frame 43
call("move");
Symbol 611 MovieClip Frame 44
call("move");
Symbol 611 MovieClip Frame 45
call("move");
Symbol 611 MovieClip Frame 46
call("move");
Symbol 611 MovieClip Frame 47
call("move");
Symbol 611 MovieClip Frame 48
call("move");
Symbol 611 MovieClip Frame 49
call("move");
Symbol 611 MovieClip Frame 50
call("move");
Symbol 611 MovieClip Frame 51
call("move");
Symbol 611 MovieClip Frame 52
call("move");
Symbol 611 MovieClip Frame 53
call("move");
Symbol 611 MovieClip Frame 54
call("move");
Symbol 611 MovieClip Frame 55
call("move");
Symbol 611 MovieClip Frame 56
call("move");
Symbol 611 MovieClip Frame 57
call("move");
Symbol 611 MovieClip Frame 58
call("move");
Symbol 611 MovieClip Frame 59
call("move");
Symbol 611 MovieClip Frame 60
call("move");
Symbol 611 MovieClip Frame 61
call("move");
Symbol 611 MovieClip Frame 62
call("move");
Symbol 611 MovieClip Frame 63
call("move");
Symbol 611 MovieClip Frame 64
call("move");
Symbol 611 MovieClip Frame 65
call("move");
Symbol 611 MovieClip Frame 66
call("move");
Symbol 611 MovieClip Frame 67
call("move");
Symbol 611 MovieClip Frame 68
call("move");
Symbol 611 MovieClip Frame 69
call("move");
Instance of Symbol 192 MovieClip in Symbol 611 MovieClip Frame 70
onClipEvent (load) {
frame == 1;
}
Symbol 617 MovieClip Frame 1
stop();
Symbol 619 MovieClip Frame 1
_root.game.decor.ladders.push(this);
stop();
Symbol 623 MovieClip Frame 1
stop();
Symbol 623 MovieClip Frame 10
explode();
stop();
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 10
explode();
event_destroy();
Symbol 625 MovieClip Frame 12
surprise._x = spritex;
surprise._y = spritey;
surprise.activate();
stop();
Symbol 627 MovieClip Frame 1
_parent.ladders.push(this);
stop();
Symbol 630 MovieClip Frame 1
_visible = 0;
stop();
Symbol 630 MovieClip Frame 2
_visible = 1;
Symbol 630 MovieClip Frame 17
stop();
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 8
_root.groundshake();
Symbol 633 MovieClip Frame 10
stop();
Symbol 636 MovieClip Frame 1
n = 100;
ladders = new Array();
stop();
Instance of Symbol 623 MovieClip in Symbol 636 MovieClip Frame 1
onClipEvent (load) {
function explode() {
_visible = 0;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion.owner = this;
currentexplosion._x = spritex;
currentexplosion._y = spritey;
currentexplosion.gotoAndPlay(2);
sprites.n++;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
killer = attacker;
if (killer == hero) {
score = int(1.5 * _xscale);
_local1.score = _local1.score + score;
_local1.showscore(this);
} else if (killer.killer == hero) {
killer = hero;
score = int(1.5 * _xscale) + killer.score;
_local1.score = _local1.score + score;
_local1.showscore(this);
}
life = 0;
_local1.shake(10, 3, 2, 0);
gotoAndStop (10);
}
explosion = _parent._parent.sprites.explosion;
sprites = _parent._parent.sprites;
hero = _parent._parent.sprites.hero;
spritex = (_x + _parent._x) - _parent._parent.sprites._x;
spritey = ((_y + _parent._y) - _parent._parent.sprites._y) + (_height / 2);
life = 0;
}
Instance of Symbol 625 MovieClip "crate1" in Symbol 636 MovieClip Frame 1
onClipEvent (load) {
function explode() {
_visible = 0;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion._xscale = _xscale;
currentexplosion._yscale = _xscale;
currentexplosion.gotoAndPlay(2);
currentexplosion._visible = 1;
sprites.n++;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + (damagerand * Math.random());
life = life - damage;
if (life <= 0) {
killer = attacker;
if (killer == ennemy) {
score = int(_xscale);
_root.showscore(this);
}
life = 0;
_root.shake(10, 3, 2, 0);
gotoAndPlay (10);
}
}
spritex = (_x + _parent._x) - _parent._parent.sprites._x;
spritey = ((_y + _parent._y) - _parent._parent.sprites._y) + (_height / 2);
life = 5 + (5 * Math.random());
surprise = _parent._parent.sprites[_name + "_surprise"];
explosion = _parent._parent.sprites.explosion_crate;
sprites = _parent._parent.sprites;
ennemy = _parent._parent.sprites.hero;
}
Instance of Symbol 625 MovieClip "crate2" in Symbol 636 MovieClip Frame 1
onClipEvent (load) {
function explode() {
_visible = 0;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion._xscale = _xscale;
currentexplosion._yscale = _xscale;
currentexplosion.gotoAndPlay(2);
currentexplosion._visible = 1;
sprites.n++;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + (damagerand * Math.random());
life = life - damage;
if (life <= 0) {
killer = attacker;
if (killer == ennemy) {
score = int(_xscale);
_root.showscore(this);
}
life = 0;
_root.shake(10, 3, 2, 0);
gotoAndPlay (10);
}
}
spritex = (_x + _parent._x) - _parent._parent.sprites._x;
spritey = ((_y + _parent._y) - _parent._parent.sprites._y) + (_height / 2);
life = 5 + (5 * Math.random());
surprise = _parent._parent.sprites[_name + "_surprise"];
explosion = _parent._parent.sprites.explosion_crate;
sprites = _parent._parent.sprites;
ennemy = _parent._parent.sprites.hero;
}
Instance of Symbol 625 MovieClip "crate3" in Symbol 636 MovieClip Frame 1
onClipEvent (load) {
function explode() {
_visible = 0;
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion._xscale = _xscale;
currentexplosion._yscale = _xscale;
currentexplosion.gotoAndPlay(2);
currentexplosion._visible = 1;
sprites.n++;
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + (damagerand * Math.random());
life = life - damage;
if (life <= 0) {
killer = attacker;
if (killer == ennemy) {
score = int(_xscale);
_root.showscore(this);
}
life = 0;
_root.shake(10, 3, 2, 0);
gotoAndPlay (10);
}
}
spritex = (_x + _parent._x) - _parent._parent.sprites._x;
spritey = ((_y + _parent._y) - _parent._parent.sprites._y) + (_height / 2);
life = 5 + (5 * Math.random());
surprise = _parent._parent.sprites[_name + "_surprise"];
explosion = _parent._parent.sprites.explosion_crate;
sprites = _parent._parent.sprites;
ennemy = _parent._parent.sprites.hero;
}
Symbol 636 MovieClip Frame 2
newladders = new Array();
for (a in ladders) {
if (ladders[a]._x) {
newladders.push(ladders[a]);
}
}
ladders = newladders;
Symbol 636 MovieClip Frame 3
newladders = new Array();
for (a in ladders) {
if (ladders[a]._x) {
newladders.push(ladders[a]);
}
}
ladders = newladders;
Symbol 649 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 649 MovieClip Frame 2
_parent.afterflipframe = frame;
with (_parent) {
if (decor.hitTest((absx + _x) + ((wallsight * xspeed) / Math.abs(xspeed)), (absy + _y) - 10, 1)) {
gotoAndPlay("flip");
}
}
Symbol 649 MovieClip Frame 10
gotoAndPlay (2);
Symbol 651 MovieClip Frame 1
_visible = 0;
gotoAndStop (2);
Symbol 653 MovieClip Frame 3
call("stand_test");
Symbol 653 MovieClip Frame 16
if (testzone.hitTest(ennemy.hitzone)) {
if (Math.abs(ennemy._x - _x) < 120) {
frame = "bite";
} else {
frame = "dash";
}
} else if (Math.random() < 0.5) {
frame = "search";
} else if ((testzone_back.hitTest(ennemy.hitzone) || (decor.hitTest((absx + _x) + ((wallsight * xspeed) / Math.abs(xspeed)), (absy + _y) - 10, 1))) || (Math.random() < 0.2)) {
afterflipframe = "stand";
frame = "flip";
} else {
frame = "stand_loop";
}
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 16
onClipEvent (load) {
frame = _parent.frame;
}
Symbol 653 MovieClip Frame 25
xspeed = searchspeed * direction;
Symbol 653 MovieClip Frame 34
call("search_test");
Symbol 653 MovieClip Frame 48
if ((Math.random() < 0.2) || (testzone.hitTest(ennemy.hitzone))) {
frame = "search_end";
} else if (testzone_back.hitTest(ennemy.hitzone)) {
afterflipframe = "stand";
frame = "flip";
} else if (decor.hitTest((absx + _x) + ((wallsight * xspeed) / Math.abs(xspeed)), (absy + _y) - 10, 1) || (Math.random() < 0.2)) {
afterflipframe = "search_loop";
frame = "flip";
} else {
frame = "search_loop";
}
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 48
onClipEvent (load) {
frame = _parent.frame;
}
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 67
onClipEvent (load) {
frame = "stand";
}
Symbol 653 MovieClip Frame 72
setdirection(-direction);
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 73
onClipEvent (load) {
frame = _parent.afterflipframe;
}
Symbol 653 MovieClip Frame 81
xspeed = 5 * direction;
Instance of Symbol 649 MovieClip in Symbol 653 MovieClip Frame 81
onClipEvent (load) {
frame = "dash_loop";
}
Symbol 653 MovieClip Frame 85
xspeed = dashspeed * direction;
gotook = 0;
if (testzone.hitTest(ennemy.hitzone)) {
gotook = 1;
}
Instance of Symbol 214 MovieClip in Symbol 653 MovieClip Frame 85
onClipEvent (load) {
frame = "attack";
}
Symbol 653 MovieClip Frame 95
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 95
onClipEvent (load) {
frame = "dash_loop";
}
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 102
onClipEvent (load) {
frame = "stand";
}
Symbol 653 MovieClip Frame 107
xspeed = 5 * direction;
Symbol 653 MovieClip Frame 112
xspeed = (ennemy._x - (_x + (40 * direction))) / 12;
if ((xspeed * direction) < 1) {
xspeed = direction;
}
ennemyhit = 0;
yspeed = -16;
ymove();
Symbol 653 MovieClip Frame 114
if ((!ennemyhit) && (bangzone.hitTest(ennemy.hitzone))) {
ennemy.hit(this, this, (ennemy._x - _x) / 10, -10, 5, 3);
ennemyhit = 1;
}
Symbol 653 MovieClip Frame 116
call("attack_hittest");
Symbol 653 MovieClip Frame 118
call("attack_hittest");
Instance of Symbol 593 MovieClip in Symbol 653 MovieClip Frame 118
onClipEvent (load) {
frame = "attack_land";
}
Symbol 653 MovieClip Frame 120
call("attack_hittest");
Instance of Symbol 182 MovieClip in Symbol 653 MovieClip Frame 121
onClipEvent (load) {
frame = "dash_loop";
}
Symbol 653 MovieClip Frame 122
call("attack_hittest");
Symbol 653 MovieClip Frame 125
gotook = 0;
if (testzone.hitTest(ennemy.hitzone)) {
gotook = 1;
}
Instance of Symbol 214 MovieClip in Symbol 653 MovieClip Frame 125
onClipEvent (load) {
frame = "dash";
}
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 130
onClipEvent (load) {
frame = "stand";
}
Symbol 653 MovieClip Frame 137
call("attack");
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 142
onClipEvent (load) {
frame = "dash_loop";
}
Symbol 653 MovieClip Frame 155
xspeed = (ennemy._x - (_x + (10 * direction))) / 6;
yspeed = -6;
ennemyhit = 0;
ymove();
Symbol 653 MovieClip Frame 156
if ((ennemyhit == 0) && (bangzone.hitTest(ennemy.hitzone))) {
ennemy.hit(this, this, (ennemy._x - _x) / 60, -20, 5, 3);
ennemyhit = 1;
}
Symbol 653 MovieClip Frame 157
call("bite_hittest");
Symbol 653 MovieClip Frame 158
call("bite_hittest");
Symbol 653 MovieClip Frame 159
call("bite_hittest");
Symbol 653 MovieClip Frame 160
call("bite_hittest");
Instance of Symbol 182 MovieClip in Symbol 653 MovieClip Frame 160
onClipEvent (load) {
frame = "dash_loop";
}
Instance of Symbol 593 MovieClip in Symbol 653 MovieClip Frame 160
onClipEvent (load) {
frame = "bite_land";
}
Symbol 653 MovieClip Frame 161
call("bite_hittest");
Symbol 653 MovieClip Frame 162
call("bite_hittest");
Symbol 653 MovieClip Frame 163
call("bite_hittest");
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 167
onClipEvent (load) {
frame = "stand";
}
Symbol 653 MovieClip Frame 189
afterflipframe = "stand";
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 189
onClipEvent (load) {
frame = "flip";
}
Instance of Symbol 593 MovieClip in Symbol 653 MovieClip Frame 198
onClipEvent (load) {
frame = "rvol_rewstrong_land";
}
Instance of Symbol 182 MovieClip in Symbol 653 MovieClip Frame 201
onClipEvent (load) {
frame = "rvol_rewstrong_land";
}
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 225
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 593 MovieClip in Symbol 653 MovieClip Frame 237
onClipEvent (load) {
frame = "rvol_rewstrong_land";
}
Instance of Symbol 182 MovieClip in Symbol 653 MovieClip Frame 240
onClipEvent (load) {
frame = "rvol_rewstrong_land";
}
Instance of Symbol 147 MovieClip in Symbol 653 MovieClip Frame 248
onClipEvent (load) {
frame = "stand";
}
Symbol 653 MovieClip Frame 270
yspeed = -15;
ymove();
Instance of Symbol 593 MovieClip in Symbol 653 MovieClip Frame 273
onClipEvent (load) {
frame = "die_land";
}
Instance of Symbol 182 MovieClip in Symbol 653 MovieClip Frame 276
onClipEvent (load) {
frame = "rvol_rewstrong_land";
}
Symbol 653 MovieClip Frame 280
if (Math.random() <= _root.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
yaccel = 0;
yspeed = 0;
xspeed = 0;
_root.dieshake();
Symbol 653 MovieClip Frame 287
event_die();
Symbol 653 MovieClip Frame 304
removeMovieClip(this);
_visible = 0;
stop();
Symbol 659 MovieClip Frame 1
stop();
Instance of Symbol 192 MovieClip in Symbol 659 MovieClip Frame 15
onClipEvent (load) {
frame = 1;
}
Symbol 663 MovieClip Frame 1
stop();
Instance of Symbol 192 MovieClip in Symbol 663 MovieClip Frame 15
onClipEvent (load) {
frame = 1;
}
Symbol 674 MovieClip Frame 1
stop();
Instance of Symbol 192 MovieClip in Symbol 674 MovieClip Frame 15
onClipEvent (load) {
frame = 1;
}
Symbol 676 MovieClip Frame 1
translatefactor = 20;
rotfactor = 8;
Instance of Symbol 659 MovieClip "anim" in Symbol 676 MovieClip Frame 1
onClipEvent (load) {
function rotate() {
if (_rotation > 0) {
_rotation = -90;
} else {
_rotation = (-90 + (-90 - _rotation));
_x = (-_x);
}
track();
}
function track() {
var _local1 = _parent;
if (owner.tracktime) {
if ((owner.ciblex + owner.cibley) > 150) {
if (owner.cibley >= 0) {
rotcible = (90 + (((-Math.atan(owner.ciblex / owner.cibley)) * 180) / Math.PI)) / _local1.rotfactor;
if ((rotcible * _local1.rotfactor) > 25) {
rotcible = 25 / _local1.rotfactor;
}
} else {
rotcible = (-90 + (((-Math.atan(owner.ciblex / owner.cibley)) * 180) / Math.PI)) / _local1.rotfactor;
}
}
rotspeed = (rotcible - _rotation) / 6;
_rotation = (_rotation + rotspeed);
if (_rotation < -90) {
_rotation = -90;
}
xcible = xorig + (_rotation / _local1.translatefactor);
ycible = yorig - (Math.abs(_rotation) / Math.abs(1.5 * _local1.translatefactor));
_x = (_x + ((xcible - _x) / 2));
_y = (_y + ((ycible - _y) / 2));
}
}
xorig = _x;
yorig = _y;
rotorig = _rotation;
owner = _parent._parent;
owner.tracktime = 1;
}
onClipEvent (enterFrame) {
track();
}
Symbol 677 MovieClip Frame 1
translatefactor = 5;
rotfactor = 3;
Instance of Symbol 663 MovieClip "anim" in Symbol 677 MovieClip Frame 1
onClipEvent (load) {
function rotate() {
if (_rotation > 0) {
_rotation = -90;
} else {
_rotation = (-90 + (-90 - _rotation));
_x = (-_x);
}
track();
}
function track() {
var _local1 = _parent;
if (owner.tracktime) {
if ((owner.ciblex + owner.cibley) > 150) {
if (owner.cibley >= 0) {
rotcible = (90 + (((-Math.atan(owner.ciblex / owner.cibley)) * 180) / Math.PI)) / _local1.rotfactor;
if ((rotcible * _local1.rotfactor) > 25) {
rotcible = 25 / _local1.rotfactor;
}
} else {
rotcible = (-90 + (((-Math.atan(owner.ciblex / owner.cibley)) * 180) / Math.PI)) / _local1.rotfactor;
}
}
rotspeed = (rotcible - _rotation) / 6;
_rotation = (_rotation + rotspeed);
if (_rotation < -90) {
_rotation = -90;
}
xcible = xorig + (_rotation / _local1.translatefactor);
ycible = yorig - (Math.abs(_rotation) / Math.abs(1.5 * _local1.translatefactor));
_x = (_x + ((xcible - _x) / 2));
_y = (_y + ((ycible - _y) / 2));
}
}
xorig = _x;
yorig = _y;
rotorig = _rotation;
owner = _parent._parent;
owner.tracktime = 1;
}
onClipEvent (enterFrame) {
track();
}
Symbol 679 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip "testzone" in Symbol 679 MovieClip Frame 3
onClipEvent (load) {
prolonj = 15;
owner = _parent._parent._parent;
shot = owner.shot;
rot = (_parent._rotation + _parent._parent._rotation) / 57.3;
mindist = 400;
if (owner.direction == -1) {
rot = (-90 + (-90 - _parent._rotation)) / 57.3;
}
brake = 0;
cible = 0;
parentx = (((_root.game._x + _root.game.sprites._x) + owner._x) + _parent._parent._x) + _parent._x;
parenty = (((_root.game._y + _root.game.sprites._y) + owner._y) + _parent._parent._y) + _parent._y;
cibles = new Array();
decorcibles = new Array();
for (a in _root.game.sprites) {
if ((_root.game.sprites[a] != owner) && (_root.game.sprites[a].hitzone.hitTest(_parent.testline))) {
cibles.push(_root.game.sprites[a]);
}
}
for (a in _root.game.decor) {
if (_root.game.decor[a].hitzone.hitTest(_parent.testline)) {
decorcibles.push(_root.game.decor[a]);
}
}
do {
if (!((_root.game.decor.hitTest((parentx + (_x * Math.cos(rot))) - (_y * Math.sin(rot)), (parenty + (_x * Math.sin(rot))) + (_y * Math.cos(rot)), 1) == 0) and (_x < 500))) {
break;
}
_x = (_x + 30);
for (a in cibles) {
if (hitTest(cibles[a].hitzone)) {
dist = Math.sqrt(((cibles[a]._x - owner._x) * (cibles[a]._x - owner._x)) + ((cibles[a]._y - owner._y) * (cibles[a]._y - owner._y)));
if (dist < mindist) {
mindist = dist;
cible = cibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 3, 3);
brake = 1;
}
}
}
} while (brake != 1);
for (a in decorcibles) {
if (hitTest(decorcibles[a].hitzone)) {
cible = decorcibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 3, 3);
}
}
xsanscible = _x;
shot._yscale = shot._yscale * ((0.32 * (_x + prolonj)) / shot._yscale);
shot.gotoAndPlay("shot");
if (_x >= 500) {
shot.badang._visible = 0;
}
}
Instance of Symbol 192 MovieClip in Symbol 679 MovieClip Frame 15
onClipEvent (load) {
frame = 1;
}
Symbol 680 MovieClip Frame 1
translatefactor = 10;
rotfactor = 1;
Instance of Symbol 679 MovieClip "anim" in Symbol 680 MovieClip Frame 1
onClipEvent (load) {
function rotate() {
if (_rotation > 0) {
_rotation = -90;
} else {
_rotation = (-90 + (-90 - _rotation));
_x = (-_x);
}
track();
}
function track() {
var _local1 = _parent;
if (owner.tracktime) {
if ((owner.ciblex + owner.cibley) > 150) {
if (owner.cibley >= 0) {
rotcible = (90 + (((-Math.atan(owner.ciblex / owner.cibley)) * 180) / Math.PI)) / _local1.rotfactor;
if ((rotcible * _local1.rotfactor) > 25) {
rotcible = 25 / _local1.rotfactor;
}
} else {
rotcible = (-90 + (((-Math.atan(owner.ciblex / owner.cibley)) * 180) / Math.PI)) / _local1.rotfactor;
}
}
rotspeed = (rotcible - _rotation) / 6;
_rotation = (_rotation + rotspeed);
if (_rotation < -90) {
_rotation = -90;
}
xcible = xorig + (_rotation / _local1.translatefactor);
ycible = yorig - (Math.abs(_rotation) / Math.abs(1.5 * _local1.translatefactor));
_x = (_x + ((xcible - _x) / 2));
_y = (_y + ((ycible - _y) / 2));
}
}
xorig = _x;
yorig = _y;
rotorig = _rotation;
owner = _parent._parent;
owner.tracktime = 1;
}
onClipEvent (enterFrame) {
track();
}
onClipEvent (enterFrame) {
_parent._parent.arm_l.anim._rotation = _rotation;
_parent._parent.arm_l.anim._x = _x + (_rotation / 5);
_parent._parent.arm_l.anim._y = _y + (_rotation / 8);
_parent._parent.arm_l.anim._xscale = 100 - (_rotation / 2);
}
Symbol 681 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 681 MovieClip Frame 2
if (_parent.testzone.hitTest(_parent.ennemy.hitzone)) {
_parent.shoot();
} else {
_parent.gotoAndPlay("shoot_end");
}
Symbol 681 MovieClip Frame 31
gotoAndPlay (2);
Symbol 682 MovieClip Frame 3
if (testzone.hitTest(ennemy.hitzone)) {
frame = "shoot_st";
} else if ((mobile == 1) && (Math.random() < 0.5)) {
frame = "walk";
} else {
frame = "stand_loop";
}
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 3
onClipEvent (load) {
frame = _parent.frame;
}
Symbol 682 MovieClip Frame 30
if (testzone.hitTest(ennemy.hitzone)) {
frame = "shoot_st";
} else if ((mobile == 1) && (Math.random() < 0.5)) {
frame = "walk";
} else {
if (dirchanging && (Math.random() < 0.4)) {
setdirection(-direction);
}
frame = "stand_loop";
}
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 30
onClipEvent (load) {
frame = _parent.frame;
}
Symbol 682 MovieClip Frame 40
xspeed = walkspeed * direction;
Symbol 682 MovieClip Frame 55
if (testzone.hitTest(ennemy.hitzone) || (Math.random() < 0.2)) {
frame = "walk_end";
} else {
frame = "walk_loop";
}
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 55
onClipEvent (load) {
frame = _parent.frame;
}
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 62
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 82
onClipEvent (load) {
frame = "walkback_loop";
}
Instance of Symbol 192 MovieClip in Symbol 682 MovieClip Frame 95
onClipEvent (load) {
frame = "shoot_pos";
}
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 115
onClipEvent (load) {
frame = "stand";
}
Symbol 682 MovieClip Frame 120
gotoAndPlay(rvolframe);
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 140
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 158
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 593 MovieClip in Symbol 682 MovieClip Frame 171
onClipEvent (load) {
frame = "rvol_fwd_strong_land";
}
Instance of Symbol 182 MovieClip in Symbol 682 MovieClip Frame 176
onClipEvent (load) {
frame = "releve";
}
Instance of Symbol 593 MovieClip in Symbol 682 MovieClip Frame 186
onClipEvent (load) {
frame = "rvol_fwd_strong_land";
}
Instance of Symbol 182 MovieClip in Symbol 682 MovieClip Frame 191
onClipEvent (load) {
frame = "releve";
}
Symbol 682 MovieClip Frame 194
diecheck();
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 213
onClipEvent (load) {
frame = "releve";
}
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 222
onClipEvent (load) {
frame = "rvol_fwd_strong_mid";
}
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 260
onClipEvent (load) {
frame = "stand";
}
Symbol 682 MovieClip Frame 279
setdirection(-direction);
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 279
onClipEvent (load) {
frame = "stand";
}
Symbol 682 MovieClip Frame 300
setdirection(-direction);
Instance of Symbol 147 MovieClip in Symbol 682 MovieClip Frame 300
onClipEvent (load) {
frame = "stand";
}
Symbol 682 MovieClip Frame 334
removeMovieClip(this);
_visible = 0;
stop();
Symbol 683 MovieClip Frame 1
_visible = 0;
Symbol 683 MovieClip Frame 2
if (hitTest(_parent._parent.hero.hitzone)) {
event();
}
Symbol 683 MovieClip Frame 15
gotoAndPlay (2);
Symbol 686 MovieClip Frame 1
stop();
Instance of Symbol 683 MovieClip in Symbol 686 MovieClip Frame 1
onClipEvent (load) {
function event() {
_parent.trigger();
}
}
Instance of Symbol 683 MovieClip "hitzone" in Symbol 686 MovieClip Frame 1
onClipEvent (load) {
function event() {
_parent.trigger();
}
}
Symbol 686 MovieClip Frame 26
explode();
removeMovieClip(this);
_visible = 0;
stop();
Symbol 687 MovieClip Frame 1
grenade.stop();
gbomb.stop();
explosion.stop();
smoke.stop();
steam.stop();
cannonbang.stop();
explosion_crate.stop();
explosion_big.stop();
solidsprites = new Array();
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1._parent.bg.gotoAndStop(2);
_local1._parent.foreground.gotoAndStop(2);
_local1.gotoAndStop(2);
gotoAndStop ("invisible");
}
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function event() {
_root.automsg("Watch out! The ennemy force is just ahead.", 6);
gotoAndStop (20);
}
}
Instance of Symbol 594 MovieClip "crate1_surprise" in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
}
Instance of Symbol 594 MovieClip in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 594 MovieClip in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (210);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
_local1.badang(_local2);
score = basescore + timescore;
var _local3 = int(200 - Math.abs(attacker._x - _x));
if (_local3 < 0) {
_local3 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local3;
_root.score = _root.score + score;
_root.showscore(_local2);
_root.dieshake();
if (Math.random() <= _root.itemratio) {
_local1.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (160);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
xspeed = xspeed + (rvolx / weight);
yspeed = rvoly / weight;
ymove();
if (lying) {
_local1.badang(_local2, 0, midadjust);
gotoAndPlay (140);
} else if (powerful) {
xspeed = rvolx;
yspeed = rvoly / (weight / 2);
_local1.badang(_local2);
gotoAndPlay (90);
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (75);
} else {
_local1.badang(_local2, 0, -midadjust);
gotoAndPlay (30);
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local2);
gotoAndPlay (60);
} else {
_local1.badang(_local2, 0, -midadjust);
if (0.8 < Math.random()) {
gotoAndPlay (90);
} else {
gotoAndPlay (45);
}
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 604 MovieClip in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (xscaleorig * direction);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function lifechange(factor) {
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
if (projectile.hitTest(canonzone) || (attacker != ennemy)) {
_parent.badang(this);
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life <= 0) {
life = 0;
yspeed = 0;
yaccel = 0;
score = basescore + timescore;
if (attacker == ennemy) {
score = score + 100;
}
_local1.score = _local1.score + score;
_local1.showscore(this);
_local1.dieshake();
if (Math.random() <= _local1.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (128);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
canon.gotoAndPlay("hit");
xspeed = xspeed + (rvolx / weight);
}
} else {
score = score - 30;
}
}
function move() {
_x = (_x + xspeed);
}
function rvolmove() {
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
_x = (_x + xspeed);
}
if (decor.hitTest(absx, absy + 10, 1)) {
xspeed = xspeed / friction;
}
}
function ymove() {
_y = (_y + yspeed);
}
function shoot() {
var _local1 = _parent;
duplicateMovieClip (grenade, "grenade" + _local1.n, _local1.n);
grenad = _local1["grenade" + _local1.n];
grenad._x = _x;
grenad._y = _y - 50;
grenad.xspeed = (ennemy._x - _x) / (20 + (20 * Math.random()));
grenad.yspeed = -15 - (10 * Math.random());
grenad.direction = direction;
grenad.yaccel = 2;
grenad.owner = this;
_local1.n = _local1.n + 1;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _root.hero;
lifemax = 10;
life = lifemax;
xscaleorig = _xscale;
wallsight = 75;
walkspeed = 3.1;
friction = 1.4;
yspeed = 0;
yaccel = 3;
yaccelinit = 3;
weight = 2;
middle = (-_height) * 0.75;
grenade = _parent.grenade;
mobile = 1;
score = 0;
basescore = 150;
timescore = 100;
setdirection(1);
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
mobile = 0;
}
Instance of Symbol 527 MovieClip "object" in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function hit() {
removeMovieClip(this);
}
yaccel = 0;
yspeed = 0;
bonom = _parent.hero;
decor = _parent._parent.decor;
}
onClipEvent (enterFrame) {
if (yspeed != 0) {
_y = (_y + yspeed);
}
absx = (_x + _parent._x) + _parent._parent._x;
absy = (_y + _parent._y) + _parent._parent._y;
if (decor.hitTest(absx, absy, true) == 0) {
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
while (decor.hitTest(absx, ((_y + _parent._y) + _parent._parent._y) - 2, true)) {
_y = (_y - 2);
}
}
}
Instance of Symbol 503 MovieClip "missile" in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function explode() {
gotoAndPlay (15);
xspeed = xspeed / 4;
}
function hit() {
gotoAndPlay (10);
}
decor = _parent._parent.decor;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
xspeed = xspeed + (xaccel * direction);
if (_currentframe < 10) {
if (decor.hitTest((_x + _parent._x) + _parent._parent._x, (_y + _parent._y) + _parent._parent._y, 1)) {
explode();
} else if (hitzone.hitTest(owner.ennemy.hitzone)) {
explode();
}
}
}
Instance of Symbol 514 MovieClip "grenade" in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function explode() {
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay (67);
}
function hit() {
explode();
}
projectile = 1;
decor = _parent._parent.decor;
middle = (-_height) / 2;
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
if (yaccel > 0) {
_x = (_x + xspeed);
grenade.grenade._rotation = grenade.grenade._rotation + (8 * xspeed);
if (decor.hitTest((absx + _x) + (2 * xspeed), (absy + _y) + middle, 1)) {
xspeed = xspeed * -0.6;
}
if (((yspeed < 0) && (!decor.hitTest(absx + _x, ((absy + _y) - 10) + yspeed, 1))) || ((yspeed >= 0) && (!decor.hitTest(absx + _x, absy + _y, 1)))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
xspeed = xspeed / 1.4;
yspeed = yspeed * -0.5;
if (yspeed > -3) {
yspeed = 0;
}
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
}
Instance of Symbol 520 MovieClip "gbomb" in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function explode() {
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay (67);
}
function hit() {
explode();
}
projectile = 1;
decor = _parent._parent.decor;
middle = (-_height) / 2;
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
if (yaccel > 0) {
_x = (_x + xspeed);
grenade.grenade._rotation = grenade.grenade._rotation + (8 * xspeed);
if (decor.hitTest((absx + _x) + (2 * xspeed), (absy + _y) + middle, 1)) {
xspeed = xspeed * -0.6;
}
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
explode();
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
}
Instance of Symbol 215 MovieClip "hero" in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function fireratechange(factor) {
firerate = firerate + factor;
}
function desactivate() {
active = 0;
tracktime = 0;
shoottime = 0;
key_left = 2000;
key_right = 2001;
key_jump = 2002;
key_jump2 = 2003;
}
function activate() {
active = 1;
tracktime = 1;
shoottime = 1;
key_left = 65;
key_right = 68;
key_jump = 87;
key_jump2 = 32;
}
function expression(frame) {
head.anim.model.gotoAndStop(frame);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
if (life > 0) {
damage = damagebase + int(Math.random() * damagerand);
damage = int(damage / armor);
xspeed = rvolx;
yspeed = rvoly;
ymove();
lifechange(-damage);
_parent.badang(this);
if (life > 0) {
gotoAndPlay(rvolframe);
}
}
}
function lifechange(factor) {
life = life + factor;
if (life > lifemax) {
life = lifemax;
} else if (life < 0) {
life = 0;
}
lifebar._xscale = (life / lifemax) * 100;
diecheck();
}
function diecheck() {
var _local1 = _parent;
var _local2 = _root;
if ((life <= 0) && (!_local2.winner)) {
_local2.herodead = 1;
xspeed = 0;
yspeed = 0;
yaccel = 0;
tracktime = 0;
shoottime = 0;
_local2.dieshake();
this.swapDepths(16000);
_local1._parent.foreground._visible = 0;
_local1.diescreen._x = _x;
_local1.diescreen._y = _y;
_local1.diescreen.gotoAndPlay(2);
_local1.diescreen.swapDepths(15000);
active = 0;
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay(dieframe);
}
}
function shoot() {
var _local1 = _parent;
shoottime = 0;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
xspeed = xspeed - (((2 * (90 + gun.anim._rotation)) / 90) * direction);
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function badang(bangx, bangy, style) {
var _local1 = _parent;
_local1.badang._rotation = _local1.badang._rotation + 20;
duplicateMovieClip (_local1.hitbadang, "hitbadang" + _local1.n, _local1.n);
bang = _local1["hitbadang" + _local1.n];
bang._x = _x + bangx;
bang._y = (_y + middle) + bangy;
_local1.n = _local1.n + 1;
}
function groundcheck() {
if ((yspeed >= 0) && (decor.hitTest(absx + _x, ((absy + _y) + (yspeed / 2)) + 2, 1))) {
ground = 1;
}
}
function camxmove() {
if (((_x + xdecal) < game.camxmax) && ((_x + xdecal) > game.camxmin)) {
game._x = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
}
}
function move() {
if ((!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) && (!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (middle * 1.5), 1))) {
_x = (_x + xspeed);
}
camxmove();
}
function xchange(factor) {
var _local1 = factor;
if ((!decor.hitTest((absx + _x) + ((20 * _local1) / Math.abs(_local1)), (absy + _y) - 3, 1)) && (!decor.hitTest((absx + _x) + _local1, (absy + _y) + (middle * 1.5), 1))) {
_x = (_x + _local1);
}
camxmove();
}
function ychange(factor) {
_y = (_y + factor);
_parent._parent.ydecal = _parent._parent.ydecal - factor;
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
ychange(yspeed);
} else {
yspeed = 0;
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
active = 1;
xorig = _x;
yorig = _y;
middle = (-_height) / 2;
lifemax = 100;
life = lifemax;
rvolframe = 170;
dieframe = 400;
waitingland = 0;
xdecal = 0;
yspeed = 0;
xspeed = 0;
yaccel = 3;
yaccelorig = 3;
key_left = 65;
key_right = 68;
key_jump = 87;
key_up = 87;
key_down = 83;
key_jump2 = 32;
key_esquiv = 83;
footchange = 0;
xscaleorig = _xscale;
direction = 1;
movedirection = 1;
friction = 1.4;
climbspeed = -1.5;
walkspeed = 6;
rollspeed = 10;
backwalkspeed = -6;
decor = _parent._parent.decor;
game = _parent._parent;
shots = _parent._parent.shots;
lifebar = _root.status.lifebar;
lifebar._xscale = (life / lifemax) * 100;
rotbar = _root.status_rot;
this.swapDepths(0);
_root.herodead = 0;
tracktime = 1;
rolltime = 1;
armor = 1.3 - (0.3 * _root.difficulty);
firerate = _root.herofirerate;
fireratemax = 4;
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
xdecal = xdecal + ((xdecalcible - xdecal) / 6);
}
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((life > 0) && (decor.hitTest(absx + _x, (absy + _y) - 2, 1))) {
ychange(-1);
}
while ((life > 0) && (decor.hitTest((absx + _x) + 12, (absy + _y) - 3, 1))) {
_x = (_x - 3);
}
while ((life > 0) && (decor.hitTest((absx + _x) - 12, (absy + _y) - 3, 1))) {
_x = (_x + 3);
}
}
onClipEvent (mouseDown) {
punchok = 0;
if (active) {
gonnashoot = 1;
for (a in _parent) {
if ((_parent[a].hitzone.hitTest(punchzone) && (_parent[a] != this)) && (_parent[a].projectile != 1)) {
punchok = 1;
}
}
}
if (punchok && (decor.hitTest(absx + _x, ((absy + _y) + (yspeed / 2)) + 2, 1))) {
tracktime = 0;
shoottime = 0;
gun.anim._rotation = 0;
gotoAndPlay (240);
} else if (shoottime) {
shoot();
}
}
onClipEvent (mouseUp) {
gonnashoot = 0;
}
Instance of Symbol 534 MovieClip "smoke" in Symbol 687 MovieClip Frame 1
onClipEvent (load) {
function move() {
_y = (_y + yspeed);
}
yspeed = -3;
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1._parent.decor.gotoAndStop(2);
_local1._parent.bg.gotoAndStop(3);
_local1._parent.foreground.gotoAndStop(3);
_local1.gotoAndStop(3);
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function event() {
_parent.dog1.activate();
_parent.dog2.activate();
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function event() {
_parent.bigdog.activate();
gotoAndStop (20);
}
}
Instance of Symbol 370 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
if (!_root.extralifegot) {
_parent.itemdrop(_x, _y, "extralife", 1);
}
gotoAndStop (2);
}
Instance of Symbol 370 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
_parent.itemdrop(_x - 30, _y, "life", 1);
_parent.itemdrop(_x + 30, _y, "life", 1);
gotoAndStop (2);
}
Instance of Symbol 653 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 653 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 653 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 682 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
mobile = 0;
}
Instance of Symbol 682 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
mobile = 0;
}
Instance of Symbol 682 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 653 MovieClip "dog1" in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
}
Instance of Symbol 653 MovieClip "dog2" in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
setdirection(-1);
}
Instance of Symbol 553 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = rvolx;
if (life > 0) {
damage = damagebase + int(Math.random() * damagerand);
damage = int(damage / armor);
life = life - damage;
if (_local1 > 0) {
gotoAndPlay (30);
} else if (_local1 < 0) {
gotoAndPlay (50);
}
_root.hitshake(damage);
xspeed = _local1 / 16;
yspeed = rvoly;
}
}
life = 10;
armor = 1;
yaccel = 3;
yspeed = 0;
falling = 0;
score = 100;
projectile = 1;
}
onClipEvent (enterFrame) {
if (falling) {
parentx = _parent._x + _parent._parent._x;
parenty = _parent._y + _parent._parent._y;
yspeed = yspeed + yaccel;
_y = (_y + yspeed);
_x = (_x + xspeed);
anim.model._rotation = anim.model._rotation - xspeed;
explosion._y = explosion._y - yspeed;
explosion._x = explosion._x - xspeed;
if (_parent._parent.decor.hitTest(parentx + _x, (parenty + _y) + 10, 1)) {
yspeed = 0;
falling = 0;
_rotation = 0;
_root.score = _root.score + score;
_root.showscore(this);
_root.groundshake();
gotoAndPlay (85);
}
}
}
Instance of Symbol 686 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function explode() {
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion.owner = this;
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion.gotoAndPlay(2);
sprites.n++;
}
function trigger() {
gotoAndPlay (3);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
sound.gotoAndPlay(2);
xspeed = rvolx;
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
yspeed = 0;
yaccel = 3;
xspeed = 0;
decor = _parent._parent.decor;
explosion = _parent._parent.sprites.explosion;
sprites = _parent._parent.sprites;
hero = _parent._parent.sprites.hero;
life = 0;
friction = 1.3;
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 553 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = rvolx;
if (life > 0) {
damage = damagebase + int(Math.random() * damagerand);
damage = int(damage / armor);
life = life - damage;
if (_local1 > 0) {
gotoAndPlay (30);
} else if (_local1 < 0) {
gotoAndPlay (50);
}
_root.hitshake(damage);
xspeed = _local1 / 16;
yspeed = rvoly;
}
}
life = 10;
armor = 1;
yaccel = 3;
yspeed = 0;
falling = 0;
score = 100;
projectile = 1;
}
onClipEvent (enterFrame) {
if (falling) {
parentx = _parent._x + _parent._parent._x;
parenty = _parent._y + _parent._parent._y;
yspeed = yspeed + yaccel;
_y = (_y + yspeed);
_x = (_x + xspeed);
anim.model._rotation = anim.model._rotation - xspeed;
explosion._y = explosion._y - yspeed;
explosion._x = explosion._x - xspeed;
if (_parent._parent.decor.hitTest(parentx + _x, (parenty + _y) + 10, 1)) {
yspeed = 0;
falling = 0;
_rotation = 0;
_root.score = _root.score + score;
_root.showscore(this);
_root.groundshake();
gotoAndPlay (85);
}
}
}
Instance of Symbol 686 MovieClip in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function explode() {
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion.owner = this;
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion.gotoAndPlay(2);
sprites.n++;
}
function trigger() {
gotoAndPlay (3);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
sound.gotoAndPlay(2);
xspeed = rvolx;
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
yspeed = 0;
yaccel = 3;
xspeed = 0;
decor = _parent._parent.decor;
explosion = _parent._parent.sprites.explosion;
sprites = _parent._parent.sprites;
hero = _parent._parent.sprites.hero;
life = 0;
friction = 1.3;
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 653 MovieClip "bigdog" in Symbol 687 MovieClip Frame 2
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
setdirection(-1);
lifemax = 12;
life = lifemax;
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function event() {
_parent.soldier1.activate();
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function event() {
_parent.soldier2.activate();
_parent._parent.decor.cliff.gotoAndPlay(2);
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function event() {
_parent.highdog.activate();
gotoAndStop (20);
}
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1._parent.decor.doortree.gotoAndPlay(2);
_local1._parent.bg.gotoAndStop(4);
_local1._parent.foreground.gotoAndStop(4);
_local1.gotoAndStop(4);
gotoAndStop (20);
}
}
Instance of Symbol 553 MovieClip in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = rvolx;
if (life > 0) {
damage = damagebase + int(Math.random() * damagerand);
damage = int(damage / armor);
life = life - damage;
if (_local1 > 0) {
gotoAndPlay (30);
} else if (_local1 < 0) {
gotoAndPlay (50);
}
_root.hitshake(damage);
xspeed = _local1 / 16;
yspeed = rvoly;
}
}
life = 10;
armor = 1;
yaccel = 3;
yspeed = 0;
falling = 0;
score = 100;
projectile = 1;
}
onClipEvent (enterFrame) {
if (falling) {
parentx = _parent._x + _parent._parent._x;
parenty = _parent._y + _parent._parent._y;
yspeed = yspeed + yaccel;
_y = (_y + yspeed);
_x = (_x + xspeed);
anim.model._rotation = anim.model._rotation - xspeed;
explosion._y = explosion._y - yspeed;
explosion._x = explosion._x - xspeed;
if (_parent._parent.decor.hitTest(parentx + _x, (parenty + _y) + 10, 1)) {
yspeed = 0;
falling = 0;
_rotation = 0;
_root.score = _root.score + score;
_root.showscore(this);
_root.groundshake();
gotoAndPlay (85);
}
}
}
Instance of Symbol 553 MovieClip in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = rvolx;
if (life > 0) {
damage = damagebase + int(Math.random() * damagerand);
damage = int(damage / armor);
life = life - damage;
if (_local1 > 0) {
gotoAndPlay (30);
} else if (_local1 < 0) {
gotoAndPlay (50);
}
_root.hitshake(damage);
xspeed = _local1 / 16;
yspeed = rvoly;
}
}
life = 10;
armor = 1;
yaccel = 3;
yspeed = 0;
falling = 0;
score = 100;
projectile = 1;
}
onClipEvent (enterFrame) {
if (falling) {
parentx = _parent._x + _parent._parent._x;
parenty = _parent._y + _parent._parent._y;
yspeed = yspeed + yaccel;
_y = (_y + yspeed);
_x = (_x + xspeed);
anim.model._rotation = anim.model._rotation - xspeed;
explosion._y = explosion._y - yspeed;
explosion._x = explosion._x - xspeed;
if (_parent._parent.decor.hitTest(parentx + _x, (parenty + _y) + 10, 1)) {
yspeed = 0;
falling = 0;
_rotation = 0;
_root.score = _root.score + score;
_root.showscore(this);
_root.groundshake();
gotoAndPlay (85);
}
}
}
Instance of Symbol 682 MovieClip in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
setdirection(-1);
mobile = 0;
dirchanging = 0;
}
Instance of Symbol 682 MovieClip in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
mobile = 0;
dirchanging = 0;
setdirection(-1);
}
Instance of Symbol 682 MovieClip "soldier2" in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
setdirection(-1);
desactivate();
}
Instance of Symbol 653 MovieClip "crate1_surprise" in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
setdirection(-1);
_parent._parent.decor.crate1.surprise = this;
}
Instance of Symbol 653 MovieClip "crate2_surprise" in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
setdirection(-1);
_parent._parent.decor.crate2.surprise = this;
}
Instance of Symbol 653 MovieClip "crate3_surprise" in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
setdirection(-1);
_parent._parent.decor.crate3.surprise = this;
}
Instance of Symbol 682 MovieClip "soldier1" in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
setdirection(-1);
desactivate();
}
Instance of Symbol 653 MovieClip "highdog" in Symbol 687 MovieClip Frame 3
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
}
Instance of Symbol 605 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
_parent.itemdrop(_x, _y, "life", 1);
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1._parent.decor.gotoAndStop(3);
_local1._parent.bg.gotoAndStop(5);
_local1._parent.foreground.gotoAndStop(5);
_local1.gotoAndStop(5);
gotoAndStop (20);
}
}
Instance of Symbol 605 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
_parent.itemdrop(_x, _y, "life", 1);
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function event() {
_parent.treedog1.activate();
_parent.treedog2.activate();
gotoAndStop (20);
}
}
Instance of Symbol 653 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
setdirection(-1);
}
Instance of Symbol 653 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
setdirection(-1);
}
Instance of Symbol 653 MovieClip "treedog1" in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
}
Instance of Symbol 653 MovieClip "treedog2" in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
desactivate();
setdirection(-1);
}
Instance of Symbol 686 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function explode() {
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion.owner = this;
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion.gotoAndPlay(2);
sprites.n++;
}
function trigger() {
gotoAndPlay (3);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
sound.gotoAndPlay(2);
xspeed = rvolx;
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
yspeed = 0;
yaccel = 3;
xspeed = 0;
decor = _parent._parent.decor;
explosion = _parent._parent.sprites.explosion;
sprites = _parent._parent.sprites;
hero = _parent._parent.sprites.hero;
life = 0;
friction = 1.3;
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 686 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function explode() {
duplicateMovieClip (explosion, "explosion" + sprites.n, sprites.n);
currentexplosion = sprites["explosion" + sprites.n];
currentexplosion.owner = this;
currentexplosion._x = _x;
currentexplosion._y = _y;
currentexplosion.gotoAndPlay(2);
sprites.n++;
}
function trigger() {
gotoAndPlay (3);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
sound.gotoAndPlay(2);
xspeed = rvolx;
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
yspeed = 0;
yaccel = 3;
xspeed = 0;
decor = _parent._parent.decor;
explosion = _parent._parent.sprites.explosion;
sprites = _parent._parent.sprites;
hero = _parent._parent.sprites.hero;
life = 0;
friction = 1.3;
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
Instance of Symbol 682 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
mobile = 0;
dirchanging = 0;
}
Instance of Symbol 682 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
setdirection(-1);
mobile = 0;
dirchanging = 0;
}
Instance of Symbol 682 MovieClip in Symbol 687 MovieClip Frame 4
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
setdirection(-1);
mobile = 0;
dirchanging = 0;
}
Instance of Symbol 606 MovieClip in Symbol 687 MovieClip Frame 5
onClipEvent (load) {
function event() {
_root.transition.stopsound = 1;
_root.transition.gotoAndPlay("fade");
gotoAndStop (20);
}
}
Instance of Symbol 653 MovieClip in Symbol 687 MovieClip Frame 5
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
function event_start() {
gotoAndPlay (107);
}
function event_die() {
_parent.dog_r3.activate();
}
setdirection(-1);
activate();
}
Instance of Symbol 653 MovieClip in Symbol 687 MovieClip Frame 5
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
function event_start() {
gotoAndPlay (107);
}
function event_die() {
_parent.dog_r2.activate();
}
setdirection(-1);
activate();
}
Instance of Symbol 653 MovieClip in Symbol 687 MovieClip Frame 5
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
function event_start() {
gotoAndPlay (107);
}
function event_die() {
_parent.dog_r1.activate();
}
activate();
}
Instance of Symbol 653 MovieClip "dog_r1" in Symbol 687 MovieClip Frame 5
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
function event_start() {
gotoAndPlay (107);
}
desactivate();
}
Instance of Symbol 653 MovieClip "dog_r2" in Symbol 687 MovieClip Frame 5
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
function event_start() {
gotoAndPlay (107);
}
desactivate();
}
Instance of Symbol 653 MovieClip "dog_r3" in Symbol 687 MovieClip Frame 5
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
function event_start() {
gotoAndPlay (107);
}
setdirection(-1);
desactivate();
}
Instance of Symbol 535 MovieClip in Symbol 687 MovieClip Frame 5
onClipEvent (load) {
function event() {
_root.automsg("It seems that there is an important ennemy unit below. Stay alert.", 8);
gotoAndStop (20);
}
}
Instance of Symbol 682 MovieClip in Symbol 687 MovieClip Frame 5
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
setdirection(-1);
mobile = 0;
dirchanging = 0;
}
Instance of Symbol 682 MovieClip in Symbol 687 MovieClip Frame 5
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
xspeed = walkspeed * direction;
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
clearInterval(timescoreinterval);
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
timescoreinterval = setInterval(timescoreloss, 1000);
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
arm_l.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function diecheck() {
var _local2 = _root;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(attacker._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (attacker == ennemy) {
score = score + 100;
}
score = score + _local1;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
gotoAndPlay (308);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = _parent;
var _local2 = powerful;
var _local3 = this;
damage = damagebase + int(Math.random() * damagerand);
life = life - damage;
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local2 == 1) {
xspeed = rvolx;
yspeed = rvoly;
} else {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
}
if (lying._x) {
if (yspeed > -12) {
yspeed = -12;
}
_local1.badang(_local3, 0, midadjust);
rvolframe = "rvol_rew_strong_mid";
} else if (((attacker._x - _x) * direction) <= 0) {
score = int(score / 3);
if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_fwd_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_fwd_up";
}
}
} else if (projectile.hitTest(hitzone.down) || (decor.hitTest(absx + ((20 * xspeed) / Math.abs(xspeed)), absy - 10, 1))) {
_local1.badang(_local3);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_fwd_strong";
} else {
rvolframe = "rvol_rew_down";
}
} else {
_local1.badang(_local3, 0, -midadjust);
if (((_local2 == 1) || (0.8 < Math.random())) || (life <= 0)) {
if (yspeed > -14) {
yspeed = -14;
}
rvolframe = "rvol_rew_strong";
} else {
rvolframe = "rvol_rew_up";
}
}
ymove();
gotoAndPlay (120);
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
cible = ennemy;
middle = (-_height) / 2;
midadjust = _height / 4;
dieframe = 160;
lifemax = 10;
life = lifemax;
bangyfactor = 40;
shots = _parent._parent.soldiershots;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
walkspeed = 3;
mobile = 1;
dirchanging = 1;
friction = 1.4;
weight = 4;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
shoottime = 1;
active = 1;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
mobile = 0;
setdirection(-1);
}
Instance of Symbol 606 MovieClip in Symbol 687 MovieClip Frame 6
onClipEvent (load) {
function event() {
_root.transition.stopsound = 1;
_root.transition.gotoAndPlay("fade");
gotoAndStop (20);
}
}
Symbol 692 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 697 MovieClip Frame 6
event();
Symbol 697 MovieClip Frame 7
gotoAndPlay (2);
Instance of Symbol 697 MovieClip in Symbol 698 MovieClip Frame 1
onClipEvent (load) {
function event() {
var _local1 = _parent;
if (((!_local1._parent._parent.boss2.predead) && (_local1._parent._x > -75)) && (Math.abs(_local1._parent.bonom.gun.anim.xdist) < 200)) {
_local1.gotoAndPlay(2);
}
}
}
Symbol 698 MovieClip Frame 18
if ((!_parent._parent.boss2.predead) && (!safezone.hitTest(_parent._parent.boss2.hitzone))) {
duplicateMovieClip (_parent.sprites.dog, "dog" + _parent.sprites.n, _parent.sprites.n);
currentdog = _parent.sprites["dog" + _parent.sprites.n];
currentdog._x = (_parent._x + _x) + dropzone._x;
currentdog._y = (_parent._y + _y) + dropzone._y;
_parent.sprites.n++;
}
Symbol 698 MovieClip Frame 24
if (_parent._x > -150) {
frame = "drop_loop";
} else {
frame = "close";
}
Instance of Symbol 147 MovieClip in Symbol 698 MovieClip Frame 24
onClipEvent (load) {
frame = _parent.frame;
}
Instance of Symbol 192 MovieClip in Symbol 698 MovieClip Frame 41
onClipEvent (load) {
frame = 1;
}
Instance of Symbol 147 MovieClip in Symbol 701 MovieClip Frame 5
onClipEvent (load) {
frame = 1;
}
Instance of Symbol 147 MovieClip in Symbol 704 MovieClip Frame 15
onClipEvent (load) {
frame = 1;
}
Instance of Symbol 192 MovieClip in Symbol 707 MovieClip Frame 12
onClipEvent (load) {
frame = 1;
}
Instance of Symbol 707 MovieClip "anim" in Symbol 708 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = ((-_parent._parent.gun.anim.xdist) / 20);
}
Instance of Symbol 192 MovieClip in Symbol 715 MovieClip Frame 12
onClipEvent (load) {
frame = 1;
}
Instance of Symbol 715 MovieClip "anim" in Symbol 716 MovieClip Frame 1
onClipEvent (load) {
xorig = _x;
}
onClipEvent (enterFrame) {
_x = (xorig + (_parent._parent.gun.anim.xdist / 50));
_rotation = ((-_parent._parent.gun.anim.xdist) / 20);
}
Instance of Symbol 382 MovieClip in Symbol 720 MovieClip Frame 3
onClipEvent (load) {
parentx = ((((_root.game._x + _root.game.decor._x) + _parent._parent._parent._parent._x) + _parent._parent._parent._x) + _parent._parent._x) + _parent._x;
parenty = ((((_root.game._y + _root.game.decor._y) + _parent._parent._parent._parent._y) + _parent._parent._parent._y) + _parent._parent._y) + _parent._y;
duplicateMovieClip (_root.game.soldiershots, "shot" + _root.game.n, _root.game.n);
shot = _root.game["shot" + _root.game.n];
shot._x = parentx - _root.game._x;
shot._y = parenty - _root.game._y;
shot._rotation = ((_parent._rotation + 180) - 5) + (10 * Math.random());
_root.game.n++;
}
onClipEvent (load) {
prolonj = 15;
owner = _parent._parent._parent;
rot = (shot._rotation - 180) / 57.3;
mindist = 400;
brake = 0;
cible = 0;
cibles = new Array();
decorcibles = new Array();
for (a in _root.game.sprites) {
if ((_root.game.sprites[a] != owner) && (_root.game.sprites[a].hitzone.hitTest(_parent.testline))) {
cibles.push(_root.game.sprites[a]);
}
}
for (a in _root.game.decor) {
if (_root.game.decor[a].hitzone.hitTest(_parent.testline)) {
decorcibles.push(_root.game.decor[a]);
}
}
_y = 100;
_x = 0;
do {
if (!((_root.game.decor.hitTest(parentx + (_y * (-Math.sin(rot))), parenty + (_y * Math.cos(rot)), 1) == 0) and (_y < 500))) {
break;
}
_y = (_y + 30);
for (a in cibles) {
if (hitTest(cibles[a].hitzone)) {
dist = Math.sqrt(((cibles[a]._x - owner._x) * (cibles[a]._x - owner._x)) + ((cibles[a]._y - owner._y) * (cibles[a]._y - owner._y)));
if (dist < mindist) {
mindist = dist;
cible = cibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 1, 2);
brake = 1;
}
}
}
} while (brake != 1);
for (a in decorcibles) {
if (hitTest(decorcibles[a].hitzone)) {
cible = decorcibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 3, 3);
}
}
ysanscible = _y;
shot._yscale = shot._yscale * ((0.26 * (_y + prolonj)) / shot._yscale);
shot.gotoAndPlay("shot");
if (_y >= 500) {
shot.badang._visible = 0;
}
}
Instance of Symbol 192 MovieClip in Symbol 720 MovieClip Frame 12
onClipEvent (load) {
frame = 1;
}
Instance of Symbol 720 MovieClip "anim" in Symbol 721 MovieClip Frame 1
onClipEvent (load) {
ennemy = _parent._parent._parent.ennemy;
}
onClipEvent (enterFrame) {
xdist = ennemy._x - ((_parent._parent._parent._x + _parent._parent._x) + _parent._x);
ydist = (ennemy._y + ennemy.middle) - ((_parent._parent._parent._y + _parent._parent._x) + _parent._y);
rotcible = ((-Math.atan(xdist / ydist)) * 180) / Math.PI;
_rotation = (_rotation + ((rotcible - _rotation) / 12));
}
Instance of Symbol 697 MovieClip in Symbol 730 MovieClip Frame 1
onClipEvent (load) {
function event() {
var _local1 = _parent;
if (((((_root.hero.life > 0) && (!_local1._parent._parent.boss2.predead)) && (_local1._parent._x > -150)) && (Math.abs(_local1.gun.anim.xdist) < 350)) && (_local1._parent._x < (_local1._parent._parent.boss2._x - 50))) {
_local1.shoot();
}
}
}
Symbol 730 MovieClip Frame 5
gotook = 0;
if (_parent.bonomlife < 0) {
_root.score = _root.score + _parent.score;
_root.showscore(_parent, _x, _y);
gotook = 1;
}
Instance of Symbol 214 MovieClip in Symbol 730 MovieClip Frame 5
onClipEvent (load) {
frame = "explode";
}
Instance of Symbol 192 MovieClip in Symbol 730 MovieClip Frame 9
onClipEvent (load) {
frame = 1;
}
Symbol 730 MovieClip Frame 15
_root.dieshake();
Symbol 730 MovieClip Frame 28
_visible = 0;
stop();
Instance of Symbol 730 MovieClip "bonom" in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
head.anim.gotoAndPlay("shoot");
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
}
}
Instance of Symbol 147 MovieClip in Symbol 731 MovieClip Frame 40
onClipEvent (load) {
frame = 1;
}
Symbol 738 MovieClip Frame 1
_visible = 0;
gotoAndPlay(int(30 * Math.random()) + 3);
Symbol 738 MovieClip Frame 35
if (_parent._parent._parent.totaldamage < 30) {
gotoAndPlay (2);
}
Symbol 738 MovieClip Frame 105
duplicateMovieClip (_parent._parent._parent.sprites.smoke, "smoke" + _parent._parent._parent.sprites.n, _parent._parent._parent.sprites.n);
smoke = _parent._parent._parent.sprites["smoke" + _parent._parent._parent.sprites.n];
smoke._x = (((_x + _parent._x) + _parent._parent._x) * _parent._parent._parent.direction) + _parent._parent._parent._x;
smoke._y = ((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent._y;
smoke._xscale = _xscale;
smoke._yscale = _yscale;
_parent._parent._parent.sprites.n++;
gotoAndPlay((35 + int((_parent._parent._parent.totaldamage / _parent._parent._parent.lifemax) * 50)) + int(20 * Math.random()));
Instance of Symbol 147 MovieClip in Symbol 760 MovieClip Frame 5
onClipEvent (load) {
frame = 1;
}
Symbol 760 MovieClip Frame 18
gotook = 0;
if (_parent._parent.life > 0) {
gotook = 1;
}
Instance of Symbol 214 MovieClip in Symbol 760 MovieClip Frame 18
onClipEvent (load) {
frame = 1;
}
Symbol 760 MovieClip Frame 20
_root.groundshake();
Symbol 760 MovieClip Frame 35
_parent._parent.predead = 1;
_root.winner = 1;
_parent._parent.active = 0;
_parent._parent.cannon.cannon.stop();
stop();
Symbol 761 MovieClip Frame 25
if ((0.5 < Math.random()) && (!_parent.predead)) {
gotoAndPlay ("high_wait");
}
Symbol 761 MovieClip Frame 45
if (_parent.predead) {
_parent.ennemy.desactivate();
for (a in _parent.sprites) {
if ((_parent.sprites[a] != _parent.ennemy) && (_parent.sprites[a].hitzone.hitTest(_parent._parent.destroyzone))) {
_parent.sprites[a].explode();
_parent.sprites[a].hit(0, 0, 0, 0, 1000, 0);
}
}
_root.game.xbasechange((-_parent._x) + 350);
_root.text_boss2._x = 275;
_root.text_boss2._y = 175;
_root.text_boss2._xscale = _root.text_boss2._xscale * (-_parent.direction);
_root.text_boss2.gotoAndStop("text");
_root.text_boss2.text._xscale = _root.text_boss2._xscale;
_root.text_boss2.text.owner = _parent;
}
Symbol 761 MovieClip Frame 70
if ((0.5 < Math.random()) || (_parent.predead)) {
gotoAndPlay ("low_wait");
}
Symbol 761 MovieClip Frame 95
gotoAndPlay ("high_wait");
Symbol 768 MovieClip Frame 1
_visible = 0;
sprites = _parent._parent._parent._parent.sprites;
gotoAndPlay(int(30 * Math.random()) + 3);
Symbol 768 MovieClip Frame 40
duplicateMovieClip (sprites.steam, "smoke" + sprites.n, sprites.n);
smoke = sprites["smoke" + sprites.n];
smoke._x = ((_x + _parent._x) * _parent._parent.direction) + _parent._parent._x;
smoke._y = (_y + _parent._y) + _parent._parent._y;
smoke._xscale = _xscale;
smoke._yscale = _yscale;
sprites.n++;
gotoAndPlay((_parent._parent.totaldamage + 30) - int(20 * Math.random()));
Instance of Symbol 768 MovieClip in Symbol 769 MovieClip Frame 1
/* no clip actions */
Symbol 774 MovieClip Frame 2
if (_root.winner) {
gotoAndStop (1);
}
Symbol 774 MovieClip Frame 7
if (_parent._parent.active) {
duplicateMovieClip (_parent._parent.sprites.cannonbang, "cannonbang" + _parent._parent.sprites.n, _parent._parent.sprites.n);
var currentbang = _parent._parent.sprites["cannonbang" + _parent._parent.sprites.n];
currentbang._x = (((_parent._x + _x) + cannon._x) * _parent._parent.direction) + _parent._parent._x;
currentbang._y = ((_parent._parent._y + _y) + cannon._y) + _parent._y;
currentbang._xscale = 100 * _parent._parent.direction;
currentbang.gotoAndPlay(2);
_parent._parent.sprites.n++;
duplicateMovieClip (_parent._parent.sprites.tire, "tire" + _parent._parent.sprites.n, _parent._parent.sprites.n);
var currentbullet = _parent._parent.sprites["tire" + _parent._parent.sprites.n];
currentbullet._x = ((((_parent._x + _x) + cannon._x) + 50) * _parent._parent.direction) + _parent._parent._x;
currentbullet._y = ((_parent._parent._y + _y) + cannon._y) + _parent._y;
currentbullet.xspeed = 2 + (((Math.abs(_parent._parent.ennemy._x - _parent._parent._x) / 300) * _parent._parent.direction) * (4 + ((((3 * (_parent._parent.totaldamage / _parent._parent.lifemax)) + 11) + _root.difficulty) * Math.random())));
currentbullet.yaccel = 3;
_parent._parent.sprites.n++;
}
Instance of Symbol 147 MovieClip in Symbol 774 MovieClip Frame 40
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 774 MovieClip "cannon" in Symbol 775 MovieClip Frame 1
/* no clip actions */
Symbol 775 MovieClip Frame 30
if ((0.5 < Math.random()) && (!_parent.predead)) {
gotoAndPlay ("low_wait");
}
Symbol 775 MovieClip Frame 89
if ((0.5 < Math.random()) || (_parent.predead)) {
gotoAndPlay ("high_wait");
}
Symbol 775 MovieClip Frame 99
for (a in _parent._parent) {
if ((_parent._parent[a] != _parent) && (_parent._parent[a].hitzone.hitTest(testzone))) {
_parent._parent[a].hit(this, this, 0, 0, 100, 0);
}
}
for (a in _parent.sprites) {
if (_parent.sprites[a].hitzone.hitTest(testzone) || (_parent.sprites[a].hitzone.hitTest(testzone2))) {
_parent.sprites[a].hit(this, this, 0, 0, 100, 0);
}
}
Symbol 775 MovieClip Frame 100
call("dashbang");
Symbol 775 MovieClip Frame 120
gotoAndPlay ("low_wait");
Symbol 784 MovieClip Frame 1
gotoAndStop(_parent.damage + 1);
Instance of Symbol 192 MovieClip in Symbol 793 MovieClip Frame 15
onClipEvent (load) {
frame = 1;
}
Symbol 793 MovieClip Frame 34
_visible = 0;
stop();
Symbol 797 Button
on (release, keyPress "s") {
_visible = 0;
gotoAndStop (2);
_parent.waiting = 1;
_parent.loops = 0;
_parent.ennemy.activate();
_root.fighttext.gotoAndPlay(2);
}
Symbol 798 MovieClip Frame 1
if (_parent.predead) {
_visible = 0;
gotoAndStop (2);
}
Instance of Symbol 798 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (load) {
if (_parent.active || (_parent.waiting)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_parent._xscale < 0) {
_xscale = (_xscale * -1);
}
}
Symbol 799 MovieClip Frame 5
if (waiting) {
loops = loops + 1;
if (loops >= 10) {
activate();
_parent.boss_helico.xspeed = _parent.boss_helico.flyspeed;
waiting = 0;
}
}
if ((active && (!_parent.hitTest(((_parent._parent._x + _parent._x) + _x) + (400 * direction), ((_parent._parent._y + _parent._y) + _y) - 50, 1))) && (Math.random() < 0.1)) {
frame = "go_fwd";
} else if ((active && (!_parent.hitTest(((_parent._parent._x + _parent._x) + _x) - (200 * direction), ((_parent._parent._y + _parent._y) + _y) - 50, 1))) && (Math.random() > 0.6)) {
frame = "go_rew";
} else {
frame = "stand";
}
Instance of Symbol 147 MovieClip in Symbol 799 MovieClip Frame 5
onClipEvent (load) {
frame = _parent.frame;
}
Symbol 799 MovieClip Frame 10
xspeed = (-walkspeed) * direction;
Instance of Symbol 147 MovieClip in Symbol 799 MovieClip Frame 46
onClipEvent (load) {
frame = "stand";
}
Symbol 799 MovieClip Frame 50
xspeed = walkspeed * direction;
Symbol 799 MovieClip Frame 54
for (a in _parent) {
if (((_parent[a] != this) && (_parent[a].hitzone.hitTest(testzone))) || (_parent[a].hitzone.hitTest(testzone2))) {
_parent[a].hit(this, this, 0, 0, 100, 0);
}
}
for (a in sprites) {
if (sprites[a].hitzone.hitTest(testzone) || (sprites[a].hitzone.hitTest(testzone2))) {
sprites[a].hit(this, this, 0, 0, 100, 0);
}
}
Symbol 799 MovieClip Frame 61
call("dashbang");
Symbol 799 MovieClip Frame 68
call("dashbang");
Symbol 799 MovieClip Frame 75
call("dashbang");
Symbol 799 MovieClip Frame 81
call("dashbang");
Instance of Symbol 147 MovieClip in Symbol 799 MovieClip Frame 86
onClipEvent (load) {
frame = "stand";
}
Symbol 799 MovieClip Frame 91
_root.groundshake();
Symbol 799 MovieClip Frame 95
wheel_rear._rotation = 0;
wheel_rear.gotoAndPlay("explode");
Instance of Symbol 793 MovieClip "wheel_rear" in Symbol 799 MovieClip Frame 95
/* no clip actions */
Instance of Symbol 147 MovieClip in Symbol 799 MovieClip Frame 112
onClipEvent (load) {
frame = "exploded";
}
Symbol 801 MovieClip Frame 1
stop();
Instance of Symbol 731 MovieClip "boss_helico" in Symbol 801 MovieClip Frame 1
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + int(damagerand * Math.random());
sprites.bandang(this, bonom._x, bonom._y);
bonomlife = bonomlife - damage;
bonom.gotoAndPlay(2);
}
sprites = _parent._parent.sprites;
ennemy = sprites.hero;
xspeed = 0;
_x = 2000;
score = 1500;
yorig = _y;
flyspeed = -5;
bonomlife = 60 + (10 * _root.difficulty);
hitzone = bonom.hitzone;
}
onClipEvent (enterFrame) {
_y = (_y + (20 - (_y - yorig)));
_x = (_x + xspeed);
if (_x < -800) {
if (!_parent.boss2.predead) {
_x = (2000 - (1000 * (_parent.boss2.totaldamage / _parent.boss2.lifemax)));
} else {
xspeed = 0;
}
}
}
Instance of Symbol 799 MovieClip "boss2" in Symbol 801 MovieClip Frame 1
onClipEvent (load) {
function activate() {
active = 1;
cannon.play();
cannon.cannon.play();
cockpit.play();
}
function move() {
_x = (_x + xspeed);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + int(damagerand * Math.random());
if (projectile.hitTest(cockpit.cockpit.hitzone)) {
life = life - damage;
if (life < 0) {
life = 0;
}
_root.status_boss.lifebar._xscale = (life / lifemax) * 100;
totaldamage = totaldamage + damage;
if (totaldamage > lifemax) {
totaldamage = lifemax;
}
cockpit.cockpit.gotoAndPlay(10);
sprites.badang(this, cockpit._x + cockpit.cockpit._x, cockpit._y + cockpit.cockpit._y);
}
if ((attacker != ennemy) && (projectile.hitTest(wheel_front.hitzone))) {
wheel_front.damage = wheel_front.damage + int(damage / (_root.difficulty + 1.5));
sprites.badang(this, wheel_front._x, wheel_front._y);
if (wheel_front.damage > 35) {
gotoAndPlay (90);
wheel_front.gotoAndPlay("explode");
} else {
wheel_front.gotoAndPlay(5);
}
}
}
predead = 0;
waiting = 0;
active = 0;
lifemax = 150 + (30 * _root.difficulty);
life = lifemax;
_root.status_boss.lifebar._xscale = (life / lifemax) * 100;
wheel_front.damage = 0;
wheel_rear.damage = 0;
ennemy = _parent._parent.sprites.hero;
cannon.stop();
cannon.cannon.stop();
cockpit.stop();
xscaleorig = _xscale;
direction = -1;
_xscale = (xscaleorig * direction);
sprites = _parent._parent.sprites;
xspeed = 0;
middle = 0;
walkspeed = 4;
gotoAndPlay (50);
}
Instance of Symbol 370 MovieClip "boss1_xmin" in Symbol 801 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 370 MovieClip "boss1_xmax" in Symbol 801 MovieClip Frame 1
/* no clip actions */
Symbol 808 MovieClip Frame 1
_visible = 0;
Symbol 808 MovieClip Frame 2
_visible = 1;
Symbol 808 MovieClip Frame 8
removeMovieClip(this);
_visible = 0;
stop();
Symbol 812 MovieClip Frame 4
gotoAndPlay (1);
Symbol 815 MovieClip Frame 1
gotoAndStop(int(3 * Math.random()) + 1);
Symbol 817 MovieClip Frame 5
if ((Math.abs(xspeed) >= 1) && (hitzone.hitTest(ennemy.hitzone))) {
ennemy.hit(this, this, ((0.5 * (ennemy._x - _x)) / Math.abs(ennemy._x - _x)) * Math.abs(xspeed + 4), -6, 2, 2);
xspeed = ((-0.5 * (ennemy._x - _x)) / Math.abs(ennemy._x - _x)) * Math.abs(xspeed + 4);
}
Symbol 817 MovieClip Frame 9
decorok = 1;
Symbol 817 MovieClip Frame 10
call("ennemyhit");
Symbol 817 MovieClip Frame 15
call("ennemyhit");
Symbol 817 MovieClip Frame 20
call("ennemyhit");
Symbol 817 MovieClip Frame 25
call("ennemyhit");
Symbol 817 MovieClip Frame 30
call("ennemyhit");
Symbol 817 MovieClip Frame 35
call("ennemyhit");
Symbol 817 MovieClip Frame 40
call("ennemyhit");
Symbol 817 MovieClip Frame 49
xspeed = 0;
yspeed = 0;
yaccel = 0;
for (a in _parent) {
if ((bangzone.hitTest(_parent[a].hitzone) && (_parent[a] != this)) && (_parent[a] != owner)) {
_parent[a].hit(this, bangzone, (4 * (_parent[a]._x - _x)) / Math.abs(_x - _parent[a]._x), -12, 5, 5);
}
}
for (a in _parent._parent.decor) {
if (bangzone.hitTest(_parent._parent.decor[a].hitzone)) {
_parent._parent.decor[a].hit(this, bangzone, (4 * (_parent._parent.decor[a]._x - _x)) / Math.abs(_x - _parent._parent.decort[a]._x), -12, 5, 5);
}
}
Symbol 817 MovieClip Frame 61
removeMovieClip(this);
_visible = 0;
stop();
Symbol 818 MovieClip Frame 1
grenade.stop();
gbomb.stop();
tire.stop();
explosion.stop();
explosion_crate.stop();
smoke.stop();
steam.stop();
Instance of Symbol 653 MovieClip "dog" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscaleorig);
}
function timescoreloss() {
if (timescore > 0) {
timescore = timescore - 3;
}
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function shoot() {
var _local1 = _parent;
body.launcher.trap.gotoAndPlay("shoot");
duplicateMovieClip (missile, "missile" + _local1.n, _local1.n);
missil = _local1["missile" + _local1.n];
missil._x = _x + (direction * (((body._x + body.launcher._x) + body.launcher.trap._x) + 20));
missil._y = ((_y + body._y) + body.launcher._y) + body.launcher.trap._y;
missil.xspeed = (6 + (5 * Math.random())) * direction;
missil._xscale = missil._xscale * direction;
missil.direction = direction;
missil.owner = this;
_local1.n = _local1.n + 1;
}
function defensebang() {
ennemy.hit(this, 0, (5 * Math.abs(ennemy._x - _x)) / (ennemy._x - _x), -10, 6, 4);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = attacker;
var _local3 = powerful;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
if (life <= 0) {
life = 0;
_parent.badang(this);
score = basescore + timescore;
var _local1 = int(200 - Math.abs(_local2._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
if (_local2 == ennemy) {
score = score + 100;
}
score = score + _local1;
_root.score = _root.score + score;
_root.showscore(this);
xspeed = rvolx / weight;
gotoAndPlay (270);
} else if (life > 0) {
if (life > lifemax) {
life = lifemax;
}
yaccel = yaccelinit;
if (_local3) {
xspeed = xspeed + rvolx;
yspeed = rvoly;
} else {
yspeed = rvoly / weight;
xspeed = rvolx / weight;
}
ymove();
if (((_local2._x - _x) * direction) <= 0) {
score = int(score / 3);
if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (192);
} else {
gotoAndPlay (180);
}
} else if ((_local3 || (air._x)) || (Math.random() < 0.2)) {
gotoAndPlay (230);
} else {
gotoAndPlay (215);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function groundmove() {
move();
if (!blocked) {
for (a in feet) {
feet[a]._rotation = feet[a]._rotation + ((3 * xspeed) * direction);
}
}
}
function rvolmove() {
_x = (_x + xspeed);
if (decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(absx + _x, (absy + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
game = _parent._parent;
decor = _parent._parent.decor;
ennemy = _parent.hero;
middle = (-_height) / 2;
midadjust = _height / 4;
lifemax = 5;
life = lifemax;
bangyfactor = 40;
missile = _parent.missile;
xspeed = 0;
yspeed = 0;
yaccelinit = 3;
yaccel = 3;
searchspeed = 0.8;
dashspeed = 6;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscaleorig = _xscale;
score = 0;
basescore = 100;
timescore = 100;
solid = 1;
blocked = 0;
_parent.solidsprites.push(this);
setdirection(1);
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._parent._x;
absy = _parent._parent._y;
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
onClipEvent (load) {
if (_name == "dog") {
desactivate();
} else {
xspeed = -4;
if (Math.random() < 0.5) {
setdirection(-1);
gotoAndPlay (193);
} else {
setdirection(1);
gotoAndPlay (231);
}
}
}
Instance of Symbol 503 MovieClip "missile" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
function explode() {
gotoAndPlay (15);
xspeed = xspeed / 4;
}
function hit() {
gotoAndPlay (10);
}
xaccel = 0.2;
decor = _parent._parent.decor;
life = 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
xspeed = xspeed + (xaccel * direction);
if (_currentframe < 10) {
if (decor.hitTest((_x + _parent._x) + _parent._parent._x, (_y + _parent._y) + _parent._parent._y, 1)) {
explode();
} else if (hitzone.hitTest(owner.ennemy.hitzone)) {
explode();
}
}
}
Instance of Symbol 514 MovieClip "grenade" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
function explode() {
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay (67);
}
function hit() {
explode();
}
decor = _parent._parent.decor;
middle = (-_height) / 2;
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
if (yaccel > 0) {
_x = (_x + xspeed);
grenade.grenade._rotation = grenade.grenade._rotation + (8 * xspeed);
if (decor.hitTest((absx + _x) + (2 * xspeed), (absy + _y) + middle, 1)) {
xspeed = xspeed * -0.6;
}
if (((yspeed < 0) && (!decor.hitTest(absx + _x, ((absy + _y) - 10) + yspeed, 1))) || ((yspeed >= 0) && (!decor.hitTest(absx + _x, absy + _y, 1)))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
xspeed = xspeed / 1.4;
yspeed = yspeed * -0.5;
if (yspeed > -3) {
yspeed = 0;
}
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
}
Instance of Symbol 520 MovieClip "gbomb" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
function explode() {
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay (67);
}
function hit() {
explode();
}
decor = _parent._parent.decor;
middle = (-_height) / 2;
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
if (yaccel > 0) {
_x = (_x + xspeed);
grenade.grenade._rotation = grenade.grenade._rotation + (8 * xspeed);
if (decor.hitTest((absx + _x) + (2 * xspeed), (absy + _y) + middle, 1)) {
xspeed = xspeed * -0.6;
}
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
explode();
}
while ((yspeed >= 0) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
}
Instance of Symbol 527 MovieClip "object" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
yaccel = 0;
yspeed = 0;
bonom = _parent.hero;
decor = _parent._parent.decor;
}
onClipEvent (enterFrame) {
if (yspeed != 0) {
_y = (_y + yspeed);
}
absx = (_x + _parent._x) + _parent._parent._x;
absy = (_y + _parent._y) + _parent._parent._y;
if (decor.hitTest(absx, absy, true) == 0) {
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
while (decor.hitTest(absx, ((_y + _parent._y) + _parent._parent._y) - 2, true)) {
_y = (_y - 2);
}
}
}
Instance of Symbol 503 MovieClip "missile2" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
function explode() {
gotoAndPlay (15);
xspeed = xspeed / 4;
}
function hit() {
}
xaccel = 0.2;
decor = _parent._parent.decor;
life = 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
xspeed = xspeed + (xaccel * direction);
if (_currentframe < 10) {
if (decor.hitTest((_x + _parent._x) + _parent._parent._x, (_y + _parent._y) + _parent._parent._y, 1)) {
explode();
} else if (hitzone.hitTest(owner.ennemy.hitzone)) {
explode();
}
}
}
Instance of Symbol 534 MovieClip "smoke" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
function move() {
_y = (_y + yspeed);
}
yspeed = -3;
}
Instance of Symbol 215 MovieClip "hero" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
function fireratechange(factor) {
firerate = firerate + factor;
}
function desactivate() {
active = 0;
tracktime = 0;
shoottime = 0;
key_left = 2000;
key_right = 2001;
key_jump = 2002;
key_jump2 = 2003;
}
function activate() {
active = 1;
tracktime = 1;
shoottime = 1;
key_left = 65;
key_right = 68;
key_jump = 87;
key_jump2 = 32;
}
function expression(frame) {
head.anim.model.gotoAndStop(frame);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
if (life > 0) {
damage = damagebase + int(Math.random() * damagerand);
damage = int(damage / armor);
xspeed = rvolx;
yspeed = rvoly;
ymove();
lifechange(-damage);
_parent.badang(this);
if (life > 0) {
gotoAndPlay(rvolframe);
}
}
}
function lifechange(factor) {
life = life + factor;
if (life > lifemax) {
life = lifemax;
} else if (life < 0) {
life = 0;
}
lifebar._xscale = (life / lifemax) * 100;
diecheck();
}
function diecheck() {
var _local1 = _parent;
var _local2 = _root;
if ((life <= 0) && (!_local2.winner)) {
_local2.herodead = 1;
xspeed = 0;
yspeed = 0;
yaccel = 0;
tracktime = 0;
shoottime = 0;
_local2.dieshake();
this.swapDepths(16000);
_local1._parent.foreground._visible = 0;
_local1.diescreen._x = _x;
_local1.diescreen._y = _y;
_local1.diescreen.gotoAndPlay(2);
_local1.diescreen.swapDepths(15000);
active = 0;
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay(dieframe);
}
}
function shoot() {
var _local1 = _parent;
shoottime = 0;
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
if (yaccel != 0) {
xspeed = xspeed - (((2 * (90 + gun.anim._rotation)) / 90) * direction);
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
_local1._parent.shoottime = 0;
game.n++;
}
function badang(bangx, bangy, style) {
var _local1 = _parent;
_local1.badang._rotation = _local1.badang._rotation + 20;
duplicateMovieClip (_local1.hitbadang, "hitbadang" + _local1.n, _local1.n);
bang = _local1["hitbadang" + _local1.n];
bang._x = _x + bangx;
bang._y = (_y + middle) + bangy;
_local1.n = _local1.n + 1;
}
function groundcheck() {
if ((yspeed >= 0) && (decor.hitTest(absx + _x, ((absy + _y) + (yspeed / 2)) + 2, 1))) {
ground = 1;
}
}
function camxmove() {
if (((_x + xdecal) < game.camxmax) && ((_x + xdecal) > game.camxmin)) {
game._x = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
}
}
function move() {
if ((!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) && (!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (middle * 1.5), 1))) {
_x = (_x + xspeed);
}
camxmove();
}
function xchange(factor) {
var _local1 = factor;
if ((!decor.hitTest((absx + _x) + ((20 * _local1) / Math.abs(_local1)), (absy + _y) - 3, 1)) && (!decor.hitTest((absx + _x) + _local1, (absy + _y) + (middle * 1.5), 1))) {
_x = (_x + _local1);
}
camxmove();
}
function ychange(factor) {
_y = (_y + factor);
_parent._parent.ydecal = _parent._parent.ydecal - factor;
}
function ymove() {
if ((!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (2 * middle), 1)) || (yspeed > 0)) {
ychange(yspeed);
} else {
yspeed = 0;
}
}
function slidemove() {
move();
xspeed = xspeed / friction;
}
function setabsposition() {
var _local1 = _parent;
absx = _local1._x + _local1._parent._x;
absy = _local1._y + _local1._parent._y;
}
active = 1;
xorig = _x;
yorig = _y;
middle = (-_height) / 2;
lifemax = 100;
life = lifemax;
rvolframe = 170;
dieframe = 400;
waitingland = 0;
xdecal = 0;
yspeed = 0;
xspeed = 0;
yaccel = 3;
yaccelorig = 3;
key_left = 65;
key_right = 68;
key_jump = 87;
key_up = 87;
key_down = 83;
key_jump2 = 32;
key_esquiv = 83;
footchange = 0;
xscaleorig = _xscale;
direction = 1;
movedirection = 1;
friction = 1.4;
climbspeed = -1.5;
walkspeed = 6;
rollspeed = 10;
backwalkspeed = -6;
decor = _parent._parent.decor;
game = _parent._parent;
shots = _parent._parent.shots;
lifebar = _root.status.lifebar;
lifebar._xscale = (life / lifemax) * 100;
rotbar = _root.status_rot;
this.swapDepths(0);
_root.herodead = 0;
tracktime = 1;
rolltime = 1;
armor = 1.3 - (0.3 * _root.difficulty);
firerate = _root.herofirerate;
fireratemax = 4;
setabsposition();
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
xdecal = xdecal + ((xdecalcible - xdecal) / 6);
}
if ((yspeed < 0) || (!decor.hitTest(absx + _x, absy + _y, 1))) {
ymove();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((life > 0) && (decor.hitTest(absx + _x, (absy + _y) - 2, 1))) {
ychange(-1);
}
while ((life > 0) && (decor.hitTest((absx + _x) + 12, (absy + _y) - 3, 1))) {
_x = (_x - 3);
}
while ((life > 0) && (decor.hitTest((absx + _x) - 12, (absy + _y) - 3, 1))) {
_x = (_x + 3);
}
}
onClipEvent (mouseDown) {
punchok = 0;
if (active) {
gonnashoot = 1;
for (a in _parent) {
if ((_parent[a].hitzone.hitTest(punchzone) && (_parent[a] != this)) && (_parent[a].projectile != 1)) {
punchok = 1;
}
}
}
if (punchok && (decor.hitTest(absx + _x, ((absy + _y) + (yspeed / 2)) + 2, 1))) {
tracktime = 0;
shoottime = 0;
gun.anim._rotation = 0;
gotoAndPlay (240);
} else if (shoottime) {
shoot();
}
}
onClipEvent (mouseUp) {
gonnashoot = 0;
}
onClipEvent (load) {
desactivate();
xdecal = 50;
}
Instance of Symbol 534 MovieClip "steam" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
function move() {
_y = (_y + yspeed);
}
yspeed = -3;
}
Instance of Symbol 817 MovieClip "tire" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
function explode() {
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay (48);
}
function hit(owner, projectile, rvolx, rvoly, damagebase, damagerand) {
xspeed = xspeed + (rvolx / weight);
yspeed = yspeed + (rvoly / weight);
}
decorok = 0;
decor = _parent._parent.decor;
middle = (-_height) / 2;
weight = 2;
ennemy = _parent.hero;
}
onClipEvent (enterFrame) {
absx = _parent._x + _parent._parent._x;
absy = _parent._y + _parent._parent._y;
if (yaccel > 0) {
_x = (_x + xspeed);
model.model._rotation = model.model._rotation + (8 * xspeed);
if (decorok && (decor.hitTest(((absx + _x) + (((xspeed / Math.abs(xspeed)) * _width) / 2)) + (xspeed / 4), (absy + _y) + middle, 1) || (decor.hitTest((absx + _x) + (((xspeed / Math.abs(xspeed)) * (-_width)) / 2), (absy + _y) + middle, 1)))) {
explode();
}
if ((((yspeed < 0) && (!decor.hitTest(absx + _x, ((absy + _y) - 10) + yspeed, 1))) || ((yspeed >= 0) && (!decor.hitTest(absx + _x, absy + _y, 1)))) || (!decorok)) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else if (decorok) {
xspeed = xspeed / 1.05;
yspeed = yspeed * -0.3;
if (yspeed > -3) {
yspeed = 0;
}
}
while ((decorok && (yspeed >= 0)) && (decor.hitTest(absx + _x, (absy + _y) - 3, 1))) {
_y = (_y - 3);
}
}
}
Instance of Symbol 109 MovieClip in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
_parent.itemdrop(_x, _y, "firerate", 1);
_parent.itemdrop(_x, _y - 60, "firerate", 1);
_parent.itemdrop(_x, _y - 120, "firerate", 1);
_parent.itemdrop(_x, _y - 180, "firerate", 1);
}
Instance of Symbol 541 MovieClip "megaexplosion" in Symbol 818 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(10000);
}
Symbol 820 MovieClip Frame 1
n = 100;
xorig = 285.95;
yorig = 151;
xdecalorig = 275;
cameradiv = 1;
ycameradiv = 4;
camxmin = -1000;
camxmax = 11150;
reset();
shots.stop();
soldiershots.stop();
_root.itemratio = 0.4 - (0.1 * _root.difficulty);
_root.liferatio = 0.5;
_root.red = 100;
_root.green = 45;
_root.blue = 0;
_root.colorize();
_root.status_boss._visible = 0;
scoremonitor.stop();
stop();
Instance of Symbol 419 MovieClip "decor" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
depthorig = this.getDepth();
this.swapDepths(0);
}
Instance of Symbol 609 MovieClip "sprites" in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
function badang(cible, bangx, bangy, style) {
var _local1 = cible;
hitbadang._rotation = hitbadang._rotation + 20;
duplicateMovieClip (hitbadang, "hitbadang" + n, n);
bang = this["hitbadang" + n];
_local1.bang = bang;
bang._x = _local1._x + bangx;
bang._y = (_local1._y + _local1.middle) + bangy;
n = n + 1;
}
function itemdrop(x, y, kind, stay) {
var _local1 = kind;
duplicateMovieClip (object, "object" + n, n);
item = this["object" + n];
item._x = x;
item._y = y;
item.forever = stay;
item.gotoAndPlay(2);
if (_local1 == "random") {
itemkind = Math.random();
if ((itemkind <= _root.liferatio) || (hero.firerate >= hero.fireratemax)) {
_local1 = "life";
} else {
_local1 = "firerate";
}
}
item.iteminside.gotoAndStop(_local1);
n++;
}
area = 1;
n = 100;
depthorig = this.getDepth();
this.swapDepths(50);
stop();
}
Symbol 820 MovieClip Frame 2
n = 100;
xorig = 285.95;
yorig = 390;
xdecalorig = 275;
cameradiv = 1;
ycameradiv = 4;
reset();
shots.stop();
soldiershots.stop();
_root.itemratio = 0.7 - (0.1 * _root.difficulty);
_root.red = 90;
_root.green = 90;
_root.blue = 0;
_root.colorize();
scoremonitor.stop();
_root.status_boss._visible = 0;
_root.gamebg.gotoAndStop(2);
stop();
Instance of Symbol 636 MovieClip "decor" in Symbol 820 MovieClip Frame 2
onClipEvent (load) {
depthorig = this.getDepth();
this.swapDepths(0);
}
Instance of Symbol 687 MovieClip "sprites" in Symbol 820 MovieClip Frame 2
onClipEvent (load) {
function badang(cible, bangx, bangy, style) {
var _local1 = cible;
hitbadang._rotation = hitbadang._rotation + 20;
duplicateMovieClip (hitbadang, "hitbadang" + n, n);
bang = this["hitbadang" + n];
_local1.bang = bang;
bang._x = _local1._x + bangx;
bang._y = (_local1._y + _local1.middle) + bangy;
n = n + 1;
}
function itemdrop(x, y, kind, stay) {
var _local1 = kind;
duplicateMovieClip (object, "object" + n, n);
item = this["object" + n];
item._x = x;
item._y = y;
item.forever = stay;
item.gotoAndPlay(2);
if (_local1 == "random") {
itemkind = Math.random();
if ((itemkind <= _root.liferatio) || (hero.firerate >= hero.fireratemax)) {
_local1 = "life";
} else {
_local1 = "firerate";
}
}
item.iteminside.gotoAndStop(_local1);
n++;
}
area = 1;
n = 100;
depthorig = this.getDepth();
this.swapDepths(50);
stop();
}
Instance of Symbol 692 MovieClip "foreground" in Symbol 820 MovieClip Frame 2
onClipEvent (load) {
depthorig = this.getDepth();
this.swapDepths(16000);
}
Symbol 820 MovieClip Frame 3
n = 100;
_root.winner = 0;
xorig = 285.95;
yorig = 250;
xdecalorig = 250;
cameradiv = 0.75;
_root.herofirerate = 4;
reset();
shots.stop();
soldiershots.stop();
_root.itemratio = 0;
_root.red = 100;
_root.green = 80;
_root.blue = 0;
_root.colorize();
scoremonitor.stop();
_root.status_boss._visible = 1;
_root.gamebg.gotoAndStop(3);
stop();
Instance of Symbol 801 MovieClip "decor" in Symbol 820 MovieClip Frame 3
onClipEvent (load) {
depthorig = this.getDepth();
this.swapDepths(0);
}
Instance of Symbol 818 MovieClip "sprites" in Symbol 820 MovieClip Frame 3
onClipEvent (load) {
function badang(cible, bangx, bangy, style) {
var _local1 = cible;
hitbadang._rotation = hitbadang._rotation + 20;
duplicateMovieClip (hitbadang, "hitbadang" + n, n);
bang = this["hitbadang" + n];
_local1.bang = bang;
bang._x = _local1._x + bangx;
bang._y = (_local1._y + _local1.middle) + bangy;
n = n + 1;
}
function itemdrop(x, y, kind, stay) {
var _local1 = kind;
duplicateMovieClip (object, "object" + n, n);
item = this["object" + n];
item._x = x;
item._y = y;
item.forever = stay;
item.gotoAndPlay(2);
if (_local1 == "random") {
itemkind = Math.random();
if ((itemkind <= _root.liferatio) || (hero.firerate >= hero.fireratemax)) {
_local1 = "life";
} else {
_local1 = "firerate";
}
}
item.iteminside.gotoAndStop(_local1);
n++;
}
area = 1;
n = 100;
depthorig = this.getDepth();
this.swapDepths(50);
stop();
}
Symbol 820 MovieClip Frame 8
_root.diescreen.gotoAndStop(2);
Symbol 820 MovieClip Frame 9
_root.diescreen.gotoAndStop(1);
gotoAndStop(_root.area);
Symbol 823 MovieClip Frame 1
stop();
Symbol 823 MovieClip Frame 25
hero.rolltime = 1;
gotoAndStop (1);
Symbol 826 MovieClip Frame 1
stop();
Symbol 826 MovieClip Frame 30
loops++;
if (loops < loopsmax) {
gotoAndPlay ("loop");
}
Symbol 826 MovieClip Frame 45
gotoAndStop (1);
Symbol 833 MovieClip Frame 1
_visible = 0;
stop();
Symbol 833 MovieClip Frame 2
_visible = 1;
Symbol 839 Button
on (release) {
secondselapsed = 0;
_root.retry();
gotoAndStop (1);
}
Symbol 840 MovieClip Frame 1
_visible = 0;
stop();
Symbol 840 MovieClip Frame 2
_visible = 1;
Symbol 854 MovieClip Frame 1
loops = 0;
shakefactor = int(shakefactor);
xshake = int(xshake);
Symbol 854 MovieClip Frame 2
game.yinit = game._y;
game._x = game._x + xshake;
_root.shakey(shakefactor);
dampedfactor = shakefactor / 2;
Symbol 854 MovieClip Frame 3
game._x = game._x - xshake;
_root.shakey(dampedfactor);
Symbol 854 MovieClip Frame 4
game._x = game._x + (xshake / 2);
_root.shakey(-shakefactor);
Symbol 854 MovieClip Frame 5
game._x = game._x - (xshake / 2);
_root.shakey(-dampedfactor);
Symbol 854 MovieClip Frame 6
loops++;
if (loops < loopsmax) {
shakefactor = shakefactor / damp;
xshake = xshake / damp;
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 856 MovieClip Frame 1
_visible = 0;
stop();
Symbol 856 MovieClip Frame 2
_visible = 1;
Symbol 856 MovieClip Frame 38
gotoAndStop (1);
Symbol 860 Button
on (release, keyPress "s") {
_root.explosion_pano.gotoAndPlay(2);
_root.game.sprites.megaexplosion._x = owner._x;
_root.game.sprites.megaexplosion._y = owner._y;
_root.game.sprites.megaexplosion.gotoAndPlay(2);
_parent.gotoAndStop(1);
}
Symbol 863 MovieClip Frame 1
_visible = 0;
stop();
Symbol 863 MovieClip Frame 2
_visible = 1;
Instance of Symbol 862 MovieClip "text" in Symbol 863 MovieClip Frame 2
/* no clip actions */
Symbol 866 Button
on (release, keyPress "s") {
_root.currentspeaker.speaking = 0;
_root.game.sprites.hero.readytoactivate = 1;
gotoAndStop (1);
}
Symbol 870 Button
on (release, keyPress "s") {
_root.currentspeaker.speaking = 0;
_root.game.decor.door2.gotoAndPlay("appear");
gotoAndStop (1);
}
Symbol 872 MovieClip Frame 1
_visible = 0;
stop();
Symbol 872 MovieClip Frame 2
_visible = 1;
Symbol 872 MovieClip Frame 3
_visible = 1;
Symbol 873 MovieClip Frame 1
_visible = 0;
stop();
Symbol 873 MovieClip Frame 2
_visible = 1;
Instance of Symbol 862 MovieClip "text" in Symbol 873 MovieClip Frame 2
/* no clip actions */
Symbol 875 MovieClip Frame 1
_visible = 0;
stop();
Symbol 875 MovieClip Frame 2
_visible = 1;
play();
Symbol 875 MovieClip Frame 38
gotoAndStop (1);
Symbol 877 MovieClip Frame 1
_visible = 0;
stop();
Symbol 877 MovieClip Frame 2
_visible = 1;
Symbol 877 MovieClip Frame 16
stop();
Symbol 883 Button
on (press) {
mouse.show();
this.gotoAndPlay(2);
}
on (rollOver) {
mouse.show();
_root.cursor._alpha = 0;
}
on (rollOut) {
mouse.hide();
_root.cursor._alpha = 100;
}
Symbol 887 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?alias2", "_blank");
}
Symbol 889 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?alias2", "_blank");
}
Symbol 891 Button
on (release, keyPress "q") {
_root.titlescene();
}
Symbol 893 Button
on (release) {
getURL ("http://www.freeonlinegames.com/downloads/Alias2.exe", "_blank");
}
Symbol 897 Button
on (rollOver) {
_root.cursor._alpha = 100;
mouse.hide();
this.gotoAndPlay(11);
}
Symbol 898 MovieClip Frame 1
stop();
Symbol 898 MovieClip Frame 10
stop();
Symbol 901 Button
on (rollOver) {
mouse.show();
_root.cursor._alpha = 0;
}
on (rollOut) {
mouse.hide();
_root.cursor._alpha = 100;
}
Symbol 902 MovieClip Frame 1
stop();
Symbol 902 MovieClip Frame 2
stop();
Symbol 905 MovieClip Frame 1
gscore = _root.score;
gname = "alias2JS";
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
stop();
Symbol 922 Button
on (release) {
_root.gotoAndPlay("back");
}
Symbol 923 MovieClip Frame 1
Symbol 923 MovieClip Frame 21
stop();
Symbol 926 MovieClip Frame 1
gscore = _root.score;
gname = "alias2JS";
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
stop();