Frame 1
_quality = "medium";
Stage.showMenu = false;
_root.secret1 = false;
_root.secret2 = false;
_root.secret3 = false;
Instance of Symbol 23 MovieClip in Frame 2
onClipEvent (load) {
_root.stop();
timerstore = 60;
timer = timerstore;
}
onClipEvent (enterFrame) {
if (active == true) {
if (timer > 0) {
timer--;
} else if (timer > (-(timerstore / 2))) {
timer--;
this._alpha = this._alpha - (timerstore / 50);
} else {
_root.play();
}
}
}
Frame 3
Mouse.hide();
Instance of Symbol 28 MovieClip in Frame 3
onClipEvent (mouseMove) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 171 MovieClip in Frame 3
onClipEvent (load) {
_root.stop();
}
Frame 4
stop();
Mouse.show();
Instance of Symbol 184 MovieClip "spark" in Frame 4
onClipEvent (load) {
if (active == true) {
this.play();
this._rotation = this._rotation + (random(60) - 30);
} else {
this.stop();
}
}
Instance of Symbol 202 MovieClip "blind" in Frame 4
onClipEvent (load) {
_root.gametime = 0;
_root.killstore = 0;
_root.totalmoneystore = 0;
_root.healthstore = 4;
_root.maxhealthstore = 4;
_root.weaponstore = 1;
_root.armourstore = 1;
_root.shieldgraphicstore = 1;
_root.shieldstore = 40;
if (_root.coincheat == true) {
_root.moneystore = 999;
} else {
_root.moneystore = 0;
}
_root.kills = _root.killstore;
_root.totalmoney = _root.totalmoneystore;
_root.maxhealth = _root.maxhealthstore;
_root.health = _root.healthstore;
_root.shieldgraphic = _root.shieldgraphicstore;
_root.armour = _root.armourstore;
_root.shield = _root.shieldstore;
_root.weapon = _root.weaponstore;
_root.kills = 0;
_root.money = _root.moneystore;
_root.emotion = 1;
switcher = false;
this.gotoAndPlay("middle");
active = true;
}
onClipEvent (enterFrame) {
_root.gametime++;
if (active == true) {
this.play();
}
if (switcher == true) {
_root.gotoAndStop("blank");
_root.gotoAndStop(_root.level);
active = true;
switcher = false;
}
}
Instance of Symbol 329 MovieClip in Frame 5
onClipEvent (load) {
_root.music.gotoAndStop("jungle");
_root.stop();
_root.level = "level1";
this.stop();
timer = 0;
}
onClipEvent (enterFrame) {
if (timer < 200) {
timer++;
} else {
_root.blind.active = true;
}
}
Instance of Symbol 329 MovieClip in Frame 6
onClipEvent (load) {
_root.music.gotoAndStop("jungle");
_root.level = "level4";
this.gotoAndPlay(_root.level);
timer = 0;
}
onClipEvent (enterFrame) {
if (timer < 200) {
timer++;
} else {
_root.blind.active = true;
}
}
Instance of Symbol 329 MovieClip in Frame 7
onClipEvent (load) {
_root.music.gotoAndStop("jungle");
_root.level = "level7";
this.gotoAndPlay(_root.level);
timer = 0;
}
onClipEvent (enterFrame) {
if (timer < 200) {
timer++;
} else {
_root.blind.active = true;
}
}
Instance of Symbol 329 MovieClip in Frame 8
onClipEvent (load) {
_root.music.gotoAndStop("jungle");
_root.level = "level10";
this.gotoAndPlay(_root.level);
timer = 0;
}
onClipEvent (enterFrame) {
if (timer < 200) {
timer++;
} else {
_root.blind.active = true;
}
}
Frame 9
_root.level = "level1";
Instance of Symbol 337 MovieClip in Frame 9
onClipEvent (load) {
this.stop();
}
Instance of Symbol 342 MovieClip "enemyhealth" in Frame 9
onClipEvent (load) {
timerstore = 50;
timer = 0;
health = 100;
display._xscale = health;
}
onClipEvent (enterFrame) {
if ((timer > 0) and (health > 0)) {
this._visible = true;
display._xscale = health;
timer--;
} else {
this._visible = false;
}
}
Instance of Symbol 347 MovieClip in Frame 9
onClipEvent (load) {
this._visible = false;
}
on (release) {
}
Instance of Symbol 26 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
this.swapDepths(0);
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
_root.money++;
this.removeMovieClip();
}
}
Instance of Symbol 436 MovieClip in Frame 9
onClipEvent (load) {
_root.ii = 10000;
Mouse.hide();
_root.pause = false;
active = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) and (_root.lucy.dead == false)) {
if (active == true) {
active = false;
if (_root.pause == true) {
this.gotoAndPlay("unpause");
_root.lucy.gotoAndStop("run");
_root.lucy.gotoAndStop("stand");
} else {
_root.pause = true;
this.gotoAndPlay("pause");
}
}
}
}
Instance of Symbol 455 MovieClip "pow" in Frame 9
onClipEvent (load) {
timer = 15;
pos = random(50) - 25;
this._x = this._x + pos;
this._y = this._y + pos;
this._rotation = this._rotation + pos;
pow = _root.lucy.varattacktype + 1;
this.gotoAndStop(pow);
if (_root.lucy.flare == true) {
this.gotoAndStop("special");
} else if (_root.lucy.varjump == true) {
this.gotoAndStop("stab");
} else if (_root.lucy.roll == true) {
this.gotoAndStop("roll");
} else if (_root.lucy.sprung == true) {
this.gotoAndStop("boing");
}
if (active == true) {
this._visible = true;
} else if (active == "spring") {
this._alpha = 80;
this.gotoAndStop("boing");
} else {
_root.ii = 0;
this.stop();
this._visible = false;
}
}
onClipEvent (enterFrame) {
timer--;
if (timer < 0) {
this.removeMovieClip();
}
}
Instance of Symbol 463 MovieClip "smoke" in Frame 9
/* no clip actions */
Instance of Symbol 467 MovieClip "output" in Frame 9
onClipEvent (load) {
speed = 10;
distance = 120;
timerstore = 150;
timer = timerstore;
active = false;
pos = this._y;
}
onClipEvent (enterFrame) {
if (active == true) {
if (this._y > (pos - distance)) {
this._y = this._y - speed;
}
if (timer < 0) {
active = false;
timer = timerstore;
} else {
timer--;
}
} else if (this._y < pos) {
this._y = this._y + speed;
}
}
Instance of Symbol 212 MovieClip in Frame 9
onClipEvent (load) {
xorig = this._x;
yorig = this._y;
scrollspeed = 1;
size = 300;
}
onClipEvent (enterFrame) {
if ((this._x > (xorig + size)) or (this._x < (xorig - size))) {
this._x = xorig;
if (_root.ground._x > currentx) {
this._x = this._x + ((_root.ground._x - currentx) / scrollspeed);
} else if (_root.ground._x < currentx) {
this._x = this._x - ((currentx - _root.ground._x) / scrollspeed);
}
}
if ((this._y > (yorig + size)) or (this._y < (yorig - size))) {
this._y = yorig;
if (_root.ground._y > currenty) {
this._y = this._y + ((_root.ground._y - currenty) / scrollspeed);
} else if (_root.ground._y < currenty) {
this._y = this._y - ((currenty - _root.ground._y) / scrollspeed);
}
}
if (_root.ground._x > currentx) {
this._x = this._x + ((_root.ground._x - currentx) / scrollspeed);
} else if (_root.ground._x < currentx) {
this._x = this._x - ((currentx - _root.ground._x) / scrollspeed);
}
if (_root.ground._y > currenty) {
this._y = this._y + ((_root.ground._y - currenty) / scrollspeed);
} else if (_root.ground._y < currenty) {
this._y = this._y - ((currenty - _root.ground._y) / scrollspeed);
}
currenty = _root.ground._y;
currentx = _root.ground._x;
}
Instance of Symbol 490 MovieClip "ground" in Frame 9
onClipEvent (load) {
_root.gametime = 0;
_root.platformgraphic = 1;
_root.output.active = true;
_root.output.line1 = "Chapter 1";
_root.output.line2 = "Dark Forest";
_root.output.line3 = "Password: forest";
}
Instance of Symbol 529 MovieClip "lucy" in Frame 9
onClipEvent (load) {
walkoff = false;
combo = 0;
combotimerstore = 50;
combotimer = combotimerstore;
_root.health = _root.healthstore;
shield = _root.shield;
flare = false;
attacktimerstore = 20;
attacktimer = attacktimerstore;
varattacktype = 2;
stuntime = 1.3;
STOREvarspringheight = 5;
bgspeed = 15;
_root.varmaxspeed = 10;
varaccel = 2;
vargravity = 25;
varbounce = 8;
dead = false;
varstunned = false;
hit = false;
hitswitch = false;
roll = false;
varspringheight = STOREvarspringheight;
varspeed = 0;
vardrop = 0;
STOREvarmaxjump = vargravity;
varmaxjump = STOREvarmaxjump;
varjumpspeed = STOREvarmaxjump;
STOREvarjumpspeed = varjumpspeed;
varjump = false;
varjumpswitch = false;
varjumptimer = 0;
varscale = this._xscale;
varattack = false;
varattackswitch = false;
varattacktype = 1;
}
onClipEvent (enterFrame) {
if (combotimer > 0) {
combotimer--;
} else {
if (combo > 0) {
combotimer = combotimerstore;
}
combo = 0;
}
if (attacktimer < 0) {
varattacktype = 3;
attacktimer = attacktimerstore;
} else {
attacktimer--;
}
if (dead == true) {
this.swapDepths(100);
this._alpha = 100;
_root.emotion = 2;
this.gotoAndStop("dead");
} else if (_root.pause == false) {
if (walkoff == true) {
this.gotoAndStop("walkoff");
} else {
if (_root.health <= 0) {
dead = true;
}
if ((varstunned == false) and ((Key.isDown(65) and (varjump == false)) or (sprung == true))) {
if (varjumpswitch == false) {
varjump = true;
varjumpswitch = true;
}
}
_root.ground._x = _root.ground._x + varspeed;
if (Key.isDown(39) and (varstunned == false)) {
if (varjump == false) {
if (varattack == false) {
_root.emotion = 1;
this.gotoAndStop("run");
this._xscale = varscale;
}
}
if (varspeed > (-_root.varmaxspeed)) {
varspeed = varspeed - varaccel;
}
} else if (Key.isDown(37) and (varstunned == false)) {
if (varjump == false) {
if (varattack == false) {
_root.emotion = 1;
this.gotoAndStop("run");
this._xscale = -varscale;
}
}
if (varspeed < _root.varmaxspeed) {
varspeed = varspeed + varaccel;
}
} else {
if ((varjump == false) and (varstunned == false)) {
if (varattack == false) {
_root.emotion = 1;
this.gotoAndStop("stand");
}
}
if (varspeed > 0) {
varspeed = varspeed - varaccel;
} else if (varspeed < 0) {
varspeed = varspeed + varaccel;
}
}
if (Key.isDown(83) and (varattackswitch == false)) {
attacktimer = attacktimerstore;
varattack = true;
varattackswitch = true;
if (varjump == true) {
if (Key.isDown(38)) {
varattacktype = 5;
} else if (Key.isDown(40)) {
varattacktype = 6;
} else {
varattacktype = 7;
}
} else if ((varspeed > (_root.varmaxspeed - varaccel)) or (varspeed < ((-_root.varmaxspeed) + varaccel))) {
varattacktype = 4;
} else if (varattacktype < 3) {
varattacktype++;
} else {
varattacktype = 0;
}
} else if ((Key.isDown(83) == false) and (varattack == false)) {
varattackswitch = false;
}
if (varattack == true) {
_root.emotion = 3;
if (varattacktype == 0) {
this.gotoAndStop("attack1");
} else if (varattacktype == 1) {
this.gotoAndStop("attack2");
} else if (varattacktype == 2) {
this.gotoAndStop("attack3");
} else if (varattacktype == 3) {
this.gotoAndStop("attack4");
} else if (varattacktype == 4) {
this.gotoAndStop("attackroll");
} else if (varattacktype == 5) {
this.gotoAndStop("attackjumpup");
} else if (varattacktype == 6) {
this.gotoAndStop("attackjump");
} else if (varattacktype == 7) {
this.gotoAndStop("attackjumpstraight");
}
}
if ((varjump == true) and (varjumpswitch == true)) {
if (varjumptimer < varmaxjump) {
_root.ground._y = _root.ground._y + varjumpspeed;
varjumpspeed = varjumpspeed - 1.2;
varjumptimer++;
if (varjumpspeed > (vargravity / 2)) {
if (varattack == false) {
_root.emotion = 1;
this.gotoAndStop("jump");
}
} else if (varattack == false) {
_root.emotion = 1;
this.gotoAndStop("fall");
}
} else {
varjumpswitch = false;
}
}
if (_root.ground.hitTest(_x + 25, _y - 25, true)) {
varspeed = _root.varmaxspeed - varbounce;
} else if (_root.ground.hitTest(_x - 25, _y - 25, true)) {
varspeed = -(_root.varmaxspeed - varbounce);
}
if (_root.ground.hitTest(_x, _y, true)) {
sprung = false;
vardrop = 0;
varjump = false;
varjumpswitch = true;
while (_root.ground.hitTest(_x, _y, true)) {
_root.ground._y = _root.ground._y + 1;
}
if (Key.isDown(65) == false) {
varmaxjump = STOREvarmaxjump;
varjumpspeed = STOREvarmaxjump;
varjumpswitch = false;
varjumptimer = 0;
}
} else if (_root.ground.hitTest(_x, _y - 70, true)) {
varmaxjump = 0;
} else if (varjump == false) {
if (varattack == false) {
this.gotoAndStop("fall");
}
varjump = true;
}
if (vardrop < vargravity) {
vardrop++;
}
_root.ground._y = _root.ground._y - vardrop;
if (sprung == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = "spring";
_root["smoke" + _root.ii]._x = _root.lucy._x;
_root["smoke" + _root.ii]._y = _root.lucy._y;
pow = false;
}
varjumpspeed = varjumpspeed + varspringheight;
if (varspringheight > 0) {
varspringheight = varspringheight - 1;
} else {
varspringheight = 0;
}
} else {
pow = true;
varspringheight = STOREvarspringheight;
}
}
if ((hit == true) and (shield > 0)) {
if (shield > (_root.shield / stuntime)) {
varstunned = true;
_root.emotion = 2;
this.gotoAndStop("hit");
} else {
varstunned = false;
}
if (hitswitch == false) {
this._alpha = 0;
hitswitch = true;
} else {
this._alpha = 100;
hitswitch = false;
}
shield--;
} else {
hit = false;
shield = _root.shield;
_alpha = 100;
}
}
}
Instance of Symbol 564 MovieClip "ground" in Frame 12
onClipEvent (load) {
_root.platformgraphic = 2;
_root.output.active = true;
_root.output.line1 = "Chapter 2";
_root.output.line2 = "Southern Desert.";
_root.output.line3 = "Password: desert";
}
Instance of Symbol 574 MovieClip "ground" in Frame 15
onClipEvent (load) {
_root.platformgraphic = 3;
_root.output.active = true;
_root.output.line1 = "Chapter 3";
_root.output.line2 = "Mount Newgroundia";
_root.output.line3 = "Password: newgroundia";
}
Instance of Symbol 580 MovieClip "ground" in Frame 18
onClipEvent (load) {
_root.platformgraphic = 4;
_root.output.active = true;
_root.output.line1 = "Chapter 3";
_root.output.line2 = "Castle Newgroundia";
_root.output.line3 = "Password: castle";
}
Instance of Symbol 28 MovieClip in Frame 20
onClipEvent (mouseMove) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Symbol 6 Button
on (release) {
getURL ("http:///www.armorgames.com", "_blank");
}
Symbol 15 Button
on (release) {
_root.play();
}
Symbol 16 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 16 MovieClip Frame 2
gotoAndPlay (1);
Symbol 23 MovieClip Frame 400
active = true;
Symbol 23 MovieClip Frame 505
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 52 Button
on (release) {
gotoAndStop ("extras");
}
Symbol 56 Button
on (release) {
gotoAndStop ("password");
}
Symbol 60 Button
on (release) {
stopAllSounds();
_root.coincheat = false;
_root.cheater = false;
_root.gotoAndStop("intro");
}
Symbol 66 Button
on (release) {
_root.cheater = true;
if (_root.password == "forest") {
stopAllSounds();
_root.gotoAndStop("map1");
} else if (_root.password == "desert") {
stopAllSounds();
_root.gotoAndStop("map2");
} else if (_root.password == "newgroundia") {
stopAllSounds();
_root.gotoAndStop("map3");
} else if (_root.password == "castle") {
stopAllSounds();
_root.gotoAndStop("map4");
} else if (_root.password == "endmovie") {
stopAllSounds();
_root.gotoAndStop("endmovie");
} else if (_root.password == "credits") {
stopAllSounds();
_root.gotoAndStop("credits");
} else if (_root.password == "coinz") {
coincheatdisplay._visible = true;
_root.coincheat = true;
} else {
_root.cheater = false;
_root.password == "invalid code";
}
}
Symbol 72 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 81 Button
on (press) {
if (_root.secret3 == false) {
secretlock._visible = true;
} else {
gotoAndStop ("fulp");
}
}
on (release, releaseOutside) {
secretlock._visible = false;
}
Symbol 87 Button
on (press) {
if (_root.secret2 == false) {
secretlock._visible = true;
} else {
gotoAndStop ("numa");
}
}
on (release, releaseOutside) {
secretlock._visible = false;
}
Symbol 88 Button
on (press) {
if (_root.secret1 == false) {
secretlock._visible = true;
} else {
gotoAndStop ("ciyfox");
}
}
on (release, releaseOutside) {
secretlock._visible = false;
}
Symbol 89 Button
on (press) {
if (_root.secret1 == false) {
secretlock._visible = true;
} else {
gotoAndStop ("tony");
}
}
on (release, releaseOutside) {
secretlock._visible = false;
}
Symbol 95 Button
on (release) {
gotoAndStop ("extras");
}
Symbol 99 Button
on (release) {
stopAllSounds();
gotoAndStop ("ciyfoxlogo");
}
Symbol 103 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/search.php?terms=ciyfox&kind=a&x=0&y=0", "_blank");
}
Symbol 116 Button
on (release) {
stopAllSounds();
_parent.gotoAndStop("extras");
}
Instance of Symbol 120 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.armour);
}
Instance of Symbol 120 MovieClip in Symbol 130 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.emotion);
}
Instance of Symbol 120 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.armour);
}
Instance of Symbol 120 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.armour);
}
Instance of Symbol 120 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.armour);
}
Instance of Symbol 120 MovieClip in Symbol 144 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.armour);
}
Symbol 153 MovieClip Frame 1
_root.armour = 1;
_root.emotion = 1;
Symbol 153 MovieClip Frame 1222
stop();
Symbol 170 MovieClip Frame 263
_parent.gotoAndStop("ciyfox");
Symbol 171 MovieClip Frame 30
stop();
Instance of Symbol 26 MovieClip "coincheatdisplay" in Symbol 171 MovieClip Frame 31
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 78 MovieClip "secretlock" in Symbol 171 MovieClip Frame 32
onClipEvent (load) {
this.stop();
this._visible = false;
}
Instance of Symbol 120 MovieClip in Symbol 184 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.play();
}
Symbol 184 MovieClip Frame 11
this.removeMovieClip();
Symbol 189 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 15
active = false;
switcher = true;
stop();
Symbol 202 MovieClip Frame 30
active = false;
this.gotoAndStop(1);
Symbol 207 MovieClip Frame 1
stop();
Instance of Symbol 215 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.armour);
}
Instance of Symbol 215 MovieClip in Symbol 226 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.emotion);
}
Instance of Symbol 215 MovieClip in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.armour);
}
Instance of Symbol 215 MovieClip in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.armour);
}
Symbol 272 MovieClip Frame 1
_root.emotion = 4;
_root.weapon = 2;
_root.shieldgraphic = 2;
_root.armour = 1;
Symbol 272 MovieClip Frame 112
_root.emotion = 3;
Symbol 272 MovieClip Frame 317
_root.emotion = 5;
Symbol 272 MovieClip Frame 327
_root.emotion = 3;
Symbol 272 MovieClip Frame 1650
Symbol 272 MovieClip Frame 2160
_root.armour = 3;
Symbol 272 MovieClip Frame 2664
stop();
Instance of Symbol 207 MovieClip in Symbol 322 MovieClip Frame 1
on (rollOver, dragOver) {
gotoAndStop ("over");
}
on (rollOut, dragOut) {
gotoAndStop ("off");
}
on (releaseOutside) {
gotoAndStop ("off");
}
on (release) {
_parent.gotoAndPlay("end");
}
Symbol 322 MovieClip Frame 2664
stop();
_root.armour = 1;
_root.weapon = 1;
_root.shieldgraphic = 1;
_root.level = "map1";
_root.blind.active = true;
Symbol 329 MovieClip Frame 1
_root.emotion = 1;
Symbol 329 MovieClip Frame 122
stop();
Instance of Symbol 324 MovieClip in Symbol 329 MovieClip Frame 122
/* no clip actions */
Symbol 329 MovieClip Frame 241
stop();
Symbol 329 MovieClip Frame 374
stop();
Symbol 347 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.platformgraphic);
}
Symbol 354 MovieClip Frame 1
stop();
Instance of Symbol 352 MovieClip in Symbol 354 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Instance of Symbol 354 MovieClip in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
limit = 8;
maxlimit = 8;
}
onClipEvent (enterFrame) {
if (_root.maxhealth < maxlimit) {
this.gotoAndStop("gone");
} else if (_root.health < (limit - 1)) {
this.gotoAndStop("dead");
} else if (_root.health < limit) {
this.gotoAndStop("half");
} else {
this.gotoAndStop("full");
}
}
Instance of Symbol 354 MovieClip in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
limit = 10;
maxlimit = 10;
}
onClipEvent (enterFrame) {
if (_root.maxhealth < maxlimit) {
this.gotoAndStop("gone");
} else if (_root.health < (limit - 1)) {
this.gotoAndStop("dead");
} else if (_root.health < limit) {
this.gotoAndStop("half");
} else {
this.gotoAndStop("full");
}
}
Instance of Symbol 354 MovieClip in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
limit = 6;
maxlimit = 6;
}
onClipEvent (enterFrame) {
if (_root.maxhealth < maxlimit) {
this.gotoAndStop("gone");
} else if (_root.health < (limit - 1)) {
this.gotoAndStop("dead");
} else if (_root.health < limit) {
this.gotoAndStop("half");
} else {
this.gotoAndStop("full");
}
}
Instance of Symbol 354 MovieClip in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
limit = 4;
maxlimit = 0;
}
onClipEvent (enterFrame) {
if (_root.maxhealth < maxlimit) {
this.gotoAndStop("gone");
} else if (_root.health < (limit - 1)) {
this.gotoAndStop("dead");
} else if (_root.health < limit) {
this.gotoAndStop("half");
} else {
this.gotoAndStop("full");
}
}
Symbol 355 MovieClip Frame 5
stop();
Instance of Symbol 354 MovieClip in Symbol 355 MovieClip Frame 5
onClipEvent (load) {
limit = 8;
maxlimit = 8;
}
onClipEvent (enterFrame) {
if (_root.maxhealth < maxlimit) {
this.gotoAndStop("gone");
} else if (_root.health < (limit - 1)) {
this.gotoAndStop("dead");
} else if (_root.health < limit) {
this.gotoAndStop("half");
} else {
this.gotoAndStop("full");
}
}
Instance of Symbol 354 MovieClip in Symbol 355 MovieClip Frame 5
onClipEvent (load) {
limit = 10;
maxlimit = 10;
}
onClipEvent (enterFrame) {
if (_root.maxhealth < maxlimit) {
this.gotoAndStop("gone");
} else if (_root.health < (limit - 1)) {
this.gotoAndStop("dead");
} else if (_root.health < limit) {
this.gotoAndStop("half");
} else {
this.gotoAndStop("full");
}
}
Instance of Symbol 354 MovieClip in Symbol 355 MovieClip Frame 5
onClipEvent (load) {
limit = 6;
maxlimit = 6;
}
onClipEvent (enterFrame) {
if (_root.maxhealth < maxlimit) {
this.gotoAndStop("gone");
} else if (_root.health < (limit - 1)) {
this.gotoAndStop("dead");
} else if (_root.health < limit) {
this.gotoAndStop("half");
} else {
this.gotoAndStop("full");
}
}
Instance of Symbol 354 MovieClip in Symbol 355 MovieClip Frame 5
onClipEvent (load) {
limit = 2;
maxlimit = 0;
}
onClipEvent (enterFrame) {
if (_root.maxhealth < maxlimit) {
this.gotoAndStop("gone");
} else if (_root.health < (limit - 1)) {
this.gotoAndStop("dead");
} else if (_root.health < limit) {
this.gotoAndStop("half");
} else {
this.gotoAndStop("full");
}
}
Symbol 370 MovieClip Frame 1
stop();
Instance of Symbol 370 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
keydown = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_parent._parent.pen.tip) and Key.isDown(65)) and (keydown == false)) {
keydown = true;
if ((_parent._alpha == 100) and (_root.money >= _parent.cost)) {
this.gotoAndStop("hit");
_parent.active = true;
_root.money = _root.money - _parent.cost;
_root.totalmoney = _root.totalmoney + _parent.cost;
}
} else if (this.hitTest(_parent._parent.pen.tip)) {
this.gotoAndStop("over");
} else {
this.gotoAndStop("off");
}
if (Key.isDown(65) == false) {
keydown = false;
}
}
on (rollOver, dragOver) {
gotoAndStop ("over");
}
on (rollOut, dragOut) {
gotoAndStop ("off");
}
on (releaseOutside) {
gotoAndStop ("off");
}
on (release) {
if ((_parent._alpha == 100) and (_root.money >= _parent.cost)) {
_parent.active = true;
_root.money = _root.money - _parent.cost;
this.gotoAndStop("hit");
}
}
Instance of Symbol 372 MovieClip in Symbol 378 MovieClip Frame 1
on (release) {
}
Instance of Symbol 372 MovieClip in Symbol 378 MovieClip Frame 1
on (release) {
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 1
stop();
Instance of Symbol 378 MovieClip in Symbol 436 MovieClip Frame 21
onClipEvent (load) {
item = "Health";
description = "Recover a heart.";
cost = 10;
active = false;
}
onClipEvent (enterFrame) {
if (_root.health >= _root.maxhealth) {
this._alpha = 50;
} else if ((active == true) and (_root.health >= (_root.maxhealth - 1))) {
_root.health = _root.health + 1;
active = false;
} else if (active == true) {
_root.health = _root.health + 2;
active = false;
}
}
Instance of Symbol 378 MovieClip in Symbol 436 MovieClip Frame 26
onClipEvent (load) {
item = "Sword";
lvl2cost = 20;
lvl3cost = 35;
lvl4cost = 50;
active = false;
}
onClipEvent (enterFrame) {
upgrade = _root.weapon;
level = upgrade;
if (active == true) {
_root.weapon++;
active = false;
}
if (level == 1) {
cost = lvl2cost;
} else if (level == 2) {
cost = lvl3cost;
} else if (level == 3) {
cost = lvl4cost;
} else {
_alpha = 50;
cost = "---";
}
}
Instance of Symbol 378 MovieClip in Symbol 436 MovieClip Frame 31
onClipEvent (load) {
item = "Armor";
lvl2cost = 20;
lvl3cost = 35;
lvl4cost = 50;
lvl5cost = 50;
active = false;
}
onClipEvent (enterFrame) {
upgrade = _root.maxhealth;
level = upgrade;
if (active == true) {
_root.maxhealth = _root.maxhealth + 2;
_root.health = _root.health + 2;
_root.armour++;
active = false;
}
if (level == 4) {
cost = lvl2cost;
} else if (level == 6) {
cost = lvl3cost;
} else if (level == 8) {
cost = lvl4cost;
} else if (level == 10) {
cost = lvl5cost;
} else {
_alpha = 50;
cost = "---";
}
}
Instance of Symbol 378 MovieClip "swordbuy" in Symbol 436 MovieClip Frame 31
onClipEvent (load) {
item = "Sword";
description = "Sword has more power ";
description2 = "+ range - Kill faster";
lvl2cost = 10;
lvl3cost = 20;
lvl4cost = 30;
active = false;
}
onClipEvent (enterFrame) {
upgrade = _root.weapon;
level = upgrade;
if (active == true) {
_root.weapon++;
active = false;
}
if (level == 1) {
cost = lvl2cost;
} else if (level == 2) {
cost = lvl3cost;
} else if (level == 3) {
cost = lvl4cost;
} else {
_alpha = 50;
cost = "---";
}
}
Instance of Symbol 378 MovieClip in Symbol 436 MovieClip Frame 36
onClipEvent (load) {
item = "Shield";
lvl2cost = 20;
lvl3cost = 35;
lvl4cost = 50;
active = false;
}
onClipEvent (enterFrame) {
upgrade = _root.shieldgraphic;
level = upgrade;
if (active == true) {
_root.shieldgraphic++;
_root.shield = _root.shield + 25;
active = false;
}
if (level == 1) {
cost = lvl2cost;
} else if (level == 2) {
cost = lvl3cost;
} else if (level == 3) {
cost = lvl4cost;
} else {
_alpha = 50;
cost = "---";
}
}
Instance of Symbol 378 MovieClip "armorbuy" in Symbol 436 MovieClip Frame 36
onClipEvent (load) {
item = "Armor";
description = "Higher health capacity.";
description2 = "Your hero has more hearts.";
lvl2cost = 15;
lvl3cost = 30;
lvl4cost = 45;
active = false;
}
onClipEvent (enterFrame) {
upgrade = _root.maxhealth;
level = upgrade;
if (active == true) {
_root.maxhealth = _root.maxhealth + 2;
_root.health = _root.health + 2;
_root.armour++;
active = false;
}
if (level == 4) {
cost = lvl2cost;
} else if (level == 6) {
cost = lvl3cost;
} else if (level == 8) {
cost = lvl4cost;
} else {
_alpha = 50;
cost = "---";
}
}
Symbol 436 MovieClip Frame 40
pencilpos = true;
active = true;
stop();
Instance of Symbol 28 MovieClip "pen" in Symbol 436 MovieClip Frame 40
onClipEvent (mouseMove) {
active = true;
}
onClipEvent (load) {
speed = 8;
currentx = this._x;
currenty = this._y;
}
onClipEvent (enterFrame) {
if ((_parent.pencilpos == true) and (active == true)) {
mx = _root._xmouse - 5;
if (mx < _x) {
dx = _x - mx;
} else {
dx = mx - _x;
}
moveSpeedx = dx / 3;
if (mx < _x) {
_x = (_x - moveSpeedx);
} else {
_x = (_x + moveSpeedx);
}
my = _root._ymouse - 10;
if (my < _y) {
dy = _y - my;
} else {
dy = my - _y;
}
moveSpeedy = dy / 3;
if (my < _y) {
_y = (_y - moveSpeedy);
} else {
_y = (_y + moveSpeedy);
}
} else if (active == true) {
mx = currentx;
if (mx < _x) {
dx = _x - mx;
} else {
dx = mx - _x;
}
moveSpeedx = dx / 5;
if (mx < _x) {
_x = (_x - moveSpeedx);
} else {
_x = (_x + moveSpeedx);
}
my = currenty;
if (my < _y) {
dy = _y - my;
} else {
dy = my - _y;
}
moveSpeedy = dy / 5;
if (my < _y) {
_y = (_y - moveSpeedy);
} else {
_y = (_y + moveSpeedy);
}
}
if (_parent.pencilpos == true) {
if (Key.isDown(38)) {
active = false;
this._y = this._y - speed;
}
if (Key.isDown(40)) {
active = false;
this._y = this._y + speed;
}
if (Key.isDown(39)) {
active = false;
this._x = this._x + speed;
}
if (Key.isDown(37)) {
active = false;
this._x = this._x - speed;
}
}
}
Instance of Symbol 405 MovieClip in Symbol 436 MovieClip Frame 40
onClipEvent (load) {
label = "HERE";
active = false;
}
on (release) {
_root.pause = false;
_root.health = 0;
}
on (rollOver, dragOver) {
gotoAndStop ("over");
}
on (rollOut, dragOut) {
gotoAndStop ("off");
}
on (press) {
gotoAndStop ("hit");
}
on (release) {
}
on (releaseOutside) {
gotoAndStop ("off");
}
Instance of Symbol 378 MovieClip "healthbuy" in Symbol 436 MovieClip Frame 40
onClipEvent (load) {
item = "Health";
description = "Recover a heart.";
description2 = "Heal yourself often.";
cost = 10;
active = false;
}
onClipEvent (enterFrame) {
if (_root.health >= _root.maxhealth) {
this._alpha = 50;
} else if ((active == true) and (_root.health >= (_root.maxhealth - 1))) {
_root.health = _root.health + 1;
active = false;
} else if (active == true) {
_root.health = _root.health + 2;
active = false;
}
}
Instance of Symbol 378 MovieClip "shieldbuy" in Symbol 436 MovieClip Frame 40
onClipEvent (load) {
item = "Shield";
description = "Once hit, you are";
description2 = "invincible for longer.";
lvl2cost = 5;
lvl3cost = 10;
lvl4cost = 15;
active = false;
}
onClipEvent (enterFrame) {
upgrade = _root.shieldgraphic;
level = upgrade;
if (active == true) {
_root.shieldgraphic++;
_root.shield = _root.shield + 25;
active = false;
}
if (level == 1) {
cost = lvl2cost;
} else if (level == 2) {
cost = lvl3cost;
} else if (level == 3) {
cost = lvl4cost;
} else {
_alpha = 50;
cost = "---";
}
}
Symbol 436 MovieClip Frame 41
pencilpos = false;
Instance of Symbol 378 MovieClip in Symbol 436 MovieClip Frame 41
onClipEvent (load) {
item = "Shield";
lvl2cost = 20;
lvl3cost = 35;
lvl4cost = 50;
active = false;
}
onClipEvent (enterFrame) {
upgrade = _root.shieldgraphic;
level = upgrade;
if (active == true) {
_root.shieldgraphic++;
_root.shield = _root.shield + 25;
active = false;
}
if (level == 1) {
cost = lvl2cost;
} else if (level == 2) {
cost = lvl3cost;
} else if (level == 3) {
cost = lvl4cost;
} else {
_alpha = 50;
cost = "---";
}
}
Instance of Symbol 378 MovieClip in Symbol 436 MovieClip Frame 46
onClipEvent (load) {
item = "Armor";
lvl2cost = 20;
lvl3cost = 35;
lvl4cost = 50;
lvl5cost = 50;
active = false;
}
onClipEvent (enterFrame) {
upgrade = _root.maxhealth;
level = upgrade;
if (active == true) {
_root.maxhealth = _root.maxhealth + 2;
_root.health = _root.health + 2;
_root.armour++;
active = false;
}
if (level == 4) {
cost = lvl2cost;
} else if (level == 6) {
cost = lvl3cost;
} else if (level == 8) {
cost = lvl4cost;
} else if (level == 10) {
cost = lvl5cost;
} else {
_alpha = 50;
cost = "---";
}
}
Instance of Symbol 378 MovieClip in Symbol 436 MovieClip Frame 52
onClipEvent (load) {
item = "Sword";
lvl2cost = 20;
lvl3cost = 35;
lvl4cost = 50;
active = false;
}
onClipEvent (enterFrame) {
upgrade = _root.weapon;
level = upgrade;
if (active == true) {
_root.weapon++;
active = false;
}
if (level == 1) {
cost = lvl2cost;
} else if (level == 2) {
cost = lvl3cost;
} else if (level == 3) {
cost = lvl4cost;
} else {
_alpha = 50;
cost = "---";
}
}
Instance of Symbol 378 MovieClip in Symbol 436 MovieClip Frame 58
onClipEvent (load) {
item = "Health";
description = "Recover a heart.";
cost = 10;
active = false;
}
onClipEvent (enterFrame) {
if (_root.health >= _root.maxhealth) {
this._alpha = 50;
} else if ((active == true) and (_root.health >= (_root.maxhealth - 1))) {
_root.health = _root.health + 1;
active = false;
} else if (active == true) {
_root.health = _root.health + 2;
active = false;
}
}
Symbol 436 MovieClip Frame 93
_root.pause = false;
active = true;
gotoAndStop ("pause");
Symbol 463 MovieClip Frame 8
this.removeMovieClip();
stop();
Symbol 469 MovieClip Frame 1
stop();
Instance of Symbol 468 MovieClip in Symbol 469 MovieClip Frame 2
onClipEvent (load) {
_root.enemyhealth.timer = _root.enemyhealth.timerstore;
_root.enemyhealth.health = _parent.health * 10;
if (_parent.dead == true) {
_root.enemyhealth.health = 0;
}
}
Symbol 482 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip "left" in Symbol 482 MovieClip Frame 1
onClipEvent (load) {
if (_parent.locked == true) {
this._x = this._x - 200;
}
}
Symbol 489 MovieClip Frame 1
stop();
Instance of Symbol 347 MovieClip "hit" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_root.lucy.hitTest(hit)) {
active = true;
}
if (active == true) {
spring = true;
}
} else {
this.stop();
}
if (spring == true) {
_root.lucy.sprung = true;
spring = false;
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 469 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 60;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 469 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 120;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 469 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 200;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 476 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 479 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
leftpause = 0;
rightpause = 0;
time = 65;
timer = 0;
swit = true;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.killstore = _root.kills;
_root.totalmoneystore = _root.totalmoney;
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level2";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = true;
kills = 2;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "monsters killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 476 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 489 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 479 MovieClip in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
leftpause = 0;
rightpause = 0;
time = 70;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Symbol 496 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip in Symbol 496 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.shieldgraphic);
}
Symbol 501 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip in Symbol 501 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.weapon);
}
Symbol 505 MovieClip Frame 13
stop();
Symbol 508 MovieClip Frame 17
_parent.varattack = false;
stop();
Symbol 509 MovieClip Frame 13
_parent.varattack = false;
stop();
Symbol 511 MovieClip Frame 13
_parent.varattack = false;
stop();
Symbol 518 MovieClip Frame 15
_parent.flare = true;
Symbol 518 MovieClip Frame 30
_parent.flare = false;
_parent.varattack = false;
stop();
Symbol 519 MovieClip Frame 1
_parent.roll = true;
Symbol 519 MovieClip Frame 17
_parent.roll = false;
_parent.varattack = false;
stop();
Symbol 520 MovieClip Frame 16
_parent.varattack = false;
this.gotoAndPlay(15);
Symbol 522 MovieClip Frame 10
this.gotoAndPlay(4);
Symbol 523 MovieClip Frame 16
this.gotoAndPlay(15);
Symbol 525 MovieClip Frame 13
stop();
Symbol 527 MovieClip Frame 72
_root.maxhealth = _root.maxhealthstore;
_root.health = _root.healthstore;
_root.shieldgraphic = _root.shieldgraphicstore;
_root.armour = _root.armourstore;
_root.totalmoney = _root.totalmoneystore;
_root.shield = _root.shieldstore;
_root.weapon = _root.weaponstore;
_root.kills = _root.killstore;
_root.money = _root.moneystore;
_root.emotion = 1;
_root.blind.active = true;
_parent.removeMovieClip();
stop();
Symbol 528 MovieClip Frame 45
_root.blind.active = true;
stop();
Symbol 529 MovieClip Frame 1
stop();
Instance of Symbol 522 MovieClip "lucy" in Symbol 529 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_parent.varjump == false) {
_parent.varattack = false;
}
}
Instance of Symbol 523 MovieClip "lucy" in Symbol 529 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_parent.varjump == false) {
_parent.varattack = false;
}
}
Symbol 542 MovieClip Frame 1
stop();
Instance of Symbol 539 MovieClip in Symbol 542 MovieClip Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation + 20;
}
Symbol 545 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_root.platformgraphic);
}
Symbol 548 MovieClip Frame 1
stop();
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 542 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
pos = this._y;
fallspeed = 5;
climbspeed = 5;
xrange = 50;
yrange = 200;
active = false;
fall = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if ((((((fall == false) and (active == false)) and (_root.lucy._y > (point.y - yrange))) and (_root.lucy._y < (point.y + yrange))) and (_root.lucy._x > (point.x - xrange))) and (_root.lucy._x < (point.x + xrange))) {
active = true;
fall = true;
}
if (((fall == true) and (active == true)) and (this._y < (pos + yrange))) {
this._y = this._y + fallspeed;
this.gotoAndStop("angry");
} else if ((fall == true) and (active == true)) {
fall = false;
this.gotoAndStop("look");
} else if (((fall == false) and (active == true)) and (this._y > pos)) {
this._y = this._y - climbspeed;
} else if ((fall == false) and (active == true)) {
active = false;
}
if (this.hitTest(_root.lucy.lucy.body)) {
fall = false;
_root.lucy.hit = true;
_root.health = _root.health - 1;
if (_root.lucy._x > point.x) {
_root.lucy.varspeed = -_root.varmaxspeed;
} else {
_root.lucy.varspeed = _root.varmaxspeed;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.killstore = _root.kills;
_root.totalmoneystore = _root.totalmoney;
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 489 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 545 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
speed = 8;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 545 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
speed = -8;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 489 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 545 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
speed = 8;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 545 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
speed = -8;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 489 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 476 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 545 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
speed = 8;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 545 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
speed = -8;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 548 MovieClip "switchdoor" in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
time = 99;
timerstore = time;
timer = "";
time = 30;
active = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and (timer > 0)) {
this.gotoAndStop("timer");
if (time == 0) {
time = 30;
timer--;
} else {
time--;
}
} else if (active == true) {
active = false;
this.gotoAndStop("unactive");
timer = "";
}
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
this.gotoAndStop("active");
active = true;
timer = timerstore;
time = 30;
}
}
}
Instance of Symbol 476 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 482 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
locked = true;
condition = false;
kills = 5;
doorheight = 120;
speed = 10;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = true;
kills = 2;
doorheight = 120;
speed = 10;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_parent.switchdoor.active == true) {
active = true;
} else {
active = false;
}
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
leftactive = true;
if (active == true) {
open = true;
left._x = lpos - 150;
} else {
_root.output.active = true;
_root.output.line1 = "DOOR LOCKED";
_root.output.line2 = "Find switch";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 0;
leftactive = true;
} else if (transport == 2) {
_root.ground.nextFrame();
_root.ground._x = 275;
_root.ground._y = 200;
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
Instance of Symbol 482 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = false;
kills = 5;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 97
active = true;
this.gotoAndStop(1);
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 542 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
pos = this._y;
fallspeed = 5;
climbspeed = 5;
xrange = 50;
yrange = 200;
active = false;
fall = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if ((((((fall == false) and (active == false)) and (_root.lucy._y > (point.y - yrange))) and (_root.lucy._y < (point.y + yrange))) and (_root.lucy._x > (point.x - xrange))) and (_root.lucy._x < (point.x + xrange))) {
active = true;
fall = true;
}
if (((fall == true) and (active == true)) and (this._y < (pos + yrange))) {
this._y = this._y + fallspeed;
this.gotoAndStop("angry");
} else if ((fall == true) and (active == true)) {
fall = false;
this.gotoAndStop("look");
} else if (((fall == false) and (active == true)) and (this._y > pos)) {
this._y = this._y - climbspeed;
} else if ((fall == false) and (active == true)) {
active = false;
}
if (this.hitTest(_root.lucy.lucy.body)) {
fall = false;
_root.lucy.hit = true;
_root.health = _root.health - 1;
if (_root.lucy._x > point.x) {
_root.lucy.varspeed = -_root.varmaxspeed;
} else {
_root.lucy.varspeed = _root.varmaxspeed;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (this.hitTest(_root.lucy)) {
_root.health = 0;
}
}
}
Instance of Symbol 479 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 20;
time = 90;
timer = 0;
swit = true;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 20;
time = 90;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 20;
time = 90;
timer = 0;
swit = true;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 20;
time = 90;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 20;
time = 90;
timer = 0;
swit = true;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
timerstore = 5;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 20;
time = 90;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
locked = true;
condition = false;
kills = 5;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 120 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.killstore = _root.kills;
_root.totalmoneystore = _root.totalmoney;
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "map2";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 489 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 476 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 482 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = false;
kills = 5;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Symbol 562 MovieClip Frame 1
stop();
Instance of Symbol 561 MovieClip in Symbol 562 MovieClip Frame 2
onClipEvent (load) {
_root.enemyhealth.timer = _root.enemyhealth.timerstore;
_root.enemyhealth.health = _parent.health * 10;
if (_parent.dead == true) {
_root.enemyhealth.health = 0;
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 562 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 400;
speed = 15;
health = 7;
slidestore = 20;
slidespeed = 15;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 469 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 160;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 476 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (this.hitTest(_root.lucy)) {
_root.health = 0;
}
}
}
Instance of Symbol 489 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 479 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
leftpause = 10;
rightpause = 10;
time = 45;
timer = 0;
swit = true;
speed = 8;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 489 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 545 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
speed = -20;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 489 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 476 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y - 65, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y - 65, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y - 65, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
leftpause = 10;
rightpause = 10;
time = 45;
timer = 0;
swit = true;
speed = 8;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
leftpause = 10;
rightpause = 10;
time = 45;
timer = 0;
swit = false;
speed = 8;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
leftpause = 10;
rightpause = 10;
time = 45;
timer = 0;
swit = false;
speed = 8;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
locked = true;
condition = false;
kills = 5;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 120 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 476 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y - 65, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.killstore = _root.kills;
_root.totalmoneystore = _root.totalmoney;
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level5";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = false;
kills = 5;
doorheight = 120;
speed = 20;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 469 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 360;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 476 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (this.hitTest(_root.lucy)) {
_root.health = 0;
}
}
}
Instance of Symbol 120 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.killstore = _root.kills;
_root.totalmoneystore = _root.totalmoney;
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level6";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = false;
kills = 5;
doorheight = 120;
speed = 30;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 489 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 479 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 20;
time = 285;
timer = 0;
swit = true;
speed = 8;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (load) {
locked = true;
condition = false;
kills = 5;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 542 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
pos = this._y;
fallspeed = 5;
climbspeed = 5;
xrange = 50;
yrange = 200;
active = false;
fall = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if ((((((fall == false) and (active == false)) and (_root.lucy._y > (point.y - yrange))) and (_root.lucy._y < (point.y + yrange))) and (_root.lucy._x > (point.x - xrange))) and (_root.lucy._x < (point.x + xrange))) {
active = true;
fall = true;
}
if (((fall == true) and (active == true)) and (this._y < (pos + yrange))) {
this._y = this._y + fallspeed;
this.gotoAndStop("angry");
} else if ((fall == true) and (active == true)) {
fall = false;
this.gotoAndStop("look");
} else if (((fall == false) and (active == true)) and (this._y > pos)) {
this._y = this._y - climbspeed;
} else if ((fall == false) and (active == true)) {
active = false;
}
if (this.hitTest(_root.lucy.lucy.body)) {
fall = false;
_root.lucy.hit = true;
_root.health = _root.health - 1;
if (_root.lucy._x > point.x) {
_root.lucy.varspeed = -_root.varmaxspeed;
} else {
_root.lucy.varspeed = _root.varmaxspeed;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.killstore = _root.kills;
_root.totalmoneystore = _root.totalmoney;
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "map3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = false;
kills = 5;
doorheight = 120;
speed = 30;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 476 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (this.hitTest(_root.lucy)) {
_root.health = 0;
}
}
}
Instance of Symbol 553 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
timerstore = 10;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 5;
time = 50;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer = timer + 3;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._y = _root.ground._y + (speed * 3);
}
platform._x = platform._x + (speed * 3);
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._y = _root.ground._y - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 5;
time = 50;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer = timer + 3;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._y = _root.ground._y + (speed * 3);
}
platform._x = platform._x + (speed * 3);
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._y = _root.ground._y - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 489 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 548 MovieClip "switchdoor" in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
time = 99;
timerstore = time;
timer = "";
time = 30;
active = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and (timer > 0)) {
this.gotoAndStop("timer");
if (time == 0) {
time = 30;
timer--;
} else {
time--;
}
} else if (active == true) {
active = false;
this.gotoAndStop("unactive");
timer = "";
}
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
this.gotoAndStop("active");
active = true;
timer = timerstore;
time = 30;
}
}
}
Instance of Symbol 482 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = true;
kills = 2;
doorheight = 120;
speed = 10;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_parent.switchdoor.active == true) {
active = true;
} else {
active = false;
}
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
leftactive = true;
if (active == true) {
open = true;
left._x = lpos - 150;
} else {
_root.output.active = true;
_root.output.line1 = "DOOR LOCKED";
_root.output.line2 = "Find switch";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 0;
leftactive = true;
} else if (transport == 2) {
_root.ground.nextFrame();
_root.ground._x = 275;
_root.ground._y = 200;
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
Instance of Symbol 120 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
locked = true;
condition = false;
kills = 5;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 476 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 5;
time = 50;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer = timer + 3;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._y = _root.ground._y + (speed * 3);
}
platform._x = platform._x + (speed * 3);
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._y = _root.ground._y - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y - 65, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
leftpause = 20;
rightpause = 5;
time = 50;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer = timer + 3;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._y = _root.ground._y + (speed * 3);
}
platform._x = platform._x + (speed * 3);
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._y = _root.ground._y - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y - 65, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Symbol 573 MovieClip Frame 34
if (hit.hitTest(_root.lucy)) {
spring = true;
}
active = false;
gotoAndPlay (1);
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 476 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (this.hitTest(_root.lucy)) {
_root.health = 0;
}
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 562 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 800;
speed = 15;
health = 7;
slidestore = 20;
slidespeed = 15;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 120 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.killstore = _root.kills;
_root.totalmoneystore = _root.totalmoney;
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level8";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = false;
kills = 5;
doorheight = 120;
speed = 30;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 553 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
timerstore = 10;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 553 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
timerstore = 10;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 553 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
timerstore = 10;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 553 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
timerstore = 10;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 469 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 850;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 469 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 360;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 469 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 200;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 469 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 250;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 476 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 479 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
leftpause = 10;
rightpause = 10;
time = 200;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 553 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
timerstore = 10;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 553 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
timerstore = 10;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 489 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 489 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 489 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 489 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 545 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
speed = 8;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 476 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 573 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
active = true;
}
if (active == true) {
this.nextFrame();
} else {
this.stop();
this.prevFrame();
}
} else {
this.stop();
}
if (spring == true) {
_root.lucy.sprung = true;
spring = false;
}
}
Instance of Symbol 553 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
timerstore = 10;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
locked = true;
condition = false;
kills = 5;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 476 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (this.hitTest(_root.lucy)) {
_root.health = 0;
}
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 542 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
pos = this._y;
fallspeed = 5;
climbspeed = 5;
xrange = 50;
yrange = 200;
active = false;
fall = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if ((((((fall == false) and (active == false)) and (_root.lucy._y > (point.y - yrange))) and (_root.lucy._y < (point.y + yrange))) and (_root.lucy._x > (point.x - xrange))) and (_root.lucy._x < (point.x + xrange))) {
active = true;
fall = true;
}
if (((fall == true) and (active == true)) and (this._y < (pos + yrange))) {
this._y = this._y + fallspeed;
this.gotoAndStop("angry");
} else if ((fall == true) and (active == true)) {
fall = false;
this.gotoAndStop("look");
} else if (((fall == false) and (active == true)) and (this._y > pos)) {
this._y = this._y - climbspeed;
} else if ((fall == false) and (active == true)) {
active = false;
}
if (this.hitTest(_root.lucy.lucy.body)) {
fall = false;
_root.lucy.hit = true;
_root.health = _root.health - 1;
if (_root.lucy._x > point.x) {
_root.lucy.varspeed = -_root.varmaxspeed;
} else {
_root.lucy.varspeed = _root.varmaxspeed;
}
}
}
}
Instance of Symbol 469 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 250;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 469 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 200;
speed = 3;
health = 10;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 553 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
timerstore = 10;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.killstore = _root.kills;
_root.totalmoneystore = _root.totalmoney;
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level9";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = false;
kills = 5;
doorheight = 120;
speed = 30;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 562 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 300;
speed = 15;
health = 7;
slidestore = 20;
slidespeed = 15;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 562 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 300;
speed = 15;
health = 7;
slidestore = 20;
slidespeed = 15;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 562 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 300;
speed = 15;
health = 7;
slidestore = 20;
slidespeed = 15;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 489 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 489 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 489 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 562 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 300;
speed = 15;
health = 7;
slidestore = 20;
slidespeed = 15;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 553 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
timerstore = 5;
timer = timerstore;
active = true;
stoodon = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and this.hitTest(_root.lucy._x, _root.lucy._y, true)) {
stoodon = true;
}
if (stoodon == true) {
timer--;
if (timer < 0) {
stoodon = false;
this.gotoAndPlay(2);
active = false;
timer = timerstore;
}
}
}
}
Instance of Symbol 545 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
speed = -40;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 476 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 489 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 489 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 120 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
locked = true;
condition = false;
kills = 5;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 476 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (this.hitTest(_root.lucy)) {
_root.health = 0;
}
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 542 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
pos = this._y;
fallspeed = 5;
climbspeed = 5;
xrange = 50;
yrange = 200;
active = false;
fall = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if ((((((fall == false) and (active == false)) and (_root.lucy._y > (point.y - yrange))) and (_root.lucy._y < (point.y + yrange))) and (_root.lucy._x > (point.x - xrange))) and (_root.lucy._x < (point.x + xrange))) {
active = true;
fall = true;
}
if (((fall == true) and (active == true)) and (this._y < (pos + yrange))) {
this._y = this._y + fallspeed;
this.gotoAndStop("angry");
} else if ((fall == true) and (active == true)) {
fall = false;
this.gotoAndStop("look");
} else if (((fall == false) and (active == true)) and (this._y > pos)) {
this._y = this._y - climbspeed;
} else if ((fall == false) and (active == true)) {
active = false;
}
if (this.hitTest(_root.lucy.lucy.body)) {
fall = false;
_root.lucy.hit = true;
_root.health = _root.health - 1;
if (_root.lucy._x > point.x) {
_root.lucy.varspeed = -_root.varmaxspeed;
} else {
_root.lucy.varspeed = _root.varmaxspeed;
}
}
}
}
Instance of Symbol 562 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 300;
speed = 15;
health = 14;
slidestore = 20;
slidespeed = 15;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 489 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 479 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
leftpause = 100;
rightpause = 100;
time = 115;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
if (hitTest(_root.lucy._x + 20, _root.lucy._y - 30, true)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
if (hitTest(_root.lucy._x - 20, _root.lucy._y - 30, true)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 489 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 476 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 476 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.killstore = _root.kills;
_root.totalmoneystore = _root.totalmoney;
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "map4";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = false;
kills = 5;
doorheight = 120;
speed = 30;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 476 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 479 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
leftpause = 100;
rightpause = 100;
time = 115;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
if (hitTest(_root.lucy._x + 20, _root.lucy._y - 30, true)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
if (hitTest(_root.lucy._x - 20, _root.lucy._y - 30, true)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 482 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
locked = true;
condition = false;
kills = 5;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 479 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
leftpause = 100;
rightpause = 100;
time = 115;
timer = 0;
swit = false;
speed = 4;
active = true;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((swit == true) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x + speed;
}
if (hitTest(_root.lucy._x + 20, _root.lucy._y - 30, true)) {
_root.ground._x = _root.ground._x + speed;
}
platform._x = platform._x + speed;
}
if ((swit == false) and (active == true)) {
timer++;
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x + 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
if (hitTest(_root.lucy._x - 20, _root.lucy._y - 30, true)) {
_root.ground._x = _root.ground._x - speed;
}
platform._x = platform._x - speed;
}
if ((timer > time) and (active == true)) {
active = false;
timer = 0;
if (swit == false) {
swit = true;
} else {
swit = false;
}
}
if (active == false) {
if (swit == true) {
if (timer < leftpause) {
timer++;
} else {
timer = 0;
active = true;
}
} else if (timer < rightpause) {
timer++;
} else {
timer = 0;
active = true;
}
}
}
}
Instance of Symbol 545 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
speed = -8;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 476 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true)) {
if (_root.lucy.hit == false) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
}
}
Instance of Symbol 545 MovieClip in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
speed = -8;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 26 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.money++;
_root.ii++;
_root.spark.duplicateMovieClip("spark" + _root.ii, _root.ii, _root.ii);
_root["spark" + _root.ii].active = true;
this.swapDepths(_root.ii);
_root.ii++;
this.removeMovieClip();
}
}
Instance of Symbol 562 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 550;
speed = 15;
health = 14;
slidestore = 20;
slidespeed = 15;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 469 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 600;
speed = 3;
health = 20;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 469 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 800;
speed = 3;
health = 20;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 469 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
platformwidth = 800;
speed = 3;
health = 20;
slidestore = 5;
slidespeed = 30;
platformpos = platformwidth / 2;
randompos = random(platformwidth);
moveto = randompos - platformpos;
this._x = this._x + moveto;
platformpos = platformpos + moveto;
dir = this._xscale;
face = random(2);
if (face == false) {
this._xscale = dir;
} else {
this._xscale = -dir;
}
slidetime = 0;
slidedir = false;
hit = false;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if (face == false) {
this._xscale = dir;
if (platformpos < platformwidth) {
this._x = this._x + speed;
platformpos = platformpos + speed;
} else {
face = true;
}
} else {
this._xscale = -dir;
if (platformpos > 0) {
this._x = this._x - speed;
platformpos = platformpos - speed;
} else {
face = false;
}
}
if (((_root.lucy.flare == true) and this.hitTest(_root.lucy)) or (this.hitTest(_root.lucy.lucy.weapon) and ((_root.lucy.varattack == true) or (_root.lucy.roll == true)))) {
if (hit == false) {
_root.lucy.combo++;
}
if (point.x > _root.lucy._x) {
slidedir = true;
face = true;
} else {
slidedir = false;
face = false;
}
hit = true;
slidetime = slidestore;
} else if (this.hitTest(_root.lucy.lucy.body)) {
if (point.x > _root.lucy._x) {
_root.lucy.varspeed = _root.varmaxspeed;
} else {
_root.lucy.varspeed = -_root.varmaxspeed;
}
if (((_root.lucy.hit == false) and (hit == false)) and (_root.lucy.roll == false)) {
_root.lucy.hit = true;
_root.health = _root.health - 1;
}
}
if (hit == true) {
if (pow == true) {
_root.pow.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
pow = false;
}
this.gotoAndStop("hit");
if (slidetime > 0) {
slidetime--;
if (slidedir == false) {
if (platformpos > 0) {
this._x = this._x - slidespeed;
platformpos = platformpos - slidespeed;
} else {
slidetime = 0;
}
} else if (platformpos < platformwidth) {
this._x = this._x + slidespeed;
platformpos = platformpos + slidespeed;
} else {
slidetime = 0;
}
} else if (health > 0) {
health = health - _root.weapon;
hit = false;
} else {
dead = true;
}
} else {
this.gotoAndStop("run");
pow = true;
}
if (dead == true) {
_root.ii++;
_root.smoke.duplicateMovieClip("smoke" + _root.ii, _root.ii, _root.ii);
_root["smoke" + _root.ii].active = true;
_root["smoke" + _root.ii]._x = point.x;
_root["smoke" + _root.ii]._y = point.y - 50;
_root.kills++;
this.swapDepths(0);
this.removeMovieClip();
}
}
}
Instance of Symbol 548 MovieClip "switchdoor" in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
time = 999;
timerstore = time;
timer = "";
time = 30;
active = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and (timer > 0)) {
this.gotoAndStop("timer");
if (time == 0) {
time = 30;
timer--;
} else {
time--;
}
} else if (active == true) {
active = false;
this.gotoAndStop("unactive");
timer = "";
}
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
this.gotoAndStop("active");
active = true;
timer = timerstore;
time = 30;
}
}
}
Instance of Symbol 548 MovieClip "switchdoor2" in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
time = 999;
timerstore = time;
timer = "";
time = 30;
active = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if ((active == true) and (timer > 0)) {
this.gotoAndStop("timer");
if (time == 0) {
time = 30;
timer--;
} else {
time--;
}
} else if (active == true) {
active = false;
this.gotoAndStop("unactive");
timer = "";
}
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
this.gotoAndStop("active");
active = true;
timer = timerstore;
time = 30;
}
}
}
Instance of Symbol 489 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 489 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 489 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Instance of Symbol 545 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
speed = -40;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 545 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
speed = -40;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.lucy._x, _root.lucy._y, true) and (_root.ground.hitTest(_root.lucy._x - 50, _root.lucy._y - 50, true) == false)) {
_root.ground._x = _root.ground._x - speed;
}
}
}
Instance of Symbol 542 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
pos = this._y;
fallspeed = 15;
climbspeed = 5;
xrange = 50;
yrange = 1000;
active = false;
fall = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if ((((((fall == false) and (active == false)) and (_root.lucy._y > (point.y - yrange))) and (_root.lucy._y < (point.y + yrange))) and (_root.lucy._x > (point.x - xrange))) and (_root.lucy._x < (point.x + xrange))) {
active = true;
fall = true;
}
if (((fall == true) and (active == true)) and (this._y < (pos + yrange))) {
this._y = this._y + fallspeed;
this.gotoAndStop("angry");
} else if ((fall == true) and (active == true)) {
fall = false;
this.gotoAndStop("look");
} else if (((fall == false) and (active == true)) and (this._y > pos)) {
this._y = this._y - climbspeed;
} else if ((fall == false) and (active == true)) {
active = false;
}
if (this.hitTest(_root.lucy.lucy.body)) {
fall = false;
_root.lucy.hit = true;
_root.health = _root.health - 1;
if (_root.lucy._x > point.x) {
_root.lucy.varspeed = -_root.varmaxspeed;
} else {
_root.lucy.varspeed = _root.varmaxspeed;
}
}
}
}
Instance of Symbol 542 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
pos = this._y;
fallspeed = 10;
climbspeed = 5;
xrange = 50;
yrange = 400;
active = false;
fall = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
point = {x:_x, y:_y};
_parent.localToGlobal(point);
if ((((((fall == false) and (active == false)) and (_root.lucy._y > (point.y - yrange))) and (_root.lucy._y < (point.y + yrange))) and (_root.lucy._x > (point.x - xrange))) and (_root.lucy._x < (point.x + xrange))) {
active = true;
fall = true;
}
if (((fall == true) and (active == true)) and (this._y < (pos + yrange))) {
this._y = this._y + fallspeed;
this.gotoAndStop("angry");
} else if ((fall == true) and (active == true)) {
fall = false;
this.gotoAndStop("look");
} else if (((fall == false) and (active == true)) and (this._y > pos)) {
this._y = this._y - climbspeed;
} else if ((fall == false) and (active == true)) {
active = false;
}
if (this.hitTest(_root.lucy.lucy.body)) {
fall = false;
_root.lucy.hit = true;
_root.health = _root.health - 1;
if (_root.lucy._x > point.x) {
_root.lucy.varspeed = -_root.varmaxspeed;
} else {
_root.lucy.varspeed = _root.varmaxspeed;
}
}
}
}
Instance of Symbol 120 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy) and (_root.lucy.dead == false)) {
_root.storegametime = (_root.gametime / 30) / 60;
_root.storetotalmoney = _root.totalmoney + _root.money;
_root.killstore = _root.kills;
_root.totalmoneystore = _root.totalmoney;
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "endmovie";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
stopAllSounds();
}
}
Instance of Symbol 482 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = true;
kills = 2;
doorheight = 120;
speed = 10;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_parent.switchdoor.active == true) {
active = true;
} else {
active = false;
}
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
leftactive = true;
if (active == true) {
open = true;
left._x = lpos - 150;
} else {
_root.output.active = true;
_root.output.line1 = "DOOR LOCKED";
_root.output.line2 = "Find switch";
_root.output.line3 = "";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 0;
leftactive = true;
} else if (transport == 2) {
_root.ground.nextFrame();
_root.ground._x = 275;
_root.ground._y = 200;
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
Instance of Symbol 482 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = true;
kills = 2;
doorheight = 120;
speed = 10;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_parent.switchdoor.active == true) {
active = true;
} else {
active = false;
}
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
leftactive = true;
if (active == true) {
open = true;
left._x = lpos - 150;
} else {
_root.output.active = true;
_root.output.line1 = "DOOR LOCKED";
_root.output.line2 = "Find switch";
_root.output.line3 = "";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 0;
leftactive = true;
} else if (transport == 2) {
_root.ground.nextFrame();
_root.ground._x = 275;
_root.ground._y = 200;
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
Instance of Symbol 120 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.lucy)) {
_root.healthstore = _root.health;
_root.maxhealthstore = _root.maxhealth;
_root.weaponstore = _root.weapon;
_root.armourstore = _root.armour;
_root.shieldgraphicstore = _root.shieldgraphic;
_root.shieldstore = _root.shield;
_root.moneystore = _root.money;
_root.lucy._xscale = _root.lucy.varscale;
_root.level = "level3";
_root.lucy.varspeed = 0;
_root.lucy.walkoff = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
locked = true;
condition = false;
kills = 5;
doorheight = 120;
speed = 15;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_root.kills >= kills) {
active = true;
}
} else {
active = true;
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
left._x = lpos - 150;
leftactive = true;
if (active == true) {
open = true;
} else {
_root.output.active = true;
_root.output.line1 = "This door requires";
_root.output.line2 = kills;
_root.output.line3 = "rats killed to open.";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 2;
} else if (transport == 2) {
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
door._y = door._y + speed;
}
}
on (press) {
if (open == true) {
open = false;
} else {
open = true;
}
}
Instance of Symbol 482 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
locked = false;
condition = true;
kills = 2;
doorheight = 120;
speed = 10;
transport = 0;
leftactive = false;
pos = door._y;
lpos = left._x;
active = true;
open = false;
active = false;
}
onClipEvent (enterFrame) {
if (locked == true) {
right._x = pos;
}
if (condition == true) {
if (_parent.switchdoor2.active == true) {
active = true;
} else {
active = false;
}
}
if (left.hitTest(_root.lucy) and (leftactive == false)) {
leftactive = true;
if (active == true) {
open = true;
left._x = lpos - 150;
} else {
_root.output.active = true;
_root.output.line1 = "DOOR LOCKED";
_root.output.line2 = "Find switch";
_root.output.line3 = "";
}
} else if (left.hitTest(_root.lucy) and (leftactive == true)) {
left._x = lpos;
leftactive = false;
open = false;
} else if (right.hitTest(_root.lucy) and (door._y < pos)) {
transport = 1;
open = false;
right._x = lpos;
} else if ((transport == 1) and (door._y >= pos)) {
transport = 0;
leftactive = true;
} else if (transport == 2) {
_root.ground.nextFrame();
_root.ground._x = 275;
_root.ground._y = 200;
}
if ((open == true) and (door._y > (pos - doorheight))) {
door._y = door._y - speed;
} else if ((open == false) and (door._y < pos)) {
this._y = this._y - 1000;
}
}
Instance of Symbol 489 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
spring = false;
active = false;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hit.hitTest(_root.lucy._x, _root.lucy._y, true)) {
_root.lucy.sprung = true;
this.play();
}
}
}
Symbol 866 MovieClip Frame 1
_root.emotion = 3;
Symbol 866 MovieClip Frame 2492
_root.nextFrame();
stop();
Instance of Symbol 207 MovieClip in Symbol 896 MovieClip Frame 1
on (rollOver, dragOver) {
gotoAndStop ("over");
}
on (rollOut, dragOut) {
gotoAndStop ("off");
}
on (releaseOutside) {
gotoAndStop ("off");
}
on (release) {
stopAllSounds();
_root.gotoAndPlay("credits");
}
Symbol 902 Button
on (release) {
if (_root.cheater == false) {
if (_root.storegametime > 8) {
_root.timesecret = "Sorry, you were too slow to unlock a secret.";
} else {
_root.secret3 = true;
_root.timesecret = "Picture of Tom Fulp is now available in 'Extras'";
}
if (_root.storetotalmoney < 200) {
_root.coinsecret = "Sorry, you didnt collect all the coins.";
} else {
_root.secret2 = true;
_root.coinsecret = "Numa Lucy now available in 'Extras'";
_root.profilenote = "Author profiles are now available in 'Extras'";
}
nextFrame();
} else {
_root.timesecret = "No secrets were unlocked due to use of password.";
_root.coinsecret = "Select 'New Game' from menu screen to unlock secrets.";
_root.profilenote = "";
nextFrame();
}
_root.secret1 = true;
}
Symbol 915 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("start");
}
Symbol 916 MovieClip Frame 1184
stop();
Symbol 916 MovieClip Frame 1185
stop();