Frame 1
stop();
Symbol 11 MovieClip Frame 1
yes = 1;
stop();
Symbol 11 MovieClip Frame 2
play();
_parent.enemy.attacking = 1;
counter = 1;
play();
Symbol 11 MovieClip Frame 3
if (_parent._parent.spacebar.spacebar == 0) {
if (_parent.enemy.attacking == 0) {
yes = 1;
gotoAndPlay (1);
}
}
counter++;
Symbol 11 MovieClip Frame 4
if (10 < counter) {
yes = 1;
_parent.enemy.attacking = 0;
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 34 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hitlow)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hitlow");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (9 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (9 * rd);
}
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
play();
Symbol 42 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hitlow)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hitlow");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (9 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (9 * rd);
}
}
Symbol 49 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hithigh)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else if (5 < rd) {
_root.game.dude.dude.gotoAndPlay("hithighhard");
} else {
_root.game.dude.dude.gotoAndPlay("hithigh");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (8 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (8 * rd);
}
}
if (this.hitTest(_root.game.dude.dude.hitair)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithighhard");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (10 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (10 * rd);
}
}
Symbol 54 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hithigh)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else if (5 < rd) {
_root.game.dude.dude.gotoAndPlay("hithighhard");
} else {
_root.game.dude.dude.gotoAndPlay("hithigh");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (8 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (8 * rd);
}
}
if (this.hitTest(_root.game.dude.dude.hitair)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithighhard");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (10 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (10 * rd);
}
}
Symbol 61 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hithigh)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else if (5 < rd) {
_root.game.dude.dude.gotoAndPlay("hithighhard");
} else {
_root.game.dude.dude.gotoAndPlay("hithigh");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((8 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((8 * rd) + chippy);
}
}
if (this.hitTest(_root.game.dude.dude.hitair)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithighhard");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((10 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((10 * rd) + chippy);
}
}
Symbol 71 MovieClip Frame 1
r = random(2);
if (r == 1) {
gotoAndPlay (6);
}
Symbol 71 MovieClip Frame 5
stop();
Symbol 71 MovieClip Frame 9
stop();
Symbol 99 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hithigh)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else if (5 < rd) {
_root.game.dude.dude.gotoAndPlay("hithighhard");
} else {
_root.game.dude.dude.gotoAndPlay("hithigh");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((8 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((8 * rd) + chippy);
}
}
if (this.hitTest(_root.game.dude.dude.hitair)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithighhard");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((10 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((10 * rd) + chippy);
}
}
Symbol 103 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hithigh)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else if (5 < rd) {
_root.game.dude.dude.gotoAndPlay("hithighhard");
} else {
_root.game.dude.dude.gotoAndPlay("hithigh");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((8 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((8 * rd) + chippy);
}
}
if (this.hitTest(_root.game.dude.dude.hitair)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithighhard");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((10 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((10 * rd) + chippy);
}
}
Symbol 107 MovieClip Frame 1
play();
_parent.AI.hit = 0;
_parent.AI.jumpattack = 0;
stop();
Symbol 107 MovieClip Frame 8
if (_parent._parent.spacebar.spacebar == 1) {
gotoAndStop (1);
}
_parent.AI.hit = 0;
_parent.AI.jumpattack = 0;
play();
Symbol 107 MovieClip Frame 19
gotoAndPlay (8);
Symbol 107 MovieClip Frame 25
_parent.AI.hit = 0;
_parent.AI.jumpattack = 0;
stop();
Symbol 107 MovieClip Frame 32
play();
r = random(4);
if (r == 2) {
gotoAndPlay (113);
}
Symbol 107 MovieClip Frame 34
r = random(4);
if (r == 2) {
gotoAndPlay (113);
}
Symbol 107 MovieClip Frame 45
stop();
Symbol 107 MovieClip Frame 46
play();
rt = random(4);
if (0 < rt) {
gotoAndPlay (1);
}
play();
Symbol 107 MovieClip Frame 47
play();
Symbol 107 MovieClip Frame 48
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 34 MovieClip in Symbol 107 MovieClip Frame 48
onClipEvent (load) {
damage = 5;
}
Symbol 107 MovieClip Frame 54
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 42 MovieClip in Symbol 107 MovieClip Frame 54
onClipEvent (load) {
damage = 4;
}
Symbol 107 MovieClip Frame 59
_parent.attacking = 0;
gotoAndStop (25);
Symbol 107 MovieClip Frame 90
play();
if (_parent.AI.pdirection == 0) {
_parent.vxt = _parent.vxt + 2;
} else {
_parent.vxt = _parent.vxt - 2;
}
Symbol 107 MovieClip Frame 94
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 49 MovieClip in Symbol 107 MovieClip Frame 94
onClipEvent (load) {
damage = 5;
}
Symbol 107 MovieClip Frame 98
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 54 MovieClip in Symbol 107 MovieClip Frame 98
onClipEvent (load) {
damage = 4;
}
Symbol 107 MovieClip Frame 103
_parent.attacking = 0;
gotoAndPlay (1);
Symbol 107 MovieClip Frame 113
play();
Symbol 107 MovieClip Frame 115
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 61 MovieClip in Symbol 107 MovieClip Frame 116
onClipEvent (load) {
damage = 8;
}
Symbol 107 MovieClip Frame 126
_parent.attacking = 0;
gotoAndPlay (32);
Symbol 107 MovieClip Frame 129
_parent.AI.hit = 1;
rrr = random(6);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit1");
}
if (rrr == 1) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit2");
}
if (rrr == 2) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit3");
}
Symbol 107 MovieClip Frame 138
_parent.AI.hit = 0;
gotoAndPlay (8);
Symbol 107 MovieClip Frame 140
_parent.AI.hit = 1;
rrr = random(6);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit1");
}
if (rrr == 1) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit2");
}
if (rrr == 2) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit3");
}
Symbol 107 MovieClip Frame 149
_parent.AI.hit = 0;
gotoAndPlay (8);
Symbol 107 MovieClip Frame 151
_parent.AI.stop();
Symbol 107 MovieClip Frame 165
_parent._parent._parent.dead1x = _parent._x;
_parent._parent._parent.dead1d = _parent.AI.pdirection;
stop();
Symbol 107 MovieClip Frame 168
play();
_parent.jumpattacker = 1;
Symbol 107 MovieClip Frame 172
if (_parent.AI.pdirection == 0) {
_parent.vxt = _parent.vxt + 10;
} else {
_parent.vxt = _parent.vxt - 10;
}
Symbol 107 MovieClip Frame 184
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 99 MovieClip in Symbol 107 MovieClip Frame 184
onClipEvent (load) {
damage = 12;
}
Instance of Symbol 103 MovieClip in Symbol 107 MovieClip Frame 186
onClipEvent (load) {
damage = 6;
}
Symbol 107 MovieClip Frame 190
_parent.attacking = 0;
_parent.jumpattacker = 0;
_parent.AI.jumpattack = 0;
gotoAndPlay (8);
Symbol 108 MovieClip Frame 1
if (1 < _parent._parent._parent.dude.health) {
difficulty = 3;
if (difficulty >= diffcount) {
if (prange == 0) {
if (down == 1) {
if (attack == 1) {
attack = 0;
}
}
if (pdirection == 1) {
if (right == 1) {
right = 0;
}
}
if (pdirection == 0) {
if (left == 1) {
left = 0;
}
}
}
}
if (difficulty < diffcount) {
if (jumpattack == 0) {
pdistance = _parent._parent._parent.dude._x - (_parent._parent._x + _parent._x);
pdirection = 0;
if (pdistance < 0) {
pdirection = 1;
pdistance = -pdistance;
}
if (pdistance < 130) {
prange = 1;
} else {
prange = 0;
}
if (_parent._parent._parent.dude.attacking == 1) {
pattack = 1;
} else {
pattack = 0;
}
if (_parent._parent._parent.dude.jump == 1) {
pjump = 1;
} else {
pjump = 0;
}
if (_parent._parent._parent.dude.duck == 1) {
pduck = 1;
} else {
pduck = 0;
}
diffcount = 0;
if (hit != 1) {
right = 0;
left = 0;
up = 0;
if (down == 1) {
downcounter++;
if (random(40) < downcounter) {
downcounter = 0;
down = 0;
}
}
attack = 0;
if ((pdistance < 320) && (300 < pdistance)) {
left = 0;
right = 0;
jumpattack = 1;
}
if ((pdistance < 220) && (200 < pdistance)) {
rd = random(3);
if (rd == 1) {
if (pdirection == 1) {
left = 1;
} else {
right = 1;
}
}
up = 1;
if (rd == 0) {
attack = 1;
}
}
if (130 < pdistance) {
if (stopper != 1) {
if (pdirection == 1) {
left = 1;
} else {
right = 1;
}
rstop = random(30);
if (rstop == 20) {
stopper = 1;
}
}
if (stopper == 1) {
stopcounter++;
if (random(70) < stopcounter) {
stopcounter = 0;
stopper = 0;
}
}
}
if (prange == 1) {
if (pattack == 1) {
if (pjump == 1) {
rc = random(4);
if (rc == 0) {
if (pdirection == 1) {
right = 1;
} else {
left = 1;
}
up = 1;
attack = 1;
}
if (rc == 1) {
down = 1;
attack = 1;
}
if (1 < rc) {
up = 1;
attack = 1;
}
}
if (pduck == 1) {
up = 1;
}
} else {
if (pduck == 1) {
ry = random(4);
if (ry == 0) {
down = 1;
attack = 1;
}
if (ry == 2) {
down = 0;
attack = 1;
}
}
if (pjump == 1) {
ry = random(3);
if (ry == 0) {
up = 1;
attack = 1;
}
if (ry == 1) {
attack = 1;
}
} else {
ra = random(5);
if (ra >= 3) {
down = 1;
}
if (ra == 2) {
if (pdirection == 1) {
left = 1;
} else {
right = 1;
}
up = 1;
}
attack = 1;
}
}
}
}
}
}
} else {
attack = 0;
down = 0;
right = 0;
left = 0;
}
Symbol 108 MovieClip Frame 2
diffcount++;
if (0 < _parent.health) {
gotoAndPlay (1);
}
Symbol 109 MovieClip Frame 35
if (0 < _parent.health) {
if (_parent.health < _parent.healthmax) {
_parent.health = _parent.health + rate;
}
}
gotoAndPlay (1);
Symbol 110 MovieClip Frame 1
if (AI.down == 1) {
if (AI.up == 1) {
AI.down = 0;
AI.up = 0;
}
}
if (jump == 1) {
if (direction == 0) {
vy = vy - a;
this._y = this._y - vy;
if (0.1 >= vy) {
direction = 1;
}
}
if (direction == 1) {
vy = vy + a;
this._y = this._y + vy;
if (this._y >= 0) {
jump = 0;
attack = 2;
this._y = yo;
attacking = 0;
walking = 0;
if (0 < health) {
enemy.gotoAndPlay("walking");
}
attack = 2;
}
}
}
if (0 < health) {
if (jumpattacker == 0) {
if (_parent.enemyyes.yes == 1) {
if (ai.hit != 1) {
if (jump == 1) {
if (AI.attack == 1) {
attacking = 1;
enemy.gotoAndPlay("attack3");
_parent.enemyyes.yes = 0;
_parent.enemyyes.play();
}
}
if (duck == 1) {
if (AI.attack == 1) {
rjump = random(4);
if (rjump == 0) {
enemy.gotoAndPlay("attack1");
} else {
enemy.gotoAndPlay("attack1");
}
_parent.enemyyes.yes = 0;
_parent.enemyyes.play();
}
if (AI.down != 1) {
duck = 0;
attacking = 0;
enemy.gotoAndPlay("walking");
}
}
if (duck == 0) {
if (jump == 0) {
if (AI.jumpattack == 1) {
enemy.gotoAndPlay("jumpattack");
} else {
if (AI.down == 1) {
if (duck == 0) {
vxt = 0;
walking = 0;
enemy.gotoAndStop("ducking");
attack = 1;
duck = 1;
}
}
if (AI.down != 1) {
duck = 0;
attack = 2;
if (AI.right != 1) {
if (AI.left != 1) {
if (jump == 0) {
enemy.gotoAndPlay("stopped");
walking = 0;
vxt = 0;
}
}
}
if (AI.left == 1) {
if (walking == 0) {
enemy.gotoAndPlay("walking");
walking = 1;
}
vxt = -speed;
}
if (AI.right == 1) {
if (walking == 0) {
enemy.gotoAndPlay("walking");
walking = 1;
}
vxt = speed;
}
if (AI.attack == 1) {
vxt = 0;
enemy.gotoAndPlay("attack2");
enemy.gotoAndPlay("attack2");
walking = 0;
_parent.enemyyes.yes = 0;
_parent.enemyyes.play();
enemy.gotoAndPlay("attack2");
}
if (AI.up == 1) {
if (jump == 0) {
enemy.gotoAndStop("jumping");
attack = 3;
jump = 1;
vy = (jumpspeed - 10) + random(15);
direction = 0;
}
}
}
}
}
}
}
}
}
vxold = vx;
dvx = (vxt - vxold) * 0.4;
vx = dvx + vxold;
if (0.1 < vx) {
if (this._x < 440) {
this._x = this._x + vx;
}
} else if (-440 < this._x) {
this._x = this._x + vx;
}
if (Key.isDown(Key.END)) {
vx = vx - 10;
}
}
Instance of Symbol 108 MovieClip "AI" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
jumpattack = 0;
}
Instance of Symbol 109 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
rate = 1;
}
Symbol 110 MovieClip Frame 2
gotoAndPlay (1);
Symbol 164 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hitlow)) {
rd = 1 + random(damage);
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithighhard");
}
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((8 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((8 * rd) + chippy);
}
if (this.hitTest(_root.game.dude.dude.hithigh)) {
rd = 1 + random(damage);
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else if (5 < rd) {
_root.game.dude.dude.gotoAndPlay("hithighhard");
} else {
_root.game.dude.dude.gotoAndPlay("hithigh");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((8 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((8 * rd) + chippy);
}
}
if (this.hitTest(_root.game.dude.dude.hitair)) {
rd = 1 + random(damage);
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithighhard");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((10 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((10 * rd) + chippy);
}
}
Symbol 173 MovieClip Frame 1
play();
_parent.AI.hit = 0;
_parent.AI.jumpattack = 0;
_parent.jumpattacker = 0;
stop();
Symbol 173 MovieClip Frame 8
if (_parent._parent.spacebar.spacebar == 1) {
gotoAndStop (1);
}
_parent.AI.hit = 0;
_parent.AI.jumpattack = 0;
_parent.jumpattacker = 0;
play();
Symbol 173 MovieClip Frame 19
gotoAndPlay (8);
Symbol 173 MovieClip Frame 20
play();
_parent.AI.jumpattack = 0;
_parent.jumpattacker = 0;
Symbol 173 MovieClip Frame 21
play();
Symbol 173 MovieClip Frame 25
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
duplicateMovieClip (_parent._parent.bottle, "bottle" + bottlecount, bottlecount);
with (_parent._parent.bottle2) {
v = -10;
}
setProperty(eval ("_parent._parent.bottle" + bottlecount), _x , _parent._x);
setProperty(eval ("_parent._parent.bottle" + bottlecount), _y , _parent._y + 20);
bottlecount++;
if (10 < bottlecount) {
bottlecount = 1;
}
Symbol 173 MovieClip Frame 30
_parent.attacking = 0;
gotoAndStop (1);
Symbol 173 MovieClip Frame 31
play();
_parent.AI.jumpattack = 0;
_parent.jumpattacker = 0;
ra = random(2);
if (ra == 1) {
gotoAndPlay (20);
}
Symbol 173 MovieClip Frame 39
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
duplicateMovieClip (_parent._parent.bottle, "bottle" + bottlecount, bottlecount);
with (_parent._parent.bottle2) {
v = -10;
}
setProperty(eval ("_parent._parent.bottle" + bottlecount), _x , _parent._x);
setProperty(eval ("_parent._parent.bottle" + bottlecount), _y , _parent._y - 70);
bottlecount++;
if (10 < bottlecount) {
bottlecount = 1;
}
Symbol 173 MovieClip Frame 44
_parent.attacking = 0;
gotoAndPlay (1);
Symbol 173 MovieClip Frame 45
_parent.AI.hit = 1;
_parent.AI.jumpattack = 0;
_parent.jumpattacker = 0;
rrr = random(6);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit1");
}
if (rrr == 1) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit2");
}
if (rrr == 2) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit3");
}
Symbol 173 MovieClip Frame 54
_parent.AI.hit = 0;
gotoAndPlay (8);
Symbol 173 MovieClip Frame 56
_parent.AI.hit = 1;
_parent.AI.jumpattack = 0;
_parent.jumpattacker = 0;
rrr = random(6);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit1");
}
if (rrr == 1) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit2");
}
if (rrr == 2) {
_parent._parent._parent.sounds.gotoAndPlay("parkahit3");
}
Symbol 173 MovieClip Frame 65
_parent.AI.hit = 0;
gotoAndPlay (8);
Symbol 173 MovieClip Frame 67
_parent.jumpattacker = 0;
_parent.AI.stop();
Symbol 173 MovieClip Frame 81
_parent._parent._parent.dead1x = _parent._x;
_parent._parent._parent.dead1d = _parent.AI.pdirection;
stop();
Symbol 173 MovieClip Frame 84
play();
_parent.jumpattacker = 1;
Symbol 173 MovieClip Frame 88
Instance of Symbol 164 MovieClip in Symbol 173 MovieClip Frame 89
onClipEvent (load) {
damage = 12;
chippy = 70;
}
Symbol 173 MovieClip Frame 100
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Symbol 173 MovieClip Frame 106
_parent.attacking = 0;
_parent.jumpattacker = 0;
_parent.AI.jumpattack = 0;
gotoAndPlay (8);
Symbol 174 MovieClip Frame 1
if (1 < _parent._parent._parent.dude.health) {
difficulty = 3;
if (difficulty < diffcount) {
if (jumpattack == 0) {
xmax = _parent._parent._parent.xmax._x - _parent._parent._x;
xmin = _parent._parent._parent.xmin._y - _parent._parent._x;
pdistance = _parent._parent._parent.dude._x - (_parent._parent._x + _parent._x);
pdirection = 0;
if (pdistance < 0) {
pdirection = 1;
pdistance = -pdistance;
}
if (pdistance < 130) {
prange = 1;
} else {
prange = 0;
}
if (_parent._parent._parent.dude.attacking == 1) {
pattack = 1;
} else {
pattack = 0;
}
if (_parent._parent._parent.dude.jump == 1) {
pjump = 1;
} else {
pjump = 0;
}
if (_parent._parent._parent.dude.duck == 1) {
pduck = 1;
} else {
pduck = 0;
}
diffcount = 0;
if (hit != 1) {
right = 0;
left = 0;
up = 0;
if (down == 1) {
downcounter++;
if (random(40) < downcounter) {
downcounter = 0;
down = 0;
}
}
attack = 0;
if (pdistance < 420) {
ra = random(10);
if (8 < ra) {
attack = 1;
}
}
if (pdistance >= 370) {
ra = random(10);
if (ra >= 8) {
attack = 1;
} else if (pdirection == 1) {
left = 1;
} else {
right = 1;
}
}
if (pdistance < 350) {
if (pdirection == 1) {
if (_parent._x < xmax) {
right = 1;
}
} else if (xmin < _parent._x) {
left = 1;
}
}
if (prange == 1) {
left = 0;
right = 0;
rj = random(10);
if (7 < rj) {
jumpattack = 1;
}
}
}
}
}
} else {
attack = 0;
down = 0;
right = 0;
left = 0;
}
Symbol 174 MovieClip Frame 2
diffcount++;
if (0 < _parent.health) {
gotoAndPlay (1);
}
Symbol 175 MovieClip Frame 35
if (0 < _parent.health) {
if (_parent.health < _parent.healthmax) {
_parent.health = _parent.health + rate;
}
}
gotoAndPlay (1);
Symbol 176 MovieClip Frame 1
if (0 < health) {
if (jumpattacker == 0) {
if (_parent.enemyyes.yes == 1) {
if (ai.hit != 1) {
if (duck == 0) {
if (jump == 0) {
if (AI.jumpattack == 1) {
enemy.gotoAndPlay("jumpattack");
} else if (AI.down != 1) {
duck = 0;
attack = 2;
if (AI.right != 1) {
if (AI.left != 1) {
if (jump == 0) {
enemy.gotoAndPlay("stopped");
walking = 0;
vxt = 0;
}
}
}
if (AI.left == 1) {
if (walking == 0) {
enemy.gotoAndPlay("walking");
walking = 1;
}
vxt = -speed;
}
if (AI.right == 1) {
if (walking == 0) {
enemy.gotoAndPlay("walking");
walking = 1;
}
vxt = speed;
}
if (AI.attack == 1) {
vxt = 0;
enemy.gotoAndPlay("attack2");
enemy.gotoAndPlay("attack2");
walking = 0;
_parent.enemyyes.yes = 0;
_parent.enemyyes.play();
enemy.gotoAndPlay("attack2");
}
}
}
}
}
}
}
vxold = vx;
dvx = (vxt - vxold) * 0.4;
vx = dvx + vxold;
if (0.1 < vx) {
if (this._x < 440) {
this._x = this._x + vx;
}
} else if (-440 < this._x) {
this._x = this._x + vx;
}
}
Instance of Symbol 173 MovieClip "enemy" in Symbol 176 MovieClip Frame 1
onClipEvent (load) {
bottlecount = 1;
}
Instance of Symbol 175 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (load) {
rate = 0;
}
Symbol 176 MovieClip Frame 2
gotoAndPlay (1);
Symbol 184 MovieClip Frame 13
gotoAndPlay (1);
Symbol 184 MovieClip Frame 14
play();
Symbol 184 MovieClip Frame 20
removeMovieClip(this);
stop();
Symbol 185 MovieClip Frame 1
shattered = 0;
if (0 < _root.game.dude.denemy) {
v = 10 + random(10);
bottle._xscale = -100;
} else {
v = -10 - random(10);
bottle._xscale = 100;
}
Symbol 185 MovieClip Frame 2
if (this._x < -500) {
removeMovieClip(this);
}
if (500 < this._x) {
removeMovieClip(this);
}
if (this.hitTest(_root.game.dude.dude.hittest)) {
if (shattered == 0) {
_parent._parent.score = _parent._parent.score + 50;
shattered = 1;
bottle.gotoAndPlay("shatters");
v = 0;
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + 20;
} else {
_root.game.dude.vx = _root.game.dude.vx - 20;
}
}
} else {
if (this.hitTest(_root.game.dude.dude.hithigh)) {
if (shattered == 0) {
shattered = 1;
bottle.gotoAndPlay("shatters");
v = 0;
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - 10;
_root.game.dude.healthmax = _root.game.dude.healthmax - 5;
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithigh");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + 60;
} else {
_root.game.dude.vx = _root.game.dude.vx - 60;
}
}
}
if (this.hitTest(_root.game.dude.dude.hitlow)) {
if (shattered == 0) {
shattered = 1;
bottle.gotoAndPlay("shatters");
v = 0;
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - 7;
_root.game.dude.healthmax = _root.game.dude.healthmax - 2;
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hitlow");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + 60;
} else {
_root.game.dude.vx = _root.game.dude.vx - 60;
}
}
}
if (this.hitTest(_root.game.dude.dude.hitair)) {
if (shattered == 0) {
shattered = 1;
bottle.gotoAndPlay("shatters");
v = 0;
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - 9;
_root.game.dude.healthmax = _root.game.dude.healthmax - 3;
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithigh");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + 60;
} else {
_root.game.dude.vx = _root.game.dude.vx - 60;
}
}
}
}
this._x = this._x + v;
Symbol 185 MovieClip Frame 3
gotoAndPlay (2);
Symbol 189 MovieClip Frame 16
startx = _parent._parent._x;
starty = _parent._parent._y;
_parent._parent._x = startx + random(30);
_parent._parent._y = starty + random(30);
_parent._parent.sounds.gotoAndPlay("bossstomp1");
Symbol 189 MovieClip Frame 17
_parent._parent._x = startx + random(20);
_parent._parent._y = starty + random(20);
Symbol 189 MovieClip Frame 18
_parent._parent._x = startx + random(15);
_parent._parent._y = starty + random(15);
Symbol 189 MovieClip Frame 19
_parent._parent._x = startx + random(10);
_parent._parent._y = starty + random(10);
Symbol 189 MovieClip Frame 20
_parent._parent._x = startx;
_parent._parent._y = starty;
_parent._parent.sounds.gotoAndPlay("bosstaunt");
_parent.play();
stop();
Symbol 209 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hitlow)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hitlow");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (9 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (9 * rd);
}
}
Symbol 217 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hitlow)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hitlow");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (9 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (9 * rd);
}
}
Symbol 222 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hithigh)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else if (5 < rd) {
_root.game.dude.dude.gotoAndPlay("hithighhard");
} else {
_root.game.dude.dude.gotoAndPlay("hithigh");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (8 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (8 * rd);
}
}
if (this.hitTest(_root.game.dude.dude.hitair)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithighhard");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (10 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (10 * rd);
}
}
Symbol 231 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hithigh)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 9)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 9) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else if (5 < rd) {
_root.game.dude.dude.gotoAndPlay("hithighhard");
} else {
_root.game.dude.dude.gotoAndPlay("hithigh");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((8 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((8 * rd) + chippy);
}
}
if (this.hitTest(_root.game.dude.dude.hitair)) {
rd = (1 + random(damage)) + bosshit;
if (rd < 3) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hithighhard");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + ((10 * rd) + chippy);
} else {
_root.game.dude.vx = _root.game.dude.vx - ((10 * rd) + chippy);
}
}
Symbol 258 MovieClip Frame 1
if (this.hitTest(_root.game.dude.dude.hitlow)) {
rd = (1 + random(8)) + bosshit;
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.dude.hit = 1;
_root.game.dude.health = _root.game.dude.health - (1 + rd);
_root.game.dude.healthmax = _root.game.dude.healthmax - (0 + (rd / 2));
if (0 >= _root.game.dude.health) {
_root.game.dude.dude.gotoAndPlay("death");
} else {
_root.game.dude.dude.gotoAndPlay("hitlow");
}
if (0 < _root.game.dude.denemy) {
_root.game.dude.vx = _root.game.dude.vx + (8 * rd);
} else {
_root.game.dude.vx = _root.game.dude.vx - (8 * rd);
}
}
Symbol 262 MovieClip Frame 1
play();
_parent.AI.hit = 0;
stop();
Symbol 262 MovieClip Frame 8
if (_parent._parent.spacebar.spacebar == 1) {
gotoAndStop (1);
}
_parent.AI.hit = 0;
play();
Symbol 262 MovieClip Frame 24
gotoAndPlay (8);
Symbol 262 MovieClip Frame 25
_parent.AI.hit = 0;
stop();
Symbol 262 MovieClip Frame 32
play();
r = random(4);
if (r == 2) {
gotoAndPlay (113);
}
Symbol 262 MovieClip Frame 34
r = random(4);
if (r == 2) {
gotoAndPlay (113);
}
Symbol 262 MovieClip Frame 45
stop();
Symbol 262 MovieClip Frame 46
play();
rt = random(4);
if (0 < rt) {
gotoAndPlay (63);
}
play();
Symbol 262 MovieClip Frame 47
play();
Symbol 262 MovieClip Frame 52
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 209 MovieClip in Symbol 262 MovieClip Frame 52
onClipEvent (load) {
damage = 9;
bosshit = 3;
}
Symbol 262 MovieClip Frame 62
_parent.attacking = 0;
gotoAndStop (25);
Symbol 262 MovieClip Frame 63
play();
Symbol 262 MovieClip Frame 67
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 217 MovieClip in Symbol 262 MovieClip Frame 67
onClipEvent (load) {
damage = 8;
bosshit = 2;
}
Symbol 262 MovieClip Frame 72
_parent.attacking = 0;
gotoAndStop (25);
Symbol 262 MovieClip Frame 90
play();
Symbol 262 MovieClip Frame 94
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 222 MovieClip in Symbol 262 MovieClip Frame 94
onClipEvent (load) {
damage = 10;
bosshit = 4;
}
Symbol 262 MovieClip Frame 100
_parent.attacking = 0;
gotoAndPlay (1);
Symbol 262 MovieClip Frame 113
play();
Symbol 262 MovieClip Frame 116
rrr = random(2);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 231 MovieClip in Symbol 262 MovieClip Frame 116
onClipEvent (load) {
damage = 12;
bosshit = 3;
}
Symbol 262 MovieClip Frame 128
_parent.attacking = 0;
gotoAndPlay (32);
Symbol 262 MovieClip Frame 129
_parent.AI.hit = 1;
rrr = random(6);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("bosshit1");
}
if (rrr == 1) {
_parent._parent._parent.sounds.gotoAndPlay("bosshit2");
}
if (rrr == 2) {
_parent._parent._parent.sounds.gotoAndPlay("bosshit3");
}
Symbol 262 MovieClip Frame 138
_parent.AI.hit = 0;
gotoAndPlay (8);
Symbol 262 MovieClip Frame 140
_parent.AI.hit = 1;
rrr = random(6);
if (rrr == 0) {
_parent._parent._parent.sounds.gotoAndPlay("bosshit1");
}
if (rrr == 1) {
_parent._parent._parent.sounds.gotoAndPlay("bosshit2");
}
if (rrr == 2) {
_parent._parent._parent.sounds.gotoAndPlay("bosshit3");
}
Symbol 262 MovieClip Frame 149
_parent.AI.hit = 0;
gotoAndPlay (8);
Symbol 262 MovieClip Frame 151
_parent.AI.stop();
Symbol 262 MovieClip Frame 165
stop();
Symbol 262 MovieClip Frame 168
play();
Instance of Symbol 258 MovieClip in Symbol 262 MovieClip Frame 173
onClipEvent (load) {
damage = 8;
bosshit = 3;
}
Symbol 262 MovieClip Frame 180
_parent.attacking = 0;
gotoAndPlay (8);
Symbol 263 MovieClip Frame 1
if (1 < _parent._parent._parent.dude.health) {
difficulty = 3;
if (difficulty >= diffcount) {
if (prange == 0) {
if (down == 1) {
if (attack == 1) {
attack = 0;
}
}
if (pdirection == 1) {
if (right == 1) {
right = 0;
}
}
if (pdirection == 0) {
if (left == 1) {
left = 0;
}
}
}
}
if (difficulty < diffcount) {
pdistance = _parent._parent._parent.dude._x - (_parent._parent._x + _parent._x);
pdirection = 0;
if (pdistance < 0) {
pdirection = 1;
pdistance = -pdistance;
}
if (pdistance < 130) {
prange = 1;
} else {
prange = 0;
}
if (_parent._parent._parent.dude.attacking == 1) {
pattack = 1;
} else {
pattack = 0;
}
if (_parent._parent._parent.dude.jump == 1) {
pjump = 1;
} else {
pjump = 0;
}
if (_parent._parent._parent.dude.duck == 1) {
pduck = 1;
} else {
pduck = 0;
}
diffcount = 0;
if (hit != 1) {
right = 0;
left = 0;
up = 0;
if (down == 1) {
downcounter++;
if (random(40) < downcounter) {
downcounter = 0;
down = 0;
}
}
attack = 0;
if ((pdistance < 220) && (200 < pdistance)) {
if (pdirection == 1) {
left = 1;
} else {
right = 1;
}
left = 1;
up = 1;
}
if (130 < pdistance) {
if (stopper != 1) {
if (pdirection == 1) {
left = 1;
} else {
right = 1;
}
rstop = random(30);
if (rstop == 20) {
stopper = 1;
}
}
if (stopper == 1) {
stopcounter++;
if (random(70) < stopcounter) {
stopcounter = 0;
stopper = 0;
}
}
}
if (prange == 1) {
if (pattack == 1) {
if (pjump == 1) {
rc = random(2);
if (rc == 1) {
if (pdirection == 1) {
right = 1;
} else {
left = 1;
}
up = 1;
attack = 1;
} else {
down = 1;
attack = 1;
}
}
if (pduck == 1) {
up = 1;
}
} else {
if (pduck == 1) {
ry = random(4);
if (ry == 0) {
down = 1;
attack = 1;
}
if (ry == 2) {
down = 0;
attack = 1;
}
}
if (pjump == 1) {
ry = random(3);
if (ry == 0) {
up = 1;
attack = 1;
}
if (ry == 1) {
attack = 1;
}
} else {
ra = random(5);
if (ra == 3) {
down = 1;
}
attack = 1;
}
}
}
}
}
} else {
attack = 0;
down = 0;
right = 0;
left = 0;
}
Symbol 263 MovieClip Frame 2
diffcount++;
if (0 < _parent.health) {
gotoAndPlay (1);
}
Symbol 264 MovieClip Frame 35
if (0 < _parent.health) {
if (_parent.health < _parent.healthmax) {
_parent.health = _parent.health + rate;
}
}
gotoAndPlay (1);
Symbol 265 MovieClip Frame 1
if (AI.down == 1) {
if (AI.up == 1) {
AI.down = 0;
AI.up = 0;
}
}
if (jump == 1) {
if (direction == 0) {
vy = vy - a;
this._y = this._y - vy;
if (0.1 >= vy) {
direction = 1;
}
}
if (direction == 1) {
vy = vy + a;
this._y = this._y + vy;
if (this._y >= 0) {
_parent._parent.shaker.play();
rt = random(2);
if (rt == 0) {
_parent._parent.sounds.gotoAndPlay("bossstomp1");
} else {
_parent._parent.sounds.gotoAndPlay("bossstomp2");
}
jump = 0;
attack = 2;
this._y = yo;
attacking = 0;
walking = 0;
if (0 < health) {
enemy.gotoAndPlay("walking");
}
attack = 2;
}
}
}
if (0 < health) {
if (_parent.enemyyes.yes == 1) {
if (ai.hit != 1) {
if (jump == 1) {
if (AI.attack == 1) {
attacking = 1;
enemy.gotoAndPlay("attack3");
_parent.enemyyes.yes = 0;
_parent.enemyyes.play();
}
}
if (duck == 1) {
if (AI.attack == 1) {
rjump = random(4);
if (rjump == 0) {
enemy.gotoAndPlay("jumpattack");
} else {
enemy.gotoAndPlay("attack1");
}
_parent.enemyyes.yes = 0;
_parent.enemyyes.play();
}
if (AI.down != 1) {
duck = 0;
attacking = 0;
enemy.gotoAndPlay("walking");
}
}
if (duck == 0) {
if (jump == 0) {
if (AI.down == 1) {
if (duck == 0) {
vxt = 0;
walking = 0;
enemy.gotoAndStop("ducking");
attack = 1;
duck = 1;
}
}
if (AI.down != 1) {
duck = 0;
attack = 2;
if (AI.right != 1) {
if (AI.left != 1) {
if (jump == 0) {
enemy.gotoAndPlay("stopped");
walking = 0;
vxt = 0;
}
}
}
if (AI.left == 1) {
if (walking == 0) {
enemy.gotoAndPlay("walking");
walking = 1;
}
vxt = -speed;
}
if (AI.right == 1) {
if (walking == 0) {
enemy.gotoAndPlay("walking");
walking = 1;
}
vxt = speed;
}
if (AI.attack == 1) {
vxt = 0;
enemy.gotoAndPlay("attack2");
enemy.gotoAndPlay("attack2");
walking = 0;
_parent.enemyyes.yes = 0;
_parent.enemyyes.play();
enemy.gotoAndPlay("attack2");
}
if (AI.up == 1) {
if (jump == 0) {
enemy.gotoAndStop("jumping");
attack = 3;
jump = 1;
vy = (jumpspeed - 10) + random(15);
direction = 0;
}
}
}
}
}
}
}
vxold = vx;
dvx = (vxt - vxold) * 0.4;
vx = dvx + vxold;
if (0.1 < vx) {
if (this._x < 440) {
this._x = this._x + vx;
}
} else if (-440 < this._x) {
this._x = this._x + vx;
}
if (Key.isDown(Key.END)) {
vx = vx - 10;
}
}
Instance of Symbol 264 MovieClip in Symbol 265 MovieClip Frame 1
onClipEvent (load) {
rate = 2;
}
Symbol 265 MovieClip Frame 2
gotoAndPlay (1);
Symbol 266 MovieClip Frame 1
stop();
Instance of Symbol 5 MovieClip "enemyshadow" in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
ey = _parent.enemy._y - 11.9;
if (ey < -100) {
ey = -100;
}
this._alpha = 100 + ey;
this._xscale = 100 + (ey / 3);
this._yscale = 100 + (ey / 3);
this._x = _parent.enemy._x;
if (0 >= _parent.enemy.health) {
this._x = 800;
}
}
Instance of Symbol 7 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
sx = _parent._parent.dude._x - _parent._x;
this._x = sx;
if (0 >= _parent._parent.dude.health) {
this._x = 800;
}
ey = _parent._parent.dude._y;
if (ey < -100) {
ey = -100;
}
this._alpha = 100 + ey;
this._xscale = 100 + (ey / 3);
this._yscale = 100 + (ey / 3);
}
Instance of Symbol 110 MovieClip "enemy" in Symbol 266 MovieClip Frame 1
onClipEvent (load) {
xo = this._x;
yo = this._y;
jump = 0;
vy = 0;
k = 1;
a = 3;
vx = 10;
walking = 0;
attacking = 0;
duck = 0;
skip = 0;
_parent.yes = 1;
speed = 5.5;
jumpspeed = 28;
vxt = 0;
vx = 0;
health = 100;
healthmax = 100;
name = "PARKA-BOY";
jumpattacker = 0;
mass = 1.5;
}
Symbol 266 MovieClip Frame 2
stop();
Symbol 266 MovieClip Frame 3
if (_parent.dead1d == 0) {
deadparka._xscale = -100;
}
deadparka._x = _parent.dead1x;
stop();
Instance of Symbol 176 MovieClip "enemy" in Symbol 266 MovieClip Frame 3
onClipEvent (load) {
xo = this._x;
yo = this._y;
jump = 0;
vy = 0;
k = 1;
a = 3;
vx = 10;
walking = 0;
attacking = 0;
duck = 0;
skip = 0;
_parent.yes = 1;
speed = 3;
jumpspeed = 28;
vxt = 0;
vx = 0;
health = 100;
healthmax = 100;
name = "CHIPPY";
jumpattacker = 0;
mass = 1;
}
Symbol 266 MovieClip Frame 4
stop();
Symbol 266 MovieClip Frame 5
if (_parent.dead1d == 0) {
deadparka._xscale = -100;
}
deadparka._x = _parent.dead1x;
stop();
Symbol 266 MovieClip Frame 6
stop();
Instance of Symbol 265 MovieClip "enemy" in Symbol 266 MovieClip Frame 6
onClipEvent (load) {
xo = this._x;
yo = this._y;
jump = 0;
vy = 0;
k = 1;
a = 3;
vx = 10;
walking = 0;
attacking = 0;
duck = 0;
skip = 0;
_parent.yes = 1;
speed = 4;
jumpspeed = 25;
vxt = 0;
vx = 0;
health = 100;
healthmax = 100;
name = "BOSS THUG";
mass = 1;
}
Symbol 271 MovieClip Frame 1
yes = 1;
stop();
Symbol 271 MovieClip Frame 2
play();
_parent.dude.attacking = 1;
counter = 1;
play();
Symbol 271 MovieClip Frame 3
if (_parent.spacebar.spacebar == 0) {
if (_parent.dude.attacking == 0) {
yes = 1;
gotoAndPlay (1);
}
}
counter++;
Symbol 271 MovieClip Frame 4
if (10 < counter) {
yes = 1;
dude.attacking = 0;
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 293 MovieClip Frame 76
_parent.play();
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 23
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 2
startx = _parent._x;
starty = _parent._y;
_parent._x = startx + random(15);
_parent._y = starty + random(15);
Symbol 310 MovieClip Frame 3
_parent._x = startx + random(10);
_parent._y = starty + random(10);
Symbol 310 MovieClip Frame 4
_parent._x = startx + random(7);
_parent._y = starty + random(7);
Symbol 310 MovieClip Frame 5
_parent._x = startx + random(5);
_parent._y = starty + random(5);
Symbol 310 MovieClip Frame 6
_parent._x = startx;
_parent._y = starty;
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 9
stop();
Symbol 324 MovieClip Frame 16
stop();
Symbol 324 MovieClip Frame 23
stop();
Symbol 324 MovieClip Frame 30
stop();
Symbol 324 MovieClip Frame 37
stop();
Symbol 324 MovieClip Frame 50
stop();
Symbol 324 MovieClip Frame 57
stop();
Symbol 324 MovieClip Frame 64
stop();
Symbol 324 MovieClip Frame 71
stop();
Symbol 324 MovieClip Frame 92
stop();
Symbol 324 MovieClip Frame 106
stop();
Symbol 324 MovieClip Frame 131
stop();
Symbol 324 MovieClip Frame 138
stop();
Symbol 324 MovieClip Frame 146
stop();
Symbol 324 MovieClip Frame 154
stop();
Symbol 348 MovieClip Frame 1
if (this.hitTest(_root.game.bkg.enemy.enemy.hitlow)) {
rd = 1 + random(8);
if (rd < 3) {
_parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if (rd >= 7) {
_parent._parent._parent.sounds.gotoAndPlay("punch3");
}
_parent._parent._parent.score = _parent._parent._parent.score + (rd * 23);
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.bkg.enemy.AI.hit = 1;
_root.game.bkg.enemy.health = _root.game.bkg.enemy.health - (1 + rd);
_root.game.bkg.enemy.healthmax = _root.game.bkg.enemy.healthmax - (0 + (rd / 2));
if (0 >= _root.game.bkg.enemy.health) {
_root.game.bkg.enemy.enemy.gotoAndPlay("death");
} else {
_root.game.bkg.enemy.enemy.gotoAndPlay("hitlow");
}
if (_parent._parent.denemy < 0) {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx + ((7 * rd) * _root.game.bkg.enemy.mass);
} else {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx - ((7 * rd) * _root.game.bkg.enemy.mass);
}
}
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
play();
Symbol 360 MovieClip Frame 1
if (this.hitTest(_root.game.bkg.enemy.enemy.hithigh)) {
rd = 1 + (random(4) * hitpower);
if (rd < 3) {
_parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent._parent._parent.score = _parent._parent._parent.score + (rd * 23);
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.bkg.enemy.AI.hit = 1;
_root.game.bkg.enemy.health = _root.game.bkg.enemy.health - (2 + rd);
_root.game.bkg.enemy.healthmax = _root.game.bkg.enemy.healthmax - (0 + (rd / 2));
if (0 >= _root.game.bkg.enemy.health) {
_root.game.bkg.enemy.enemy.gotoAndPlay("death");
} else {
_root.game.bkg.enemy.enemy.gotoAndPlay("hithigh");
}
if (_parent._parent.denemy < 0) {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx + ((7 * rd) * _root.game.bkg.enemy.mass);
} else {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx - ((7 * rd) * _root.game.bkg.enemy.mass);
}
}
if (this.hitTest(_root.game.bkg.enemy.enemy.hitair)) {
rd = 1 + (random(4) * hitpower);
if (rd < 3) {
_parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent._parent._parent.score = _parent._parent._parent.score + (rd * 23);
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.bkg.enemy.AI.hit = 1;
_root.game.bkg.enemy.health = _root.game.bkg.enemy.health - (2 + rd);
_root.game.bkg.enemy.healthmax = _root.game.bkg.enemy.healthmax - (0 + (rd / 2));
if (0 >= _root.game.bkg.enemy.health) {
_root.game.bkg.enemy.enemy.gotoAndPlay("death");
} else {
_root.game.bkg.enemy.enemy.gotoAndPlay("hithigh");
}
if (_parent._parent.denemy < 0) {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx + ((7 * rd) * _root.game.bkg.enemy.mass);
} else {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx - ((7 * rd) * _root.game.bkg.enemy.mass);
}
}
Symbol 370 MovieClip Frame 1
if (this.hitTest(_root.game.bkg.enemy.enemy.hithigh)) {
rd = 1 + (random(4) * hitpower);
if (rd < 3) {
_parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent._parent._parent.score = _parent._parent._parent.score + (rd * 23);
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.bkg.enemy.AI.hit = 1;
_root.game.bkg.enemy.health = _root.game.bkg.enemy.health - (2 + rd);
_root.game.bkg.enemy.healthmax = _root.game.bkg.enemy.healthmax - (0 + (rd / 2));
if (0 >= _root.game.bkg.enemy.health) {
_root.game.bkg.enemy.enemy.gotoAndPlay("death");
} else {
_root.game.bkg.enemy.enemy.gotoAndPlay("hithigh");
}
if (_parent._parent.denemy < 0) {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx + ((7 * rd) * _root.game.bkg.enemy.mass);
} else {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx - ((7 * rd) * _root.game.bkg.enemy.mass);
}
}
if (this.hitTest(_root.game.bkg.enemy.enemy.hitair)) {
rd = 1 + (random(4) * hitpower);
if (rd < 3) {
_parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if ((rd >= 7) && (rd < 12)) {
_parent._parent._parent.sounds.gotoAndPlay("punch3");
}
if (rd >= 12) {
_parent._parent._parent.sounds.gotoAndPlay("punch4");
}
_parent._parent._parent.score = _parent._parent._parent.score + (rd * 23);
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.bkg.enemy.AI.hit = 1;
_root.game.bkg.enemy.health = _root.game.bkg.enemy.health - (2 + rd);
_root.game.bkg.enemy.healthmax = _root.game.bkg.enemy.healthmax - (0 + (rd / 2));
if (0 >= _root.game.bkg.enemy.health) {
_root.game.bkg.enemy.enemy.gotoAndPlay("death");
} else {
_root.game.bkg.enemy.enemy.gotoAndPlay("hithigh");
}
if (_parent._parent.denemy < 0) {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx + ((7 * rd) * _root.game.bkg.enemy.mass);
} else {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx - ((7 * rd) * _root.game.bkg.enemy.mass);
}
}
Symbol 374 MovieClip Frame 1
if (this.hitTest(_root.game.bkg.enemy.enemy.hithigh)) {
rd = 1 + random(10);
if (rd < 3) {
_parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if (rd >= 7) {
_parent._parent._parent.sounds.gotoAndPlay("punch3");
}
_parent._parent._parent.score = _parent._parent._parent.score + (rd * 23);
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.bkg.enemy.AI.hit = 1;
_root.game.bkg.enemy.health = _root.game.bkg.enemy.health - (2 + rd);
_root.game.bkg.enemy.healthmax = _root.game.bkg.enemy.healthmax - (0 + (rd / 2));
if (0 >= _root.game.bkg.enemy.health) {
_root.game.bkg.enemy.enemy.gotoAndPlay("death");
} else {
_root.game.bkg.enemy.enemy.gotoAndPlay("hithigh");
}
if (_parent._parent.denemy < 0) {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx + ((7 * rd) * _root.game.bkg.enemy.mass);
} else {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx - ((7 * rd) * _root.game.bkg.enemy.mass);
}
}
if (this.hitTest(_root.game.bkg.enemy.enemy.hitair)) {
rd = 1 + random(10);
if (rd < 3) {
_parent._parent._parent.sounds.gotoAndPlay("punch1");
}
if ((rd >= 3) && (rd < 7)) {
_parent._parent._parent.sounds.gotoAndPlay("punch2");
}
if (rd >= 7) {
_parent._parent._parent.sounds.gotoAndPlay("punch3");
}
_parent._parent._parent.score = _parent._parent._parent.score + (rd * 23);
_parent.flare._xscale = 15 * rd;
_parent.flare._yscale = 15 * rd;
_parent.flare.gotoAndPlay(2);
_root.game.bkg.enemy.AI.hit = 1;
_root.game.bkg.enemy.health = _root.game.bkg.enemy.health - (2 + rd);
_root.game.bkg.enemy.healthmax = _root.game.bkg.enemy.healthmax - (0 + (rd / 2));
if (0 >= _root.game.bkg.enemy.health) {
_root.game.bkg.enemy.enemy.gotoAndPlay("death");
} else {
_root.game.bkg.enemy.enemy.gotoAndPlay("hithigh");
}
if (_parent._parent.denemy < 0) {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx + ((7 * rd) * _root.game.bkg.enemy.mass);
} else {
_root.game.bkg.enemy.vx = _root.game.bkg.enemy.vx - ((7 * rd) * _root.game.bkg.enemy.mass);
}
}
Symbol 392 MovieClip Frame 1
stop();
rp = random(3);
if (rp == 0) {
gotoAndPlay (2);
}
if (rp == 1) {
gotoAndPlay (6);
}
if (rp == 2) {
stop();
}
Symbol 392 MovieClip Frame 2
play();
Symbol 392 MovieClip Frame 5
gotoAndPlay (1);
Symbol 392 MovieClip Frame 6
play();
Symbol 392 MovieClip Frame 9
gotoAndPlay (1);
Symbol 417 MovieClip Frame 1
play();
_parent.hit = 0;
stop();
Symbol 417 MovieClip Frame 10
if (_parent._parent.spacebar.spacebar == 1) {
gotoAndStop (1);
}
_parent.hit = 0;
play();
Symbol 417 MovieClip Frame 22
gotoAndPlay (10);
Symbol 417 MovieClip Frame 25
stop();
Symbol 417 MovieClip Frame 32
play();
Symbol 417 MovieClip Frame 45
stop();
Symbol 417 MovieClip Frame 46
play();
Symbol 417 MovieClip Frame 47
play();
Symbol 417 MovieClip Frame 49
rrr = random(2);
if (rrr == 0) {
_parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent.sounds.gotoAndPlay("swish2");
}
Symbol 417 MovieClip Frame 55
_parent.attacking = 0;
gotoAndStop (25);
Symbol 417 MovieClip Frame 67
play();
rah = random(4);
if (rah == 1) {
gotoAndPlay (73);
}
play();
rrr = random(2);
if (rrr == 0) {
_parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 360 MovieClip "hittest" in Symbol 417 MovieClip Frame 69
onClipEvent (load) {
hitpower = 1;
}
Symbol 417 MovieClip Frame 71
_parent.attacking = 0;
gotoAndPlay (1);
Symbol 417 MovieClip Frame 77
rrr = random(2);
if (rrr == 0) {
_parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent.sounds.gotoAndPlay("swish2");
}
Instance of Symbol 370 MovieClip "hittest" in Symbol 417 MovieClip Frame 78
onClipEvent (load) {
hitpower = 6;
}
Symbol 417 MovieClip Frame 82
_parent.attacking = 0;
gotoAndPlay (1);
Symbol 417 MovieClip Frame 90
play();
Symbol 417 MovieClip Frame 92
rrr = random(2);
if (rrr == 0) {
_parent._parent.sounds.gotoAndPlay("swish1");
} else {
_parent._parent.sounds.gotoAndPlay("swish2");
}
Symbol 417 MovieClip Frame 106
_parent.attacking = 0;
gotoAndPlay (32);
Symbol 417 MovieClip Frame 108
play();
_parent.hit = 1;
Symbol 417 MovieClip Frame 116
_parent.hit = 0;
gotoAndPlay (10);
Symbol 417 MovieClip Frame 118
play();
_parent.hit = 1;
Symbol 417 MovieClip Frame 126
_parent.hit = 0;
gotoAndPlay (10);
Symbol 417 MovieClip Frame 144
stop();
Symbol 417 MovieClip Frame 146
play();
_parent.hit = 1;
Symbol 417 MovieClip Frame 156
rt = random(4);
if (rt == 2) {
gotoAndPlay (158);
} else {
_parent.hit = 0;
gotoAndPlay (10);
}
Symbol 417 MovieClip Frame 158
play();
_parent.hit = 1;
Symbol 417 MovieClip Frame 175
rer = random(3);
if (rer == 1) {
_parent.hit = 0;
gotoAndPlay (1);
} else {
gotoAndPlay (158);
}
Symbol 418 MovieClip Frame 1
if (0 < health) {
enemyx = _parent.bkg._x + _parent.bkg.enemy._x;
if (jump == 1) {
if (direction == 0) {
vy = vy - a;
this._y = this._y - vy;
if (0.1 >= vy) {
direction = 1;
}
}
if (direction == 1) {
vy = vy + a;
this._y = this._y + vy;
if (this._y >= 0) {
jump = 0;
attack = 2;
this._y = 0;
attacking = 0;
walking = 0;
dude.gotoAndPlay("walking");
attack = 2;
}
}
}
if (hit == 0) {
if (_parent.dudeyes.yes == 1) {
if (jump == 1) {
if (Key.isDown(Key.SPACE)) {
attacking = 1;
dude.gotoAndPlay("attack3");
_parent.dudeyes.yes = 0;
_parent.dudeyes.play();
}
}
if (duck == 1) {
if (Key.isDown(Key.SPACE)) {
dude.gotoAndPlay("attack1");
_parent.dudeyes.yes = 0;
_parent.dudeyes.play();
}
if (!Key.isDown(Key.DOWN)) {
duck = 0;
attacking = 0;
dude.gotoAndPlay("walking");
}
}
if (duck == 0) {
if (jump == 0) {
if (Key.isDown(Key.DOWN)) {
if (duck == 0) {
vxt = 0;
walking = 0;
dude.gotoAndStop("ducking");
attack = 1;
duck = 1;
}
}
if (!Key.isDown(Key.DOWN)) {
duck = 0;
attack = 2;
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (jump == 0) {
dude.gotoAndPlay("stopped");
walking = 0;
vxt = 0;
}
}
}
if (Key.isDown(Key.RIGHT)) {
if (walking == 0) {
dude.gotoAndPlay("walking");
walking = 1;
}
vxt = speed;
}
if (Key.isDown(Key.LEFT)) {
if (walking == 0) {
dude.gotoAndPlay("walking");
walking = 1;
}
vxt = -speed;
}
if (Key.isDown(Key.SPACE)) {
vxt = 0;
dude.gotoAndPlay("attack2");
dude.gotoAndPlay("attack2");
walking = 0;
_parent.dudeyes.yes = 0;
_parent.dudeyes.play();
dude.gotoAndPlay("attack2");
}
if (Key.isDown(Key.UP)) {
if (jump == 0) {
dude.gotoAndStop("jumping");
attack = 3;
jump = 1;
vy = (jumpspeed - 10) + random(15);
direction = 0;
}
}
}
}
}
}
}
if (hit == 1) {
vxt = 0;
}
vxold = vx;
dvx = (vxt - vxold) * 0.4;
vx = dvx + vxold;
if (0.1 < vx) {
if (this._x < 190) {
this._x = this._x + vx;
} else if (-215 < _parent.bkg._x) {
_parent.fence._x = _parent.fence._x - (1.5 * vx);
_parent.bkg._x = _parent.bkg._x - vx;
if (_parent.bkg._x < -215) {
_parent.bkg._x = -215;
}
}
} else if (-190 < this._x) {
this._x = this._x + vx;
} else if (_parent.bkg._x < 215) {
_parent.fence._x = _parent.fence._x - (1.5 * vx);
_parent.bkg._x = _parent.bkg._x - vx;
if (215 < _parent.bkg._x) {
_parent.bkg._x = 215;
}
}
denemy = this._x - (_parent.bkg._x + _parent.bkg.enemy._x);
if (jump == 1) {
if (0 < denemy) {
this._xscale = -100;
if (0 < _parent.bkg.enemy.health) {
_parent.bkg.enemy.enemy._xscale = -100;
}
} else {
if (0 < _parent.bkg.enemy.health) {
_parent.bkg.enemy.enemy._xscale = 100;
}
this._xscale = 100;
}
} else {
if (0 < denemy) {
this._xscale = -100;
if (0 < _parent.bkg.enemy.health) {
_parent.bkg.enemy.enemy._xscale = -100;
}
} else {
if (0 < _parent.bkg.enemy.health) {
_parent.bkg.enemy.enemy._xscale = 100;
}
this._xscale = 100;
}
if ((-40 < denemy) && (denemy < 40)) {
vx = vx / 2;
_parent.bkg.enemy.vx = _parent.bkg.enemy.vx + (2 * vx);
}
if ((-15 < denemy) && (denemy < 15)) {
if (0 >= denemy) {
vx = -10;
} else {
vx = 10;
}
}
}
}
Instance of Symbol 109 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
rate = 1;
}
Symbol 418 MovieClip Frame 2
gotoAndPlay (1);
Symbol 423 MovieClip Frame 30
if (0 >= _parent.dude.health) {
_parent.loser.gotoAndPlay(1);
stop();
}
if (0 >= _parent.bkg.enemy.health) {
_parent.play();
}
Symbol 423 MovieClip Frame 59
gotoAndPlay (1);
Symbol 432 MovieClip Frame 1
hbonus = int(_parent.dude.health) * 20;
health = int(_parent.dude.health);
_parent.score = int(_parent.score + hbonus);
Symbol 432 MovieClip Frame 85
_parent.gotoAndPlay(frame);
stop();
Symbol 437 MovieClip Frame 30
if (0 >= _parent.dude.health) {
_parent.loser.gotoAndPlay(1);
stop();
}
if (0 >= _parent.bkg.enemy.health) {
_parent.play();
}
Symbol 437 MovieClip Frame 59
gotoAndPlay (1);
Symbol 438 MovieClip Frame 1
hbonus = int(_parent.dude.health) * 20;
health = int(_parent.dude.health);
_parent.score = int(_parent.score + hbonus);
Symbol 438 MovieClip Frame 85
_parent.gotoAndPlay(frame);
stop();
Symbol 444 MovieClip Frame 1
hbonus = int(_parent.dude.health) * 20;
health = int(_parent.dude.health);
_parent.score = int(_parent.score + hbonus);
Symbol 444 MovieClip Frame 85
_parent.gotoAndPlay(frame);
stop();
Symbol 445 MovieClip Frame 1
score = 0;
stop();
Instance of Symbol 276 MovieClip in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 >= _parent.bkg.enemy.health) {
this._xscale = 0;
} else {
this._xscale = _parent.bkg.enemy.healthmax;
}
}
Instance of Symbol 277 MovieClip in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 >= _parent.bkg.enemy.health) {
this._xscale = 0;
} else {
this._xscale = _parent.bkg.enemy.health;
}
}
Instance of Symbol 281 MovieClip in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 >= _parent.dude.health) {
this._xscale = 0;
} else {
this._xscale = _parent.dude.healthmax;
}
}
Symbol 445 MovieClip Frame 2
stop();
Instance of Symbol 418 MovieClip "dude" in Symbol 445 MovieClip Frame 2
onClipEvent (load) {
xo = this._x;
yo = this._y;
jump = 0;
vy = 0;
k = 1;
a = 3;
vx = 10;
walking = 0;
attacking = 0;
duck = 0;
skip = 0;
_parent.yes = 1;
speed = 8;
jumpspeed = 30;
vxt = 0;
vx = 0;
health = 100;
healthmax = 100;
hit = 0;
}
Instance of Symbol 421 MovieClip in Symbol 445 MovieClip Frame 2
onClipEvent (enterFrame) {
if (0 >= _parent.dude.health) {
this._xscale = 0;
} else {
this._xscale = _parent.dude.health;
}
}
Symbol 445 MovieClip Frame 3
stop();
Instance of Symbol 432 MovieClip in Symbol 445 MovieClip Frame 3
onClipEvent (load) {
frame = 11;
}
Symbol 445 MovieClip Frame 11
bkg.gotoAndPlay(3);
stop();
Instance of Symbol 276 MovieClip in Symbol 445 MovieClip Frame 11
onClipEvent (enterFrame) {
if (0 >= _parent.bkg.enemy.health) {
this._xscale = 0;
} else {
this._xscale = _parent.bkg.enemy.healthmax;
}
}
Instance of Symbol 277 MovieClip in Symbol 445 MovieClip Frame 11
onClipEvent (enterFrame) {
if (0 >= _parent.bkg.enemy.health) {
this._xscale = 0;
} else {
this._xscale = _parent.bkg.enemy.health;
}
}
Instance of Symbol 281 MovieClip in Symbol 445 MovieClip Frame 11
onClipEvent (enterFrame) {
if (0 >= _parent.dude.health) {
this._xscale = 0;
} else {
this._xscale = _parent.dude.healthmax;
}
}
Symbol 445 MovieClip Frame 12
stop();
Instance of Symbol 418 MovieClip "dude" in Symbol 445 MovieClip Frame 12
onClipEvent (load) {
xo = this._x;
yo = this._y;
jump = 0;
vy = 0;
k = 1;
a = 3;
vx = 10;
walking = 0;
attacking = 0;
duck = 0;
skip = 0;
_parent.yes = 1;
speed = 8;
jumpspeed = 30;
vxt = 0;
vx = 0;
health = 100;
healthmax = 100;
hit = 0;
}
Instance of Symbol 421 MovieClip in Symbol 445 MovieClip Frame 12
onClipEvent (enterFrame) {
if (0 >= _parent.dude.health) {
this._xscale = 0;
} else {
this._xscale = _parent.dude.health;
}
}
Symbol 445 MovieClip Frame 13
stop();
Instance of Symbol 438 MovieClip in Symbol 445 MovieClip Frame 13
onClipEvent (load) {
frame = 20;
}
Symbol 445 MovieClip Frame 20
bkg.gotoAndPlay(5);
stop();
Symbol 445 MovieClip Frame 21
stop();
Instance of Symbol 418 MovieClip "dude" in Symbol 445 MovieClip Frame 21
onClipEvent (load) {
xo = this._x;
yo = this._y;
jump = 0;
vy = 0;
k = 1;
a = 3;
vx = 10;
walking = 0;
attacking = 0;
duck = 0;
skip = 0;
_parent.yes = 1;
speed = 8;
jumpspeed = 30;
vxt = 0;
vx = 0;
health = 100;
healthmax = 100;
hit = 0;
}
Instance of Symbol 421 MovieClip in Symbol 445 MovieClip Frame 21
onClipEvent (enterFrame) {
if (0 >= _parent.dude.health) {
this._xscale = 0;
} else {
this._xscale = _parent.dude.health;
}
}
Symbol 445 MovieClip Frame 22
stop();
Instance of Symbol 444 MovieClip in Symbol 445 MovieClip Frame 22
onClipEvent (load) {
frame = 1;
}
Symbol 450 MovieClip Frame 1
timer = new Date();
t1 = 40000;
Symbol 450 MovieClip Frame 2
timer = new Date();
t2 = t1;
t1 = timer.getTime();
dt = t1 - t2;
framerate = 5200 / dt;
Symbol 450 MovieClip Frame 7
gotoAndPlay (2);