Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 4
gotoAndPlay (3);
Frame 6
gotoAndPlay (5);
Frame 7
stop();
Instance of Symbol 72 MovieClip "scoreboard" in Frame 8
onClipEvent (load) {
_root.kirbydam = 1;
}
onClipEvent (enterFrame) {
if (_root.kirbydam > 0) {
_root.scoreboard.bar.gotoAndStop(_root.kirbydam);
}
}
Instance of Symbol 74 MovieClip "star" in Frame 8
onClipEvent (load) {
coll = new Sound();
coll.attachSound("collect");
soundplayed = 0;
this.path = _root["starx" + count];
this.time = 0;
}
onClipEvent (enterFrame) {
this.time = this.time + 1;
this.pick = this.hitTest(_root.kirbymin);
if (this.pick == true) {
if (soundplayed == 0) {
coll.start(0, 1);
soundplayed = 1;
}
coll.onSoundComplete = function () {
soundplayed = 0;
};
_root.score = _root.score + _root.value;
_root.value = _root.value + 5;
removeMovieClip(this.path);
}
if (this.time == 90) {
removeMovieClip(this.path);
}
}
Instance of Symbol 75 MovieClip in Frame 8
onClipEvent (load) {
_root.left2 = "";
count = 1;
_root.speed = 50;
_root.wave = 1;
_root.wavechck = 1;
}
onClipEvent (enterFrame) {
if (count == 10) {
_root.left2 = "5";
}
if (count == 11) {
_root.left2 = "4";
}
if (count == 12) {
_root.left2 = "3";
}
if (count == 13) {
_root.left2 = "2";
}
if (count == 14) {
_root.left2 = "1";
}
if (count == 1) {
_root.left2 = "";
}
if (_root.kirbydam < 15) {
rand = Math.round(Math.random() * _root.speed);
if (rand == 1) {
_root.star.duplicateMovieClip("starx" + count, count);
_root["starx" + count]._x = random(440);
_root["starx" + count]._y = random(440);
count = count + 1;
if (count == 15) {
count = 1;
_root.wave = _root.wave + 1;
_root.speed = 50 - (2 * _root.wave);
_root.value = 10;
}
_root.speed = _root.speed - 1;
}
}
}
Instance of Symbol 79 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (checked == 0) {
if (_root.wavechck == (_root.wave - 1)) {
this._x = 250;
_root.wavechck = _root.wave;
checked = 1;
}
}
if (checked == 1) {
count = count + 1;
if (count == 60) {
this._x = -100;
count = 0;
checked = 0;
}
}
}
onClipEvent (load) {
checked = 0;
count = 0;
}
Instance of Symbol 80 MovieClip in Frame 8
onClipEvent (keyUp) {
if (Key.getCode() == 37) {
_root.kirbystatus = "still";
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 39) {
_root.kirbystatus = "still";
}
}
Instance of Symbol 81 MovieClip in Frame 8
onClipEvent (load) {
_root.kirbyhurt = 0;
_root.enemy._y = 60;
_root.enemL = 0;
}
onClipEvent (enterFrame) {
if (_root.enemL == 0) {
randomen = Math.round(Math.random() * 150);
if (randomen == 50) {
_root.enemy.gotoAndPlay(2);
_root.enemy._y = 60 + Math.round(Math.random() * 320);
_root.enemL = 1;
}
}
}
Instance of Symbol 82 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.wave > _root.dedewav) {
randomde = Math.round(Math.random() * 300);
if (_root.dededeap == 0) {
if (randomde == 100) {
_root.dededeap = 1;
_root.dededemain.gotoAndPlay(3);
}
}
if (_root.dededemain._x > 550) {
_root.dededeap = 0;
_root.dededemain.gotoAndPlay(1);
}
}
}
Instance of Symbol 83 MovieClip in Frame 8
onClipEvent (load) {
jump = new Sound();
jump.attachSound("Kirbyjump");
soundplayed = 0;
}
onClipEvent (enterFrame) {
if (soundplayed == 0) {
if (_root.kirbyhurt == 0) {
if (_root.kirbyjumpdir == "down") {
if (Key.isDown(32)) {
jump.start(0, 1);
soundplayed = 1;
}
}
}
}
}
onClipEvent (enterFrame) {
jump.onSoundComplete = function () {
soundplayed = 0;
};
}
Instance of Symbol 85 MovieClip "platg" in Frame 8
onClipEvent (enterFrame) {
if (_root.platg.hitTest(_root.kirbymin) == true) {
if (_root.kirbyjumpdir == "down") {
if (getProperty(_root.kirbymin, _y) < ((getProperty(_root.platg, _y) + 25) - _root.kirbysize)) {
_root.kirbystatus = "still";
_root.kirbyjump = false;
_root.kirbyjumpstat = 0;
_root.kirbystandstatus = 0;
_root.kirbyjumpdir = "down";
setProperty(_root.kirbymin, _y , (getProperty(_root.platg, _y) - _root.kirbysize) + 5);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.platg.hitTest(_root.kirbymin) == false) {
if (_root.kirbystandstatus == 0) {
_root.kirbystandstatus = 1;
_root.expo = 2;
_root.kirbyjump = true;
}
}
}
Instance of Symbol 113 MovieClip "kirbymin" in Frame 8
onClipEvent (load) {
bgmus = new Sound();
bgmus.attachSound("Inside2");
bgmus.start(0, 100000);
_root.kirbysize = 35.9;
_root.kirbyhat = "none";
_root.kirbydir = "right";
_root.kirbystatus = "still";
_root.kirbyjumpstat = 0;
_root.kirbyjump = false;
_root.kirbystandstatus = 0;
_root.expo = 20;
_root.score = 0;
_root.kirbyspeed = 4;
_root.value = 10;
_root.kirbyhurt = 0;
_root.justhurt = 0;
}
onClipEvent (enterFrame) {
if (getProperty(_root.kirbymin, _x) < 0) {
setProperty(_root.kirbymin, _x , 0);
}
if ((getProperty(_root.kirbymin, _x) + getProperty(_root.kirbymin, _width)) > 500) {
setProperty(_root.kirbymin, _x , 500 - getProperty(_root.kirbymin, _width));
}
if (getProperty(_root.kirbymin, _y) < 0) {
setProperty(_root.kirbymin, _y , 0);
}
}
onClipEvent (enterFrame) {
_root.kirbyatx = _root.kirbymin._x;
_root.kirbyaty = _root.kirbymin._y;
}
Instance of Symbol 141 MovieClip "enemy" in Frame 8
onClipEvent (load) {
_root.enemvis = 0;
}
Instance of Symbol 152 MovieClip "dededemain" in Frame 8
onClipEvent (load) {
_root.dededeap = 0;
a = 0;
}
Instance of Symbol 162 MovieClip "starproj" in Frame 8
onClipEvent (load) {
fireso = new Sound();
fireso.attachSound("rodfire");
soundplayed = 0;
starmove = 0;
}
onClipEvent (enterFrame) {
if (this._x > 520) {
this._x = -50;
starmove = 0;
}
if (this._x < -20) {
this._x = -50;
starmove = 0;
}
if (this._y > 520) {
this._y = -50;
starmove = 0;
}
if (this._y < -20) {
this._y = -50;
starmove = 0;
}
if (_root.kirbyhat != "invin") {
if (this.hitTest(_root.kirbymin) == true) {
_root.kirbyhurt = 1;
if (_root.justhurt == 0) {
_root.kirbydam = _root.kirbydam + _root.damval;
_root.justhurt = 1;
}
}
}
if (starmove == 1) {
if (_root.stargotox > 0) {
_root.starproj._x = _root.starproj._x + (20 * Math.cos(_root.alpha));
_root.starproj._y = _root.starproj._y - (20 * Math.sin(_root.alpha));
}
if (_root.stargotox < 0) {
_root.starproj._x = _root.starproj._x - (20 * Math.cos(_root.alpha));
_root.starproj._y = _root.starproj._y + (20 * Math.sin(_root.alpha));
}
}
if (_root.fire == 1) {
if (soundplayed == 0) {
fireso.start();
soundplayed = 1;
}
fireso.onSoundComplete = function () {
soundplayed = 0;
};
_root.starproj._x = _root.para._x + _root.para.wadpar._x;
_root.starproj._y = _root.para._y + _root.para.wadpar._y;
_root.stargotox = _root.kirbymin._x - _root.starproj._x;
_root.stargotoy = _root.starproj._y - _root.kirbymin._y;
_root.alpha = Math.atan(_root.stargotoy / _root.stargotox);
starmove = 1;
_root.fire = 0;
}
}
Instance of Symbol 163 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.wave > _root.parawav) {
randwad = Math.round(Math.random() * 250);
if (_root.parapear == 1) {
if (_root.para._x > 550) {
_root.parapear = 0;
_root.para._x = 60;
_root.para.gotoAndPlay(1);
}
}
if ((_root.parapear == 0) && (randwad == 100)) {
_root.para._x = Math.round(Math.random() * 400) + 50;
_root.parapear = 1;
}
}
}
Instance of Symbol 174 MovieClip "para" in Frame 8
onClipEvent (load) {
_root.parapear = 0;
}
Instance of Symbol 177 MovieClip "fireh" in Frame 8
onClipEvent (load) {
pick = new Sound();
pick.attachSound("hat pick");
expo = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.kirbymin) == true) {
pick.start();
this._y = -60;
_root.kirbyhat = "fire";
_root.drophat = "none";
}
if (_root.drophat == "fire") {
this._y = this._y + expo;
expo = expo * 1.1;
if (expo > 20) {
expo = 20;
}
if (this._y > 480) {
this._y = 480;
_root.hatctrl.pssetf = 0;
}
}
}
Instance of Symbol 179 MovieClip "gianth" in Frame 8
onClipEvent (load) {
pick = new Sound();
pick.attachSound("hat pick");
expo = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.kirbymin) == true) {
pick.start();
this._y = -60;
_root.kirbyhat = "giant";
_root.drophat = "none";
}
if (_root.drophat == "giant") {
this._y = this._y + expo;
expo = expo * 1.1;
if (expo > 20) {
expo = 20;
}
if (this._y > 480) {
this._y = 480;
_root.hatctrl.pssetg = 0;
}
}
}
Instance of Symbol 181 MovieClip "invinh" in Frame 8
onClipEvent (load) {
pick = new Sound();
pick.attachSound("hat pick");
expo = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.kirbymin) == true) {
pick.start();
this._y = -60;
_root.kirbyhat = "invin";
_root.drophat = "none";
}
if (_root.drophat == "invin") {
this._y = this._y + expo;
expo = expo * 1.1;
if (expo > 20) {
expo = 20;
}
if (this._y > 480) {
this._y = 480;
_root.hatctrl.psseti = 0;
}
}
}
Instance of Symbol 183 MovieClip "hatctrl" in Frame 8
onClipEvent (load) {
grow = new Sound();
grow.attachSound("grow");
shrink = new Sound();
shrink.attachSound("shrink");
count = 0;
psseti = 0;
pssetf = 0;
pssetg = 0;
changed = 0;
_root.ifbig = 1;
_root.drophat = "none";
}
onClipEvent (enterFrame) {
if (_root.kirbyhat == "fire") {
if (changed == 1) {
shrink.start();
count = 0;
_root.kirbyspeed = 4;
_root.kirbymin._height = _root.kirbymin._height / 2;
_root.kirbymin._width = _root.kirbymin._width / 2;
_root.ifbig = 1;
changed = 0;
}
count = count + 1;
if (count == 350) {
count = 0;
_root.kirbyhat = "none";
}
}
if (_root.kirbyhat == "giant") {
if (changed == 0) {
grow.start();
_root.ifbig = 2;
_root.kirbymin._height = _root.kirbymin._height * 2;
_root.kirbyspeed = 7;
_root.kirbymin._width = _root.kirbymin._width * 2;
_root.kirbymin._y = _root.kirbymin._y - 80;
changed = 1;
}
count = count + 1;
if (count == 200) {
shrink.start();
count = 0;
_root.kirbymin._height = _root.kirbymin._height / 2;
_root.kirbymin._width = _root.kirbymin._width / 2;
_root.kirbyspeed = 4;
_root.ifbig = 1;
changed = 0;
_root.kirbyhat = "none";
}
}
if (_root.kirbyhat == "invin") {
if (changed == 1) {
shrink.start();
count = 0;
_root.kirbymin._height = _root.kirbymin._height / 2;
_root.kirbyspeed = 4;
_root.kirbymin._width = _root.kirbymin._width / 2;
_root.ifbig = 1;
changed = 0;
}
count = count + 1;
if (count == 200) {
count = 0;
_root.kirbyhat = "none";
}
}
if (_root.drophat == "none") {
randhat = Math.round(Math.random() * 600);
if ((randhat == 100) || (randhat == 150)) {
if (_root.wave > _root.firehatwav) {
if (_root.kirbyhat != "fire") {
_root.drophat = "fire";
if (pssetf == 0) {
_root.fireh._x = Math.round(Math.random() * 400) + 50;
pssetf = 1;
}
}
}
}
if (randhat == 250) {
if (_root.wave > _root.gianthatwav) {
if (_root.kirbyhat != "giant") {
_root.drophat = "giant";
if (pssetg == 0) {
_root.gianth._x = Math.round(Math.random() * 400) + 50;
pssetg = 1;
}
}
}
}
if (randhat == 300) {
if (_root.wave > _root.invinhatwav) {
if (_root.kirbyhat != "invin") {
_root.drophat = "invin";
if (psseti == 0) {
_root.invinh._x = Math.round(Math.random() * 400) + 50;
psseti = 1;
}
}
}
}
}
}
Instance of Symbol 189 MovieClip "fireball" in Frame 8
onClipEvent (load) {
die = new Sound();
die.attachSound("en die");
count = 0;
}
onClipEvent (enterFrame) {
if (this._x > 460) {
removeMovieClip(this);
}
if (this.hitTest(_root.enemy.wadle.balloons) == true) {
if (_root.enemvis == 1) {
_root.score = _root.score + 20;
_root.enemy.gotoAndPlay(241);
removeMovieClip(this);
}
}
if (((((this.hitTest(_root.enemy.wadle.dee) == true) || (this.hitTest(_root.enemy.wf1) == true)) || (this.hitTest(_root.enemy.wf2) == true)) || (this.hitTest(_root.enemy.wf3) == true)) || (this.hitTest(_root.enemy.wr) == true)) {
if (_root.enemvis == 1) {
_root.enemhitfire = true;
_root.enemvis = 0;
die.start();
removeMovieClip(this);
_root.score = _root.score + 20;
_root.enemy.gotoAndPlay(354);
}
}
if ((this.hitTest(_root.para.wadpar) == true) || (this.hitTest(_root.para.wr) == true)) {
_root.parahitfire = true;
die.start();
removeMovieClip(this);
_root.score = _root.score + 30;
_root.para.gotoAndPlay(150);
}
if (this.hitTest(_root.dededemain.dedededct) == true) {
_root.dedehitfire = true;
die.start();
removeMovieClip(this);
_root.score = _root.score + 30;
_root.dededemain.gotoAndPlay(22);
}
}
Instance of Symbol 191 MovieClip "firectrl" in Frame 8
onClipEvent (load) {
spit = new Sound();
spit.attachSound("fb spit");
_root.kirbyspitting = false;
counter = 0;
}
onClipEvent (enterFrame) {
if (_root.kirbyhurt == 0) {
if (_root.kirbyhat == "fire") {
if (_root.kirbyspitting == false) {
if (Key.isDown(17)) {
if (counter < 3) {
_root.kirbyspitting = true;
if (_root.kirbydir == "right") {
spit.start();
counter = counter + 1;
levelto = counter + 30;
_root.fireball.duplicateMovieClip("fireball" + counter, levelto);
setProperty("_root.fireball" + counter, _x , _root.kirbymin._x);
setProperty("_root.fireball" + counter, _y , _root.kirbymin._y);
}
if (_root.kirbydir == "left") {
spit.start();
counter = counter + 1;
levelto = counter + 30;
_root.fireballr.duplicateMovieClip("fireballr" + counter, levelto);
setProperty("_root.fireballr" + counter, _x , _root.kirbymin._x);
setProperty("_root.fireballr" + counter, _y , _root.kirbymin._y);
}
} else {
counter = 0;
}
}
}
}
}
}
onClipEvent (enterFrame) {
_root.fireball1._x = _root.fireball1._x + 20;
_root.fireball2._x = _root.fireball2._x + 20;
_root.fireball3._x = _root.fireball3._x + 20;
_root.fireballr1._x = _root.fireballr1._x - 20;
_root.fireballr2._x = _root.fireballr2._x - 20;
_root.fireballr3._x = _root.fireballr3._x - 20;
}
Instance of Symbol 192 MovieClip "fireballr" in Frame 8
onClipEvent (load) {
die = new Sound();
die.attachSound("en die");
count = 0;
}
onClipEvent (enterFrame) {
if (this._x < 0) {
removeMovieClip(this);
}
if (this.hitTest(_root.enemy.wadle.balloons) == true) {
if (_root.enemvis == 1) {
_root.score = _root.score + 20;
_root.enemy.gotoAndPlay(241);
removeMovieClip(this);
}
}
if (((((this.hitTest(_root.enemy.wadle.dee) == true) || (this.hitTest(_root.enemy.wf1) == true)) || (this.hitTest(_root.enemy.wf2) == true)) || (this.hitTest(_root.enemy.wf3) == true)) || (this.hitTest(_root.enemy.wr) == true)) {
if (_root.enemvis == 1) {
_root.enemvis = 0;
die.start();
removeMovieClip(this);
_root.enemhitfire = true;
_root.score = _root.score + 20;
_root.enemy.gotoAndPlay(354);
}
}
if ((this.hitTest(_root.para.wadpar) == true) || (this.hitTest(_root.para.wr) == true)) {
removeMovieClip(this);
_root.parahitfire = true;
_root.score = _root.score + 30;
die.start();
_root.para.gotoAndPlay(150);
}
if (this.hitTest(_root.dededemain.dedededct) == true) {
_root.dedehitfire = true;
die.start();
removeMovieClip(this);
_root.score = _root.score + 30;
_root.dededemain.gotoAndPlay(22);
}
}
Instance of Symbol 74 MovieClip "warpstar" in Frame 8
onClipEvent (enterFrame) {
if (_root.kirbydam > 14) {
_level0.gotoAndPlay("Game Over", 1);
stopAllSounds();
} else if (_root.wave == _root.endwav) {
stopAllSounds();
_root.soundstop = true;
_root.wave = _root.endwav;
this._y = this._y + 20;
if (this._y > 415) {
this.down = true;
this._y = 415;
}
}
}
onClipEvent (enterFrame) {
if (this.down == true) {
if (this.hitTest(_root.kirbymin) == true) {
gotoAndPlay (10);
}
}
}
Frame 9
if (_root.kirbyhurt == 0) {
_root.kirbysize = 35.9 * _root.ifbig;
soundplayed = 0;
_root.hurtcount = 0;
_root.justhurt = 0;
if (Key.isDown(39)) {
if (_root.kirbyjump == false) {
_root.kirbydir = "right";
_root.kirbystatus = "walk";
setProperty(_root.kirbymin, _x , getProperty(_root.kirbymin, _x) + _root.kirbyspeed);
}
if (_root.kirbyjump == true) {
_root.kirbydir = "right";
setProperty(_root.kirbymin, _x , getProperty(_root.kirbymin, _x) + _root.kirbyspeed);
}
}
if (Key.isDown(37)) {
if (_root.kirbyjump == false) {
_root.kirbystatus = "walk";
_root.kirbydir = "left";
setProperty(_root.kirbymin, _x , getProperty(_root.kirbymin, _x) - _root.kirbyspeed);
}
if (_root.kirbyjump == true) {
_root.kirbydir = "left";
setProperty(_root.kirbymin, _x , getProperty(_root.kirbymin, _x) - _root.kirbyspeed);
}
}
if (Key.isDown(32)) {
if (_root.kirbyjumpstat == 0) {
_root.kirbystandstatus = 2;
_root.kirbyjump = true;
_root.kirbyjumpdir = "up";
_root.kirbystatus = "jump";
_root.kirbyjumpstat = 1;
_root.expo = 20;
}
}
}
if (_root.kirbyhurt == 1) {
_root.kirbysize = 31 * _root.ifbig;
hurt = new Sound();
hurt.attachSound("hurtsound");
if (soundplayed == 0) {
hurt.start();
soundplayed = 1;
}
_root.justhurt = 1;
_root.kirbystatus = "hurt";
_root.hurtcount = _root.hurtcount + 1;
_root.hurtcount = _root.hurtcount + 1;
if (_root.hurtcount > 100) {
_root.kirbyhurt = 0;
}
}
if (_root.kirbydam > 14) {
_level0.gotoAndPlay("Game Over", 1);
stopAllSounds();
} else if (_root.wave == _root.endwav) {
stopAllSounds();
_level0.gotoAndPlay("Warpstar", 1);
} else {
gotoAndPlay (8);
}
Frame 10
count = 1;
do {
removeMovieClip("_root.starx" + count);
count = count + 1;
} while (count < 31);
Instance of Symbol 85 MovieClip "platg" in Frame 10
onClipEvent (enterFrame) {
if (_root.platg.hitTest(_root.kirbymin) == true) {
if (_root.kirbyjumpdir == "down") {
if (getProperty(_root.kirbymin, _y) < ((getProperty(_root.platg, _y) + 25) - _root.kirbysize)) {
_root.kirbystatus = "still";
_root.kirbyjump = false;
_root.kirbyjumpstat = 0;
_root.kirbystandstatus = 0;
_root.kirbyjumpdir = "down";
setProperty(_root.kirbymin, _y , (getProperty(_root.platg, _y) - _root.kirbysize) + 5);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.platg.hitTest(_root.kirbymin) == false) {
if (_root.kirbystandstatus == 0) {
_root.kirbystandstatus = 1;
_root.expo = 2;
_root.kirbyjump = true;
}
}
}
Instance of Symbol 80 MovieClip in Frame 10
onClipEvent (keyUp) {
if (Key.getCode() == 37) {
_root.kirbystatus = "still";
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 39) {
_root.kirbystatus = "still";
}
}
Instance of Symbol 113 MovieClip "kirbymin" in Frame 10
onClipEvent (load) {
this._x = _root.kirbyatx;
this._y = _root.kirbyaty;
_root.kirbydir = "right";
_root.kirbyhat = "none";
_root.kirbysize = 35.9;
_root.kirbystatus = "fall";
_root.kirbyjumpstat = 0;
_root.kirbyjump = false;
_root.kirbystandstatus = 0;
_root.expo = 20;
}
onClipEvent (enterFrame) {
_root.kirbymin._x = _root.kirbymin._x + 6;
}
Instance of Symbol 206 MovieClip "score" in Frame 76
onClipEvent (load) {
_root.starhealth = 50;
}
Instance of Symbol 208 MovieClip in Frame 76
onClipEvent (load) {
_root.timer = 0;
timertimer = 0;
starh = 0;
}
onClipEvent (enterFrame) {
timertimer = timertimer + 1;
if (timertimer == 22) {
timertimer = 0;
starh = starh + 1;
_root.timer = _root.timer + 1;
if (starh == 2) {
starh = 0;
_root.starhealth = _root.starhealth - 1;
}
}
}
onClipEvent (enterFrame) {
_root.back.in1.gotoAndStop(Math.round((_root.timer / _root.flytime) + 0.001));
_root.back.in2.gotoAndStop(Math.round((_root.timer / _root.flytime) + 0.001));
}
Instance of Symbol 210 MovieClip in Frame 76
onClipEvent (enterFrame) {
if (_root.timer > _root.flytime2) {
if (this.there != true) {
this._x = this._x - 3;
}
if (this._x < 300) {
this.there = true;
this._x = 300;
}
}
}
Instance of Symbol 234 MovieClip "kirbyon" in Frame 76
onClipEvent (load) {
bgmus2 = new Sound();
bgmus2.attachSound("asche");
bgmus2.start(0, 100000);
_root.starpos = "norm";
_root.hurtsoundplayed = 0;
_root.kirbyhurt = 0;
_root.kirbyhealth = 1;
_root.damval = 1;
}
onClipEvent (keyDown) {
if (_root.kirbyhurt == 0) {
if (Key.isDown(32)) {
_root.kirbystarstat = "fire";
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
_root.kirbystarstat = "norm";
} else if ((((Key.getCode() == 40) || (Key.getCode() == 38)) || (Key.getCode() == 39)) || (Key.getCode() == 37)) {
_root.starpos = "norm";
}
}
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
_root.kirbyon._y = _root.kirbyon._y + 8;
_root.starpos = "down";
}
if (Key.isDown(38)) {
_root.kirbyon._y = _root.kirbyon._y - 8;
_root.starpos = "up";
}
if (Key.isDown(37)) {
_root.kirbyon._x = _root.kirbyon._x - 8;
_root.starpos = "back";
}
if (Key.isDown(39)) {
_root.kirbyon._x = _root.kirbyon._x + 8;
_root.starpos = "for";
}
if (_root.kirbyon._x > 480) {
_root.kirbyon._x = 480;
}
if (_root.kirbyon._x < 20) {
_root.kirbyon._x = 20;
}
if (_root.kirbyon._y > 480) {
_root.kirbyon._y = 480;
}
if (_root.kirbyon._y < 60) {
_root.kirbyon._y = 60;
}
}
onClipEvent (enterFrame) {
_root.warpstarx = _root.kirbyon._x;
_root.warpstary = _root.kirbyon._y;
}
Instance of Symbol 238 MovieClip "fireballb" in Frame 76
onClipEvent (enterFrame) {
if (this._x > 500) {
removeMovieClip(this);
}
}
Instance of Symbol 240 MovieClip in Frame 76
onClipEvent (load) {
spit = new Sound();
spit.attachSound("fb spit");
counter = 0;
count2 = 0;
}
onClipEvent (enterFrame) {
if (counter > 5) {
counter = 0;
}
count2 = count2 + 1;
if (_root.kirbyhurt == 0) {
if (Key.isDown(32)) {
if (_root.kirbystarstat == "fire") {
if (count2 > 8) {
counter = counter + 1;
_root.starhealth = _root.starhealth - _root.firecost;
depth2 = counter + 22;
duplicateMovieClip ("_root.fireballb", "fireballb" + counter, depth2);
spit.start();
setProperty("_root.fireballb" + counter, _y , _root.kirbyon._y);
setProperty("_root.fireballb" + counter, _x , _root.kirbyon._x);
count2 = 0;
}
}
}
}
}
onClipEvent (enterFrame) {
count = 0;
do {
count = count + 1;
setProperty("_root.fireballb" + count, _x , getProperty("_root.fireballb" + count, _x) + 10);
} while (count < 7);
}
Instance of Symbol 74 MovieClip "starb" in Frame 76
onClipEvent (load) {
coll = new Sound();
coll.attachSound("collect");
}
onClipEvent (enterFrame) {
if (this._x < -10) {
removeMovieClip(this);
}
if (this.hitTest(_root.kirbyon.kirby) == true) {
if (_root.kirbyhurt == 0) {
coll.start();
removeMovieClip(this);
_root.starhealth = _root.starhealth + 1;
_root.score = _root.score + 10;
}
}
}
Instance of Symbol 242 MovieClip in Frame 76
onClipEvent (load) {
count = 0;
count2 = 0;
}
onClipEvent (enterFrame) {
do {
count2 = count2 + 1;
setProperty("_root.starb" + count2, _x , getProperty("_root.starb" + count2, _x) - 5);
} while (count2 < 16);
count2 = 0;
if (count > 15) {
count = 0;
}
randstar = Math.round(Math.random() * 25);
if (randstar == 10) {
count = count + 1;
newname = "starb" + count;
depth2 = count + 2;
duplicateMovieClip ("_root.starb", newname, depth2);
setProperty("_root.starb" + count, _y , Math.round(Math.random() * 400) + 50);
}
}
onClipEvent (enterFrame) {
}
Instance of Symbol 251 MovieClip "wadcloud" in Frame 76
onClipEvent (load) {
die = new Sound();
die.attachSound("en die");
this.cloud1.gotoAndStop(Math.round(_root.timer / _root.flytime));
this.cloud2.gotoAndStop(Math.round(_root.timer / _root.flytime));
}
onClipEvent (enterFrame) {
if (this.blam == 1) {
removeMovieClip(this);
}
if (this._x < -30) {
removeMovieClip(this);
}
}
onClipEvent (enterFrame) {
if (this.hit != 1) {
if (this.hitTest(_root.fireballb1) == true) {
removeMovieClip("_root.fireballb1");
_root.score = _root.score + 20;
die.start();
this.hit = 1;
}
if (this.hitTest(_root.fireballb2) == true) {
removeMovieClip("_root.fireballb2");
_root.score = _root.score + 20;
die.start();
this.hit = 1;
}
if (this.hitTest(_root.fireballb3) == true) {
removeMovieClip("_root.fireballb3");
_root.score = _root.score + 20;
die.start();
this.hit = 1;
}
if (this.hitTest(_root.fireballb4) == true) {
removeMovieClip("_root.fireballb4");
_root.score = _root.score + 20;
die.start();
this.hit = 1;
}
if (this.hitTest(_root.fireballb5) == true) {
removeMovieClip("_root.fireballb5");
_root.score = _root.score + 20;
die.start();
this.hit = 1;
}
if (this.hitTest(_root.fireballb6) == true) {
removeMovieClip("_root.fireballb6");
_root.score = _root.score + 20;
die.start();
this.hit = 1;
}
}
}
onClipEvent (enterFrame) {
this.cloud1.gotoAndStop(Math.round(_root.timer / _root.flytime));
this.cloud2.gotoAndStop(Math.round(_root.timer / _root.flytime));
}
Instance of Symbol 253 MovieClip "enem" in Frame 76
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
_root.wadcloud1._x = _root.wadcloud1._x - 6;
_root.wadcloud2._x = _root.wadcloud2._x - 7;
_root.wadcloud3._x = _root.wadcloud3._x - 6;
_root.wadcloud4._x = _root.wadcloud4._x - 7;
_root.wadcloud5._x = _root.wadcloud5._x - 6;
_root.wadcloud6._x = _root.wadcloud6._x - 7;
_root.wadcloud7._x = _root.wadcloud7._x - 6;
_root.wadcloud8._x = _root.wadcloud8._x - 7;
_root.wadcloud9._x = _root.wadcloud9._x - 6;
_root.wadcloud10._x = _root.wadcloud10._x - 7;
}
onClipEvent (enterFrame) {
if (count == 10) {
count = 0;
}
if (_root.timer < _root.flytime2) {
cloudap = Math.round(Math.random() * 20);
if (cloudap == 10) {
count = count + 1;
depth2 = count + 40;
duplicateMovieClip ("_root.wadcloud", "wadcloud" + count, depth2);
setProperty("_root.wadcloud" + count, _y , Math.round(Math.random() * 400) + 50);
setProperty("_root.wadcloud" + count, _width , getProperty("_root.wadcloud" + count, _width) + (count * 1.5));
setProperty("_root.wadcloud" + count, _height , getProperty("_root.wadcloud" + count, _height) + (count * 1.5));
}
}
}
Instance of Symbol 319 MovieClip "dm" in Frame 76
onClipEvent (load) {
there = false;
_root.dm.hurt.bdy.arm._rotation = -17.8;
justhurt = 0;
_root.spike = false;
_root.attacking = false;
_root.rotset = 0;
hitcount = 0;
_root.dmhit = 0;
_root.dmhealth = 1;
}
onClipEvent (enterFrame) {
if (_root.timer > _root.flytime2) {
if (there != true) {
_root.dm._x = _root.dm._x - 3;
}
if (_root.dm._x < 620) {
there = true;
_root.dm._x = 620;
}
}
}
onClipEvent (enterFrame) {
if (_root.attacking == false) {
if (there == true) {
randeye = Math.round(Math.random() * 100);
randarm = Math.round(Math.random() * 80);
randmin = Math.round(Math.random() * 150);
if (randmin == 20) {
if (_root.mdm1.move == false) {
_root.mdm1.move = true;
}
}
if (randmin == 40) {
if (_root.mdm2.move == false) {
_root.mdm2.move = true;
}
}
if (randmin == 60) {
if (_root.mdm3.move == false) {
_root.mdm3.move = true;
}
}
if (randmin == 80) {
if (_root.mdm4.move == false) {
_root.mdm4.move = true;
}
}
if (randmin == 100) {
if (_root.mdm5.move == false) {
_root.mdm5.move = true;
}
}
if ((randeye != 25) && (randarm == 50)) {
if (_root.rotset == 0) {
_root.rot2 = Math.round(Math.random() * 30);
_root.dm.hurt.bdy.arm._rotation = _root.dm.hurt.bdy.arm._rotation + _root.rot2;
_root.attacking = true;
_root.rotset = 1;
}
_root.spike = true;
}
if ((randeye == 25) && (randarm != 50)) {
_root.eyeopen = true;
_root.attacking = true;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.dm.em.ey.beam.hitTest(_root.kirbyon.kirby) == true) {
_root.kirbyhurt = 1;
if (justhurt == 0) {
_root.kirbyhealth = _root.kirbyhealth + 1;
justhurt = 1;
}
}
if (_root.dm.em.ey.beam.hitTest(_root.kirbyon.kirby) == false) {
justhurt = 0;
}
if ((((((((((_root.dm.hurt.bdy.dect.d1.hitTest(_root.kirbyon.kirby) == true) || (_root.dm.hurt.bdy.dect.d2.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.dect.d3.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.dect.d4.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.dect.d5.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.dect.d6.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.dect.d7.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.dect.d8.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.dect.d9.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.dect.d210.hitTest(_root.kirbyon.kirby) == true)) {
_root.kirbyhurt = 1;
}
if ((((((((_root.dm.hurt.bdy.arm.spike.sd1.hitTest(_root.kirbyon.kirby) == true) || (_root.dm.hurt.bdy.arm.spike.sd2.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.arm.spike.sd3.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.arm.spike.sd4.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.arm.spike.sd5.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.arm.spike.sd6.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.arm.spike.sd7.hitTest(_root.kirbyon.kirby) == true)) || (_root.dm.hurt.bdy.arm.spike.sd8.hitTest(_root.kirbyon.kirby) == true)) {
_root.kirbyhurt = 1;
}
}
onClipEvent (enterFrame) {
if (_root.dmhit == 1) {
hitcount = hitcount + 1;
if (hitcount > 30) {
hitcount = 0;
_root.dmhit = 0;
}
}
}
Instance of Symbol 325 MovieClip "mdm1" in Frame 76
onClipEvent (load) {
die = new Sound();
die.attachSound("en die");
this.move = false;
}
onClipEvent (enterFrame) {
this.theta = Math.atan((_root.kirbyon._x - this._x) / (this._y - _root.kirbyon._y));
this.angle = this.theta * 57.2;
if (this._y > _root.kirbyon._y) {
this.ball._rotation = this.angle;
}
if (this._y < _root.kirbyon._y) {
this.ball._rotation = 180 + this.angle;
}
}
onClipEvent (enterFrame) {
if (this.move == true) {
if (this._x > _root.kirbyon._x) {
this._x = this._x - 3;
} else if (this._x < _root.kirbyon._x) {
this._x = this._x + 3;
}
if (this._y > _root.kirbyon._y) {
this._y = this._y - 1;
} else if (this._y < _root.kirbyon._y) {
this._y = this._y + 1;
}
}
if (this.hit != 1) {
if (this.hitTest(_root.fireballb1) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb1");
_root.score = _root.score + 20;
this.hit = 1;
die.start();
}
if (this.hitTest(_root.fireballb2) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb2");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb3) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb3");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb4) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb4");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb5) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb5");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb6) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb6");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.kirbyon.dec) == true) {
this.gotoAndPlay(2);
_root.kirbyhurt = 1;
die.start();
this.hit = 1;
}
}
}
Instance of Symbol 325 MovieClip "mdm2" in Frame 76
onClipEvent (load) {
die = new Sound();
die.attachSound("en die");
this.move = false;
}
onClipEvent (enterFrame) {
this.theta = Math.atan((_root.kirbyon._x - this._x) / (this._y - _root.kirbyon._y));
this.angle = this.theta * 57.2;
if (this._y > _root.kirbyon._y) {
this.ball._rotation = this.angle;
}
if (this._y < _root.kirbyon._y) {
this.ball._rotation = 180 + this.angle;
}
}
onClipEvent (enterFrame) {
if (this.move == true) {
if (this._x > _root.kirbyon._x) {
this._x = this._x - 3;
} else if (this._x < _root.kirbyon._x) {
this._x = this._x + 3;
}
if (this._y > _root.kirbyon._y) {
this._y = this._y - 1;
} else if (this._y < _root.kirbyon._y) {
this._y = this._y + 1;
}
}
if (this.hit != 1) {
if (this.hitTest(_root.fireballb1) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb1");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb2) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb2");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb3) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb3");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb4) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb4");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb5) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb5");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb6) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb6");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.kirbyon.dec) == true) {
this.gotoAndPlay(2);
_root.kirbyhurt = 1;
die.start();
this.hit = 1;
}
}
}
Instance of Symbol 325 MovieClip "mdm3" in Frame 76
onClipEvent (load) {
die = new Sound();
die.attachSound("en die");
this.move = false;
}
onClipEvent (enterFrame) {
this.theta = Math.atan((_root.kirbyon._x - this._x) / (this._y - _root.kirbyon._y));
this.angle = this.theta * 57.2;
if (this._y > _root.kirbyon._y) {
this.ball._rotation = this.angle;
}
if (this._y < _root.kirbyon._y) {
this.ball._rotation = 180 + this.angle;
}
}
onClipEvent (enterFrame) {
if (this.move == true) {
if (this._x > _root.kirbyon._x) {
this._x = this._x - 3;
} else if (this._x < _root.kirbyon._x) {
this._x = this._x + 3;
}
if (this._y > _root.kirbyon._y) {
this._y = this._y - 1;
} else if (this._y < _root.kirbyon._y) {
this._y = this._y + 1;
}
}
if (this.hit != 1) {
if (this.hitTest(_root.fireballb1) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb1");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb2) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb2");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb3) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb3");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb4) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb4");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb5) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb5");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb6) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb6");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.kirbyon.dec) == true) {
this.gotoAndPlay(2);
_root.kirbyhurt = 1;
die.start();
this.hit = 1;
}
}
}
Instance of Symbol 325 MovieClip "mdm4" in Frame 76
onClipEvent (load) {
die = new Sound();
die.attachSound("en die");
this.move = false;
}
onClipEvent (enterFrame) {
this.theta = Math.atan((_root.kirbyon._x - this._x) / (this._y - _root.kirbyon._y));
this.angle = this.theta * 57.2;
if (this._y > _root.kirbyon._y) {
this.ball._rotation = this.angle;
}
if (this._y < _root.kirbyon._y) {
this.ball._rotation = 180 + this.angle;
}
}
onClipEvent (enterFrame) {
if (this.move == true) {
if (this._x > _root.kirbyon._x) {
this._x = this._x - 3;
} else if (this._x < _root.kirbyon._x) {
this._x = this._x + 3;
}
if (this._y > _root.kirbyon._y) {
this._y = this._y - 1;
} else if (this._y < _root.kirbyon._y) {
this._y = this._y + 1;
}
}
if (this.hit != 1) {
if (this.hitTest(_root.fireballb1) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb1");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb2) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb2");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb3) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb3");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb4) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb4");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb5) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb5");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb6) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb6");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.kirbyon.dec) == true) {
this.gotoAndPlay(2);
_root.kirbyhurt = 1;
die.start();
this.hit = 1;
}
}
}
Instance of Symbol 325 MovieClip "mdm5" in Frame 76
onClipEvent (load) {
die = new Sound();
die.attachSound("en die");
this.move = false;
}
onClipEvent (enterFrame) {
this.theta = Math.atan((_root.kirbyon._x - this._x) / (this._y - _root.kirbyon._y));
this.angle = this.theta * 57.2;
if (this._y > _root.kirbyon._y) {
this.ball._rotation = this.angle;
}
if (this._y < _root.kirbyon._y) {
this.ball._rotation = 180 + this.angle;
}
}
onClipEvent (enterFrame) {
if (this.move == true) {
if (this._x > _root.kirbyon._x) {
this._x = this._x - 3;
} else if (this._x < _root.kirbyon._x) {
this._x = this._x + 3;
}
if (this._y > _root.kirbyon._y) {
this._y = this._y - 1;
} else if (this._y < _root.kirbyon._y) {
this._y = this._y + 1;
}
}
if (this.hit != 1) {
if (this.hitTest(_root.fireballb1) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb1");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb2) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb2");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb3) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb3");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb4) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb4");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb5) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb5");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.fireballb6) == true) {
this.gotoAndPlay(2);
removeMovieClip("_root.fireballb6");
die.start();
_root.score = _root.score + 20;
this.hit = 1;
}
if (this.hitTest(_root.kirbyon.dec) == true) {
this.gotoAndPlay(2);
_root.kirbyhurt = 1;
die.start();
this.hit = 1;
}
}
}
Frame 77
_root.recent = "fly";
hurt = new Sound();
hurt.attachSound("hurtsound");
if (_root.kirbyhurt == 1) {
if (_root.hurtsoundplayed == 0) {
hurt.start();
_root.hurtsoundplayed = 1;
}
_root.kirbystarstat = "hurt";
_root.hurtcount = _root.hurtcount + 1;
if (_root.hurtcount == 1) {
_root.kirbyhealth = _root.kirbyhealth + _root.damval;
}
if (_root.hurtcount > 10) {
_root.kirbyhurt = 0;
_root.kirbystarstat = "norm";
_root.hurtsoundplayed = 0;
_root.hurtcount = 0;
}
}
if (_root.kirbyhealth > 19) {
gotoAndPlay (151);
} else if (_root.starhealth < 1) {
gotoAndPlay (151);
} else if (_root.dmhealth > 19) {
gotoAndPlay (78);
} else {
gotoAndPlay (76);
}
Frame 78
count = 1;
do {
removeMovieClip("_root.starx" + count);
removeMovieClip("_root.wadcloud" + count);
removeMovieClip("_root.starb" + count);
removeMovieClip("_root.fireballr" + count);
removeMovieClip("_root.fireball" + count);
count = count + 1;
} while (count < 31);
_root.starproj._x = -50;
_root.starproj._y = -50;
stopAllSounds();
Instance of Symbol 198 MovieClip "back" in Frame 78
onClipEvent (load) {
this.in1.gotoAndStop(20);
this.in2.gotoAndStop(20);
}
Instance of Symbol 234 MovieClip "kirbyon2" in Frame 78
onClipEvent (load) {
_root.starpos = "norm";
_root.hurtsoundplayed = 0;
_root.kirbyhurt = 0;
_root.kirbyhealth = 1;
_root.damval = 1;
this._y = _root.warpstary;
this._x = _root.warpstarx;
}
onClipEvent (enterFrame) {
_root.starpos = "norm";
if (Key.isDown(40)) {
_root.kirbyon2._y = _root.kirbyon2._y + 8;
_root.starpos = "down";
}
if (Key.isDown(38)) {
_root.kirbyon2._y = _root.kirbyon2._y - 8;
_root.starpos = "up";
}
if (Key.isDown(37)) {
_root.kirbyon2._x = _root.kirbyon2._x - 8;
_root.starpos = "back";
}
if (Key.isDown(39)) {
_root.kirbyon2._x = _root.kirbyon2._x + 8;
_root.starpos = "for";
}
if (_root.kirbyon2._x > 480) {
_root.kirbyon22._x = 480;
}
if (_root.kirbyon2._x < 20) {
_root.kirbyon2._x = 20;
}
if (_root.kirbyon2._y > 480) {
_root.kirbyon2._y = 480;
}
if (_root.kirbyon2._y < 60) {
_root.kirbyon2._y = 60;
}
}
onClipEvent (enterFrame) {
}
Instance of Symbol 238 MovieClip "fireballb" in Frame 78
onClipEvent (enterFrame) {
if (this._x > 500) {
removeMovieClip(this);
}
}
Instance of Symbol 240 MovieClip in Frame 78
onClipEvent (load) {
spit = new Sound();
spit.attachSound("fb spit");
counter = 0;
count2 = 0;
}
onClipEvent (enterFrame) {
if (counter > 5) {
counter = 0;
}
count2 = count2 + 1;
if (_root.kirbyhurt == 0) {
if (Key.isDown(32)) {
if (_root.kirbystarstat == "fire") {
if (count2 > 8) {
counter = counter + 1;
_root.starhealth = _root.starhealth - _root.firecost;
depth2 = counter + 22;
duplicateMovieClip ("_root.fireballb", "fireballb" + counter, depth2);
spit.start();
setProperty("_root.fireballb" + counter, _y , _root.kirbyon._y);
setProperty("_root.fireballb" + counter, _x , _root.kirbyon._x);
count2 = 0;
}
}
}
}
}
onClipEvent (enterFrame) {
count = 0;
do {
count = count + 1;
setProperty("_root.fireballb" + count, _x , getProperty("_root.fireballb" + count, _x) + 10);
} while (count < 7);
}
onClipEvent (enterFrame) {
count = 1;
do {
removeMovieClip("_root.starx" + count);
removeMovieClip("_root.wadcloud" + count);
removeMovieClip("_root.starb" + count);
removeMovieClip("_root.fireballr" + count);
removeMovieClip("_root.fireball" + count);
removeMovieClip("_root.fireballb" + count);
count = count + 1;
} while (count < 31);
_root.starproj._x = -50;
_root.starproj._y = -50;
}
Frame 150
gotoAndPlay (221);
Frame 151
stopAllSounds();
count = 1;
do {
removeMovieClip("_root.starx" + count);
removeMovieClip("_root.wadcloud" + count);
removeMovieClip("_root.starb" + count);
removeMovieClip("_root.fireballr" + count);
removeMovieClip("_root.fireball" + count);
removeMovieClip("_root.fireballb" + count);
count = count + 1;
} while (count < 31);
_root.starproj._x = -50;
_root.starproj._y = -50;
Frame 220
stop();
Frame 221
count = 1;
do {
removeMovieClip("_root.starx" + count);
removeMovieClip("_root.wadcloud" + count);
removeMovieClip("_root.starb" + count);
removeMovieClip("_root.fireballr" + count);
removeMovieClip("_root.fireball" + count);
removeMovieClip("_root.fireballb" + count);
count = count + 1;
} while (count < 31);
_root.starproj._x = -50;
_root.starproj._y = -50;
stopAllSounds();
Frame 326
stop();
Symbol 26 MovieClip [aaaaaaaa] Frame 20
gotoAndPlay (1);
Symbol 35 Button
on (release) {
gotoAndPlay (7);
}
Symbol 39 Button
on (release) {
gotoAndPlay (5);
}
Symbol 52 Button
on (release) {
gotoAndPlay (1);
}
Symbol 56 Button
on (release) {
_root.recent = "jump";
_root.kpow = 4;
_root.flytime = 2;
_root.flytime2 = 40;
_root.damval = 1;
_root.firecost = 1;
_root.dedewav = 3;
_root.firehatwav = 1;
_root.gianthatwav = 2;
_root.invinhatwav = 3;
_root.parawav = 2;
_root.endwav = 6;
_root.damval = 1;
_root.dif = 1;
gotoAndPlay (8);
}
Symbol 59 Button
on (release) {
_root.recent = "jump";
_root.kpow = 2;
_root.flytime = 3;
_root.flytime2 = 60;
_root.firecost = 1;
_root.firehatwav = 2;
_root.gianthatwav = 3;
_root.invinhatwav = 4;
_root.dedewav = 5;
_root.parawav = 3;
_root.endwav = 8;
_root.damval = 2;
_root.dif = 1;
gotoAndPlay (8);
}
Symbol 63 Button
on (release) {
_root.recent = "jump";
_root.kpow = 2;
_root.flytime = 4;
_root.flytime2 = 80;
_root.firecost = 2;
_root.firehatwav = 3;
_root.gianthatwav = 5;
_root.invinhatwav = 7;
_root.dedewav = 4;
_root.parawav = 2;
_root.endwav = 11;
_root.damval = 3;
_root.dif = 3;
gotoAndPlay (8);
}
Symbol 70 MovieClip Frame 1
stop();
Instance of Symbol 70 MovieClip "bar" in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
_root.kirbydam = 1;
}
onClipEvent (enterFrame) {
_root.bar.gotoAndStop(_root.kirbydam);
}
Symbol 80 MovieClip Frame 2
if (_root.kirbyjump == true) {
if (_root.expo > 20) {
_root.expo = 20;
}
if (_root.expo < 4) {
_root.kirbyjumpdir = "down";
}
if (_root.kirbyjumpdir == "up") {
setProperty(_root.kirbymin, _y , getProperty(_root.kirbymin, _y) - _root.expo);
_root.expo = _root.expo * 0.8;
}
if (_root.kirbyjumpdir == "down") {
setProperty(_root.kirbymin, _y , getProperty(_root.kirbymin, _y) + _root.expo);
_root.expo = _root.expo / 0.8;
_root.kirbystatus = "fall";
if (_root.expo > 8) {
_root.kirbyjumpstat = 0;
}
}
}
gotoAndPlay (1);
Symbol 89 MovieClip Frame 2
if (_root.kirbyhat == "invin") {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 89 MovieClip Frame 16
if (_root.kirbyhat == "invin") {
} else {
gotoAndPlay (1);
}
Symbol 89 MovieClip Frame 31
if (_root.kirbyhat == "invin") {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 94 MovieClip Frame 2
if (_root.kirbyhat == "none") {
_root.kirbymin.km2.hats.gotoAndPlay(1);
}
if (_root.kirbyhat == "fire") {
_root.kirbymin.km2.hats.gotoAndPlay(3);
}
if (_root.kirbyhat == "giant") {
_root.kirbymin.km2.hats.gotoAndPlay(5);
}
if (_root.kirbyhat == "invin") {
_root.kirbymin.km2.hats.gotoAndPlay(7);
}
Symbol 94 MovieClip Frame 4
if (_root.kirbyhat == "none") {
_root.kirbymin.km2.hats.gotoAndPlay(1);
}
if (_root.kirbyhat == "fire") {
_root.kirbymin.km2.hats.gotoAndPlay(3);
}
if (_root.kirbyhat == "giant") {
_root.kirbymin.km2.hats.gotoAndPlay(5);
}
if (_root.kirbyhat == "invin") {
_root.kirbymin.km2.hats.gotoAndPlay(7);
}
Symbol 94 MovieClip Frame 6
if (_root.kirbyhat == "none") {
_root.kirbymin.km2.hats.gotoAndPlay(1);
}
if (_root.kirbyhat == "fire") {
_root.kirbymin.km2.hats.gotoAndPlay(3);
}
if (_root.kirbyhat == "giant") {
_root.kirbymin.km2.hats.gotoAndPlay(5);
}
if (_root.kirbyhat == "invin") {
_root.kirbymin.km2.hats.gotoAndPlay(7);
}
Symbol 94 MovieClip Frame 8
if (_root.kirbyhat == "none") {
_root.kirbymin.km2.hats.gotoAndPlay(1);
}
if (_root.kirbyhat == "fire") {
_root.kirbymin.km2.hats.gotoAndPlay(3);
}
if (_root.kirbyhat == "giant") {
_root.kirbymin.km2.hats.gotoAndPlay(5);
}
if (_root.kirbyhat == "invin") {
_root.kirbymin.km2.hats.gotoAndPlay(7);
}
Symbol 97 MovieClip Frame 15
gotoAndPlay (1);
Symbol 100 MovieClip Frame 11
gotoAndPlay (1);
Symbol 101 MovieClip Frame 15
gotoAndPlay (1);
Symbol 112 MovieClip Frame 2
if (_root.kirbyspitting == true) {
_root.kirbymin.km2.gotoAndPlay(16);
} else {
if (_root.kirbystatus == "still") {
_root.kirbymin.km2.gotoAndPlay(1);
}
if (_root.kirbystatus == "walk") {
_root.kirbymin.km2.gotoAndPlay(3);
}
if (_root.kirbystatus == "jump") {
_root.kirbymin.km2.gotoAndPlay(5);
}
if (_root.kirbystatus == "fall") {
_root.kirbymin.km2.gotoAndPlay(7);
}
if (_root.kirbystatus == "hurt") {
_root.kirbymin.km2.gotoAndPlay(9);
}
}
Symbol 112 MovieClip Frame 4
if (_root.kirbyspitting == true) {
_root.kirbymin.km2.gotoAndPlay(16);
} else {
if (_root.kirbystatus == "still") {
_root.kirbymin.km2.gotoAndPlay(1);
}
if (_root.kirbystatus == "walk") {
_root.kirbymin.km2.gotoAndPlay(3);
}
if (_root.kirbystatus == "jump") {
_root.kirbymin.km2.gotoAndPlay(5);
}
if (_root.kirbystatus == "fall") {
_root.kirbymin.km2.gotoAndPlay(7);
}
if (_root.kirbystatus == "hurt") {
_root.kirbymin.km2.gotoAndPlay(9);
}
}
Symbol 112 MovieClip Frame 6
if (_root.kirbyspitting == true) {
_root.kirbymin.km2.gotoAndPlay(16);
} else {
if (_root.kirbystatus == "still") {
_root.kirbymin.km2.gotoAndPlay(1);
}
if (_root.kirbystatus == "walk") {
_root.kirbymin.km2.gotoAndPlay(3);
}
if (_root.kirbystatus == "jump") {
_root.kirbymin.km2.gotoAndPlay(5);
}
if (_root.kirbystatus == "fall") {
_root.kirbymin.km2.gotoAndPlay(7);
}
if (_root.kirbystatus == "hurt") {
_root.kirbymin.km2.gotoAndPlay(9);
}
}
Symbol 112 MovieClip Frame 8
if (_root.kirbyspitting == true) {
_root.kirbymin.km2.gotoAndPlay(16);
} else {
if (_root.kirbystatus == "still") {
_root.kirbymin.km2.gotoAndPlay(1);
}
if (_root.kirbystatus == "walk") {
_root.kirbymin.km2.gotoAndPlay(3);
}
if (_root.kirbystatus == "jump") {
_root.kirbymin.km2.gotoAndPlay(5);
}
if (_root.kirbystatus == "fall") {
_root.kirbymin.km2.gotoAndPlay(7);
}
if (_root.kirbystatus == "hurt") {
_root.kirbymin.km2.gotoAndPlay(9);
}
}
Symbol 112 MovieClip Frame 9
if (_root.kirbyhat == "invin") {
_root.kirbyhat = "none";
}
Symbol 112 MovieClip Frame 10
if (_root.kirbyhat == "invin") {
_root.kirbyhat = "none";
}
Symbol 112 MovieClip Frame 11
if (_root.kirbyhat == "invin") {
_root.kirbyhat = "none";
}
Symbol 112 MovieClip Frame 12
if (_root.kirbyhat == "invin") {
_root.kirbyhat = "none";
}
Symbol 112 MovieClip Frame 13
if (_root.kirbyhat == "invin") {
_root.kirbyhat = "none";
}
Symbol 112 MovieClip Frame 14
if (_root.kirbyhat == "invin") {
_root.kirbyhat = "none";
}
Symbol 112 MovieClip Frame 15
if (_root.kirbyhat == "invin") {
_root.kirbyhat = "none";
}
if (_root.kirbyspitting == true) {
_root.kirbymin.km2.gotoAndPlay(16);
} else {
if (_root.kirbystatus == "still") {
_root.kirbymin.km2.gotoAndPlay(1);
}
if (_root.kirbystatus == "walk") {
_root.kirbymin.km2.gotoAndPlay(3);
}
if (_root.kirbystatus == "jump") {
_root.kirbymin.km2.gotoAndPlay(5);
}
if (_root.kirbystatus == "fall") {
_root.kirbymin.km2.gotoAndPlay(7);
}
if (_root.kirbystatus == "hurt") {
_root.kirbymin.km2.gotoAndPlay(9);
}
}
Symbol 112 MovieClip Frame 25
_root.kirbyspitting = false;
if (_root.kirbystatus == "still") {
_root.kirbymin.km2.gotoAndPlay(1);
}
if (_root.kirbystatus == "walk") {
_root.kirbymin.km2.gotoAndPlay(3);
}
if (_root.kirbystatus == "jump") {
_root.kirbymin.km2.gotoAndPlay(5);
}
if (_root.kirbystatus == "fall") {
_root.kirbymin.km2.gotoAndPlay(7);
}
if (_root.kirbystatus == "hurt") {
_root.kirbymin.km2.gotoAndPlay(9);
}
Symbol 113 MovieClip Frame 2
if (_root.kirbydir == "right") {
gotoAndPlay (1);
}
if (_root.kirbydir == "left") {
gotoAndPlay (3);
}
Symbol 113 MovieClip Frame 4
if (_root.kirbydir == "right") {
gotoAndPlay (1);
}
if (_root.kirbydir == "left") {
gotoAndPlay (3);
}
Instance of Symbol 120 MovieClip "balloons" in Symbol 123 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.kirbymin) == true) {
_root.score = _root.score + 50;
_root.enemy.gotoAndPlay(241);
}
}
Instance of Symbol 122 MovieClip "dee" in Symbol 123 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.kirbyhat != "invin") {
if (this.hitTest(_root.kirbymin) == true) {
_root.kirbyhurt = 1;
if (_root.justhurt == 0) {
_root.kirbydam = _root.kirbydam + _root.damval;
_root.justhurt = 1;
}
}
}
}
Symbol 123 MovieClip Frame 30
gotoAndPlay (1);
Instance of Symbol 122 MovieClip "dee" in Symbol 124 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.kirbyhat != "invin") {
if (this.hitTest(_root.kirbymin) == true) {
_root.kirbyhurt = 1;
if (_root.justhurt == 0) {
_root.kirbydam = _root.kirbydam + _root.damval;
_root.justhurt = 1;
}
}
}
}
Symbol 124 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 122 MovieClip "dee" in Symbol 128 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.kirbyhat != "invin") {
if (this.hitTest(_root.kirbymin) == true) {
_root.kirbyhurt = 1;
if (_root.justhurt == 0) {
_root.kirbydam = _root.kirbydam + _root.damval;
_root.justhurt = 1;
}
}
}
}
Symbol 128 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 122 MovieClip "dee" in Symbol 133 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.kirbyhat != "invin") {
if (this.hitTest(_root.kirbymin) == true) {
_root.kirbyhurt = 1;
if (_root.justhurt == 0) {
_root.kirbydam = _root.kirbydam + _root.damval;
_root.justhurt = 1;
}
}
}
}
Symbol 133 MovieClip Frame 20
gotoAndPlay (1);
Instance of Symbol 122 MovieClip "dee" in Symbol 137 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.kirbyhat != "invin") {
if (this.hitTest(_root.kirbymin) == true) {
_root.kirbyhurt = 1;
if (_root.justhurt == 0) {
_root.kirbydam = _root.kirbydam + _root.damval;
_root.justhurt = 1;
}
}
}
}
Symbol 137 MovieClip Frame 20
gotoAndPlay (1);
Symbol 141 MovieClip Frame 1
_root.enemL = 0;
_root.enemL = 0;
stop();
Instance of Symbol 114 MovieClip in Symbol 141 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.wadLx = _root.enemy.wadle._x;
_root.wadLy = _root.enemy.wadle._y;
_root.wadLx2 = _root.enemy.wadle._x - 2;
_root.wadLy2 = _root.enemy.wadle._y + 40;
}
Symbol 141 MovieClip Frame 18
_root.enemvis = 1;
Symbol 141 MovieClip Frame 240
_root.enemL = 0;
gotoAndStop (1);
Symbol 141 MovieClip Frame 241
_root.enemy.wf1._x = _root.wadLx;
_root.enemy.wf1._y = _root.wadLy;
pop = new Sound();
pop.attachSound("pop");
soundplayed = 0;
if (soundplayed == 0) {
pop.start(0, 1);
soundplayed = 1;
}
pop.onSoundComplete = function () {
soundplayed = 0;
};
Instance of Symbol 114 MovieClip in Symbol 141 MovieClip Frame 241
onClipEvent (enterFrame) {
_root.wadLx2 = _root.enemy.wf1._x - 2;
_root.wadLy2 = _root.enemy.wf1._y + 40;
}
Symbol 141 MovieClip Frame 242
_root.enemy.wf2._x = _root.wadLx;
_root.enemy.wf2._y = _root.wadLy;
Instance of Symbol 114 MovieClip in Symbol 141 MovieClip Frame 242
onClipEvent (enterFrame) {
_root.wadLx2 = _root.enemy.wf2._x - 2;
_root.wadLy2 = _root.enemy.wf2._y + 40;
}
Symbol 141 MovieClip Frame 253
_root.enemy.wf3._x = _root.wadLx;
_root.enemy.wf3._y = _root.wadLy;
Instance of Symbol 114 MovieClip in Symbol 141 MovieClip Frame 253
onClipEvent (enterFrame) {
_root.wadLx2 = _root.enemy.wf3._x - 2;
_root.wadLy2 = _root.enemy.wf3._y + 40;
}
Symbol 141 MovieClip Frame 257
_root.enemy.wf3._x = _root.wadLx;
_root.enemy.wf3._y = _root.wadLy;
Instance of Symbol 133 MovieClip "wf3" in Symbol 141 MovieClip Frame 257
onClipEvent (load) {
exp = 5;
}
onClipEvent (enterFrame) {
if (_root.enemy.wf3.hitTest(_root.platg) == true) {
_root.enemy.gotoAndPlay(350);
}
_root.enemy.wf3._y = _root.enemy.wf3._y + exp;
exp = exp * 1.2;
if (exp > 15) {
exp = 15;
}
}
Symbol 141 MovieClip Frame 350
_root.enemy.wr._x = _root.wadLx;
_root.enemy.wr._y = 470 - _root.enemy._y;
Instance of Symbol 114 MovieClip in Symbol 141 MovieClip Frame 350
onClipEvent (enterFrame) {
_root.wadLx2 = _root.enemy.wr._x;
_root.wadLy2 = _root.enemy.wr._y;
}
Symbol 141 MovieClip Frame 351
_root.enemy.wr._y = 470 - _root.enemy._y;
if (_root.enemhitfire == true) {
_root.enemvis = 0;
gotoAndPlay (354);
}
Symbol 141 MovieClip Frame 352
_root.enemy.wr._y = 470 - _root.enemy._y;
if (_root.enemhitfire == true) {
_root.enemvis = 0;
gotoAndPlay (354);
}
_root.enemy.wr._x = _root.enemy.wr._x - 3;
if ((_root.enemy._x + _root.enemy.wr._x) < -20) {
_root.enemvis = 0;
_root.enemL = 0;
_root.enemy.gotoAndPlay(353);
} else {
gotoAndPlay (351);
}
Symbol 141 MovieClip Frame 353
_root.enemvis = 0;
this.gotoAndPlay(1);
Symbol 141 MovieClip Frame 354
_root.enemy.starpuff._x = _root.wadLx2;
_root.enemy.starpuff._y = _root.wadLy2;
_root.enemvis = 0;
Symbol 141 MovieClip Frame 364
_root.enemvis = 0;
_root.enemhitfire = false;
gotoAndPlay (1);
Symbol 147 MovieClip Frame 20
gotoAndPlay (1);
Symbol 150 MovieClip Frame 13
gotoAndPlay (1);
Symbol 151 MovieClip Frame 20
gotoAndPlay (1);
Symbol 152 MovieClip Frame 1
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 2
_root.dededemain._x = -82.1;
if (_root.dedehitfire == true) {
gotoAndPlay (22);
} else {
gotoAndPlay (1);
}
Symbol 152 MovieClip Frame 3
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Instance of Symbol 149 MovieClip "dedededct" in Symbol 152 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.kirbyhat != "invin") {
if (this.hitTest(_root.kirbymin) == true) {
_root.kirbyhurt = 1;
if (_root.justhurt == 0) {
_root.kirbydam = _root.kirbydam + _root.damval;
_root.justhurt = 1;
}
}
}
}
onClipEvent (load) {
soundplayed = 0;
}
Symbol 152 MovieClip Frame 4
if (_root.dededemain._x < 100) {
_root.dededemain._x = _root.dededemain._x + 2;
}
if (_root.dededemain._x > 100) {
if ((a = 0)) {
_root.dededemain.gotoAndPlay(4);
a = 1;
}
}
if (_root.dedehitfire == true) {
gotoAndPlay (22);
} else if (_root.dededemain._x < 100) {
gotoAndPlay (3);
}
Symbol 152 MovieClip Frame 5
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 6
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 7
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 8
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 9
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 10
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 11
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 12
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 13
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 14
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 15
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 16
_root.kirbypositionx = _root.kirbymin._x;
_root.kirbypositiony = _root.kirbymin._y;
_root.dededepositionx = _root.dededemain._x;
_root.dededepositiony = _root.dededemain._y;
_root.comparex = _root.kirbypositionx - _root.dededepositionx;
_root.comparey = _root.dededepositiony - _root.kirbypositiony;
_root.theta = Math.atan(_root.comparey / _root.comparex);
throwh = new Sound();
throwh.attachSound("hammersound");
soundplayed = 0;
if (soundplayed == 0) {
throwh.start(0, 1);
soundplayed = 1;
}
throwh.onSoundComplete = function () {
soundplayed = 0;
};
_root.hammerthere = true;
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Symbol 152 MovieClip Frame 17
_root.starhamx = _root.dededemain.hammer._x;
_root.starhamy = _root.dededemain.hammer._y;
if ((_root.dededemain.hammer._x + _root.dededemain._x) > 550) {
_root.hammerthere = false;
_root.dededemain.gotoAndPlay(19);
}
if ((_root.dededemain.hammer._x + _root.dededemain._x) < -50) {
_root.hammerthere = false;
_root.dededemain.gotoAndPlay(19);
}
if ((_root.dededemain._y - Math.sqrt(Math.pow(_root.dededemain.hammer._y, 2))) < -50) {
_root.hammerthere = false;
_root.dededemain.gotoAndPlay(19);
}
if ((_root.dededemain._y - Math.sqrt(Math.pow(_root.dededemain.hammer._y, 2))) > 550) {
_root.hammerthere = false;
_root.dededemain.gotoAndPlay(19);
}
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Instance of Symbol 150 MovieClip "hammer" in Symbol 152 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.comparex > 0) {
_root.dededemain.hammer._x = _root.dededemain.hammer._x + (10 * Math.cos(_root.theta));
_root.dededemain.hammer._y = _root.dededemain.hammer._y - (10 * Math.sin(_root.theta));
}
if (_root.comparex < 0) {
_root.dededemain.hammer._x = _root.dededemain.hammer._x + (-10 * Math.cos(_root.theta));
_root.dededemain.hammer._y = _root.dededemain.hammer._y - (-10 * Math.sin(_root.theta));
}
if (_root.kirbyhat != "invin") {
if (this.hitTest(_root.kirbymin) == true) {
_root.kirbyhurt = 1;
if (_root.justhurt == 0) {
_root.kirbydam = _root.kirbydam + (2 * _root.damval);
_root.justhurt = 1;
}
}
}
}
Symbol 152 MovieClip Frame 18
if ((_root.dededemain.hammer._x + _root.dededemain._x) > 550) {
_root.dededemain.gotoAndPlay(19);
}
if ((_root.dededemain.hammer._x + _root.dededemain._x) < -50) {
_root.dededemain.gotoAndPlay(19);
}
if ((_root.dededemain._y - Math.sqrt(Math.pow(_root.dededemain.hammer._y, 2))) < -50) {
_root.dededemain.gotoAndPlay(19);
}
if ((_root.dededemain._y - Math.sqrt(Math.pow(_root.dededemain.hammer._y, 2))) > 550) {
_root.dededemain.gotoAndPlay(19);
}
if (_root.dedehitfire == true) {
gotoAndPlay (22);
} else {
gotoAndPlay (17);
}
Symbol 152 MovieClip Frame 19
if (_root.dedehitfire == true) {
gotoAndPlay (22);
}
Instance of Symbol 151 MovieClip in Symbol 152 MovieClip Frame 19
onClipEvent (enterFrame) {
_root.dededemain._x = _root.dededemain._x + 3;
}
Symbol 152 MovieClip Frame 20
_root.dededemain._x = _root.dededemain._x + 2;
if (_root.dedehitfire == true) {
gotoAndPlay (22);
} else {
gotoAndPlay (19);
}
Symbol 152 MovieClip Frame 22
if (_root.hammerthere == true) {
_root.dededemain.starpuff._x = _root.starhamx;
_root.dededemain.starpuff._y = _root.starhamy;
}
Symbol 152 MovieClip Frame 32
_root.dededeap = 0;
_root.dedehitfire = false;
gotoAndPlay (1);
Symbol 162 MovieClip Frame 8
gotoAndPlay (1);
Symbol 170 MovieClip Frame 2
if (_root.fires == 0) {
gotoAndPlay (1);
}
if (_root.fires == 1) {
gotoAndPlay (3);
}
Symbol 170 MovieClip Frame 7
_root.fire = 1;
gotoAndPlay (1);
Symbol 171 MovieClip Frame 23
gotoAndPlay (1);
Instance of Symbol 171 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.kirbyhat != "invin") {
if (this.hitTest(_root.kirbymin) == true) {
_root.kirbyhurt = 1;
if (_root.justhurt == 0) {
_root.kirbydam = _root.kirbydam + _root.damval;
_root.justhurt = 1;
}
}
}
}
Symbol 173 MovieClip Frame 2
if (_root.kirbymin._x < _root.para._x) {
gotoAndPlay (1);
}
if (_root.kirbymin._x > _root.para._x) {
gotoAndPlay (3);
}
Instance of Symbol 171 MovieClip in Symbol 173 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.kirbymin) == true) {
_root.kirbyhurt = 1;
if (_root.justhurt == 0) {
_root.kirbydam = _root.kirbydam + _root.damval;
_root.justhurt = 1;
}
}
}
Symbol 173 MovieClip Frame 4
if (_root.kirbymin._x < _root.para._x) {
gotoAndPlay (1);
}
if (_root.kirbymin._x > _root.para._x) {
gotoAndPlay (3);
}
Instance of Symbol 165 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.wadparax = _root.para.wadpar._x;
_root.wadparay = _root.para.wadpar._y;
}
Symbol 174 MovieClip Frame 2
_root.fires = 0;
if (_root.parapear == 0) {
_root.para.gotoAndPlay(1);
}
if (_root.parapear == 1) {
_root.para.gotoAndPlay(3);
}
Symbol 174 MovieClip Frame 35
_root.fires = 1;
Symbol 174 MovieClip Frame 36
_root.fires = 0;
Symbol 174 MovieClip Frame 103
_root.fires = 1;
Symbol 174 MovieClip Frame 104
_root.fires = 0;
Symbol 174 MovieClip Frame 142
gotoAndPlay (147);
Symbol 174 MovieClip Frame 147
if (_root.parahitfire == true) {
gotoAndPlay (150);
}
Instance of Symbol 165 MovieClip in Symbol 174 MovieClip Frame 147
onClipEvent (enterFrame) {
_root.wadparax = _root.para.wr._x;
_root.wadparay = _root.para.wr._y;
}
Symbol 174 MovieClip Frame 148
_root.para._x = _root.para._x + 4;
if (_root.parahitfire == true) {
gotoAndPlay (150);
} else {
gotoAndPlay (147);
}
Symbol 174 MovieClip Frame 150
_root.para.starpuff._x = _root.wadparax;
_root.para.starpuff._y = _root.wadparay;
Symbol 174 MovieClip Frame 160
_root.parapear = 0;
_root.parahitfire = false;
_root.para.gotoAndPlay(1);
Symbol 188 MovieClip Frame 5
gotoAndPlay (1);
Symbol 197 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 20
gotoAndPlay (1);
Symbol 202 MovieClip Frame 60
gotoAndPlay (1);
Instance of Symbol 70 MovieClip "bar" in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.kirbyhealth);
}
Instance of Symbol 70 MovieClip "bar" in Symbol 210 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.dmhealth);
}
Symbol 220 MovieClip Frame 7
gotoAndPlay (1);
Symbol 226 MovieClip Frame 1
if (_root.kirbystarstat == "norm") {
gotoAndPlay (1);
}
if (_root.kirbystarstat == "fire") {
gotoAndPlay (3);
}
if (_root.kirbystarstat == "hurt") {
gotoAndPlay (5);
}
Symbol 226 MovieClip Frame 2
if (_root.kirbystarstat == "norm") {
gotoAndPlay (1);
}
if (_root.kirbystarstat == "fire") {
gotoAndPlay (3);
}
if (_root.kirbystarstat == "hurt") {
gotoAndPlay (5);
}
Symbol 226 MovieClip Frame 4
if (_root.kirbystarstat == "norm") {
gotoAndPlay (1);
}
if (_root.kirbystarstat == "fire") {
gotoAndPlay (3);
}
if (_root.kirbystarstat == "hurt") {
gotoAndPlay (5);
}
Symbol 226 MovieClip Frame 11
if (_root.kirbyhurt == 0) {
if (_root.kirbystarstat == "norm") {
gotoAndPlay (1);
}
if (_root.kirbystarstat == "fire") {
gotoAndPlay (3);
}
if (_root.kirbystarstat == "hurt") {
gotoAndPlay (5);
}
}
Instance of Symbol 226 MovieClip in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
_root.kirbystarstat = "norm";
}
Instance of Symbol 226 MovieClip "kirby" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
_root.kirbystarstat = "norm";
}
Symbol 234 MovieClip Frame 2
if (_root.starpos == "norm") {
gotoAndPlay (1);
}
if (_root.starpos == "for") {
gotoAndPlay (3);
}
if (_root.starpos == "back") {
gotoAndPlay (5);
}
if (_root.starpos == "up") {
gotoAndPlay (7);
}
if (_root.starpos == "down") {
gotoAndPlay (9);
}
Symbol 234 MovieClip Frame 4
if (_root.starpos == "norm") {
gotoAndPlay (1);
}
if (_root.starpos == "for") {
gotoAndPlay (3);
}
if (_root.starpos == "back") {
gotoAndPlay (5);
}
if (_root.starpos == "up") {
gotoAndPlay (7);
}
if (_root.starpos == "down") {
gotoAndPlay (9);
}
Symbol 234 MovieClip Frame 6
if (_root.starpos == "norm") {
gotoAndPlay (1);
}
if (_root.starpos == "for") {
gotoAndPlay (3);
}
if (_root.starpos == "back") {
gotoAndPlay (5);
}
if (_root.starpos == "up") {
gotoAndPlay (7);
}
if (_root.starpos == "down") {
gotoAndPlay (9);
}
Symbol 234 MovieClip Frame 8
if (_root.starpos == "norm") {
gotoAndPlay (1);
}
if (_root.starpos == "for") {
gotoAndPlay (3);
}
if (_root.starpos == "back") {
gotoAndPlay (5);
}
if (_root.starpos == "up") {
gotoAndPlay (7);
}
if (_root.starpos == "down") {
gotoAndPlay (9);
}
Symbol 234 MovieClip Frame 10
if (_root.starpos == "norm") {
gotoAndPlay (1);
}
if (_root.starpos == "for") {
gotoAndPlay (3);
}
if (_root.starpos == "back") {
gotoAndPlay (5);
}
if (_root.starpos == "up") {
gotoAndPlay (7);
}
if (_root.starpos == "down") {
gotoAndPlay (9);
}
Symbol 238 MovieClip Frame 5
gotoAndPlay (1);
Symbol 245 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
stop();
Instance of Symbol 122 MovieClip "dee" in Symbol 251 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.kirbyon.dec) == true) {
_root.kirbyhurt = 1;
}
}
Symbol 251 MovieClip Frame 2
if (hit == 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 251 MovieClip Frame 13
blam = 1;
Symbol 277 MovieClip Frame 2
if (_root.spike == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 277 MovieClip Frame 24
swish = new Sound();
swish.attachSound("spike woosh");
swish.start();
Symbol 277 MovieClip Frame 78
_root.dm.hurt.bdy.arm._rotation = _root.dm.hurt.bdy.arm._rotation - _root.rot2;
_root.spike = false;
_root.rotset = 0;
_root.attacking = false;
gotoAndPlay (1);
Instance of Symbol 280 MovieClip "d1" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 282 MovieClip "d2" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 284 MovieClip "d3" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 286 MovieClip "d4" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 288 MovieClip "d5" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 290 MovieClip "d6" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 292 MovieClip "d7" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 294 MovieClip "d8" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 296 MovieClip "d9" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 298 MovieClip "d10" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 302 MovieClip Frame 30
gotoAndPlay (1);
Symbol 303 MovieClip Frame 2
if (_root.dmhit == 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 303 MovieClip Frame 9
if (_root.dmhit == 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Instance of Symbol 306 MovieClip "dect" in Symbol 317 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.dmhit == 0) {
if (_root.eyeopen == true) {
if (this.hitTest(_root.fireballb1) == true) {
removeMovieClip("_root.fireballb1");
_root.score = _root.score + 50;
_root.dmhealth = _root.dmhealth + _root.kpow;
_root.dmhit = 1;
}
if (this.hitTest(_root.fireballb2) == true) {
removeMovieClip("_root.fireballb2");
_root.score = _root.score + 50;
_root.dmhealth = _root.dmhealth + _root.kpow;
_root.dmhit = 1;
}
if (this.hitTest(_root.fireballb3) == true) {
removeMovieClip("_root.fireballb3");
_root.score = _root.score + 50;
_root.dmhealth = _root.dmhealth + _root.kpow;
_root.dmhit = 1;
}
if (this.hitTest(_root.fireballb4) == true) {
removeMovieClip("_root.fireballb4");
_root.score = _root.score + 50;
_root.dmhealth = _root.dmhealth + _root.kpow;
_root.dmhit = 1;
}
if (this.hitTest(_root.fireballb5) == true) {
removeMovieClip("_root.fireballb5");
_root.score = _root.score + 50;
_root.dmhealth = _root.dmhealth + _root.kpow;
_root.dmhit = 1;
}
if (this.hitTest(_root.fireballb6) == true) {
removeMovieClip("_root.fireballb6");
_root.score = _root.score + 50;
_root.dmhealth = _root.dmhealth + _root.kpow;
_root.dmhit = 1;
}
}
}
}
Symbol 317 MovieClip Frame 2
if (_root.eyeopen == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 317 MovieClip Frame 3
_root.dm.em.stop();
Symbol 317 MovieClip Frame 7
_root.eyemove = false;
Symbol 317 MovieClip Frame 14
charge = new Sound();
charge.attachSound("charge");
charge.start();
Symbol 317 MovieClip Frame 49
blast = new Sound();
blast.attachSound("laser blast");
blast.start();
Symbol 317 MovieClip Frame 96
_root.eyemove = true;
_root.dm.em.play();
_root.eyeopen = false;
_root.attacking = false;
gotoAndPlay (1);
Symbol 319 MovieClip Frame 26
gotoAndPlay (1);
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 9
this._x = 600;
this.move = false;
this.hit = 0;
gotoAndStop (1);
Symbol 350 Button
on (release) {
_root.score = 0;
stopAllSounds();
if (_root.recent == "jump") {
gotoAndPlay (8);
}
if (_root.recent == "fly") {
gotoAndPlay (76);
}
}
Symbol 351 Button
on (release) {
_root.score = 0;
stopAllSounds();
gotoAndPlay (1);
}
Symbol 378 MovieClip Frame 69
gotoAndPlay (68);
Symbol 381 Button
on (release) {
if (_root.recent == "jump") {
gotoAndPlay (8);
}
if (_root.recent == "fly") {
gotoAndPlay (76);
}
}