Combined Code
movieClip 6 {
}
movieClip 7 snow {
}
movieClip 9 soldiertorso {
}
movieClip 12 {
}
movieClip 14 {
}
movieClip 16 {
}
movieClip 18 {
}
movieClip 20 {
}
movieClip 22 {
}
movieClip 24 {
}
movieClip 26 {
}
movieClip 28 {
}
movieClip 29 helper {
}
movieClip 31 gossamirstorso {
}
movieClip 33 waist2 {
}
movieClip 35 redtorso {
}
movieClip 37 dettaswaist {
}
button 39 {
on (keyPress '<Left>') {
gotoAndPlay(2);
}
on (keyPress '<Right>') {
gotoAndPlay(2);
}
on (keyPress 'z') {
gotoAndPlay(8);
}
on (keyPress 'x') {
gotoAndPlay(18);
}
on (keyPress 'c') {
gotoAndPlay(45);
}
on (keyPress '<Up>') {
gotoAndPlay(2);
}
on (keyPress '<Down>') {
gotoAndPlay(2);
}
}
movieClip 55 {
}
movieClip 99 {
frame 1 {
stop();
}
frame 1 {
_root.walking = false;
_root.gettingHurt = false;
}
frame 2 {
_root.walking = true;
}
frame 7 {
gotoAndPlay(1);
}
frame 8 {
_root.walking = false;
}
frame 17 {
gotoAndPlay(1);
}
frame 18 {
_root.walking = false;
}
frame 31 {
gotoAndPlay(1);
}
frame 32 {
_root.walking = false;
}
frame 39 {
gotoAndPlay(1);
}
frame 40 {
_root.gettingHurt = true;
}
frame 44 {
gotoAndPlay(1);
}
frame 59 {
gotoAndPlay(1);
}
}
movieClip 100 rykis {
instance me of movieClip 99 {
onClipEvent (enterFrame) {
if (_root.fadeAttached._currentframe == 5) {
_root.userWalk(this, 30);
}
}
onClipEvent (enterFrame) {
if (this._x > 1414) {
this._x = 1414;
} else {
if (this._x < -46.1) {
this._x = -46.1;
} else {
if (this._y < -201.9) {
this._y = -201.9;
} else {
if (this._y > 300) {
this._y = 300;
}
}
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this._xscale = 100;
} else {
if (Key.isDown(39)) {
this._xscale = -100;
}
}
}
}
}
movieClip 105 {
}
movieClip 107 {
}
movieClip 108 doors {
}
movieClip 109 brownwalls {
}
movieClip 121 {
}
movieClip 122 saveSpot {
}
movieClip 124 cloud {
}
movieClip 126 carpet1 {
}
movieClip 128 fade {
frame 5 {
stop();
}
frame 6 {
gotoAndPlay(1);
}
}
movieClip 130 bridge {
}
frame 1 {
stopAllSounds();
}
frame 1 {
function skiptointro() {
gotoAndPlay(15);
}
}
frame 1 {
_quality = 'low';
}
frame 1 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
movieClip 133 {
}
instance of movieClip 133 {
onClipEvent (load) {
currentbytes = int(_root.getBytesLoaded() / 1000);
totalbytes = int(_root.getBytesTotal() / 1000);
percentbytes = int((currentbytes / totalbytes) * 100);
_root.textbox = 'LOADING ' + percentbytes + '% of ' + totalbytes + ' KBs';
_root.loadedbar._width = percentbytes;
if (percentbytes >= 100) {
_root.skiptointro();
}
}
}
movieClip 137 {
}
movieClip 140 {
}
frame 9 {
gotoAndPlay(1);
}
frame 10 {
stopAllSounds();
}
frame 10 {
stop();
}
movieClip 146 {
}
button 177 {
on (press) {
_root.gotoAndPlay('title');
}
}
movieClip 180 {
frame 35 {
stop();
}
}
frame 15 {
stopAllSounds();
}
frame 15 {
bonusClockB = 0;
}
frame 15 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 15 {
stop();
}
movieClip 216 {
frame 41 {
stop();
}
}
movieClip 219 {
}
instance of movieClip 219 {
onClipEvent (enterFrame) {
if (_root.bonusClockB == 40) {
_root.gotoAndPlay('title');
}
}
onClipEvent (enterFrame) {
++_root.bonusClockB;
trace(_root.bonusClockB);
}
}
frame 20 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('introMusic');
themeSong.start(0.1, 9999);
}
frame 20 {
_quality = 'high';
}
frame 20 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 20 {
stop();
}
movieClip 221 {
}
button 225 {
on (press) {
_root.gotoAndPlay('act1');
}
}
button 229 {
on (press) {
_root.gotoAndPlay('howto');
}
}
frame 30 {
stopAllSounds();
}
frame 30 {
_quality = 'low';
}
frame 30 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 30 {
stop();
}
movieClip 232 {
}
movieClip 234 {
}
movieClip 235 {
}
movieClip 236 {
}
movieClip 241 {
}
button 245 {
on (press) {
gotoAndPlay(33);
}
}
frame 33 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('introMusic');
themeSong.start(0.1, 9999);
}
frame 33 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 33 {
hp = 100;
}
frame 33 {
stop();
}
frame 33 {
function findUser(badguy, xSpeed, spaceAway, deathVar) {
distance = spaceAway;
badGuySpeed = xSpeed;
move = deathVar;
if (badguy._x <= _root.user._x - distance && _root.user._x > badguy._x && move == false) {
badguy._x += badGuySpeed;
} else {
if (badguy._x >= _root.user._x + distance && _root.user._x < badguy._x && move == false) {
badguy._x -= badGuySpeed;
}
}
}
function userWalk(character, speed) {
moveSpeed = speed;
if (Key.isDown(37) && _root.walking == true) {
character._x -= moveSpeed;
} else {
if (Key.isDown(39) && _root.walking == true) {
character._x += moveSpeed;
} else {
if (Key.isDown(38) && _root.walking == true) {
character._y -= moveSpeed;
} else {
if (Key.isDown(40) && _root.walking == true) {
character._y += moveSpeed;
}
}
}
}
}
function cpuTurn(badguy, frame) {
thisFrame = frame;
if (_root.user._x < badguy._x) {
badguy._xscale = 100;
} else {
if (_root.user._x > badguy._x) {
badguy._xscale = -100;
}
}
}
function findUserY(badguy, ySpeed, evenYpos) {
moveUpSpeed = ySpeed;
evenItOut = -evenYpos;
if (badguy._y >= _root.user._y + evenItOut) {
badguy._y -= moveUpSpeed;
} else {
if (badguy._y < _root.user._y - evenItOut) {
badguy._y += moveUpSpeed;
}
}
}
function touchTeam(badguy, team1, team2, team3, team4, team5) {
if (badguy.hitTest(team1) && team1._x > badguy._x) {
badguy._x -= 25;
} else {
if (badguy.hitTest(team1) && team1._x < badguy._x) {
badguy._x += 25;
} else {
if (badguy.hitTest(team2) && team2._x < badguy._x) {
badguy._x += 25;
} else {
if (badguy.hitTest(team2) && team2._x > badguy._x) {
badguy._x -= 25;
} else {
if (badguy.hitTest(team3) && team3._x > badguy._x) {
badguy._x -= 25;
} else {
if (badguy.hitTest(team3) && team3._x < badguy._x) {
badguy._x += 25;
}
}
}
}
}
}
}
function userHurt(badguy) {
if (badguy.hit.hitTest(_root.user) && _root.gettingHurt == false) {
_root.user.me.gotoAndPlay('damage');
}
}
function getLife(badguy) {
if (badguy.hit.hitTest(_root.user)) {
_root.hp -= 2;
}
}
function removeCpu(badguy, deathVar, curFrame) {
if (deathVar == true && badguy._currentframe > curFrame) {
badguy._visible = false;
badguy._x = -1000;
}
}
function getBack(badguy) {
numberVar = 10;
if (_root.user.me.hit.hitTest(badguy) && badguy._x < _root.user._x) {
badguy._x -= numberVar;
} else {
if (_root.user.me.hit.hitTest(badguy) && badguy._x > _root.user._x) {
badguy._x += numberVar;
}
}
}
function getOn() {
play();
}
walking = '';
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
cpuhp0 = 30;
cpuhp1 = 25;
cpuhp2 = 25;
cpuhp3 = 25;
cpuhp4 = 25;
cpuhp5 = 25;
cpuhp6 = 30;
cpuhp7 = 30;
cpuhp8 = 30;
cpuhp9 = 25;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
switched = false;
switched2 = false;
switched3 = false;
switched4 = false;
switched5 = false;
moveLaser = false;
moveLaser2 = false;
moveLaserLeft = false;
moveLaserLeft2 = false;
heartfill1 = false;
heartfill2 = false;
heartfill3 = false;
heartfill4 = false;
heartfill5 = false;
inThere = false;
offPath = false;
ready = false;
goAttack = false;
ready = true;
destroyed = false;
highFire = false;
}
frame 33 {
}
movieClip 248 {
}
movieClip 250 {
}
movieClip 252 {
}
movieClip 254 {
}
movieClip 272 {
}
movieClip 274 {
}
movieClip 276 {
}
instance advanceto of movieClip 55 {
onClipEvent (enterFrame) {
if (_root.dead0 == true && (_root.dead2 == true && _root.dead1 == true && (Key.isDown(39) && _root.user.hitTest(this)))) {
_root.getOn();
}
}
}
button 277 {
on (keyPress '<Left>') {
gotoAndPlay(2);
}
on (keyPress '<Right>') {
gotoAndPlay(2);
}
on (keyPress 'z') {
gotoAndPlay(8);
}
on (keyPress 'x') {
gotoAndPlay(18);
}
on (keyPress 'c') {
gotoAndPlay(45);
}
on (keyPress '<Up>') {
gotoAndPlay(2);
}
on (keyPress '<Down>') {
gotoAndPlay(2);
}
}
movieClip 350 {
frame 1 {
stop();
}
frame 1 {
_root.walking = false;
_root.gettingHurt = false;
}
frame 2 {
_root.walking = true;
}
frame 7 {
gotoAndPlay(1);
}
frame 8 {
_root.walking = false;
}
frame 17 {
gotoAndPlay(1);
}
frame 18 {
_root.walking = false;
}
frame 31 {
gotoAndPlay(1);
}
frame 32 {
_root.walking = false;
}
frame 39 {
gotoAndPlay(1);
}
frame 40 {
_root.gettingHurt = true;
}
frame 44 {
gotoAndPlay(1);
}
frame 59 {
gotoAndPlay(1);
}
frame 72 {
gotoAndPlay(1);
}
}
movieClip 351 {
instance me of movieClip 350 {
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this._xscale = -100;
} else {
if (Key.isDown(39)) {
this._xscale = 100;
}
}
}
}
}
instance user of movieClip 351 {
onClipEvent (enterFrame) {
_root.userWalk(_root.user, 15);
}
onClipEvent (enterFrame) {
Stage.scaleMode = 'noScale';
Stage.showMenu = false;
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else {
if (this._x < 10) {
this._x = 10;
} else {
if (this._y < 182) {
this._y = 182;
} else {
if (this._y > 300) {
this._y = 300;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
_root.gotoAndPlay('gameOver');
}
}
}
movieClip 380 {
frame 1 {
}
frame 8 {
gotoAndPlay(1);
}
frame 21 {
gotoAndPlay(2);
}
frame 26 {
gotoAndPlay(2);
}
frame 37 {
stop();
}
}
instance cpu of movieClip 380 {
onClipEvent (enterFrame) {
_root.findUser(_root.cpu, 7.5, 85, _root.dead1);
}
onClipEvent (enterFrame) {
_root.cpuTurn(_root.cpu, 20);
}
onClipEvent (enterFrame) {
_root.findUserY(_root.cpu, 7.5, -10);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count2 < 16) {
++_root.count2;
}
}
onClipEvent (enterFrame) {
if (_root.count2 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count2 == 15) {
_root.count2 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp1 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp1 -= 5;
} else {
if (_root.cpuhp1 <= 0 && this._currentframe < 26) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp1 <= 0) {
_root.dead1 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead1, 35);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu3, _root.cpu2, _root.cpu0);
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu3 of movieClip 380 {
onClipEvent (enterFrame) {
_root.findUser(this, 4, 85, _root.dead2);
}
onClipEvent (enterFrame) {
_root.cpuTurn(this, 20);
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -10);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu2, _root.cpu, _root.cpu0);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count3 < 16) {
++_root.count3;
}
}
onClipEvent (enterFrame) {
if (_root.count3 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count3 == 15) {
_root.count3 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp2 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp2 -= 5;
} else {
if (_root.cpuhp2 <= 0 && this._currentframe < 26) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp2 <= 0) {
_root.dead2 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead2, 35);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu0 of movieClip 380 {
onClipEvent (enterFrame) {
_root.findUser(_root.cpu0, 4, 85, _root.dead0);
}
onClipEvent (enterFrame) {
_root.cpuTurn(_root.cpu0, 20);
}
onClipEvent (enterFrame) {
_root.findUserY(_root.cpu0, 7.5, -10);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count0 < 16) {
++_root.count0;
}
}
onClipEvent (enterFrame) {
if (_root.count0 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count0 == 15) {
_root.count0 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp0 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp0 -= 5;
} else {
if (_root.cpuhp0 <= 0 && this._currentframe < 26) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp0 <= 0) {
_root.dead0 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead0, 35);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu3, _root.cpu2, _root.cpu);
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
movieClip 384 {
}
movieClip 386 {
frame 1 {
stop();
}
frame 43 {
stop();
}
}
instance go of movieClip 386 {
onClipEvent (enterFrame) {
if (_root.dead0 == true && (_root.dead2 == true && _root.dead1 == true && this._currentframe == 1)) {
this.gotoAndPlay('go');
}
}
}
instance of movieClip 137 {
onClipEvent (enterFrame) {
this._width = _root.hp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else {
if (this._width <= 0) {
this._width = 0;
}
}
}
}
frame 38 {
stopAllSounds();
}
frame 38 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 44 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('introMusic');
themeSong.start(0.1, 9999);
}
frame 44 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 44 {
stop();
}
movieClip 391 {
}
movieClip 393 {
}
movieClip 395 {
}
movieClip 399 {
}
movieClip 411 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
instance advanceto of movieClip 55 {
onClipEvent (enterFrame) {
if (_root.dead5 == true && (_root.dead6 == true && _root.dead7 == true && _root.dead8 == true)) {
_root.getOn();
}
}
}
instance user of movieClip 351 {
onClipEvent (enterFrame) {
_root.userWalk(_root.user, 15);
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else {
if (this._x < 10) {
this._x = 10;
} else {
if (this._y < 201.9) {
this._y = 201.9;
} else {
if (this._y > 300) {
this._y = 300;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
_root.gotoAndPlay('gameOver');
}
}
onClipEvent (enterFrame) {
Stage.scaleMode = 'noScale';
Stage.showMenu = false;
}
}
movieClip 434 {
frame 2 {
}
frame 5 {
gotoAndPlay(1);
}
frame 6 {
}
frame 9 {
gotoAndPlay(1);
}
frame 10 {
}
frame 12 {
gotoAndPlay(1);
}
frame 20 {
stop();
}
}
instance cpu5 of movieClip 434 {
onClipEvent (enterFrame) {
_root.findUser(this, 6, 50, _root.dead5);
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -15);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu6, _root.cpu7);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count5 < 16) {
++_root.count5;
}
}
onClipEvent (enterFrame) {
if (_root.count5 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count5 == 15) {
_root.count5 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp5 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp5 -= 5;
} else {
if (_root.cpuhp5 <= 0 && this._currentframe < 13) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp5 <= 0) {
_root.dead5 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead5, 15);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
if (_root.user._x < this._x) {
this._xscale = 50;
} else {
if (_root.user._x > this._x) {
this._xscale = -50;
}
}
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu6 of movieClip 434 {
onClipEvent (enterFrame) {
_root.findUser(this, 8, 50, _root.dead6);
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -15);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu5, _root.cpu7);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count6 < 16) {
++_root.count6;
}
}
onClipEvent (enterFrame) {
if (_root.count6 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count6 == 15) {
_root.count6 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp6 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp6 -= 5;
} else {
if (_root.cpuhp6 <= 0 && this._currentframe < 13) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 15);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
if (_root.user._x < this._x) {
this._xscale = 50;
} else {
if (_root.user._x > this._x) {
this._xscale = -50;
}
}
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu7 of movieClip 380 {
onClipEvent (enterFrame) {
if (_root.dead6 == true && _root.dead5 == true) {
_root.findUser(this, 4, 85, _root.dead7);
}
}
onClipEvent (enterFrame) {
_root.cpuTurn(this, 20);
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -10);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu6, _root.cpu5, _root.cpu8);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count7 < 16) {
++_root.count7;
}
}
onClipEvent (enterFrame) {
if (_root.count7 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count7 == 15) {
_root.count7 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp7 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp7 -= 5;
} else {
if (_root.cpuhp7 <= 0 && this._currentframe < 26) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp7 <= 0) {
_root.dead7 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead7, 35);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
}
instance cpu8 of movieClip 380 {
onClipEvent (enterFrame) {
if (_root.dead6 == true && _root.dead5 == true) {
_root.findUser(this, 6, 85, _root.dead8);
}
}
onClipEvent (enterFrame) {
_root.cpuTurn(this, 20);
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -10);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu6, _root.cpu5, _root.cpu7);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count8 < 16) {
++_root.count8;
}
}
onClipEvent (enterFrame) {
if (_root.count8 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count8 == 15) {
_root.count8 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp8 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp8 -= 5;
} else {
if (_root.cpuhp8 <= 0 && this._currentframe < 26) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp8 <= 0) {
_root.dead8 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead8, 35);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance of movieClip 137 {
onClipEvent (enterFrame) {
this._width = _root.hp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else {
if (this._width <= 0) {
this._width = 0;
}
}
}
}
frame 48 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 48 {
stop();
}
movieClip 451 {
frame 16 {
stop();
}
}
movieClip 452 {
frame 25 {
stop();
_root.getOn();
}
}
frame 53 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('introMusic');
themeSong.start(0.1, 9999);
}
frame 53 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 53 {
stop();
}
movieClip 455 {
}
movieClip 456 {
}
movieClip 458 {
}
movieClip 460 {
}
movieClip 463 {
frame 1 {
_root.switched = false;
}
frame 1 {
stop();
}
frame 2 {
_root.switched = true;
}
frame 2 {
stop();
}
}
instance switch1 of movieClip 463 {
onClipEvent (enterFrame) {
if (_root.table.leg.hitTest(this)) {
this.gotoAndPlay(1);
} else {
if (!_root.table.leg.hitTest(this)) {
this.gotoAndPlay(2);
}
}
}
}
movieClip 465 {
}
instance table of movieClip 465 {
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.user._y == 201.9 && _root.user._x < this._x && this._x < 450) {
this._x += 15;
} else {
if (_root.user.hitTest(this) && _root.user._y == 201.9 && _root.user._x > this._x && this._x > 50) {
this._x -= 15;
}
}
}
}
movieClip 467 {
}
instance stair of movieClip 467 {
onClipEvent (enterFrame) {
if (_root.switched == true) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.switched == true && _root.user.hitTest(this)) {
_root.getOn();
}
}
}
instance user of movieClip 351 {
onClipEvent (enterFrame) {
_root.userWalk(_root.user, 15);
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else {
if (this._x < 10) {
this._x = 10;
} else {
if (this._y < 201.9) {
this._y = 201.9;
} else {
if (this._y > 300) {
this._y = 300;
}
}
}
}
}
onClipEvent (enterFrame) {
trace(_root.switched);
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
_root.gotoAndPlay('gameOver');
}
}
onClipEvent (enterFrame) {
Stage.scaleMode = 'noScale';
Stage.showMenu = false;
}
}
instance of movieClip 137 {
onClipEvent (enterFrame) {
this._width = _root.hp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else {
if (this._width <= 0) {
this._width = 0;
}
}
}
}
frame 58 {
stopAllSounds();
}
frame 58 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 63 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('introMusic');
themeSong.start(0.1, 9999);
}
frame 63 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 63 {
stop();
}
movieClip 469 {
}
instance ground1 of movieClip 469 {
onClipEvent (enterFrame) {
if (_root.dead10 == true && this._x > 261.4) {
this._x -= 5;
}
}
}
movieClip 472 {
}
instance advanceto of movieClip 55 {
onClipEvent (enterFrame) {
if (_root.dead13 == true && (_root.dead11 == true && _root.dead12 == true && (Key.isDown(39) && _root.user.hitTest(this)))) {
_root.getOn();
}
}
}
instance user of movieClip 351 {
onClipEvent (enterFrame) {
_root.userWalk(_root.user, 15);
}
onClipEvent (enterFrame) {
if (this._x > 202 && !_root.ground2.hitTest(_root.ground1)) {
this._x = 202;
} else {
if (this._x < 10) {
this._x = 10;
} else {
if (this._y < 201.9) {
this._y = 201.9;
} else {
if (this._y > 300) {
this._y = 300;
} else {
if (this._x > 500 && _root.ground2.hitTest(_root.ground1)) {
this._x = 500;
}
}
}
}
}
}
onClipEvent (enterFrame) {
trace(_root.moveLaser);
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
_root.gotoAndPlay('gameOver');
}
}
onClipEvent (enterFrame) {
Stage.scaleMode = 'noScale';
Stage.showMenu = false;
}
}
movieClip 481 {
}
movieClip 489 {
frame 1 {
stop();
}
frame 30 {
gotoAndPlay(1);
}
frame 40 {
stop();
}
frame 40 {
}
}
instance cpu10 of movieClip 489 {
onClipEvent (enterFrame) {
++_root.count10;
}
onClipEvent (enterFrame) {
if (_root.count10 == 25 && (_root.moveLaserLeft == false && _root.moveLaser == false)) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count10 == 25) {
_root.count10 -= 25;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.laser.hitTest(this)) {
_root.cpuhp10 = 0;
this.gotoAndPlay('death');
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp10 <= 0) {
_root.dead10 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead10, 34);
}
}
movieClip 490 {
}
instance laser of movieClip 490 {
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this)) {
_root.moveLaser = true;
_root.moveLaserLeft = false;
} else {
if (this._x < -70) {
_root.moveLaserLeft = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.moveLaser == true && _root.moveLaserLeft == false) {
this._x += 45;
} else {
if (_root.moveLaserLeft == true && _root.moveLaser == false) {
this._x -= 45;
}
}
}
onClipEvent (enterFrame) {
if (_root.cpu10._currentframe > 11 && (_root.cpu10._currentframe < 23 && _root.moveLaser == false)) {
_root.moveLaserLeft = true;
}
}
onClipEvent (enterFrame) {
if (this._x < -70 && (_root.cpu10._currentframe < 11 && _root.cpu10._currentframe < 23)) {
this._x = 359.6;
}
}
onClipEvent (enterFrame) {
if (_root.moveLaser == true && _root.moveLaserLeft == false && this._y < 250) {
this._y += 10;
}
}
onClipEvent (enterFrame) {
if (_root.moveLaserLeft == true || _root.moveLaser == true) {
this._visible = true;
} else {
if (_root.moveLaserLeft == false || _root.moveLaser == false) {
this._visible = false;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && !this.hitTest(_root.user.me.hit) && _root.gettingHurt == false) {
_root.user.me.gotoAndPlay('damage');
} else {
if (this.hitTest(_root.user) && !this.hitTest(_root.user.me.hit)) {
_root.hp -= 10;
}
}
}
}
instance cpu12 of movieClip 434 {
onClipEvent (enterFrame) {
if (_root.dead10 == true) {
_root.findUser(this, 6, 50, _root.dead12);
}
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -15);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu13, _root.cpu11);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count12 < 16) {
++_root.count12;
}
}
onClipEvent (enterFrame) {
if (_root.count12 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count12 == 15) {
_root.count12 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp12 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp12 -= 5;
} else {
if (_root.cpuhp12 <= 0 && this._currentframe < 13) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp12 <= 0) {
_root.dead12 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead12, 15);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
if (_root.user._x < this._x) {
this._xscale = 50;
} else {
if (_root.user._x > this._x) {
this._xscale = -50;
}
}
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu11 of movieClip 434 {
onClipEvent (enterFrame) {
if (_root.dead10 == true) {
_root.findUser(this, 8, 50, _root.dead11);
}
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -15);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu13, _root.cpu12);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count11 < 16) {
++_root.count11;
}
}
onClipEvent (enterFrame) {
if (_root.count11 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count11 == 15) {
_root.count11 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp11 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp11 -= 5;
} else {
if (_root.cpuhp11 <= 0 && this._currentframe < 13) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp11 <= 0) {
_root.dead11 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead11, 15);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
if (_root.user._x < this._x) {
this._xscale = 50;
} else {
if (_root.user._x > this._x) {
this._xscale = -50;
}
}
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu13 of movieClip 380 {
onClipEvent (enterFrame) {
if (_root.dead10 == true) {
_root.findUser(this, 4, 85, _root.dead13);
}
}
onClipEvent (enterFrame) {
_root.cpuTurn(this, 20);
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -10);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu12, _root.cpu11);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count13 < 16) {
++_root.count13;
}
}
onClipEvent (enterFrame) {
if (_root.count13 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count13 == 15) {
_root.count13 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp13 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp13 -= 5;
} else {
if (_root.cpuhp13 <= 0 && this._currentframe < 26) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp13 <= 0) {
_root.dead13 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead13, 35);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance go of movieClip 386 {
onClipEvent (enterFrame) {
if (_root.dead13 == true && (_root.dead11 == true && _root.dead12 == true && this._currentframe == 1)) {
this.gotoAndPlay('go');
}
}
}
instance of movieClip 137 {
onClipEvent (enterFrame) {
this._width = _root.hp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else {
if (this._width <= 0) {
this._width = 0;
}
}
}
}
frame 68 {
stopAllSounds();
}
frame 68 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 72 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('introMusic');
themeSong.start(0.1, 9999);
}
frame 72 {
e = 0;
while (e < 10) {
_root.attachMovie('carpet1', 'carpetAttached', 5);
eval(_root.carpetAttached)._y = 255.8;
eval(_root.carpetAttached)._x = -30;
break;
++e;
}
i = 0;
while (i < 10) {
_root.attachMovie('rykis', 'rykisAttached', 10);
eval(_root.rykisAttached)._y = 201;
eval(_root.rykisAttached)._x = 42;
eval(_root.rykisAttached)._height = 90.7;
eval(_root.rykisAttached)._width = 35.6;
break;
++i;
}
b = 0;
while (b < 10) {
_root.attachMovie('doors', 'doorsAttached', 4);
eval(_root.doorsAttached)._y = 125;
eval(_root.doorsAttached)._x = 300;
eval(_root.doorsAttached)._height = 200;
eval(_root.doorsAttached)._width = 650;
break;
++b;
}
c = 0;
while (c < 10) {
_root.attachMovie('fade', 'fadeAttached', 11);
eval(_root.fadeAttached)._y = 0;
eval(_root.fadeAttached)._x = 0;
eval(_root.fadeAttached)._height = 1400;
eval(_root.fadeAttached)._width = 1550;
break;
++c;
}
}
frame 72 {
stop();
}
instance control of movieClip 146 {
onClipEvent (enterFrame) {
if (_root.rykisAttached.me.hitTest(_root.doorsAttached.door1) && (Key.isDown(Key.up) && _root.rykisAttached.me._y == -201.9)) {
_root.attachMovie('brownwalls', 'brownAttached', 6);
_root.attachMovie('saveSpot', 'saveSpotAttached', 7);
_root.fadeAttached.gotoAndPlay('fader');
_root.doorsAttached.removeMovieClip();
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
eval(_root.brownAttached)._y = 125;
eval(_root.brownAttached)._x = 300;
eval(_root.brownAttached)._height = 200;
eval(_root.brownAttached)._width = 650;
eval(_root.saveSpotAttached)._y = 200;
eval(_root.saveSpotAttached)._x = 387;
eval(_root.saveSpotAttached)._height = 100;
eval(_root.saveSpotAttached)._width = 50;
_root.attachMovie('bridge', 'bridgeAttached', 5);
eval(_root.bridgeAttached)._y = 110;
eval(_root.bridgeAttached)._x = 364;
_root.attachMovie('rykis', 'rykisAttached', 10);
eval(_root.rykisAttached)._y = 201;
eval(_root.rykisAttached)._x = 121;
eval(_root.rykisAttached)._height = 90.7;
eval(_root.rykisAttached)._width = 35.6;
}
}
onClipEvent (enterFrame) {
if (_root.rykisAttached.hitTest(_root.saveSpotAttached) && _root.heartfill1 == false) {
_root.hp = 100;
_root.heartfill1 = true;
_root.saveSpotAttached._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.rykisAttached.me.hitTest(_root.brownAttached.door1) && (Key.isDown(Key.up) && _root.rykisAttached.me._y == -201.9)) {
_root.fadeAttached.gotoAndPlay('fader');
_root.brownAttached.removeMovieClip();
_root.bridgeAttached.removeMovieClip();
_root.saveSpotAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.attachMovie('carpet1', 'carpetAttached', 5);
eval(_root.carpetAttached)._y = 255.8;
eval(_root.carpetAttached)._x = -30;
_root.attachMovie('doors', 'doorsAttached', 4);
eval(_root.doorsAttached)._y = 125;
eval(_root.doorsAttached)._x = 300;
eval(_root.doorsAttached)._height = 200;
eval(_root.doorsAttached)._width = 650;
_root.attachMovie('rykis', 'rykisAttached', 10);
eval(_root.rykisAttached)._y = 201;
eval(_root.rykisAttached)._x = 121;
eval(_root.rykisAttached)._height = 90.7;
eval(_root.rykisAttached)._width = 35.6;
} else {
if (_root.rykisAttached.me.hitTest(_root.doorsAttached.door2) && (Key.isDown(Key.up) && _root.rykisAttached.me._y == -201.9)) {
_root.play();
}
}
}
onClipEvent (enterFrame) {
if (_root.heartfill1 == true) {
_root.saveSpotAttached._visible = false;
}
}
}
instance back of movieClip 137 {
onClipEvent (enterFrame) {
this.swapDepths(13);
}
}
instance lifeBar of movieClip 137 {
onClipEvent (enterFrame) {
this._width = _root.hp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else {
if (this._width <= 0) {
this._width = 0;
}
}
}
onClipEvent (enterFrame) {
this.swapDepths(14);
}
}
instance ryFace of movieClip 235 {
onClipEvent (enterFrame) {
this.swapDepths(12);
}
}
movieClip 491 {
}
movieClip 492 {
}
instance ryText of movieClip 492 {
onClipEvent (enterFrame) {
this.swapDepths(15);
}
}
frame 77 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('introMusic');
themeSong.start(0.1, 9999);
}
frame 77 {
walking = '';
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
cpuhp0 = 30;
cpuhp1 = 25;
cpuhp2 = 25;
cpuhp3 = 25;
cpuhp4 = 25;
cpuhp5 = 25;
cpuhp6 = 30;
cpuhp7 = 30;
cpuhp8 = 30;
cpuhp9 = 25;
cpuhp10 = 50;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
}
frame 77 {
_root.carpetAttached.removeMovieClip();
_root.rykisAttached.removeMovieClip();
_root.ryFace.removeMovieClip();
_root.lifeBar.removeMovieClip();
_root.back.removeMovieClip();
_root.ryText.removeMovieClip();
_root.doorsAttached.removeMovieClip();
}
frame 77 {
stop();
}
movieClip 494 {
}
movieClip 496 {
}
movieClip 498 {
}
instance advanceto of movieClip 55 {
onClipEvent (enterFrame) {
if (_root.dead1 == true && (_root.dead0 == true && _root.dead6 == true && _root.dead5 == true && (Key.isDown(39) && _root.user.hitTest(this)))) {
_root.getOn();
}
}
}
movieClip 512 {
frame 1 {
stop();
}
frame 15 {
stop();
}
}
instance bot of movieClip 512 {
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && this._currentframe < 9) {
this.nextFrame();
} else {
if (this._currentframe == 9) {
_root.destroyed = true;
this.gotoAndPlay('destroyed');
}
}
}
}
instance user of movieClip 351 {
onClipEvent (enterFrame) {
_root.userWalk(_root.user, 15);
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else {
if (this._x < 10) {
this._x = 10;
} else {
if (this._y < 201.9) {
this._y = 201.9;
} else {
if (this._y > 300) {
this._y = 300;
}
}
}
}
}
onClipEvent (enterFrame) {
trace(_root.count15);
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
_root.gotoAndPlay('gameOver');
}
}
onClipEvent (enterFrame) {
Stage.scaleMode = 'noScale';
Stage.showMenu = false;
}
}
instance cpu of movieClip 380 {
onClipEvent (enterFrame) {
if (_root.ready == true) {
_root.findUser(_root.cpu, 7.5, 85, _root.dead1);
}
}
onClipEvent (enterFrame) {
_root.cpuTurn(_root.cpu, 20);
}
onClipEvent (enterFrame) {
_root.findUserY(_root.cpu, 7.5, -10);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count2 < 16) {
++_root.count2;
}
}
onClipEvent (enterFrame) {
if (_root.count2 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count2 == 15) {
_root.count2 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp1 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp1 -= 5;
} else {
if (_root.cpuhp1 <= 0 && this._currentframe < 26) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp1 <= 0) {
_root.dead1 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead1, 35);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu0, _root.cpu6, _root.cpu2, _root.cpu5);
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu0 of movieClip 380 {
onClipEvent (enterFrame) {
if (_root.ready == true) {
_root.findUser(_root.cpu0, 4, 85, _root.dead0);
}
}
onClipEvent (enterFrame) {
_root.cpuTurn(_root.cpu0, 20);
}
onClipEvent (enterFrame) {
_root.findUserY(_root.cpu0, 7.5, -10);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count0 < 16) {
++_root.count0;
}
}
onClipEvent (enterFrame) {
if (_root.count0 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count0 == 15) {
_root.count0 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp0 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp0 -= 5;
} else {
if (_root.cpuhp0 <= 0 && this._currentframe < 26) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp0 <= 0) {
_root.dead0 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead0, 35);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu, _root.cpu6, _root.cpu2, _root.cpu5);
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu5 of movieClip 434 {
onClipEvent (enterFrame) {
if (_root.ready == true) {
_root.findUser(this, 6, 50, _root.dead5);
}
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -15);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu, _root.cpu6, _root.cpu2, _root.cpu0);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count5 < 16) {
++_root.count5;
}
}
onClipEvent (enterFrame) {
if (_root.count5 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count5 == 15) {
_root.count5 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp5 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp5 -= 5;
} else {
if (_root.cpuhp5 <= 0 && this._currentframe < 13) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp5 <= 0) {
_root.dead5 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead5, 15);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
if (_root.user._x < this._x) {
this._xscale = 50;
} else {
if (_root.user._x > this._x) {
this._xscale = -50;
}
}
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu6 of movieClip 434 {
onClipEvent (enterFrame) {
if (_root.ready == true) {
_root.findUser(this, 8, 50, _root.dead6);
}
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -15);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu, _root.cpu0, _root.cpu2, _root.cpu5);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count6 < 16) {
++_root.count6;
}
}
onClipEvent (enterFrame) {
if (_root.count6 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count6 == 15) {
_root.count6 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp6 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp6 -= 5;
} else {
if (_root.cpuhp6 <= 0 && this._currentframe < 13) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 15);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
if (_root.user._x < this._x) {
this._xscale = 50;
} else {
if (_root.user._x > this._x) {
this._xscale = -50;
}
}
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
movieClip 514 {
}
instance blade5 of movieClip 514 {
onClipEvent (enterFrame) {
if (_root.goAttack == true) {
this._y += 20;
}
}
onClipEvent (enterFrame) {
if (_root.goAttack == true && this._y < 1) {
this._x = int(Math.random() * 450);
}
}
onClipEvent (enterFrame) {
if (this._y > 410) {
this._y = -65.7;
}
}
onClipEvent (enterFrame) {
++_root.count11;
}
onClipEvent (enterFrame) {
if (_root.count11 > 140 && _root.count11 < 165) {
_root.goAttack = true;
} else {
_root.goAttack = false;
}
}
onClipEvent (enterFrame) {
if (_root.count11 == 165) {
_root.count11 -= 165;
}
}
onClipEvent (enterFrame) {
if (_root.destroyed == true) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.gettingHurt == false && _root.destroyed == false) {
_root.user.me.gotoAndPlay('damage');
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.destroyed == false) {
_root.hp -= 2;
}
}
}
instance blade3 of movieClip 514 {
onClipEvent (enterFrame) {
if (_root.goAttack == true) {
this._y += 20;
}
}
onClipEvent (enterFrame) {
if (_root.goAttack == true && this._y < 1) {
this._x = int(Math.random() * 450);
}
}
onClipEvent (enterFrame) {
if (this._y > 410) {
this._y = -65.7;
}
}
onClipEvent (enterFrame) {
++_root.count13;
}
onClipEvent (enterFrame) {
if (_root.count13 > 140 && _root.count13 < 165) {
_root.goAttack = true;
} else {
_root.goAttack = false;
}
}
onClipEvent (enterFrame) {
if (_root.count13 == 165) {
_root.count13 -= 165;
}
}
onClipEvent (enterFrame) {
if (_root.destroyed == true) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.gettingHurt == false && _root.destroyed == false) {
_root.user.me.gotoAndPlay('damage');
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.destroyed == false) {
_root.hp -= 2;
}
}
}
instance blade1 of movieClip 514 {
onClipEvent (enterFrame) {
if (_root.goAttack == true) {
this._y += 20;
}
}
onClipEvent (enterFrame) {
if (_root.goAttack == true && this._y < 1) {
this._x = int(Math.random() * 450);
}
}
onClipEvent (enterFrame) {
if (this._y > 410) {
this._y = -65.7;
}
}
onClipEvent (enterFrame) {
++_root.count15;
}
onClipEvent (enterFrame) {
if (_root.count15 > 140 && _root.count15 < 165) {
_root.goAttack = true;
} else {
_root.goAttack = false;
}
}
onClipEvent (enterFrame) {
if (_root.count15 == 165) {
_root.count15 -= 165;
}
}
onClipEvent (enterFrame) {
if (_root.destroyed == true) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.gettingHurt == false && _root.destroyed == false) {
_root.user.me.gotoAndPlay('damage');
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.destroyed == false) {
_root.hp -= 2;
}
}
}
instance blade2 of movieClip 514 {
onClipEvent (enterFrame) {
if (_root.goAttack == true) {
this._y += 20;
}
}
onClipEvent (enterFrame) {
if (_root.goAttack == true && this._y < 1) {
this._x = int(Math.random() * 450);
}
}
onClipEvent (enterFrame) {
if (this._y > 410) {
this._y = -65.7;
}
}
onClipEvent (enterFrame) {
++_root.count14;
}
onClipEvent (enterFrame) {
if (_root.count14 > 140 && _root.count14 < 165) {
_root.goAttack = true;
} else {
_root.goAttack = false;
}
}
onClipEvent (enterFrame) {
if (_root.count14 == 165) {
_root.count14 -= 165;
}
}
onClipEvent (enterFrame) {
if (_root.destroyed == true) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.gettingHurt == false && _root.destroyed == false) {
_root.user.me.gotoAndPlay('damage');
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.destroyed == false) {
_root.hp -= 2;
}
}
}
instance blade4 of movieClip 514 {
onClipEvent (enterFrame) {
if (_root.goAttack == true) {
this._y += 20;
}
}
onClipEvent (enterFrame) {
if (_root.goAttack == true && this._y < 1) {
this._x = int(Math.random() * 450);
}
}
onClipEvent (enterFrame) {
if (this._y > 410) {
this._y = -65.7;
}
}
onClipEvent (enterFrame) {
++_root.count12;
}
onClipEvent (enterFrame) {
if (_root.count12 > 140 && _root.count12 < 165) {
_root.goAttack = true;
} else {
_root.goAttack = false;
}
}
onClipEvent (enterFrame) {
if (_root.count12 == 165) {
_root.count12 -= 165;
}
}
onClipEvent (enterFrame) {
if (_root.destroyed == true) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.gettingHurt == false && _root.destroyed == false) {
_root.user.me.gotoAndPlay('damage');
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.destroyed == false) {
_root.hp -= 2;
}
}
}
instance go of movieClip 386 {
onClipEvent (enterFrame) {
if (_root.dead1 == true && (_root.dead0 == true && _root.dead6 == true && _root.dead5 == true && this._currentframe == 1 && _root.bot._currentframe == 15)) {
this.gotoAndPlay('go');
}
}
}
instance of movieClip 137 {
onClipEvent (enterFrame) {
this._width = _root.hp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else {
if (this._width <= 0) {
this._width = 0;
}
}
}
}
frame 81 {
stopAllSounds();
}
frame 82 {
}
frame 86 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('introMusic');
themeSong.start(0.1, 9999);
}
frame 86 {
walking = '';
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
cpuhp0 = 30;
cpuhp1 = 25;
cpuhp2 = 25;
cpuhp3 = 25;
cpuhp4 = 25;
cpuhp5 = 25;
cpuhp6 = 30;
cpuhp7 = 30;
cpuhp8 = 30;
cpuhp9 = 25;
cpuhp10 = 25;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
lightUp = false;
}
frame 86 {
stop();
}
movieClip 516 {
}
instance light of movieClip 516 {
onClipEvent (enterFrame) {
if (_root.user.hitTest(this.hit)) {
_root.lightUp = true;
} else {
if (_root.user.hitTest(_root.light2.hit)) {
_root.lightUp = true;
} else {
_root.lightUp = false;
}
}
}
}
instance advanceto of movieClip 55 {
onClipEvent (enterFrame) {
if (_root.dead10 == true && (Key.isDown(39) && _root.user.hitTest(this))) {
_root.getOn();
}
}
}
instance user of movieClip 351 {
onClipEvent (enterFrame) {
_root.userWalk(_root.user, 15);
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else {
if (this._x < 10) {
this._x = 10;
} else {
if (this._y < 201.9) {
this._y = 201.9;
} else {
if (this._y > 300) {
this._y = 300;
}
}
}
}
}
onClipEvent (enterFrame) {
trace(_root.count10);
}
onClipEvent (enterFrame) {
if (_root.Hp <= 0) {
_root.gotoAndPlay('gameOver');
}
}
onClipEvent (enterFrame) {
Stage.scaleMode = 'noScale';
Stage.showMenu = false;
}
}
movieClip 525 {
frame 8 {
gotoAndPlay(1);
}
frame 13 {
gotoAndPlay(1);
}
frame 20 {
gotoAndPlay(1);
}
frame 27 {
stop();
}
}
instance cpu10 of movieClip 525 {
onClipEvent (enterFrame) {
_root.findUser(this, 10, 75, _root.dead10);
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -15);
}
onClipEvent (enterFrame) {
if (_root.lightUp == false) {
_root.attackUser(this);
}
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu, _root.cpu6, _root.cpu2, _root.cpu0);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count10 < 16 && _root.lightUp == false) {
++_root.count10;
}
}
onClipEvent (enterFrame) {
if (_root.count10 == 15 && _root.lightUp == false) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count10 >= 15) {
_root.count10 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp10 > 0 && _root.lightUp == true) {
this.gotoAndPlay('damage');
_root.cpuhp10 -= 5;
} else {
if (_root.cpuhp10 <= 0 && this._currentframe < 13) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp10 <= 0) {
_root.dead10 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead10, 15);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
if (_root.user._x < this._x) {
this._xscale = 50;
} else {
if (_root.user._x > this._x) {
this._xscale = -50;
}
}
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance go of movieClip 386 {
onClipEvent (enterFrame) {
if (_root.dead10 == true && this._currentframe == 1) {
this.gotoAndPlay('go');
}
}
}
instance of movieClip 137 {
onClipEvent (enterFrame) {
this._width = _root.hp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else {
if (this._width <= 0) {
this._width = 0;
}
}
}
}
frame 90 {
stopAllSounds();
}
frame 90 {
}
frame 92 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('introMusic');
themeSong.start(0.1, 9999);
}
frame 92 {
walking = '';
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
cpuhp0 = 30;
cpuhp1 = 25;
cpuhp2 = 25;
cpuhp3 = 25;
cpuhp4 = 25;
cpuhp5 = 25;
cpuhp6 = 30;
cpuhp7 = 30;
cpuhp8 = 30;
cpuhp9 = 25;
cpuhp10 = 25;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
lightUp = false;
}
frame 92 {
stop();
}
movieClip 528 {
}
instance advanceto of movieClip 55 {
onClipEvent (enterFrame) {
if (_root.dead1 == true && (_root.dead0 == true && _root.dead6 == true && _root.dead5 == true && (Key.isDown(39) && _root.user.hitTest(this)))) {
_root.getOn();
}
}
}
instance user of movieClip 351 {
onClipEvent (enterFrame) {
_root.userWalk(_root.user, 15);
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else {
if (this._x < 10) {
this._x = 10;
} else {
if (this._y < 201.9) {
this._y = 201.9;
} else {
if (this._y > 300) {
this._y = 300;
}
}
}
}
}
onClipEvent (enterFrame) {
trace(_root.count10);
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
_root.gotoAndPlay('gameOver');
}
}
onClipEvent (enterFrame) {
Stage.scaleMode = 'noScale';
Stage.showMenu = false;
}
}
instance cpu5 of movieClip 434 {
onClipEvent (enterFrame) {
_root.findUser(this, 6, 50, _root.dead5);
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -15);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu, _root.cpu6, _root.cpu2, _root.cpu0);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count5 < 16) {
++_root.count5;
}
}
onClipEvent (enterFrame) {
if (_root.count5 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count5 == 15) {
_root.count5 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp5 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp5 -= 5;
} else {
if (_root.cpuhp5 <= 0 && this._currentframe < 13) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp5 <= 0) {
_root.dead5 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead5, 15);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
if (_root.user._x < this._x) {
this._xscale = 50;
} else {
if (_root.user._x > this._x) {
this._xscale = -50;
}
}
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu6 of movieClip 434 {
onClipEvent (enterFrame) {
_root.findUser(this, 8, 50, _root.dead6);
}
onClipEvent (enterFrame) {
_root.findUserY(this, 5, -15);
}
onClipEvent (enterFrame) {
_root.attackUser(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu, _root.cpu0, _root.cpu2, _root.cpu5);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count6 < 16) {
++_root.count6;
}
}
onClipEvent (enterFrame) {
if (_root.count6 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count6 == 15) {
_root.count6 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp6 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp6 -= 5;
} else {
if (_root.cpuhp6 <= 0 && this._currentframe < 13) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp6 <= 0) {
_root.dead6 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead6, 15);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
if (_root.user._x < this._x) {
this._xscale = 50;
} else {
if (_root.user._x > this._x) {
this._xscale = -50;
}
}
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu of movieClip 380 {
onClipEvent (enterFrame) {
if (_root.dead5 && _root.dead6 == true) {
_root.findUser(_root.cpu, 7.5, 85, _root.dead1);
}
}
onClipEvent (enterFrame) {
_root.cpuTurn(_root.cpu, 20);
}
onClipEvent (enterFrame) {
_root.findUserY(_root.cpu, 7.5, -10);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count2 < 16) {
++_root.count2;
}
}
onClipEvent (enterFrame) {
if (_root.count2 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count2 == 15) {
_root.count2 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp1 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp1 -= 5;
} else {
if (_root.cpuhp1 <= 0 && this._currentframe < 26) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp1 <= 0) {
_root.dead1 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead1, 35);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu13, _root.cpu0);
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance cpu0 of movieClip 380 {
onClipEvent (enterFrame) {
if (_root.dead5 && _root.dead6 == true) {
_root.findUser(_root.cpu0, 4, 85, _root.dead0);
}
}
onClipEvent (enterFrame) {
_root.cpuTurn(_root.cpu0, 20);
}
onClipEvent (enterFrame) {
_root.findUserY(_root.cpu0, 7.5, -10);
}
onClipEvent (enterFrame) {
if (_root.user.hitTest(this) && _root.count0 < 16) {
++_root.count0;
}
}
onClipEvent (enterFrame) {
if (_root.count0 == 15) {
this.gotoAndPlay('attack1');
}
}
onClipEvent (enterFrame) {
if (_root.count0 == 15) {
_root.count0 -= 15;
}
}
onClipEvent (enterFrame) {
_root.userHurt(this);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(this) && _root.cpuhp0 > 0) {
this.gotoAndPlay('damage');
_root.cpuhp0 -= 5;
} else {
if (_root.cpuhp0 <= 0 && this._currentframe < 26) {
this.gotoAndPlay('death');
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuhp0 <= 0) {
_root.dead0 = true;
}
}
onClipEvent (enterFrame) {
_root.removeCpu(this, _root.dead0, 35);
}
onClipEvent (enterFrame) {
_root.getLife(this);
}
onClipEvent (enterFrame) {
_root.touchTeam(this, _root.cpu13, _root.cpu);
}
onClipEvent (enterFrame) {
_root.getBack(this);
}
}
instance go of movieClip 386 {
onClipEvent (enterFrame) {
if (_root.dead1 == true && (_root.dead0 == true && _root.dead6 == true && _root.dead5 == true && this._currentframe == 1)) {
this.gotoAndPlay('go');
}
}
}
instance of movieClip 137 {
onClipEvent (enterFrame) {
this._width = _root.hp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else {
if (this._width <= 0) {
this._width = 0;
}
}
}
}
frame 95 {
stopAllSounds();
}
frame 96 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('gossamir');
themeSong.start(0.1, 9999);
}
frame 96 {
stop();
}
movieClip 534 {
frame 5 {
stop();
}
}
movieClip 550 {
frame 2 {
}
frame 15 {
stop();
}
}
movieClip 552 {
frame 10 {
gotoAndPlay(1);
}
frame 15 {
stop();
}
}
movieClip 554 {
}
movieClip 555 {
frame 1 {
stop();
}
frame 15 {
stop();
_root.getOn();
}
}
movieClip 557 {
}
movieClip 559 {
}
movieClip 560 {
}
movieClip 563 {
}
button 570 {
on (press) {
nextFrame();
}
}
button 591 {
on (press) {
_root.gossAndRyk.baby.gotoAndPlay('rise');
nextFrame();
}
}
movieClip 592 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
frame 19 {
stop();
}
frame 20 {
stop();
}
frame 21 {
stop();
}
frame 22 {
stop();
}
}
instance chat of movieClip 592 {
onClipEvent (enterFrame) {
if (_root.gossAndRyk.gossamir._currentframe > 14) {
this._alpha = 100;
}
}
}
frame 101 {
stopAllSounds();
}
frame 105 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('boss');
themeSong.start(0.1, 9999);
}
frame 105 {
_quality = 'low';
}
frame 105 {
walking = '';
counter0 = 0;
counter1 = 0;
counter2 = 0;
counter3 = 0;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counter7 = 0;
counter8 = 0;
counter9 = 0;
counter10 = 0;
counter11 = 0;
counter12 = 0;
counter13 = 0;
counter14 = 0;
counter15 = 0;
gettingHurt = false;
cpuhp0 = 30;
cpuhp1 = 25;
cpuhp2 = 25;
cpuhp3 = 25;
cpuhp4 = 25;
cpuhp5 = 25;
cpuhp6 = 30;
cpuhp7 = 30;
cpuhp8 = 30;
cpuhp9 = 25;
cpuhp10 = 25;
cpuhp11 = 50;
cpuhp12 = 35;
cpuhp13 = 45;
cpuhp14 = 30;
cpuhp15 = 45;
cpuhp16 = 45;
cpuhp17 = 45;
cpuhp18 = 45;
cpuhp19 = 45;
cpuhp20 = 45;
cpuhp21 = 45;
cpuhp22 = 45;
cpuhp23 = 45;
cpuhp24 = 45;
cpuhp25 = 45;
dead0 = false;
dead1 = false;
dead2 = false;
dead3 = false;
dead4 = false;
dead5 = false;
dead6 = false;
dead7 = false;
dead8 = false;
dead9 = false;
dead10 = false;
dead11 = false;
dead12 = false;
dead13 = false;
dead14 = false;
dead15 = false;
dead16 = false;
dead17 = false;
dead18 = false;
dead19 = false;
dead20 = false;
dead21 = false;
dead22 = false;
dead23 = false;
dead24 = false;
dead25 = false;
lightUp = false;
cpuAttacking = false;
dragonHurt = false;
bossHp = 250;
}
frame 105 {
hp = 100;
}
frame 105 {
stop();
}
movieClip 594 {
}
movieClip 657 {
frame 1 {
stop();
}
frame 1 {
_root.cpuAttacking = false;
}
frame 2 {
_root.cpuAttacking = true;
}
frame 21 {
gotoAndPlay(1);
}
frame 22 {
_root.cpuAttacking = false;
}
frame 39 {
gotoAndPlay(1);
}
frame 55 {
_root.cpuAttacking = false;
}
frame 60 {
gotoAndPlay(1);
}
frame 61 {
_root.cpuAttacking = true;
}
frame 90 {
gotoAndPlay(1);
}
}
instance dragon of movieClip 657 {
onClipEvent (enterFrame) {
var rando = int(Math.random() * 2500);
var burnOn = false;
trace(rando);
if (rando > 400 && rando < 500 && _root.dragon._currentframe == 1 && _root.dragonHurt == false) {
_root.dragon.gotoAndPlay('fireBreath');
_root.burn.gotoAndPlay('flame');
} else {
if (rando > 100 && rando < 200 && _root.dragon._currentframe == 1 && _root.dragonHurt == false) {
_root.dragon.gotoAndPlay('hurtMe');
} else {
if (rando > 800 && rando < 900 && _root.dragon._currentframe == 1 && _root.dragonHurt == false) {
_root.dragon.gotoAndPlay('skyFlame');
}
}
}
}
onClipEvent (enterFrame) {
if (_root.cpuAttacking == false) {
_root.findUser(this, 5, 85, _root.dead25);
}
}
onClipEvent (enterFrame) {
if (_root.bossHp <= 0) {
_root.gotoAndPlay('end');
}
}
}
movieClip 667 {
frame 1 {
stop();
}
frame 21 {
gotoAndPlay(1);
}
}
instance burn of movieClip 667 {
onClipEvent (enterFrame) {
if (_root.cpuAttacking == false) {
_root.findUser(this, 5, 85, _root.dead25);
}
}
onClipEvent (enterFrame) {
if (_root.dragon._currentframe > 2 && _root.dragon._currentframe < 23) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.burn.hit.hitTest(_root.user)) {
_root.user.me.gotoAndPlay('damage');
}
}
onClipEvent (enterFrame) {
if (_root.burn.hit.hitTest(_root.user)) {
_root.hp -= 3;
} else {
if (_root.burn2.hit.hitTest(_root.user)) {
_root.hp -= 3;
}
}
}
}
instance user of movieClip 351 {
onClipEvent (enterFrame) {
if (Key.isDown(39) && _root.walking == true) {
this._x += 15;
} else {
if (Key.isDown(37) && _root.walking == true) {
this._x -= 15;
} else {
if (Key.isDown(38) && _root.walking == true) {
this._y -= 15;
} else {
if (Key.isDown(40) && _root.walking == true) {
this._y += 15;
}
}
}
}
}
onClipEvent (enterFrame) {
if (this._x > 500) {
this._x = 500;
} else {
if (this._x < 10) {
this._x = 10;
} else {
if (this._y < 217.9) {
this._y = 217.9;
} else {
if (this._y > 300) {
this._y = 300;
}
}
}
}
}
onClipEvent (enterFrame) {
trace(_root.user._currentframe);
}
onClipEvent (enterFrame) {
if (_root.user.me.hit.hitTest(_root.dragon.hitMe)) {
_root.dragon.gotoAndPlay('damage');
_root.bossHp -= 20;
}
}
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
_root.gotoAndPlay('gameOver');
}
}
onClipEvent (enterFrame) {
Stage.scaleMode = 'noScale';
Stage.showMenu = false;
}
}
movieClip 671 {
frame 1 {
stop();
}
frame 15 {
gotoAndPlay(1);
}
}
instance flame1 of movieClip 671 {
onClipEvent (enterFrame) {
if (_root.dragon._currentframe > 61 && (_root.dragon._currentframe < 90 && this._currentframe == 1)) {
this.gotoAndPlay('flameOn');
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.gettingHurt == false) {
_root.user.me.gotoAndPlay('damage');
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user)) {
_root.hp -= 3;
}
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._x = int(Math.random() * 450);
}
}
}
instance flame2 of movieClip 671 {
onClipEvent (enterFrame) {
var mat = int(Math.random() * 3500);
if (_root.dragon._currentframe > 61 && (_root.dragon._currentframe < 90 && this._currentframe == 1 && mat < 100)) {
this.gotoAndPlay('flameOn');
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.gettingHurt == false) {
_root.user.me.gotoAndPlay('damage');
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.user) && _root.gettingHurt == false) {
_root.hp -= 3;
}
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._x = int(Math.random() * 450);
}
}
}
movieClip 689 {
frame 17 {
stop();
}
}
instance of movieClip 137 {
onClipEvent (enterFrame) {
this._width = _root.hp;
}
onClipEvent (enterFrame) {
if (this._width >= 100) {
this._width = 100;
} else {
if (this._width <= 0) {
this._width = 0;
}
}
}
}
instance of movieClip 137 {
onClipEvent (enterFrame) {
this._width = _root.bossHp;
}
onClipEvent (enterFrame) {
if (this._width >= 250) {
this._width = 250;
} else {
if (this._width <= 0) {
this._width = 0;
}
}
}
}
frame 107 {
stopAllSounds();
i = 0;
while (i < 5) {
++i;
}
themeSong = new sound();
themeSong.attachSound('introMusic');
themeSong.start(0.1, 9999);
}
frame 107 {
stop();
}
movieClip 693 {
}
button 697 {
on (press) {
nextFrame();
}
}
movieClip 723 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
frame 19 {
stop();
}
frame 20 {
stop();
}
}
frame 108 {
stopAllSounds();
}
frame 108 {
stop();
}
movieClip 725 {
}
movieClip 727 {
}
button 730 {
on (press) {
gotoAndPlay(20);
}
}