Frame 1
stop();
Frame 36
stopAllSounds();
Stage.showMenu = false;
Frame 82
game = "g_start";
Frame 96
stop();
Frame 97
stopAllSounds();
Frame 210
stopAllSounds();
_root.gotoAndPlay(game);
Frame 211
stopAllSounds();
Frame 212
stop();
Frame 213
nmbr = 1;
life = 100;
removeO = false;
stop();
Instance of Symbol 163 MovieClip "parti" in Frame 213
onClipEvent (load) {
if (_name != "parti") {
_x = _root.Firework._x;
_y = _root.Firework._y;
speed = 3;
_rotation = (_root.Firework._rotation - 180);
xspeed = speed * Math.sin(_rotation * (Math.PI/180));
yspeed = speed * Math.cos(_rotation * (Math.PI/180));
_x = (_x + (xspeed * 3));
_y = (_y - (yspeed * 3));
_rotation = ((_root.Firework._rotation - 180) + (random(50) - random(50)));
xspeed = speed * Math.sin(_rotation * (Math.PI/180));
yspeed = speed * Math.cos(_rotation * (Math.PI/180));
}
}
onClipEvent (enterFrame) {
if (_name != "parti") {
_y = (_y - yspeed);
_x = (_x + xspeed);
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
if ((_xscale <= 0) || (_root.removeO == true)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 168 MovieClip "targ" in Frame 213
onClipEvent (load) {
stop();
}
Instance of Symbol 175 MovieClip "Firework" in Frame 213
onClipEvent (load) {
speed = 13;
go = 1;
x = _x - 1000;
y = _y;
intPart = 1;
time = intPart;
die = false;
fire = new Sound(this);
fire.attachSound("fire");
boom = new Sound(this);
boom.attachSound("boom");
cli = new Sound(this);
cli.attachSound("cli");
}
onClipEvent (mouseDown) {
if (go == 1) {
go = 2;
_x = 275;
_y = 420;
tgtX = _root._xmouse;
tgtY = _root._ymouse;
_root.targ._x = tgtX;
_root.targ._y = tgtY;
fire.start(0, 500);
cli.start();
_root.targ.gotoAndPlay(1);
_rotation = ((Math.atan2(_y - _root._ymouse, _x - _root._xmouse) / (Math.PI/180)) - 90);
xspeed = speed * Math.sin(_rotation * (Math.PI/180));
yspeed = speed * Math.cos(_rotation * (Math.PI/180));
}
}
onClipEvent (enterFrame) {
if (go == 2) {
go = 3;
}
if (go == 4) {
_x = x;
_y = y;
fire.stop();
boom.start();
die = false;
go = 1;
_root.targ._x = 1000;
}
if (go == 3) {
_x = (_x + xspeed);
_y = (_y - yspeed);
time = time - 1;
if (time == 0) {
time = intPart;
duplicateMovieClip (_root.parti, "P" + _root.nmbr, _root.nmbr);
_root.nmbr = _root.nmbr + 1;
if (_root.nmbr >= 50000) {
_root.nmbr = 1;
}
}
if (hitTest(_root.targ._x, _root.targ._y, true) || (_y < tgtY)) {
var i = 0;
while (i < 100) {
duplicateMovieClip (_root.parti2, "P" + _root.nmbr, _root.nmbr);
_root.nmbr = _root.nmbr + 1;
if (_root.nmbr >= 50000) {
_root.nmbr = 1;
}
i++;
}
go = 4;
}
if (die == true) {
go = 4;
}
}
}
Instance of Symbol 176 MovieClip "parti2" in Frame 213
onClipEvent (load) {
if (_name != "parti2") {
_x = _root.Firework._x;
_y = _root.Firework._y;
xspeed = random(20) - random(20);
yspeed = random(20) - random(20);
gotoAndStop(random(5) + 1 +211);
_rotation = random(360);
}
}
onClipEvent (enterFrame) {
if (_name != "parti2") {
_y = (_y + yspeed);
_x = (_x + xspeed);
yspeed = yspeed * 0.9;
xspeed = xspeed * 0.9;
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
if ((_xscale <= 0) || (_root.removeO == true)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 87 MovieClip "enm2" in Frame 213
onClipEvent (load) {
if (_name != "enm2") {
xspeed = 0;
_y = -20;
_x = random(550);
accel = random(2);
if ((accel = 0)) {
accel = 1;
}
if ((accel = 1)) {
accel = -1;
}
yspeed = 3;
dist = (Math.random(100) + 100) * accel;
x = _x;
dead = false;
}
}
onClipEvent (enterFrame) {
if ((_name != "enm2") && (dead == false)) {
xspeed = xspeed + accel;
if (((dist / 2) > (_x - x)) && (accel < 0)) {
accel = accel * -1;
} else if (((dist / 2) < (_x - x)) && (accel > 0)) {
accel = accel * -1;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if (hitTest(_root.Firework)) {
var i = 0;
while (i < 100) {
duplicateMovieClip (_root.parti2, "P" + _root.nmbr, _root.nmbr);
_root.nmbr = _root.nmbr + 1;
if (_root.nmbr >= 50000) {
_root.nmbr = 1;
}
i++;
}
_root.Firework.die = true;
this.play();
dead = true;
_root.score = _root.score + 100;
}
if (_y > 325) {
this.play();
dead = true;
_root.life = _root.life - 5;
}
if ((_y > 450) || (_root.removeO == true)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 178 MovieClip "actions" in Frame 213
onClipEvent (load) {
_root.score = 0;
_root.life = 100;
nmbr = 50002;
level = 1;
nextL = 25;
up = 25;
xx = 0;
}
onClipEvent (enterFrame) {
if (level > 45) {
level = 45;
}
if (_root.life <= 0) {
_root.Firework.fire.stop();
_root.play();
}
if (_root.score >= nextL) {
level = level + 1;
nextL = nextL + up;
up = up + 25;
}
if (xx == 0) {
x2 = 1;
if (level >= 4) {
x2 = random(2) + 1;
}
if (level >= 8) {
x2 = random(3) + 1;
}
if (level >= 15) {
x2 = random(4) + 1;
}
duplicateMovieClip (_root["enm" + x2], "bad" + nmbr, nmbr);
nmbr++;
if (nmbr > 100000) {
nmbr = 50002;
}
}
xx = random(100 - (level * 2));
}
Instance of Symbol 87 MovieClip "enm1" in Frame 213
onClipEvent (load) {
if (_name != "enm1") {
xspeed = random(7) - random(7);
_y = -20;
_x = random(550);
yspeed = random(5) + 2;
dead = false;
}
}
onClipEvent (enterFrame) {
if ((_name != "enm1") && (dead == false)) {
_y = (_y + yspeed);
_x = (_x + xspeed);
if (hitTest(_root.Firework)) {
var i = 0;
while (i < 100) {
duplicateMovieClip (_root.parti2, "P" + _root.nmbr, _root.nmbr);
_root.nmbr = _root.nmbr + 1;
if (_root.nmbr >= 50000) {
_root.nmbr = 1;
}
i++;
}
_root.Firework.die = true;
this.play();
dead = true;
_root.score = _root.score + 25;
}
if (_y > 325) {
this.play();
dead = true;
_root.life = _root.life - 5;
}
if ((((_x < -20) || (_x > 570)) || (_y > 450)) || (_root.removeO == true)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 87 MovieClip "enm3" in Frame 213
onClipEvent (load) {
if (_name != "enm3") {
xspeed = random(7) - random(7);
_y = -20;
_x = random(550);
yspeed = random(5) + 2;
dead = false;
s1 = new Sound(this);
s1.attachSound("laz");
}
}
onClipEvent (enterFrame) {
if ((_name != "enm3") && (dead == false)) {
_y = (_y + yspeed);
_x = (_x + xspeed);
xx = random(48);
if ((((xx == 0) && (_y > 150)) && (_x > 10)) && (_x < 540)) {
duplicateMovieClip (_root.bull, "bulie" + _root.nmbr, _root.nmbr);
_root["bulie" + _root.nmbr]._x = _x;
_root["bulie" + _root.nmbr]._y = _y + 10;
_root["bulie" + _root.nmbr].speed = 10;
_root.nmbr = _root.nmbr + 1;
if (_root.nmbr >= 50000) {
_root.nmbr = 1;
}
s1.start();
s1.start();
s1.start();
s1.start();
}
if (hitTest(_root.Firework)) {
var i = 0;
while (i < 100) {
duplicateMovieClip (_root.parti2, "P" + _root.nmbr, _root.nmbr);
_root.nmbr = _root.nmbr + 1;
if (_root.nmbr >= 50000) {
_root.nmbr = 1;
}
i++;
}
_root.Firework.die = true;
this.play();
dead = true;
_root.score = _root.score + 150;
}
if (_y > 325) {
this.play();
dead = true;
_root.life = _root.life - 5;
}
if ((((_x < -20) || (_x > 570)) || (_y > 450)) || (_root.removeO == true)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 87 MovieClip "enm4" in Frame 213
onClipEvent (load) {
if (_name != "enm4") {
xspeed = 0;
_y = -20;
s1 = new Sound(this);
s1.attachSound("fire");
_x = random(550);
accel = random(2);
if ((accel = 0)) {
accel = 1;
}
if ((accel = 1)) {
accel = -1;
}
yspeed = 3;
dist = (Math.random(100) + 100) * accel;
x = _x;
dead = false;
}
}
onClipEvent (enterFrame) {
if ((_name != "enm4") && (dead == false)) {
xspeed = xspeed + accel;
if (((dist / 2) > (_x - x)) && (accel < 0)) {
accel = accel * -1;
} else if (((dist / 2) < (_x - x)) && (accel > 0)) {
accel = accel * -1;
}
xx = random(48);
if ((((xx == 0) && (_y > 150)) && (_x > 10)) && (_x < 540)) {
duplicateMovieClip (_root.bull, "bulie" + _root.nmbr, _root.nmbr);
_root["bulie" + _root.nmbr]._x = _x;
_root["bulie" + _root.nmbr]._y = _y + 10;
_root["bulie" + _root.nmbr].speed = 10;
_root.nmbr = _root.nmbr + 1;
s1.start();
s1.start();
s1.start();
s1.start();
if (_root.nmbr >= 50000) {
_root.nmbr = 1;
}
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if (hitTest(_root.Firework)) {
var i = 0;
while (i < 100) {
duplicateMovieClip (_root.parti2, "P" + _root.nmbr, _root.nmbr);
_root.nmbr = _root.nmbr + 1;
if (_root.nmbr >= 50000) {
_root.nmbr = 1;
}
i++;
}
_root.Firework.die = true;
this.play();
dead = true;
_root.score = _root.score + 225;
}
if (_y > 325) {
this.play();
dead = true;
_root.life = _root.life - 5;
}
if ((_y > 450) || (_root.removeO == true)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 180 MovieClip "bull" in Frame 213
onClipEvent (enterFrame) {
if (_name != "bull") {
_y = (_y + speed);
if (_y > 325) {
dead = true;
_root.life = _root.life - 2;
this.removeMovieClip();
}
}
}
Frame 214
removeO = true;
stop();
Frame 215
_root.numenemy = 2;
_root.scorepass = 100;
_root.score = 0;
_quality = "High";
level = 1;
Stage.showMenu = true;
_root.style = "Gay";
_root.stylepoints = 0;
_root.stylepointaverage = 1;
stop();
st.stop();
st.stop();
Frame 216
health = 100;
_root.attacking = false;
Stage.showMenu = false;
_root.blocks = new Sound();
_root.blocks.attachSound("clash");
_root.swipe = new Sound();
_root.swipe.attachSound("swipe");
_root.swipe2 = new Sound();
_root.swipe2.attachSound("swipe2");
enemy._x = 550;
enemynumber = 1;
stop();
hg = new Sound();
hg.attachSound("HandGun");
sk = new Sound();
sk.attachSound("slashed");
_root.shoot = false;
_root.shoot2 = false;
_root.bullets._visible = false;
Instance of Symbol 238 MovieClip "ground" in Frame 216
onClipEvent (load) {
this._visible = false;
_root.falltime = 0;
groundspeed = 8;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) and (!jumping)) {
vel_y = 43;
jumping = true;
_root.character.gotoAndStop("2");
}
if (jumping == true) {
vel_y = vel_y - 2;
if (vel_y <= -15) {
vel_y = -15;
}
if ((((vel_y < 15) and (_root.character.slashdown == false)) and (_root.character.shoot == false)) and (_root.character.spinning == false)) {
_root.character.gotoAndStop("3");
_root.falltime2++;
}
_root.character._y = _root.character._y - vel_y;
}
if (this.hitTest(_root.character._x, _root.character._y + 10, true)) {
vel_y = 0;
_root.character.gotoAndStop(1);
_root.falling = false;
_root.falltime = 0;
jumping = false;
} else {
_root.character._y = _root.character._y + 20;
_root.falltime++;
if ((jumping == false) and (_root.falltime >= 5)) {
_root.character.gotoAndStop(3);
_root.falling = true;
}
}
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if (this.hitTest(_root.character._x, _root.character._y, true)) {
_root.character._y = _root.character._y - 5;
}
}
Instance of Symbol 240 MovieClip in Frame 216
onClipEvent (enterFrame) {
this._x = _root.ground._x;
this._y = _root.ground._y;
}
Instance of Symbol 276 MovieClip in Frame 216
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 100;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -100;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if (((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else if (_root.attacking == false) {
this.gotoAndStop(2);
}
} else if (((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y;
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
}
}
if ((this.hitTest(_root.bullets) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(31);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
}
Instance of Symbol 276 MovieClip in Frame 216
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 100;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -100;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if (((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else if (_root.attacking == false) {
this.gotoAndStop(2);
}
} else if (((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y;
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
}
}
if ((this.hitTest(_root.bullets) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(31);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
}
Instance of Symbol 369 MovieClip "character" in Frame 216
onClipEvent (load) {
speed2 = 8;
_root.scrollright = false;
_root.scrollleft = false;
_root.stopscroll2 = false;
_root.stopscroll = false;
_x = 200;
boundry = 200;
_x = 325;
boundry2 = 325;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(this._x + 30, this._y - 25, true)) {
_root.stopscroll = true;
} else {
_root.stopscroll = false;
}
if (_root.ground.hitTest(this._x - 30, this._y - 25, true)) {
_root.stopscroll2 = true;
} else {
_root.stopscroll2 = false;
}
if (Key.isDown(39) && (!_root.ground.hitTest(this._x + 15, this._y - 25, true))) {
if (Key.isDown(40)) {
_xscale = -100;
} else {
_xscale = 100;
}
if (this._x < boundry2) {
this._x = this._x + speed2;
} else {
_root.scrollleft = true;
}
} else if (Key.isDown(37) && (!_root.ground.hitTest(this._x - 15, this._y - 25, true))) {
if (Key.isDown(40)) {
_xscale = 100;
} else {
_xscale = -100;
}
if (this._x > boundry) {
this._x = this._x - speed2;
} else {
_root.scrollright = true;
}
}
if (_root.ground.hitTest(this._x + 10) and (_xscale < 0)) {
this._x = this._x + 20;
} else if (_root.ground.hitTest(this._x - 10) and (_xscale > 0)) {
this._x = this._x - 20;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 39) {
_root.scrollleft = false;
} else if (Key.getCode() == 37) {
_root.scrollright = false;
}
}
Instance of Symbol 372 MovieClip "bullets" in Frame 216
onClipEvent (enterFrame) {
this._x = _root.character._x;
this._y = _root.character._y;
if (_root.character._xscale > 0) {
_xscale = 100;
} else {
_xscale = -100;
}
if (_root.shoot == true) {
this.gotoAndStop(2);
} else if (_root.shoot2 == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
if ((_root.shoot2 == false) and (_root.shoot == false)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 375 MovieClip in Frame 216
onClipEvent (enterFrame) {
_root.stylepoints = _root.stylepoints - 0.05;
if (_root.stylepoints <= 0) {
_root.style = "Gay";
_root.stylepoints = 0;
_root.stylepointaverage = _root.stylepointaverage + 0;
} else if ((_root.stylepoints > 10) and (_root.stylepoints <= 20)) {
_root.style = "Dope";
_root.stylepointaverage = _root.stylepointaverage + 2;
} else if ((_root.stylepoints > 20) and (_root.stylepoints <= 30)) {
_root.style = "Cool";
_root.stylepointaverage = _root.stylepointaverage + 4;
} else if ((_root.stylepoints > 30) and (_root.stylepoints <= 40)) {
_root.style = "Crazy";
_root.stylepointaverage = _root.stylepointaverage + 6;
} else if ((_root.stylepoints > 40) and (_root.stylepoints <= 50)) {
_root.style = "Awsome!";
_root.stylepointaverage = _root.stylepointaverage + 8;
} else if ((_root.stylepoints > 50) and (_root.stylepoints <= 60)) {
_root.style = "Sweet!";
_root.stylepointaverage = _root.stylepointaverage + 9;
} else if ((_root.stylepoints > 60) and (_root.stylepoints <= 70)) {
_root.style = "Stylish!";
_root.stylepointaverage = _root.stylepointaverage + 10;
} else if ((_root.stylepoints > 70) and (_root.stylepoints <= 80)) {
_root.style = "SuperStylish";
_root.stylepointaverage = _root.stylepointaverage + 11;
_root.stylepoints = _root.stylepoints - 0.05;
} else if ((_root.stylepoints > 80) and (_root.stylepoints <= 90)) {
_root.style = "Fuckin'Sweet!";
_root.stylepoints = _root.stylepoints - 0.1;
_root.stylepointaverage = _root.stylepointaverage + 12;
} else if ((_root.stylepoints > 90) and (_root.stylepoints <= 100)) {
_root.style = "Fuckin'SSStylish!";
_root.stylepoints = _root.stylepoints - 0.15;
_root.stylepointaverage = _root.stylepointaverage + 13;
} else if ((_root.stylepoints > 100) and (_root.stylepoints <= 110)) {
_root.style = "Your'OnCrack!";
_root.stylepoints = _root.stylepoints - 0.25;
_root.stylepointaverage = _root.stylepointaverage + 15;
} else if (_root.stylepoints > 110) {
_root.stylepoints = 109;
_root.stylepointaverage = _root.stylepointaverage + 16;
}
if (_root.health <= 0) {
_root.gotoAndStop("gameover");
}
if (_root.score >= _root.scorepass) {
_root.play();
_root.scorepass = _root.scorepass + 250;
}
}
Instance of Symbol 380 MovieClip in Frame 216
onClipEvent (enterFrame) {
if ((_root.stylepoints >= 0) and (_root.stylepoints <= 20)) {
_root.style = "Gay";
}
_xscale = _root.stylepoints;
}
Instance of Symbol 388 MovieClip in Frame 216
onClipEvent (enterFrame) {
this._xscale = _root.health;
}
Frame 217
level++;
stop();
_root.scorepass = _root.scorepass - 100;
Instance of Symbol 276 MovieClip in Frame 217
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 100;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -100;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if (((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else if (_root.attacking == false) {
this.gotoAndStop(2);
}
} else if (((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y;
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
}
}
if ((this.hitTest(_root.bullets) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(31);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
}
Frame 218
level++;
stop();
_root.scorepass = _root.scorepass - 50;
Instance of Symbol 276 MovieClip in Frame 218
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 100;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -100;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if (((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else if (_root.attacking == false) {
this.gotoAndStop(2);
}
} else if (((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y;
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
}
}
if ((this.hitTest(_root.bullets) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(31);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
}
Frame 219
level++;
stop();
_quality = "MEDIUM";
_root.scorepass = _root.scorepass - 25;
Instance of Symbol 406 MovieClip in Frame 219
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 20;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.attackframe.attacking = false;
movespeed = 10;
movespeed2 = 30;
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 20;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 80;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -80;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if ((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(2);
}
} else if ((((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) and (this.attackframe.attacking == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y + 50;
if (((((this.gethit.hitTest(_root.character) or this.attackframe.hitTest(_root.character)) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
this.gotoAndPlay(3);
this.deathanimation = true;
hp--;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
this.gotoAndPlay(3);
this.deathanimation = true;
hp--;
hits.start();
}
if (((this.gethit.hitTest(_root.bullets) or this.attackframe.hitTest(_root.bullets)) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(23);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
if (this.attackframe.moveback == true) {
if (this._xscale > 0) {
this._x = this._x + movespeed;
} else if (this._xscale < 0) {
this._x = this._x - movespeed;
}
} else if (this.attackframe.movefast == true) {
if (this._xscale > 0) {
this._x = this._x - movespeed2;
} else if (this._xscale < 0) {
this._x = this._x + movespeed2;
}
}
}
Frame 220
level++;
stop();
Instance of Symbol 276 MovieClip in Frame 220
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 100;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -100;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if (((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else if (_root.attacking == false) {
this.gotoAndStop(2);
}
} else if (((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y;
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
}
}
if ((this.hitTest(_root.bullets) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(31);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
}
Instance of Symbol 406 MovieClip in Frame 220
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 20;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.attackframe.attacking = false;
movespeed = 10;
movespeed2 = 30;
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 20;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 80;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -80;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if ((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(2);
}
} else if ((((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) and (this.attackframe.attacking == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y + 50;
if (((((this.gethit.hitTest(_root.character) or this.attackframe.hitTest(_root.character)) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
this.gotoAndPlay(3);
this.deathanimation = true;
hp--;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
this.gotoAndPlay(3);
this.deathanimation = true;
hp--;
hits.start();
}
if (((this.gethit.hitTest(_root.bullets) or this.attackframe.hitTest(_root.bullets)) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(23);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
if (this.attackframe.moveback == true) {
if (this._xscale > 0) {
this._x = this._x + movespeed;
} else if (this._xscale < 0) {
this._x = this._x - movespeed;
}
} else if (this.attackframe.movefast == true) {
if (this._xscale > 0) {
this._x = this._x - movespeed2;
} else if (this._xscale < 0) {
this._x = this._x + movespeed2;
}
}
}
Frame 221
level++;
stop();
_quality = "LOW";
Instance of Symbol 406 MovieClip in Frame 221
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 20;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.attackframe.attacking = false;
movespeed = 10;
movespeed2 = 30;
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 20;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 80;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -80;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if ((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(2);
}
} else if ((((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) and (this.attackframe.attacking == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y + 50;
if (((((this.gethit.hitTest(_root.character) or this.attackframe.hitTest(_root.character)) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
this.gotoAndPlay(3);
this.deathanimation = true;
hp--;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
this.gotoAndPlay(3);
this.deathanimation = true;
hp--;
hits.start();
}
if (((this.gethit.hitTest(_root.bullets) or this.attackframe.hitTest(_root.bullets)) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(23);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
if (this.attackframe.moveback == true) {
if (this._xscale > 0) {
this._x = this._x + movespeed;
} else if (this._xscale < 0) {
this._x = this._x - movespeed;
}
} else if (this.attackframe.movefast == true) {
if (this._xscale > 0) {
this._x = this._x - movespeed2;
} else if (this._xscale < 0) {
this._x = this._x + movespeed2;
}
}
}
Frame 222
level++;
stop();
Instance of Symbol 276 MovieClip in Frame 222
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 100;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -100;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if (((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else if (_root.attacking == false) {
this.gotoAndStop(2);
}
} else if (((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y;
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
}
}
if ((this.hitTest(_root.bullets) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(31);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
}
Frame 223
level++;
stop();
Instance of Symbol 276 MovieClip in Frame 223
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 100;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -100;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if (((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else if (_root.attacking == false) {
this.gotoAndStop(2);
}
} else if (((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y;
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
}
}
if ((this.hitTest(_root.bullets) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(31);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
}
Frame 224
level++;
stop();
Instance of Symbol 276 MovieClip in Frame 224
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1.gothit = false;
_local1.move = true;
_local1.deathanimation = false;
_local1.blocking = false;
_local1.gotoAndPlay("respawn");
_local1.counter = 0;
dd = true;
_local1.dead = false;
_local1.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_x = (0 + random(600));
_local1.res = false;
}
this.respawning = false;
this.res = false;
this.counter = 0;
dd = true;
this.dead = false;
this.deathanimation = false;
hp = 15;
me = false;
blocked = 0;
_root.ai = 0;
}
onClipEvent (load) {
speed = 2 + random(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.rightwall)) {
this._x = this._x - 25;
} else if (this.hitTest(_root.ground.leftwall)) {
this._x = this._x + 25;
}
if (((((((_root.character._x < this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x < (_root.character._x + 700))) and ((!this.blocking) == true)) {
this._x = this._x - speed;
_xscale = 100;
} else if (((((((_root.character._x > this._x) && (!this.hitTest(_root.character))) and (this.move == true)) and (this.gothit == false)) and (this.dead == false)) and (this._x > (_root.character._x - 700))) and ((!this.blocking) == true)) {
this._x = this._x + speed;
_xscale = -100;
}
groundspeed = _root.ground.groundspeed;
}
onClipEvent (enterFrame) {
if ((_root.scrollleft == true) and (_root.stopscroll == false)) {
this._x = this._x - groundspeed;
} else if ((_root.scrollright == true) and (_root.stopscroll2 == false)) {
this._x = this._x + groundspeed;
}
if (((((this.hitTest(_root.character) and (this.gothit == false)) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
if (((_xscale > 0) and (_root.character._xscale < 0)) or ((_xscale < 0) and (_root.character._xscale > 0))) {
this.gotoAndStop(2);
} else if (_root.attacking == false) {
this.gotoAndStop(2);
}
} else if (((((this.gothit == false) and (this.move == true)) and (this.dead == false)) and ((!this.blocking) == true)) and (this.respawning == false)) {
this.gotoAndStop(1);
}
this._y = _root.ground._y;
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (((_xscale > 0) and (_root.character._xscale > 0)) or ((_xscale < 0) and (_root.character._xscale < 0)))) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
if ((((this.hitTest(_root.character) and (_root.attacking == true)) and (this.deathanimation == false)) and (_root.walljump == true)) and (this.respawning == false)) {
if ((blocked >= 0) and ((!this.blocking) == true)) {
this.gotoAndPlay(3);
this.deathanimation = true;
blocked = 0;
hp--;
hits.start();
} else if (blocked < 0) {
_root.attacking = false;
this.gotoAndPlay("block");
blocked = blocked + 1;
hits.start();
}
}
}
if ((this.hitTest(_root.bullets) and (this.dead == false)) and (this.respawning == false)) {
this.gotoAndPlay(31);
hp = hp - 0.5;
}
if ((this.gothit == true) and (this.move == true)) {
if (((((_root.character._x > this._x) && (!_root.ground.hitTest(this._x - 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x - 15;
} else if (((((_root.character._x < this._x) && (!_root.ground.hitTest(this._x + 70, this._y + y, true))) and (this.move == true)) and (this.dead == false)) and (!this.hitTest(_root.bullets))) {
this._x = this._x + 15;
}
}
}
onClipEvent (enterFrame) {
if (hp <= 0) {
if (dd == true) {
this.gotoAndPlay(26);
dd = false;
}
this.dead = true;
}
if (this.res == true) {
reset();
}
}
Frame 225
gotoAndStop (224);
Frame 226
stop();
st.stop();
Stage.showMenu = true;
_root.stylish = Math.round(_root.stylepointaverage / 48);
_root.total = Math.round(_root.score + _root.stylish);
_quality = "HIGH";
Frame 227
score = 0;
stop();
_root.timeb = 0;
_root.score = 0;
Frame 228
stop();
Frame 229
stop();
_root.score = 0;
_root.timeb = 0;
_root.time = 0;
Frame 230
stop();
Frame 231
stop();
Frame 232
stop();
Frame 233
stop();
Frame 234
stop();
Frame 235
stop();
Frame 236
stop();
Frame 237
stop();
Frame 238
stop();
Frame 239
stop();
Frame 240
stop();
Frame 241
stop();
Frame 242
stop();
Frame 243
stop();
Frame 244
stop();
Frame 245
stop();
Frame 246
stop();
Frame 247
stop();
Frame 248
stop();
Frame 249
stop();
Frame 250
stop();
Frame 251
stop();
Frame 252
stop();
Frame 253
stop();
Frame 254
stop();
Frame 255
stop();
Frame 256
stop();
Frame 257
stop();
Frame 258
stop();
Frame 259
stop();
Frame 260
stop();
Frame 261
stop();
Frame 262
stop();
Frame 263
stop();
Frame 264
stop();
Frame 265
stop();
Frame 266
stop();
Frame 267
stop();
Frame 268
stop();
Frame 269
stop();
Frame 270
stop();
Frame 271
stop();
Frame 272
stop();
Frame 273
stop();
Frame 274
stop();
Frame 275
stop();
Frame 276
stop();
Frame 277
stop();
Frame 278
stop();
Frame 279
stop();
Frame 280
stop();
Frame 281
stop();
Frame 282
stop();
Frame 283
function initSounds() {
sound_waterSpray = new Sound();
sound_waterSpray.attachSound("WATER_SPRAY");
sound_waterSpray.setVolume(30);
sound_refillWater = new Sound();
sound_refillWater.attachSound("REFILL_WATER");
sound_houseExplosion = new Sound();
sound_houseExplosion.attachSound("HOUSE_EXPLOSION");
sound_houseExplosion.setVolume(50);
sound_save = new Sound();
sound_save.attachSound("SAVE");
music_level1 = new Sound();
music_level1.attachSound("MUSIC_LEVEL1");
music_level2 = new Sound();
music_level2.attachSound("MUSIC_LEVEL2");
music_level3 = new Sound();
music_level3.attachSound("MUSIC_LEVEL3");
music_menu = new Sound();
music_menu.attachSound("MUSIC_MENU");
sound_death = new Sound();
sound_death.attachSound("DEATH");
sound_catch = new Sound();
sound_catch.attachSound("CATCH");
}
score = 0;
fscommand ("showmenu", false);
stop();
initSounds();
stopAllSounds();
music_menu.start(0, 10000);
Frame 284
stop();
Frame 285
function main() {
keyDownEvents();
updateBullets();
updateMessages();
if (game.level == 1) {
updateHouses();
burnTest();
} else if (game.level == 2) {
if (truck.clip.hitTest(city.end)) {
game.level = 3;
_root.scen_change.gotoAndPlay("level_to_menu");
}
}
truck.move(truck.speed);
HUD.waterMeter.updateWaterTank();
wallCollision();
}
function wallCollision() {
with (truck.clip) {
if (_root.city.buildings.hitTest(getBounds(_root).xMax, _y, true)) {
city._x = city._x + Math.abs(truck.speed);
truck.speed = (truck.speed / 2) * -1;
}
if (_root.city.buildings.hitTest(getBounds(_root).xMin, _y, true)) {
city._x = city._x - Math.abs(truck.speed);
truck.speed = (truck.speed / 2) * -1;
}
if (_root.city.buildings.hitTest(_x, getBounds(_root).yMax, true)) {
city._y = city._y + Math.abs(truck.speed);
truck.speed = (truck.speed / 2) * -1;
}
if (_root.city.buildings.hitTest(_x, getBounds(_root).yMin, true)) {
city._y = city._y - Math.abs(truck.speed);
truck.speed = (truck.speed / 2) * -1;
}
}
}
function keyDownEvents() {
if (Key.isDown(32) || (Key.isDown(16))) {
if (waterCannon.reloading == false) {
WaterCannon.fire();
}
}
if (Key.isDown(65)) {
shooter.clip._rotation = shooter.clip._rotation - shooter.rotationspeed;
}
if (Key.isDown(68)) {
shooter.clip._rotation = shooter.clip._rotation + shooter.rotationspeed;
}
if (Key.isDown(82)) {
with (truck.clip) {
if (truck.clip.hitTest(_root.city.hydrants.hydrant1) || (truck.clip.hitTest(_root.city.hydrants.hydrant2))) {
if (WaterCannon.ammo < WaterCannon.maxAmmo) {
WaterCannon.ammo = WaterCannon.ammo + ((shooter.refillSpeed = 2));
}
WaterCannon.reloading = true;
if (!WaterSoundPlaying) {
sound_refillWater.start();
WaterSoundPlaying = true;
}
}
}
} else {
WaterSoundPlaying = false;
WaterCannon.reloading = false;
}
if (Key.isDown(38)) {
truck.speed = truck.speed + truck.ac;
if (truck.speed > truck.maxspeed) {
truck.speed = truck.maxspeed;
}
}
if (Key.isDown(40)) {
truck.speed = truck.speed - truck.ac;
if (truck.speed < truck.minspeed) {
truck.speed = truck.minspeed;
}
}
if (Key.isDown(39)) {
truck.clip._rotation = truck.clip._rotation + truck.rotationspeed;
shooter.clip._rotation = shooter.clip._rotation + truck.rotationspeed;
}
if (Key.isDown(37)) {
truck.clip._rotation = truck.clip._rotation - truck.rotationspeed;
shooter.clip._rotation = shooter.clip._rotation - truck.rotationspeed;
}
if ((Key.isDown(40) == false) && (Key.isDown(38) == false)) {
if (truck.speed > 0) {
truck.speed = truck.speed - truck.friction;
} else if (truck.speed < 0) {
truck.speed = truck.speed + truck.friction;
}
if ((truck.speed < 0.2) && (truck.speed > -0.2)) {
truck.speed = 0;
}
}
}
function updateMessages() {
if (truck.clip.hitTest(_root.city.hydrants.hydrant1) || (truck.clip.hitTest(_root.city.hydrants.hydrant2))) {
if (WaterCannon.ammo != WaterCannon.maxAmmo) {
messages.clip.gotoAndStop(2);
} else {
messages.clip.gotoAndStop(1);
}
} else {
messages.clip.gotoAndStop(1);
}
}
function updateHouses() {
checkBurns = 0;
x = 1;
while (x <= game.numHouses) {
with (house[x]) {
if (state == "onFire") {
fireAmount++;
if (fireAmount >= burnDownAmount) {
state = "burned";
clip.gotoAndStop("burned");
_root.game.housesOnFire--;
checkBurns++;
sound_houseExplosion.start();
} else {
clip.gotoAndStop("onFire");
}
} else if (state != "burned") {
fireAmount = 0;
state = "idle";
clip.gotoAndStop("idle");
} else {
checkBurns++;
}
var fireFrame = Math.round((fireAmount / burnDownAmount) * clip.fire._totalframes);
clip.fire.gotoAndStop(fireFrame);
}
x++;
}
game.houseBurns = checkBurns;
if (((checkBurns + game.houseSaves) >= game.numHouses) && (game.level == 1)) {
game.level = 2;
scen_change.gotoAndPlay("level_to_menu");
}
}
function burnTest() {
if ((game.housesOnFire < game.maxHousesOnfire) && (housesLeft() > 0)) {
game.housesOnFire++;
do {
var _local1 = random(game.numHouses) + 1;
if (((house[_local1].state != "onFire") && (house[_local1].state != "burned")) && (house[_local1].saved != true)) {
house[_local1].state = "onFire";
sameState = false;
} else {
sameState = true;
}
} while (sameState == true);
}
}
function housesLeft() {
var _local1 = game.numHouses;
x = 0;
while (x <= game.numHouses) {
if (((house[x].state == "burned") || (house[x].state == "onFire")) || (house[x].saved == true)) {
_local1--;
}
x++;
}
return(_local1);
}
function weapons(name, ammo, maxAmmo, fireSpeedMS, damage) {
var _local1 = this;
_local1.name = name;
_local1.ammo = ammo;
_local1.maxAmmo = maxAmmo;
_local1.fireSpeed = fireSpeedMS;
_local1.damage = damage;
_local1.reloading = false;
}
function addBullet() {
numBullets++;
var _local1 = _root.attachMovie("water", "bullet" + numBullets, depthBullets + numBullets);
setBulletVar(_local1);
}
function setBulletVar(whatBullet) {
var _local1 = whatBullet;
_local1.Xspeed = shooter.power * Math.cos(shooter.clip._rotation * (Math.PI/180));
_local1.Yspeed = shooter.power * Math.sin(shooter.clip._rotation * (Math.PI/180));
_local1._y = Math.round(truck.clip._y + (_local1.Yspeed * 3));
_local1._x = Math.round(truck.clip._x + (_local1.Xspeed * 3));
_local1.damage = 1;
_local1.distTraveled = 0;
}
function updateBullets() {
if (numBullets > 0) {
activeBullet = 1;
while (activeBullet < (numBullets + 1)) {
temp = eval ("_root.bullet" + activeBullet);
x = 0;
while (x <= game.numHouses) {
if (temp.hitTest(house[x].clip.fire)) {
removeMovieClip(temp);
removeBullet();
house[x].fireAmount = house[x].fireAmount - WaterCannon.damage;
if (house[x].fireAmount <= 0) {
sound_save.start(0.12, 0);
game.housesOnFire--;
game.houseSaves++;
game.maxHousesOnfire = game.maxHousesOnfire + 0.5;
house[x].clip.gotoAndStop("idle");
house[x].state = "idle";
house[x].saved = true;
}
}
x++;
}
if ((((temp._x > 570) || (temp._x < -20)) || (temp._y > 420)) || (temp._y < -20)) {
removeMovieClip(temp);
removeBullet();
} else {
temp._x = temp._x + temp.Xspeed;
temp._y = temp._y + temp.Yspeed;
temp.distTraveled++;
if (temp.distTraveled > shooter.range) {
removeMovieClip(temp);
removeBullet();
}
}
activeBullet++;
}
}
}
function removeBullet() {
numBullets--;
whatToRename = 2;
while (whatToRename < (numBullets + 2)) {
temp2 = eval ("_root.bullet" + whatToRename);
temp2._name = "bullet" + (whatToRename - 1);
temp2.swapDepths((depthBullets + whatToRename) - 1);
whatToRename++;
}
}
score = 0;
game = {};
game.level = 1;
game.messages = {};
messages = game.messages;
messages.clip = hud.messages;
game.city = {};
game.city.clip = city;
game.buildings = {};
game.buildings.clip = city.buildings;
game.buildings.clip._visible = false;
game.hydrants = {};
game.hydrants.clip = city.hydrants;
game.hydrants.clip._visible = false;
game.numHouses = 11;
game.houseBurns = 0;
game.houseSaves = 0;
game.housesOnFire = 0;
game.maxHousesOnfire = 1;
house = function (clip, state, fireAmount, burnDownAmount) {
var _local1 = this;
_local1.clip = clip;
_local1.state = state;
_local1.clip.gotoAndStop(state);
_local1.fireAmount = fireAmount;
_local1.burnDownAmount = burnDownAmount;
_local1.saved = false;
};
x = 0;
while (x <= game.numHouses) {
clip = eval ("_root.city.house" + x);
house[x] = new house(clip, "idle", 50, 300);
x++;
}
game.truck = {};
truck = game.truck;
truck.clip = fireTruck;
truck.clip._x = 275;
truck.clip._y = 200;
truck.bounce = 5;
truck.speed = 0;
truck.maxspeed = 10;
truck.minspeed = -5;
truck.friction = 0.5;
truck.ac = 0.5;
truck.rotationspeed = 5;
truck.move = function (movement) {
var _local1 = movement;
rotation = ((this.clip._rotation + 180) / 180) * Math.PI;
city._x = city._x + (_local1 * Math.sin(rotation));
city._y = city._y + ((-_local1) * Math.cos(rotation));
return(_local1);
};
truck.shooter = {};
shooter = truck.shooter;
shooter.clip = _root.watercanon;
shooter.clip._rotation = -90;
shooter.rotationspeed = 7;
shooter.power = 15;
shooter.damage = 17;
shooter.range = 10;
shooter.reloadTime = 50;
shooter.refillSpeed = 2;
game.HUD = {};
HUD = game.HUD;
HUD.waterMeter = {};
HUD.waterMeter.clip = hud.waterMeter;
HUD.waterMeter.waterProcent = 100;
HUD.waterMeter.updateWaterTank = function () {
this.waterProcent = Math.round((WaterCannon.ammo / WaterCannon.maxAmmo) * 100);
};
WaterCannon = new weapons("Water", 60, 60, shooter.reloadTime, shooter.damage);
music_menu.stop();
music_level1.start(0, 10000);
_root.onEnterFrame = function () {
main();
};
depthBullets = 20000;
weapons.prototype.fire = function () {
var _local1 = this;
if ((_local1.ammo > 0) && (_local1.checkFireTimer())) {
_local1.startFireTimer();
_local1.ammo = _local1.ammo - 1;
addBullet();
}
};
weapons.prototype.startFireTimer = function () {
this.oldShootTime = getTimer();
};
weapons.prototype.checkFireTimer = function () {
var _local1 = this;
_local1.newShootTime = getTimer();
_local1.timeElapsed = _local1.newShootTime - _local1.oldShootTime;
if (_local1.timeElapsed > _local1.fireSpeed) {
return(true);
}
return(false);
};
stop();
Instance of Symbol 1362 MovieClip "fireTruck" in Frame 285
/* no clip actions */
Frame 286
stop();
if (game.houseBurns >= 4) {
award = 1;
} else {
award = 5 - game.houseBurns;
}
menu.awards.gotoAndStop(award);
score = score + award;
menu.totalAwards = score + " / 5";
Frame 287
music_level1.stop();
music_menu.start(0, 10000);
stop();
Frame 288
stop();
game.level = 2;
music_menu.stop();
music_level2.start(0, 10000);
game.buildings.clip._visible = false;
shooter.clip._rotation = -90;
timeLeft = 20;
Instance of Symbol 1362 MovieClip "fireTruck" in Frame 288
/* no clip actions */
Instance of Symbol 1419 MovieClip in Frame 288
onClipEvent (load) {
_root.timeLeft = 20;
_root.tick = 0;
this._visible = false;
}
onClipEvent (enterFrame) {
tick++;
if (tick == 24) {
tick = 0;
_root.timeLeft--;
if (_root.timeLeft <= 0) {
_root.game.level = 3;
_root.scen_change.gotoAndPlay("level_to_menu");
}
}
}
Frame 289
if (timeLeft >= 8) {
award = 5;
} else if (timeLeft == 7) {
award = 4;
} else if (timeLeft == 6) {
award = 3;
} else if (timeLeft == 5) {
award = 2;
} else {
award = 1;
}
menu.awards.gotoAndStop(award);
score = score + award;
menu.totalAwards = score + " / 10";
stop();
Frame 290
stop();
music_level2.stop();
music_menu.start(0, 10000);
Frame 291
function initLevel(lvl) {
clearInterval(spawnID);
spawnID = setInterval(spawn, 1200 - (170 * lvl));
}
function spawn() {
var _local1 = this;
if (numPeople > 0) {
temp = attachMovie("person", "person" + depth, ++depth);
temp._x = random(450) + 50;
temp._y = 0;
temp.speed = random(9) + fallSpeed;
temp.rotationSpeed = random(5) + 5;
temp.onEnterFrame = function () {
var _local1 = this;
_local1._rotation = _local1._rotation + _local1.rotationSpeed;
_local1._y = _local1._y + _local1.speed;
if (_local1._y > 450) {
_root.missed++;
removedPeople++;
sound_death.start();
if (removedPeople == maxPeople) {
scen_change.gotoAndPlay("level_to_menu");
}
removeMovieClip(_local1);
} else if (_local1.hitTest(catcher.hit)) {
_root.saved++;
removedPeople++;
sound_catch.start();
if (removedPeople == maxPeople) {
scen_change.gotoAndPlay("level_to_menu");
}
removeMovieClip(_local1);
}
};
numPeople--;
if (numPeople == 40) {
initLevel(2);
}
if (numPeople == 30) {
initLevel(3);
}
if (numPeople == 20) {
initLevel(4);
}
if (numPeople == 10) {
initLevel(5);
}
if (numPeople == 5) {
initLevel(6);
}
catcher.speed = catcher.speed + 0.3;
}
}
_root.onEnterFrame = null;
music_menu.stop();
music_level3.start(0, 10000);
maxPeople = 60;
numPeople = maxPeople;
removedPeople = 0;
fallSpeed = 6;
level = 1;
depth = 5000;
_root.missed = 0;
_root.saved = 0;
initLevel(level);
stop();
Instance of Symbol 1438 MovieClip "catcher" in Frame 291
onClipEvent (load) {
this.speed = 15;
}
onClipEvent (enterFrame) {
if (Key.isDown(39) && (this._x < (550 - (this._width / 2)))) {
this._x = this._x + this.speed;
if (!this.running) {
this.fireman.gotoAndPlay("run");
}
this.running = true;
} else if (Key.isDown(37) && (this._x > (0 + (this._width / 2)))) {
this._x = this._x - this.speed;
if (!this.running) {
this.fireman.gotoAndPlay("run");
}
this.running = true;
} else {
this.fireman.gotoAndStop("stand");
this.running = false;
}
}
Frame 292
if (missed >= 5) {
award = 1;
} else {
award = 5 - missed;
}
menu.awards.gotoAndStop(award);
score = score + award;
menu.totalAwards = score + " / 15";
stop();
Frame 293
stop();
Frame 294
music_level3.stop();
music_menu.start(0, 10000);
score = 0;
gotoAndStop (284);
Symbol 25 MovieClip [person] Frame 1
stop();
Symbol 29 MovieClip Frame 1
_parent.stop();
Symbol 29 MovieClip Frame 2
pcent_loaded = (100 / _root.getBytesTotal()) * _root.getBytesLoaded();
progbar._width = pcent_loaded;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.play();
}
Symbol 29 MovieClip Frame 3
gotoAndPlay (2);
Symbol 41 Button
on (release, keyPress "q") {
xx = _quality;
_quality = "LOW";
if (xx == "LOW") {
_quality = "MEDIUM";
}
if (xx == "MEDIUM") {
_quality = "BEST";
}
if (xx == "BEST") {
_quality = "LOW";
}
}
Symbol 57 Button
on (release) {
gotoAndPlay (4);
}
Symbol 58 Button
on (release) {
gotoAndPlay (2);
}
Symbol 63 Button
on (release) {
_root.game = "g_start";
_root.play();
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 15
removeMovieClip(this);
Symbol 90 Button
on (release) {
gotoAndPlay (1);
}
Symbol 91 Button
on (release) {
gotoAndPlay (3);
}
Symbol 92 Button
on (release) {
_root.game = "startgame";
_root.play();
}
Symbol 97 Button
on (release) {
_root.game = "smashbeginning";
_root.play();
}
Symbol 101 Button
on (release) {
_root.game = "xelStart";
_root.play();
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 2
stop();
Symbol 120 MovieClip Frame 3
stop();
Symbol 120 MovieClip Frame 4
stop();
Symbol 130 Button
on (release) {
_root.play();
}
Symbol 133 Button
on (release) {
_root.gotoAndPlay("nogame");
}
Instance of Symbol 148 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (100 - _root.life);
}
Symbol 168 MovieClip Frame 18
stop();
Instance of Symbol 174 MovieClip "tail" in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 182 Button
on (release) {
_root.gotoAndPlay("g_start");
stopAllSounds();
}
Symbol 194 Button
on (release) {
gotoAndPlay ("load");
}
Symbol 205 Button
on (release) {
gotoAndStop ("loaded");
}
Symbol 213 Button
on (press) {
getURL ("http://www.glaielgames.com/highscores/highscores/highscores.asp", "_blank");
}
Symbol 214 MovieClip Frame 1
score = _root.score;
stop();
Symbol 214 MovieClip Frame 2
loadVariables ("http://www.glaielgames.com/highscores/fireworks/asp/Fireworks.asp", this, "POST");
Symbol 214 MovieClip Frame 3
if (loaded == "true") {
gotoAndStop ("loaded");
}
Symbol 214 MovieClip Frame 4
gotoAndPlay ("loop");
Symbol 214 MovieClip Frame 5
delete loaded;
stop();
Symbol 218 Button
on (release) {
_root.gotoAndPlay("nogame");
}
Symbol 222 Button
on (release) {
getURL ("http://www.geocities.com/jaktheftauto");
}
Symbol 229 Button
on (release) {
play();
st = new Sound();
st.attachSound("st");
st.start(0, 10000);
}
Instance of Symbol 235 MovieClip in Symbol 238 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.wall = true;
} else if (this.hitTest(_root.screen)) {
_root.wall = false;
}
}
Instance of Symbol 235 MovieClip in Symbol 238 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.wall = true;
} else if (this.hitTest(_root.screen)) {
_root.wall = false;
}
}
Instance of Symbol 235 MovieClip "rightwall" in Symbol 238 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 235 MovieClip "leftwall" in Symbol 238 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 237 MovieClip in Symbol 238 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character) and (_root.attacking == false)) {
_root.character._x = _root.character._x + 100;
}
}
Instance of Symbol 237 MovieClip in Symbol 238 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.character._x = _root.character._x - 100;
}
}
Instance of Symbol 237 MovieClip in Symbol 238 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
_root.character._y = _root.character._y + 20;
}
}
Symbol 269 MovieClip Frame 1
hits = 0;
Symbol 269 MovieClip Frame 6
hits = hits + 1;
Symbol 269 MovieClip Frame 8
if (head.hitTest(_root.character)) {
_root.health = _root.health - 2;
}
Symbol 269 MovieClip Frame 15
if (hits > 2) {
play();
} else {
gotoAndPlay (6);
}
Symbol 269 MovieClip Frame 23
if (head.hitTest(_root.character)) {
_root.health = _root.health - 6;
_root.character.stand.stand2.gotoAndPlay(15);
}
Symbol 269 MovieClip Frame 25
hits = 0;
Symbol 269 MovieClip Frame 26
gotoAndPlay (1);
Symbol 276 MovieClip Frame 1
stop();
gothit = false;
move = true;
deathanimation = false;
blocking = false;
Symbol 276 MovieClip Frame 2
stop();
deathanimation = false;
_root.move = true;
_root.gothit = false;
Symbol 276 MovieClip Frame 3
_root.stylepoints = _root.stylepoints + 0.5;
deathanimation = true;
play();
gothit = true;
Symbol 276 MovieClip Frame 4
counter++;
_root.sk.start();
Symbol 276 MovieClip Frame 8
if (counter < 5) {
gotoAndStop (1);
gothit = false;
move = true;
} else {
play();
}
Symbol 276 MovieClip Frame 9
counter = 0;
Symbol 276 MovieClip Frame 11
_root.score = _root.score + 5;
_root.stylepoints = _root.stylepoints + 1;
Symbol 276 MovieClip Frame 19
if (dead == true) {
gotoAndPlay ("dead");
}
Symbol 276 MovieClip Frame 23
if (this.hitTest(_root.character)) {
gotoAndStop (2);
attackframe.gotoAndPlay(8);
} else {
gotoAndStop (1);
}
gothit = false;
move = false;
Symbol 276 MovieClip Frame 24
stop();
_root.blocks.start();
Symbol 276 MovieClip Frame 26
_root.score = _root.score + 20;
Symbol 276 MovieClip Frame 30
stop();
dead = true;
res = true;
Symbol 276 MovieClip Frame 31
deathanimation = true;
gothit = true;
play();
Symbol 276 MovieClip Frame 32
_root.stylepoints = _root.stylepoints + 0.2;
Symbol 276 MovieClip Frame 33
deathanimation = false;
gothit = false;
blocking = false;
if (dead == true) {
gotoAndPlay ("dead");
} else {
gotoAndStop (1);
}
Symbol 276 MovieClip Frame 34
respawning = true;
Symbol 276 MovieClip Frame 50
respawning = false;
Symbol 278 Button
on (keyPress "s") {
gotoAndPlay (9);
_root.spressed = true;
_root.dpressed = false;
}
on (keyPress "d") {
gotoAndPlay (43);
_root.dpressed = true;
_root.spressed = false;
}
Symbol 279 Button
on (keyPress "a") {
gotoAndPlay (2);
}
Symbol 300 Button
on (keyPress "a") {
gotoAndPlay (8);
}
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 2
_root.shoot = true;
_root.hg.start();
_root.attacking = false;
Symbol 303 MovieClip Frame 4
_root.shoot = false;
Symbol 303 MovieClip Frame 7
gotoAndStop (1);
Symbol 303 MovieClip Frame 8
_root.shoot = true;
_root.hg.start();
_root.attacking = false;
Symbol 303 MovieClip Frame 10
_root.shoot = false;
Symbol 303 MovieClip Frame 13
gotoAndStop (1);
Symbol 303 MovieClip Frame 37
gotoAndStop (1);
Symbol 304 Button
on (keyPress "a") {
gotoAndPlay (17);
}
Symbol 307 Button
on (keyPress "a") {
gotoAndPlay (23);
}
Symbol 309 Button
on (keyPress "a") {
gotoAndPlay (29);
}
Symbol 312 Button
on (keyPress "a") {
gotoAndPlay (35);
}
Symbol 315 Button
on (keyPress "a") {
gotoAndPlay (41);
}
Symbol 319 MovieClip Frame 1
_root.character.speed2 = 8;
_root.ground.groundspeed = 8;
Symbol 319 MovieClip Frame 16
gotoAndPlay (1);
Symbol 319 MovieClip Frame 17
_root.character.speed2 = 4;
_root.ground.groundspeed = 4;
_root.hg.start();
_root.attacking = false;
Symbol 319 MovieClip Frame 22
gotoAndPlay (1);
Symbol 319 MovieClip Frame 24
_root.shoot = true;
_root.hg.start();
_root.attacking = false;
Symbol 319 MovieClip Frame 25
_root.shoot = false;
Symbol 319 MovieClip Frame 28
gotoAndPlay (1);
Symbol 319 MovieClip Frame 30
_root.shoot = true;
_root.hg.start();
_root.attacking = falsev;
Symbol 319 MovieClip Frame 31
_root.shoot = false;
Symbol 319 MovieClip Frame 34
gotoAndPlay (1);
Symbol 319 MovieClip Frame 36
_root.shoot = true;
_root.hg.start();
_root.attacking = false;
Symbol 319 MovieClip Frame 37
_root.shoot = false;
Symbol 319 MovieClip Frame 40
gotoAndPlay (1);
Symbol 319 MovieClip Frame 41
gotoAndPlay (17);
Symbol 319 MovieClip Frame 42
_root.shoot = true;
_root.hg.start();
_root.attacking = false;
Symbol 319 MovieClip Frame 43
_root.shoot = false;
Symbol 320 Button
on (keyPress "s") {
_root.spressed = true;
_root.dpressed = false;
}
on (keyPress "d") {
_root.dpressed = true;
_root.spressed = false;
}
Symbol 334 MovieClip Frame 1
stop();
attacking = false;
_root.character.speed2 = 8;
_root.ground.groundspeed = 8;
_root.attacking = false;
_root.shoot = false;
_root.shoot2 = false;
Symbol 334 MovieClip Frame 2
_root.shoot = false;
_root.shoot2 = false;
Symbol 334 MovieClip Frame 4
gotoAndPlay (1);
Symbol 334 MovieClip Frame 5
play();
_root.blocks.start();
Symbol 334 MovieClip Frame 8
if (_root.spressed == true) {
play();
_root.spressed = false;
} else if (_root.dpressed == true) {
gotoAndPlay (46);
_root.dpressed = false;
} else {
gotoAndPlay (1);
_root.spressed = false;
}
Symbol 334 MovieClip Frame 9
_root.character.speed2 = 0;
_root.ground.groundspeed = 0;
attacking = true;
_root.attacking = true;
_root.shoot = false;
_root.shoot2 = false;
_root.dpressed = false;
_root.spressed = false;
Symbol 334 MovieClip Frame 12
_root.swipe.start();
Symbol 334 MovieClip Frame 17
if (_root.spressed == true) {
play();
_root.spressed = false;
} else if (_root.dpressed == true) {
gotoAndPlay (43);
_root.dpressed = false;
} else {
gotoAndPlay (1);
_root.spressed = false;
}
Symbol 334 MovieClip Frame 20
if ((_root.character._xscale > 0) and (_root.character._x < _root.character.boundry2)) {
_root.character._x = _root.character._x + 15;
} else if ((_root.character._xscale < 0) and (_root.character._x > _root.character.boundry)) {
_root.character._x = _root.character._x - 15;
}
_root.swipe2.start();
Symbol 334 MovieClip Frame 21
if ((_root.character._xscale > 0) and (_root.character._x < _root.character.boundry2)) {
_root.character._x = _root.character._x + 15;
} else if ((_root.character._xscale < 0) and (_root.character._x > _root.character.boundry)) {
_root.character._x = _root.character._x - 15;
}
Symbol 334 MovieClip Frame 22
if ((_root.character._xscale > 0) and (_root.character._x < _root.character.boundry2)) {
_root.character._x = _root.character._x + 15;
} else if ((_root.character._xscale < 0) and (_root.character._x > _root.character.boundry)) {
_root.character._x = _root.character._x - 15;
}
Symbol 334 MovieClip Frame 23
if ((_root.character._xscale > 0) and (_root.character._x < _root.character.boundry2)) {
_root.character._x = _root.character._x + 15;
} else if ((_root.character._xscale < 0) and (_root.character._x > _root.character.boundry)) {
_root.character._x = _root.character._x - 15;
}
Symbol 334 MovieClip Frame 25
_root.blocks.start();
Symbol 334 MovieClip Frame 26
if (_root.spressed == true) {
play();
_root.spressed = false;
} else {
gotoAndPlay (1);
_root.spressed = false;
}
Symbol 334 MovieClip Frame 29
_root.swipe.start();
Symbol 334 MovieClip Frame 32
_root.blocks.start();
Symbol 334 MovieClip Frame 39
if (_root.spressed == true) {
play();
_root.spressed = false;
} else {
gotoAndPlay (59);
_root.spressed = false;
}
Symbol 334 MovieClip Frame 40
_root.swipe2.start();
Symbol 334 MovieClip Frame 43
_root.character.speed2 = 0;
_root.ground.groundspeed = 0;
attacking = true;
_root.attacking = true;
_root.shoot = false;
_root.shoot2 = false;
Symbol 334 MovieClip Frame 44
if (_root.spressed == true) {
play();
_root.spressed = false;
} else if (_root.dpressed == true) {
play();
_root.dpressed = false;
} else {
gotoAndPlay (1);
_root.spressed = false;
}
Symbol 334 MovieClip Frame 45
_root.swipe2.start();
Symbol 334 MovieClip Frame 50
if (_root.spressed == true) {
play();
_root.spressed = false;
} else if (_root.dpressed == true) {
play();
_root.dpressed = false;
} else {
gotoAndPlay (1);
_root.spressed = false;
}
Symbol 334 MovieClip Frame 54
_root.swipe.start();
Symbol 334 MovieClip Frame 58
_root.blocks.start();
if (_root.spressed == true) {
gotoAndPlay (9);
_root.spressed = false;
} else if (_root.dpressed == true) {
gotoAndPlay (19);
_root.dpressed = false;
} else {
gotoAndPlay (1);
_root.spressed = false;
}
Symbol 335 Button
on (keyPress "s") {
_root.character.gotoAndPlay(4);
}
on (keyPress "a") {
_root.character.gotoAndPlay(10);
}
on (keyPress "<Space>") {
if (_root.wall == true) {
_root.character.gotoAndPlay(17);
}
}
on (keyPress "d") {
_root.character.gotoAndPlay(4);
}
Symbol 336 MovieClip Frame 3
stop();
Symbol 337 MovieClip Frame 3
stop();
Symbol 343 Button
on (keyPress "a") {
_root.character.gotoAndPlay(10);
}
Symbol 344 Button
on (keyPress "a") {
_root.character.gotoAndPlay(29);
}
on (keyPress "d") {
_root.character.gotoAndPlay(54);
}
on (keyPress "s") {
_root.character.gotoAndPlay(54);
}
Symbol 345 Button
on (keyPress "a") {
gotoAndPlay (35);
}
Symbol 349 Button
on (keyPress "a") {
gotoAndPlay (41);
}
Symbol 353 Button
on (keyPress "a") {
gotoAndPlay (47);
}
Symbol 357 Button
on (keyPress "a") {
gotoAndPlay (53);
}
Symbol 361 Button
on (keyPress "a") {
_root.character.gotoAndPlay(29);
}
Symbol 369 MovieClip Frame 1
stop();
_root.character.shoot = false;
spinning = false;
_root.shoot = false;
_root.shoot2 = false;
_root.walljump = false;
Instance of Symbol 334 MovieClip "stand" in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
if (_root.character.slashdown == true) {
this.gotoAndPlay(5);
_root.character.slashdown = false;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(39) and (this.attacking == false)) {
this.gotoAndPlay(2);
} else if (Key.isDown(37) and (this.attacking == false)) {
this.gotoAndPlay(2);
}
}
Symbol 369 MovieClip Frame 2
stop();
_root.character.speed2 = 8;
_root.ground.groundspeed = 8;
_root.attacking = false;
_root.shoot = false;
_root.shoot2 = false;
_root.dpressed = false;
_root.spressed = false;
Symbol 369 MovieClip Frame 3
stop();
_root.character.shoot = false;
_root.character.speed2 = 8;
_root.attacking = false;
_root.shoot = false;
_root.shoot2 = false;
Symbol 369 MovieClip Frame 4
_root.character.slashdown = true;
Symbol 369 MovieClip Frame 7
_root.character._y = _root.character._y + 7;
_root.attacking = true;
_root.swipe.start();
Symbol 369 MovieClip Frame 8
_root.character._y = _root.character._y + 7;
Symbol 369 MovieClip Frame 9
stop();
Instance of Symbol 94 MovieClip in Symbol 369 MovieClip Frame 9
onClipEvent (enterFrame) {
_root.character._y = _root.character._y + 20;
if (_root.ground.jumping == false) {
_root.character.gotoAndStop(1);
}
}
Symbol 369 MovieClip Frame 10
_root.character.shoot = true;
Symbol 369 MovieClip Frame 11
_root.hg.start();
_root.attacking = false;
_root.shoot = true;
Symbol 369 MovieClip Frame 12
_root.shoot = false;
Symbol 369 MovieClip Frame 13
_root.hg.start();
_root.attacking = false;
_root.shoot = true;
Symbol 369 MovieClip Frame 14
_root.character._y = _root.character._y - 10;
_root.shoot = false;
Symbol 369 MovieClip Frame 16
gotoAndStop (3);
Symbol 369 MovieClip Frame 17
spinning = true;
Symbol 369 MovieClip Frame 18
if (_root.character._xscale < 0) {
_root.ground._x = _root.ground._x - 25;
_root.character._y = _root.character._y - 50;
} else if (_root.character._xscale > 0) {
_root.ground._x = _root.ground._x + 25;
_root.character._y = _root.character._y - 50;
}
Symbol 369 MovieClip Frame 19
if (_root.character._xscale < 0) {
_root.ground._x = _root.ground._x - 25;
_root.character._y = _root.character._y - 50;
} else if (_root.character._xscale > 0) {
_root.ground._x = _root.ground._x + 25;
_root.character._y = _root.character._y - 50;
}
Symbol 369 MovieClip Frame 28
gotoAndPlay (21);
Symbol 369 MovieClip Frame 29
_root.character._y = _root.character._y - 20;
_root.shoot2 = true;
_root.hg.start();
_root.attacking = false;
Symbol 369 MovieClip Frame 30
_root.character._y = _root.character._y - 10;
_root.shoot2 = false;
Symbol 369 MovieClip Frame 34
gotoAndPlay (22);
Symbol 369 MovieClip Frame 35
_root.character._y = _root.character._y - 20;
_root.shoot2 = true;
_root.hg.start();
_root.stylepoints++;
_root.attacking = false;
Symbol 369 MovieClip Frame 36
_root.character._y = _root.character._y - 10;
_root.shoot2 = false;
Symbol 369 MovieClip Frame 40
gotoAndPlay (23);
Symbol 369 MovieClip Frame 41
_root.character._y = _root.character._y - 20;
_root.shoot2 = true;
_root.hg.start();
_root.attacking = false;
Symbol 369 MovieClip Frame 42
_root.character._y = _root.character._y - 10;
_root.shoot2 = false;
_root.stylepoints++;
Symbol 369 MovieClip Frame 46
gotoAndPlay (25);
Symbol 369 MovieClip Frame 47
_root.character._y = _root.character._y - 20;
_root.shoot2 = true;
_root.hg.start();
_root.attacking = false;
Symbol 369 MovieClip Frame 48
_root.character._y = _root.character._y - 10;
_root.shoot2 = false;
_root.stylepoints++;
Symbol 369 MovieClip Frame 52
gotoAndPlay (27);
Symbol 369 MovieClip Frame 53
gotoAndPlay (20);
Symbol 369 MovieClip Frame 54
_root.walljump = true;
_root.attacking = true;
Symbol 369 MovieClip Frame 58
_root.stylepoints++;
Symbol 369 MovieClip Frame 62
gotoAndPlay (54);
Symbol 372 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 1
moveback = false;
attacking = true;
Symbol 399 MovieClip Frame 15
moveback = true;
Symbol 399 MovieClip Frame 26
moveback = false;
Symbol 399 MovieClip Frame 35
movefast = true;
_root.swipe.start();
Symbol 399 MovieClip Frame 40
movefast = false;
Symbol 399 MovieClip Frame 42
if (head.hitTest(_root.character)) {
_root.blocks.start();
_root.health = _root.health - 3;
}
attacking = false;
Symbol 406 MovieClip Frame 1
stop();
stop();
gothit = false;
move = true;
deathanimation = false;
blocking = false;
attackframe.moveback = false;
Symbol 406 MovieClip Frame 2
stop();
deathanimation = false;
_root.move = true;
_root.gothit = false;
Instance of Symbol 399 MovieClip "attackframe" in Symbol 406 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(15);
}
Symbol 406 MovieClip Frame 3
deathanimation = true;
play();
gothit = true;
attackframe.moveback = false;
_root.stylepoints = _root.stylepoints + 0.5;
Symbol 406 MovieClip Frame 4
counter++;
_root.sk.start();
Symbol 406 MovieClip Frame 5
if (counter > 4) {
gotoAndStop (1);
gothit = false;
move = true;
} else {
play();
}
Symbol 406 MovieClip Frame 6
counter = 0;
Symbol 406 MovieClip Frame 8
_root.score = _root.score + 3;
_root.stylepoints = _root.stylepoints + 1;
Symbol 406 MovieClip Frame 15
if (dead == true) {
gotoAndPlay ("dead");
}
Symbol 406 MovieClip Frame 17
if (this.hitTest(_root.character)) {
gotoAndStop (2);
attackframe.gotoAndPlay(8);
} else {
gotoAndStop (1);
}
gothit = false;
move = false;
Symbol 406 MovieClip Frame 19
_root.score = _root.score + 30;
Symbol 406 MovieClip Frame 22
stop();
dead = true;
res = true;
Symbol 406 MovieClip Frame 23
deathanimation = true;
gothit = true;
play();
attackframe.moveback = false;
Symbol 406 MovieClip Frame 24
_root.stylepoints = _root.stylepoints + 0.25;
Symbol 406 MovieClip Frame 25
deathanimation = false;
gothit = false;
blocking = false;
attackframe.moveback = false;
if (dead == true) {
gotoAndPlay ("dead");
} else {
gotoAndStop (1);
}
Symbol 406 MovieClip Frame 26
respawning = true;
Symbol 406 MovieClip Frame 42
respawning = false;
Symbol 411 Button
on (release) {
gotoAndStop ("startgame");
}
Symbol 422 Button
on (release) {
gotoAndPlay ("load");
}
Symbol 425 Button
on (release) {
gotoAndStop ("loaded");
}
Symbol 426 MovieClip Frame 1
score = _root.total;
stop();
Symbol 426 MovieClip Frame 2
loadVariables ("http://www.glaielgames.com/highscores/zantsu_must_die/asp/zantsu_must_die.asp", this, "POST");
Symbol 426 MovieClip Frame 3
if (loaded == "true") {
gotoAndStop ("loaded");
}
Symbol 426 MovieClip Frame 4
gotoAndPlay ("loop");
Symbol 426 MovieClip Frame 5
delete loaded;
stop();
Symbol 442 Button
on (release) {
gotoAndPlay (227);
}
Symbol 450 Button
on (release) {
gotoAndPlay (2);
}
Symbol 452 Button
on (release) {
gotoAndPlay (1);
}
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 2
stop();
Symbol 460 Button
on (release) {
gotoAndPlay (2);
}
Symbol 462 Button
on (release) {
gotoAndPlay (1);
}
Symbol 465 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 2
stop();
Symbol 470 Button
on (release) {
_root.gotoAndPlay("nogame");
}
Symbol 509 Button
on (release) {
gotoAndPlay (50);
}
Symbol 511 Button
on (release) {
gotoAndPlay (57);
}
Symbol 513 Button
on (release) {
gotoAndPlay (65);
}
Symbol 515 Button
on (release) {
gotoAndPlay (73);
}
Symbol 517 Button
on (release) {
gotoAndPlay (84);
}
Symbol 520 Button
on (release) {
_root.play();
}
Symbol 521 MovieClip Frame 49
stop();
Symbol 521 MovieClip Frame 56
stop();
Symbol 521 MovieClip Frame 64
stop();
Symbol 521 MovieClip Frame 72
stop();
Symbol 521 MovieClip Frame 83
stop();
Symbol 521 MovieClip Frame 104
stop();
Symbol 528 Button
on (release) {
_root.play();
stopAllSounds();
}
Symbol 530 MovieClip Frame 1
stop();
score = 0;
Symbol 546 Button
on (release) {
gotoAndPlay (16);
}
on (release) {
stopAllSounds();
}
Symbol 547 Button
on (release) {
gotoAndPlay (16);
}
on (release) {
stopAllSounds();
}
Symbol 548 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (16);
}
on (release) {
stopAllSounds();
}
Symbol 553 Button
on (keyPress "b") {
_root.score++;
}
Symbol 555 MovieClip Frame 25
stop();
Symbol 582 MovieClip Frame 1
_root.time = 20;
Symbol 582 MovieClip Frame 25
_root.time = 19;
Symbol 582 MovieClip Frame 49
_root.time = 18;
Symbol 582 MovieClip Frame 73
_root.time = 17;
Symbol 582 MovieClip Frame 96
_root.time = 16;
Symbol 582 MovieClip Frame 120
_root.time = 15;
Symbol 582 MovieClip Frame 145
_root.time = 14;
Symbol 582 MovieClip Frame 170
_root.time = 13;
Symbol 582 MovieClip Frame 194
_root.time = 12;
Symbol 582 MovieClip Frame 218
_root.time = 11;
Symbol 582 MovieClip Frame 242
_root.time = 10;
Symbol 582 MovieClip Frame 265
_root.time = 9;
Symbol 582 MovieClip Frame 290
_root.time = 8;
Symbol 582 MovieClip Frame 314
_root.time = 7;
Symbol 582 MovieClip Frame 338
_root.time = 6;
Symbol 582 MovieClip Frame 361
_root.time = 5;
Symbol 582 MovieClip Frame 362
_root.time = 5;
Symbol 582 MovieClip Frame 384
_root.time = 4;
Symbol 582 MovieClip Frame 385
_root.time = 4;
Symbol 582 MovieClip Frame 410
_root.time = 3;
Symbol 582 MovieClip Frame 411
_root.time = 3;
Symbol 582 MovieClip Frame 432
_root.time = 2;
Symbol 582 MovieClip Frame 433
_root.time = 2;
Symbol 582 MovieClip Frame 456
_root.time = 1;
Symbol 582 MovieClip Frame 457
_root.time = 1;
Symbol 582 MovieClip Frame 480
_root.play();
Symbol 590 MovieClip Frame 15
stop();
Symbol 590 MovieClip Frame 60
_root.play();
Symbol 600 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
stopAllSounds();
}
Symbol 601 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
stopAllSounds();
}
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
Symbol 606 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 26
_root.play();
Symbol 615 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
stopAllSounds();
}
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
Symbol 616 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
stopAllSounds();
}
Symbol 617 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
stopAllSounds();
}
Symbol 622 MovieClip Frame 1
stop();
Symbol 622 MovieClip Frame 26
_root.play();
Symbol 631 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
stopAllSounds();
}
Symbol 632 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
stopAllSounds();
}
Symbol 637 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 26
_root.play();
Symbol 646 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
stopAllSounds();
}
Symbol 647 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
stopAllSounds();
}
Symbol 652 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 26
_root.play();
Symbol 662 Button
on (release) {
gotoAndPlay (2);
stopAllSounds();
}
Symbol 686 MovieClip Frame 1
stop();
Symbol 686 MovieClip Frame 10
_root.play();
Symbol 693 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
stopAllSounds();
}
Symbol 694 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
stopAllSounds();
}
Symbol 695 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
stopAllSounds();
}
Symbol 708 Button
on (release) {
if (_root.score <= 2) {
gotoAndPlay (52);
} else {
_root.gotoAndPlay("winround1");
}
}
Symbol 714 Button
on (release) {
if (_root.score >= 2) {
_root.gotoAndPlay("tieround1");
} else {
_root.gotoAndPlay("loseround1");
}
}
Symbol 715 MovieClip Frame 1
stop();
Symbol 715 MovieClip Frame 51
stop();
Symbol 715 MovieClip Frame 52
stop();
stop();
Symbol 722 Button
on (release) {
gotoAndPlay (2);
}
Symbol 727 Button
on (release) {
_root.gotoAndPlay("round2");
}
Symbol 729 MovieClip Frame 1
stop();
stop();
Symbol 729 MovieClip Frame 39
stop();
Symbol 734 Button
on (release) {
_root.gotoAndPlay("tiequestionround1");
}
Symbol 735 MovieClip Frame 39
stop();
Symbol 742 Button
on (release) {
gotoAndPlay (29);
}
on (release) {
stopAllSounds();
}
Symbol 743 Button
on (release) {
gotoAndPlay (28);
}
on (release) {
stopAllSounds();
}
Symbol 744 MovieClip Frame 247
_root.play();
Symbol 751 Button
on (release) {
_root.gotoAndPlay("round1");
}
Symbol 763 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 27
stop();
Symbol 763 MovieClip Frame 28
stop();
Symbol 763 MovieClip Frame 29
stop();
Symbol 769 MovieClip Frame 39
stop();
Symbol 783 MovieClip Frame 211
_root.play();
Symbol 786 MovieClip Frame 1
stop();
score = 0;
Symbol 795 Button
on (release) {
gotoAndPlay (16);
}
Symbol 796 Button
on (release) {
gotoAndPlay (16);
}
Symbol 797 Button
on (release) {
gotoAndPlay (16);
}
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
Symbol 804 MovieClip Frame 15
stop();
Symbol 804 MovieClip Frame 60
_root.play();
Symbol 811 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 812 Button
on (release) {
gotoAndPlay (2);
}
Symbol 813 Button
on (release) {
gotoAndPlay (2);
}
Symbol 818 MovieClip Frame 1
stop();
Symbol 818 MovieClip Frame 26
_root.play();
Symbol 825 Button
on (release) {
gotoAndPlay (2);
}
Symbol 826 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 831 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 26
_root.play();
Symbol 838 Button
on (release) {
gotoAndPlay (2);
}
Symbol 839 Button
on (release) {
gotoAndPlay (2);
}
Symbol 840 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 845 MovieClip Frame 1
stop();
Symbol 845 MovieClip Frame 26
_root.play();
Symbol 852 Button
on (release) {
gotoAndPlay (2);
}
Symbol 853 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 858 MovieClip Frame 1
stop();
Symbol 858 MovieClip Frame 26
_root.play();
Symbol 865 Button
on (release) {
gotoAndPlay (2);
}
Symbol 866 Button
on (release) {
gotoAndPlay (2);
}
Symbol 867 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 877 Button
on (release) {
if (_root.score <= 6) {
gotoAndPlay (52);
} else {
_root.gotoAndPlay("winround2");
}
}
Symbol 883 Button
on (release) {
if (_root.score >= 6) {
_root.gotoAndPlay("tieround2");
} else {
_root.gotoAndPlay("loseround2");
}
}
Symbol 884 MovieClip Frame 1
stop();
Symbol 884 MovieClip Frame 51
stop();
Symbol 884 MovieClip Frame 52
stop();
stop();
Symbol 889 Button
on (release) {
gotoAndPlay (2);
}
Symbol 893 Button
on (release) {
_root.gotoAndPlay("round3");
}
Symbol 894 MovieClip Frame 1
stop();
stop();
Symbol 894 MovieClip Frame 39
stop();
Symbol 899 Button
on (release) {
_root.gotoAndPlay("tiequestionround2");
}
Symbol 900 MovieClip Frame 39
stop();
Symbol 907 Button
on (release) {
gotoAndPlay (29);
}
Symbol 908 Button
on (release) {
gotoAndPlay (28);
}
Symbol 924 MovieClip Frame 1
stop();
Symbol 924 MovieClip Frame 27
stop();
Symbol 924 MovieClip Frame 28
stop();
Symbol 924 MovieClip Frame 29
stop();
Symbol 929 MovieClip Frame 39
stop();
Symbol 936 MovieClip Frame 136
stopAllSounds();
Symbol 936 MovieClip Frame 159
_root.play();
Symbol 940 MovieClip Frame 1
stop();
score = 0;
Symbol 950 Button
on (release) {
gotoAndPlay (16);
}
Symbol 951 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (16);
}
Symbol 960 MovieClip Frame 15
stop();
Symbol 960 MovieClip Frame 60
_root.play();
Symbol 968 Button
on (release) {
gotoAndPlay (2);
}
Symbol 969 Button
on (release) {
gotoAndPlay (2);
}
Symbol 970 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 975 MovieClip Frame 1
stop();
Symbol 975 MovieClip Frame 26
_root.play();
Symbol 983 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 984 Button
on (release) {
gotoAndPlay (2);
}
Symbol 985 Button
on (release) {
gotoAndPlay (2);
}
Symbol 990 MovieClip Frame 1
stop();
Symbol 990 MovieClip Frame 26
_root.play();
Symbol 999 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1000 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1001 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 1006 MovieClip Frame 1
stop();
Symbol 1006 MovieClip Frame 26
_root.play();
Symbol 1014 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 1015 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1016 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1021 MovieClip Frame 1
stop();
Symbol 1021 MovieClip Frame 26
_root.play();
Symbol 1029 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 1030 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1031 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1044 Button
on (release) {
if (_root.score <= 11) {
gotoAndPlay (52);
} else {
_root.gotoAndPlay("winround3");
}
}
Symbol 1050 Button
on (release) {
if (_root.score >= 11) {
_root.gotoAndPlay("tieround3");
} else {
_root.gotoAndPlay("loseround3");
}
}
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1051 MovieClip Frame 51
stop();
Symbol 1051 MovieClip Frame 52
stop();
stop();
Symbol 1054 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1058 Button
on (release) {
_root.gotoAndPlay("round4");
}
Symbol 1059 MovieClip Frame 1
stop();
stop();
Symbol 1059 MovieClip Frame 39
stop();
Symbol 1062 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1065 Button
on (release) {
_root.gotoAndPlay("tiequestionround3");
}
Symbol 1066 MovieClip Frame 1
stop();
stop();
Symbol 1066 MovieClip Frame 39
stop();
Symbol 1074 Button
on (release) {
gotoAndPlay (29);
}
Symbol 1075 Button
on (release) {
gotoAndPlay (28);
}
Symbol 1091 MovieClip Frame 1
stop();
Symbol 1091 MovieClip Frame 27
stop();
Symbol 1091 MovieClip Frame 28
stop();
Symbol 1091 MovieClip Frame 29
stop();
Symbol 1094 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1097 MovieClip Frame 1
stop();
stop();
Symbol 1097 MovieClip Frame 39
stop();
Symbol 1113 MovieClip Frame 219
_root.gotoAndPlay("round4intro");
Symbol 1116 MovieClip Frame 1
stop();
Symbol 1116 MovieClip Frame 219
_root.play();
Symbol 1119 MovieClip Frame 1
stop();
score = 0;
Symbol 1128 Button
on (release) {
gotoAndPlay (16);
}
Symbol 1129 Button
on (release) {
gotoAndPlay (16);
}
Symbol 1130 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (16);
}
Symbol 1137 MovieClip Frame 15
stop();
Symbol 1137 MovieClip Frame 60
_root.play();
Symbol 1144 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 1145 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1146 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1151 MovieClip Frame 1
stop();
Symbol 1151 MovieClip Frame 26
_root.play();
Symbol 1158 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 1159 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1160 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1165 MovieClip Frame 1
stop();
Symbol 1165 MovieClip Frame 26
_root.play();
Symbol 1172 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1173 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 1178 MovieClip Frame 1
stop();
Symbol 1178 MovieClip Frame 26
_root.play();
Symbol 1184 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1185 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1186 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 1191 MovieClip Frame 1
stop();
Symbol 1191 MovieClip Frame 26
_root.play();
Symbol 1198 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 1199 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1200 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1205 MovieClip Frame 1
stop();
Symbol 1205 MovieClip Frame 26
_root.play();
Symbol 1212 Button
on (release) {
_root.timeb = _root.timeb + _root.time;
_root.score++;
}
on (release) {
gotoAndPlay (2);
}
Symbol 1213 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1214 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1224 Button
on (release) {
if (_root.score <= 17) {
gotoAndPlay (52);
} else {
_root.gotoAndPlay("winround4");
}
}
Symbol 1229 Button
on (release) {
if (_root.score >= 17) {
_root.gotoAndPlay("tieround4");
} else {
_root.gotoAndPlay("loseround4");
}
}
Symbol 1230 MovieClip Frame 1
stop();
Symbol 1230 MovieClip Frame 51
stop();
Symbol 1230 MovieClip Frame 52
stop();
stop();
Symbol 1234 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1238 Button
on (release) {
_root.gotoAndPlay("win");
}
Symbol 1239 MovieClip Frame 1
stop();
stop();
Symbol 1239 MovieClip Frame 39
stop();
Symbol 1244 Button
on (release) {
_root.gotoAndPlay("tiequestionround4");
}
Symbol 1245 MovieClip Frame 1
Symbol 1245 MovieClip Frame 39
stop();
Symbol 1252 Button
on (release) {
gotoAndPlay (28);
}
Symbol 1253 Button
on (release) {
gotoAndPlay (29);
}
Symbol 1254 Button
on (release) {
gotoAndPlay (29);
}
Symbol 1270 MovieClip Frame 1
stop();
Symbol 1270 MovieClip Frame 27
stop();
Symbol 1270 MovieClip Frame 28
stop();
Symbol 1270 MovieClip Frame 29
stop();
Symbol 1275 MovieClip Frame 1
Symbol 1275 MovieClip Frame 39
stop();
Symbol 1279 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1287 Button
on (release) {
_root.play();
}
on (release) {
_root.score = _root.score + _root.timeb;
}
Symbol 1295 MovieClip Frame 1
stop();
Symbol 1295 MovieClip Frame 2
stop();
Symbol 1298 Button
on (release) {
gotoAndPlay (2);
}
Symbol 1300 Button
on (release) {
_root.gotoAndPlay("smashbeginning");
}
Symbol 1301 Button
on (release) {
gotoAndPlay ("load");
}
Symbol 1304 Button
on (release) {
gotoAndStop ("loaded");
}
Symbol 1305 MovieClip Frame 1
score = _root.score;
stop();
Symbol 1305 MovieClip Frame 2
loadVariables ("http://www.glaielgames.com/highscores/smash_rwb/asp/smash_rwb.asp", this, "POST");
Symbol 1305 MovieClip Frame 3
if (loaded == "true") {
gotoAndStop ("loaded");
}
Symbol 1305 MovieClip Frame 4
gotoAndPlay ("loop");
Symbol 1305 MovieClip Frame 5
delete loaded;
stop();
Symbol 1306 MovieClip Frame 1
getPercent = _root.score / 525;
this.totalscore = Math.round(getPercent * 100) + "%";
stop();
stop();
Symbol 1306 MovieClip Frame 2
stop();
Symbol 1319 Button
on (press) {
if (_root.changingScen == false) {
_root.scen_change.gotoAndPlay("menu_to_menu");
}
}
Symbol 1326 Button
on (press) {
_root.music_menu.stop();
_root.gotoAndPlay("nogame");
}
Symbol 1333 MovieClip Frame 14
stop();
_root.changingScen = false;
Symbol 1333 MovieClip Frame 28
stop();
Symbol 1333 MovieClip Frame 29
_root.changingScen = true;
Symbol 1333 MovieClip Frame 36
_root.play();
Symbol 1333 MovieClip Frame 43
stop();
_root.changingScen = false;
Symbol 1333 MovieClip Frame 44
_root.changingScen = true;
Symbol 1333 MovieClip Frame 51
_root.play();
Symbol 1333 MovieClip Frame 58
stop();
_root.changingScen = false;
Symbol 1333 MovieClip Frame 59
_root.changingScen = true;
Symbol 1333 MovieClip Frame 66
_root.changingScen = false;
_root.play();
Symbol 1333 MovieClip Frame 73
stop();
_root.changingScen = false;
Symbol 1339 Button
on (press) {
if (_root.changingScen == false) {
_root.scen_change.gotoAndPlay("menu_to_level");
}
}
Symbol 1349 MovieClip Frame 1
stop();
Symbol 1351 MovieClip Frame 1
stop();
Instance of Symbol 1351 MovieClip "house6" in Symbol 1354 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(200);
}
Symbol 1375 MovieClip Frame 1
stop();
Symbol 1379 MovieClip Frame 1
stop();
Instance of Symbol 1375 MovieClip "waterMeter" in Symbol 1380 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(100);
}
onClipEvent (enterFrame) {
if (_currentframe < _root.HUD.waterMeter.waterProcent) {
nextFrame();
nextFrame();
} else if (_currentframe > _root.HUD.waterMeter.waterProcent) {
prevFrame();
}
}
Symbol 1383 Button
on (press) {
if (_root.changingScen == false) {
_root.scen_change.gotoAndPlay("menu_to_menu");
}
}
Symbol 1400 MovieClip Frame 1
stop();
Instance of Symbol 1437 MovieClip "hit" in Symbol 1438 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1447 Button
on (press) {
if (_root.changingScen == false) {
_root.scen_change.gotoAndPlay("menu_to_menu");
}
}
Symbol 1448 Button
on (press) {
if (_root.changingScen == false) {
_root.music_level3.stop();
}
_root.gotoAndPlay("nogame");
}
Symbol 1455 Button
on (release) {
gotoAndPlay ("load");
}
Symbol 1458 Button
on (release) {
gotoAndStop ("loaded");
}
Symbol 1459 MovieClip Frame 1
score = _root.score;
stop();
Symbol 1459 MovieClip Frame 2
loadVariables ("http://www.glaielgames.com/highscores/life_of_a_fireman/asp/life_of_a_fireman.asp", this, "POST");
Symbol 1459 MovieClip Frame 3
if (loaded == "true") {
gotoAndStop ("loaded");
}
Symbol 1459 MovieClip Frame 4
gotoAndPlay ("loop");
Symbol 1459 MovieClip Frame 5
delete loaded;
stop();