Frame 1
ifFrameLoaded (12) {
gotoAndPlay (7);
}
Frame 2
gotoAndPlay (1);
Frame 7
_root.Startframe = 10;
_root.ridedownframe = 11;
_root.Gameframe = 12;
_root.introframe = 9;
_root.gotoAndStop(_root.introframe);
Frame 8
gotoAndPlay (1);
Instance of Symbol 43 MovieClip in Frame 9
onClipEvent (load) {
Z = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
_root.gotoAndStop(_root.Startframe);
}
Goto = 1 + random(3);
duplicateMovieClip (this.S, "S" add Z, Z);
this["S" add forvar]._x = this.KirbyS._x;
this["S" add forvar]._y = this.KirbyS._y;
this["S" add forvar]._yscale = this.KirbyS._xscale;
this["S" add forvar]._xscale = this.KirbyS._yscale;
this["S" add forvar].goto = goto;
Z = Z + 1;
if (10 < Z) {
Z = 0;
}
}
Instance of Symbol 49 MovieClip "Bpuff" in Frame 9
onClipEvent (enterFrame) {
if (this.S.S._currentframe >= this.S.S._totalframes) {
this.removeMovieClip();
}
}
Frame 10
stop();
Instance of Symbol 51 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (Z >= 20) {
if (random(5) == 3) {
duplicateMovieClip (this.G, "G2", 1);
this.G2._x = random(220);
this.G2._y = random(70);
Z = 0;
}
} else {
Z = Z + 1;
}
}
Instance of Symbol 88 MovieClip "Clouds2" in Frame 11
onClipEvent (enterFrame) {
if (_root.Levelchange._currentframe >= 50) {
this._y = Math.floor(this._y - ((this._y - 700) / 7));
} else if (_root.Clouds._currentframe >= (_root.Clouds._totalframes - 2)) {
this._y = Math.floor(this._y / 5);
}
this._x = Math.round(_root.Level._x / 3);
}
onClipEvent (load) {
this._x = 0;
this._y = 400;
}
Instance of Symbol 89 MovieClip "Clouds" in Frame 11
onClipEvent (load) {
Z = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
_root.gotoAndStop(_root.Gameframe);
}
Goto = 1 + random(3);
if (9 < this._currentframe) {
duplicateMovieClip (this.S, "S" add Z, Z);
this["S" add forvar]._x = this.KirbyS._x;
this["S" add forvar]._y = this.KirbyS._y;
this["S" add forvar].goto = goto;
Z = Z + 1;
if (20 < Z) {
Z = 0;
}
}
}
Instance of Symbol 166 MovieClip "Level" in Frame 11
onClipEvent (load) {
this._x = 0;
this._y = 400;
}
onClipEvent (enterFrame) {
if (_root.Clouds._currentframe >= (_root.Clouds._totalframes - 2)) {
this._y = Math.floor(this._y / 5);
if (0 >= this._y) {
_root.gotoAndStop(_root.Gameframe);
}
}
}
Instance of Symbol 167 MovieClip "Level" in Frame 12
onClipEvent (load) {
this._x = 0;
Z = 1;
this.SPAstar.swapDepths(100);
}
onClipEvent (enterFrame) {
if (_root.Levelchange._currentframe >= 50) {
this._y = Math.floor(this._y - ((this._y - 700) / 5));
}
if (this.SPAstar._currentframe == 1) {
Goto = 11 + random(3);
duplicateMovieClip (this.S, "S" add Z, Z);
this["S" add forvar]._x = this.SPAstar._x;
this["S" add forvar]._y = this.SPAstar._y;
this["S" add forvar]._yscale = this.SPAstar._xscale;
this["S" add forvar]._xscale = this.SPAstar._yscale;
this["S" add forvar].goto = goto;
Z = Z + 1;
if (10 < Z) {
Z = 0;
}
}
}
Instance of Symbol 263 MovieClip "Kirby" in Frame 12
onClipEvent (load) {
function Blockpuff(Block) {
duplicateMovieClip (_root.Level.BPuff, "Bpuff" add _root.BlockPZ, _root.BlockPZ);
_root.Level["Bpuff" add _root.BlockPZ]._x = _root.Level["B" add Block]._x;
_root.Level["Bpuff" add _root.BlockPZ]._y = _root.Level["B" add Block]._y;
_root.BlockPZ = _root.BlockPZ + 1;
if (5 < _root.BlockPZ) {
_root.BlockPZ = 1;
}
}
function runstaub() {
duplicateMovieClip (_root.Level.runstaub, "runstaub" add RstaubZ, RstaubZ + 100);
_root.Level["runstaub" add RstaubZ]._x = this._x - _root.Level._x;
_root.Level["runstaub" add RstaubZ]._y = this._y - _root.Level._y;
_root.Level["runstaub" add RstaubZ]._xscale = this._xscale;
_root.Level["runstaub" add RstaubZ].gotoAndPlay(1);
RstaubZ = RstaubZ + 1;
if (5 < RstaubZ) {
RstaubZ = 1;
}
_root.Level.runstaub._x = this._x - _root.Level._x;
_root.Level.runstaub._y = this._y - _root.Level._y;
}
if (_root.SetKeys == "on") {
up = _root.Buttonup;
down = _root.Buttondown;
left = _root.Buttonleft;
right = _root.Buttonright;
attack = _root.Buttonattack;
Jump = _root.ButtonJump;
SPout = _root.ButtonDrop;
} else {
up = "38";
down = "40";
left = "37";
right = "39";
attack = "18";
Jump = "32";
SPout = "13";
}
BoomZ = 50;
_root.Door = 0;
JumpDown = "off";
SPattack = "off";
normMainSpeed = 7;
Jumpspeed = 15;
Jumptime = 5;
YSpeed = 10;
isjumping = "off";
isAttacking = "off";
normGravity = 3;
normMaxYSpeed = 10;
MinusX = 1;
Yform = 100;
FlySpeed = 5;
Fly = "off";
Fat = "off";
spit = "off";
Spiting = "off";
XMSpace = 200;
YMSpace = 125;
YMSpaceD = 50;
Movheight = 300;
Movwidth = 450;
_root.Movheight = 300;
_root.Movwidth = 450;
CSPattack = "off";
attackdemo = "off";
SPAStarBreak = 0.95;
MSPattack = "off";
_root.Blocks = 20;
_root.Grounds = 10;
hit = "off";
Ypos = "disabled";
SPAStarVisZ = 200;
_root.WaddleDees = 5;
var forvar2 = 1;
while (_root.WaddleDees >= forvar2) {
_root.Level["WaddleDee" add forvar2].X = 2;
forvar2++;
}
DY = 10;
}
onClipEvent (enterFrame) {
if (_root.setvarsoff == "on") {
JumpDown = "off";
normMainSpeed = 7;
Jumpspeed = 15;
Jumptime = 5;
YSpeed = 0;
isjumping = "off";
isAttacking = "off";
normGravity = 3;
normMaxYSpeed = 10;
YSpeed = 0;
YSpeed = 0;
isjumping = "off";
isAttacking = "off";
Fly = "off";
Fat = "off";
spit = "off";
Spiting = "off";
CSPattack = "off";
attackdemo = "off";
hit = "off";
_root.setvarsoff = "off";
UpDownDoor = "on";
}
if (_root.Movheight < (this._y + _root.Level._y)) {
Die = "on";
}
if (Die == "on") {
if ((_root.Movheight + 100) < this._y) {
if (_root.Levelchange._currentframe < 50) {
_root.Levelchange.gotoAndPlay(50);
}
}
DY = DY - 0.5;
this._y = this._y - DY;
hit = "on";
_root.DieS.gotoAndStop(2);
} else {
_root.DieS._x = this._x;
_root.DieS._y = this._y;
}
if (Fly == "on") {
Gravity = normGravity / 10;
MaxYspeed = normMaxYSpeed / 2;
MainSpeed = normMainSpeed / 3;
} else if (hit == "on2") {
Gravity = normGravity / 5;
MaxYspeed = normMaxYSpeed;
MainSpeed = normMainSpeed;
} else if (CSPattack == "stone") {
Gravity = normGravity * 2;
MaxYspeed = normMaxYSpeed * 2;
MainSpeed = normMainSpeed;
} else {
Gravity = normGravity;
MaxYspeed = normMaxYSpeed;
MainSpeed = normMainSpeed;
}
if (hit == "off") {
if (Key.isDown(left) && (isAttacking == "off")) {
this._xscale = -100;
if (((X < (-(normMainspeed / 2))) && (Dirdown2 == "off")) && (Ground == "on")) {
run = "on";
}
Dirdown2 = "on";
if (run == "on") {
Speed = (-MainSpeed) * 1.5;
} else {
Speed = -MainSpeed;
}
} else if (Key.isDown(right) && (isAttacking == "off")) {
this._xscale = 100;
if ((((0 + (normMainspeed / 2)) < X) && (Dirdown2 == "off")) && (Ground == "on")) {
run = "on";
}
Dirdown2 = "on";
if (run == "on") {
Speed = MainSpeed * 1.5;
} else {
Speed = MainSpeed;
}
} else {
if (Dirdown2 == "on") {
DirDownZ = 5;
Dirdown2 = "off";
}
if (DirdownZ >= 0) {
DirdownZ = DirdownZ - 1;
} else {
Dirdown2 = "on2";
}
run = "off";
Dirdown = "off";
Speed = 0;
}
}
if (Key.isDown(attack) && (Spiting == "off")) {
if ((Attackdemo == "off") && (hit == "off")) {
if (((SPAttack != "off") && (CSPattack == "off")) && (Fly == "off")) {
if (SPattack == "Sword") {
if (AttackDown2 == "off") {
if (Ground == "on") {
CSPAttack = "Sword";
} else {
CSPAttack = "SwordJump";
}
}
} else if (SPattack == "Crash") {
if (AttackDown2 == "off") {
CSPAttack = SPattack;
}
} else {
CSPAttack = SPattack;
}
} else if (AttackDown == "off") {
if (((Fly == "on") && (AttackDown2 == "off")) && (CSPattack == "off")) {
if (YSpeed < 0) {
YSpeed = 0;
}
Fly = "on2";
} else if (Fat == "on") {
spit = "on";
} else if (SPattack != "off") {
if (CSPattack == "SwordJump") {
} else {
isAttacking = "on";
}
} else {
isAttacking = "on";
Z = 0;
var forvar = 1;
while (20 >= forvar) {
if (this.Kirby.inhale.hitTest(_root.Level.SPAStar) && (_root.Level.SPAStar._currentframe == 1)) {
_root.Level.SPAStar.Y = 0;
_root.Level.SPAStar.X = 0;
Spiting = "SPAStar";
AttackDown = "on";
forvar = 50;
}
if (Z == 0) {
if (this.Kirby.inhalenear.hitTest(_root.Level["Enemy" add forvar]) && (_root.Level["Enemy" add forvar]._visible == 1)) {
Spiting = "Enemy" add forvar;
AttackDown = "on";
forvar = 50;
} else if (this.Kirby.inhalenear.hitTest(_root.Level["B" add forvar]) && (_root.Level["B" add forvar]._visible == 1)) {
Spiting = "B" add forvar;
AttackDown = "on";
forvar = 50;
}
} else if (this.Kirby.inhale.hitTest(_root.Level["Enemy" add forvar]) && (_root.Level["Enemy" add forvar]._visible == 1)) {
Spiting = "Enemy" add forvar;
AttackDown = "on";
forvar = 50;
} else if (this.Kirby.inhale.hitTest(_root.Level["B" add forvar]) && (_root.Level["B" add forvar]._visible == 1)) {
Spiting = "B" add forvar;
AttackDown = "on";
forvar = 50;
}
if ((forvar == 20) && (Z == 0)) {
Z = 1;
forvar = 0;
}
forvar++;
}
}
}
}
AttackDown2 = "on";
} else {
AttackDown2 = "off";
if ((CSPAttack == "off") || (CSPattack == "Crash")) {
} else if (CSPattack != "off") {
if (Ground == "on") {
CSPAttack = "on2";
}
} else {
CSPAttack = "on2";
}
if (Spiting == "off") {
AttackDown = "off";
if (isAttacking == "on") {
isAttacking = "on2";
}
} else if (_root.Level[spiting].hitTest(this.feet)) {
isAttacking = "off";
AttackDown = "on";
fat = "on";
if (3 < _root.Level[spiting].SPattack.length) {
MSPattack = _root.Level[spiting].SPattack;
} else {
MSPattack = "off";
}
_root.Level[spiting].Enemy.On = "off2";
_root.Level[spiting]._visible = 0;
Spiting = "off";
} else {
isAttacking = "on";
_root.Level[spiting]._y = _root.Level[spiting]._y - (((_root.Level[spiting]._y + _root.Level._y) - this._y) / 5);
_root.Level[spiting]._x = _root.Level[spiting]._x - (((_root.Level[spiting]._x + _root.Level._x) - this._x) / 5);
}
}
if (((((((Key.isDown(up) && (Fly != "on2")) && (Fat != "on")) && (Attackdemo == "off")) && (Spiting == "off")) && (isAttacking == "off")) && (CSPattack != "SwordJump")) || ((((((((Key.isDown(Jump) && (Fly != "on2")) && (Fat != "on")) && (Attackdemo == "off")) && (Spiting == "off")) && (isAttacking == "off")) && (CSPattack != "SwordJump")) && (JumpDown == "off")) && (Ground == "off"))) {
if (UpDownDoor != "on") {
if (CSPattack == "off") {
if (Fly == "on") {
this.Kirby.play();
}
isjumping = "on";
Fly = "on";
YSpeed = FlySpeed;
UpDown = "on";
} else if (SPattack == "Sword") {
} else {
CSPattack = "on2";
}
}
} else {
UpDownDoor = "off";
}
if (Attackdemo == "off") {
if (Key.isDown(Jump)) {
if (isAttacking == "off") {
if ((Ground == "on") && (JumpDown == "off")) {
isjumping = "on";
YSpeed = Jumpspeed;
}
if ((0 < YSpeed) && (isJumping == "on")) {
YSpeed = YSpeed + (Gravity / 2);
}
JumpDown = "on";
}
} else {
if ((0 < JumpTimeZ) && (JumpTimeZ != Jumptime)) {
}
JumpTimeZ = Jumptime;
JumpDown = "off";
}
}
if (Attackdemo == "off") {
if (((((Key.isDown(SPout) && (fat == "off")) && (Fly == "off")) && (CSPattack == "off")) && (SPattack != "off")) || (SPhitout == "on")) {
_root.Level.SPAStar._x = this._x - _root.Level._x;
_root.Level.SPAStar._y = (this._y - _root.Level._y) - 50;
_root.Level.SPAStar.Y = 10;
_root.Level.SPAStar._visible = 1;
_root.Level.SPAStar.gotoAndStop(1);
_root.Level.SPAStar.VisZ = this.SPAStarVisZ;
if (0 < this._xscale) {
_root.Level.SPAStar.X = -10;
} else {
_root.Level.SPAStar.X = 10;
}
_root.Level.SPAStar.SPattack = SPattack;
SPattack = "off";
SPhitout = "off";
}
}
if (Attackdemo == "off") {
if (Key.isDown(down)) {
if (((((spiting == "off") && (isattacking == "off")) && (Speed == 0)) && (Ground == "on")) && (CSPattack == "off")) {
YForm = 50;
if (fat == "on") {
if (MSPattack != "off") {
SPattack = MSPattack;
Attackdemo = SPattack;
CSPattack = "off";
MSPattack = "off";
}
fat = "off";
}
}
}
}
if (hit != "on4") {
if (Speed < X) {
X = X - MinusX;
} else if (X < Speed) {
X = X + MinusX;
}
}
if ((Attackdemo == "off") && (Die != "on")) {
this._x = this._x + X;
}
if (MaxYSpeed < YSpeed) {
this._y = this._y - MaxYSpeed;
} else if (YSpeed < (-MaxYSpeed)) {
this._y = this._y + MaxYSpeed;
} else {
this._y = this._y - YSpeed;
}
if (Ground == "off") {
YSpeed = YSpeed - Gravity;
}
Ground = "off";
var forvar = 1;
while (forvar < 20) {
if (this.hit2.hitTest(_root.Level["Enemy" add forvar])) {
if (((CSPattack == "elektro") || (CSPattack == "stone")) || (CSPattack == "Spikes")) {
if (this.Kirby._currentframe >= 9) {
_root.Level["Enemy" add forvar]._visible = 0;
}
} else {
_root.Level["Enemy" add forvar]._visible = 0;
}
}
if ((_root.Level["Enemy" add forvar]._visible == 1) && (("Enemy" add forvar) != spiting)) {
if (_root.Starshoot.hitTest(_root.Level["Enemy" add forvar]) || (_root.Puhh.hitTest(_root.Level["Enemy" add forvar]))) {
_root.Level["Enemy" add forvar]._visible = 0;
_root.Starshoot.Star.gotoAndStop(3);
_root.Puhh.gotoAndStop(20);
}
if (this.feet.hitTest(_root.Level["Enemy" add forvar])) {
if (hit == "off") {
if (CSPattack == "Crash") {
_root.Level["Enemy" add forvar]._visible = 0;
} else if (CSPattack != "stone") {
_root.Level["Enemy" add forvar]._visible = 0;
hit = "on";
}
}
}
}
if ((_root.Level["B" add forvar]._visible == 1) && (("B" add forvar) != spiting)) {
if (_root.Starshoot.hitTest(_root.Level["B" add forvar]) || (_root.Puhh.hitTest(_root.Level["B" add forvar]))) {
Blockpuff(forvar);
_root.Level["B" add forvar]._visible = 0;
_root.Starshoot.Star.gotoAndStop(3);
_root.Puhh.gotoAndStop(20);
}
if (_root.Level.SPAStar.hitTest(_root.Level["B" add forvar])) {
if ((((_root.Level["B" add forvar]._y - (_root.Level["B" add forvar]._height / 2)) >= (_root.Level.SPAStar.LY - 10)) && (_root.Level.SPAStar.LX >= (_root.Level["B" add forvar]._x - _root.Level["B" add forvar]._width))) && (_root.Level.SPAStar.LX < (_root.Level["B" add forvar]._x + _root.Level["B" add forvar]._width))) {
if (0 >= _root.Level.SPAStar.Y) {
_root.Level.SPAStar._y = (_root.Level["B" add forvar]._y - (_root.Level["B" add forvar]._height / 2)) - (_root.Level.SPAStar._height / 2);
_root.Level.SPAStar.Y = _root.Level.SPAStar.Y * (-SPAStarBreak);
}
} else if (((_root.Level.SPAStar.LY >= (_root.Level["B" add forvar]._y + (_root.Level["B" add forvar]._height / 2))) && ((_root.Level["B" add forvar]._x - _root.Level["B" add forvar]._width) < _root.Level.SPAStar.LX)) && (_root.Level.SPAStar.LX < (_root.Level["B" add forvar]._x + _root.Level["B" add forvar]._width))) {
_root.Level.SPAStar._y = ((_root.Level["B" add forvar]._y + (_root.Level["B" add forvar]._height / 2)) + (_root.Level.SPAStar._width / 2)) + 5;
_root.Level.SPAStar.Y = _root.Level.SPAStar.Y * (-SPAStarBreak);
} else if (((_root.Level["B" add forvar]._y - (_root.Level["B" add forvar]._height / 2)) < _root.Level.SPAStar.LY) && (_root.Level.SPAStar.LY < (_root.Level["B" add forvar]._y + (_root.Level["B" add forvar]._height / 2)))) {
if (_root.Level.SPAStar.LX < _root.Level["B" add forvar]._x) {
_root.Level.SPAStar._x = (_root.Level["B" add forvar]._x - (_root.Level["B" add forvar]._width / 2)) - (this.feet._width / 2);
_root.Level.SPAStar.X = _root.Level.SPAStar.X * (-SPAStarBreak);
} else {
_root.Level.SPAStar._x = (_root.Level["B" add forvar]._x + (_root.Level["B" add forvar]._width / 2)) + (this.feet._width / 2);
_root.Level.SPAStar.X = _root.Level.SPAStar.X * (-SPAStarBreak);
}
}
}
if (this.hit2.hitTest(_root.Level["B" add forvar])) {
Blockpuff(forvar);
if ((CSPattack == "elektro") || (CSPattack == "Spikes")) {
if (this.Kirby._currentframe >= 9) {
_root.Level["B" add forvar]._visible = 0;
}
} else if (CSPattack != "stone") {
_root.Level["B" add forvar]._visible = 0;
}
} else if (this.feet.hitTest(_root.Level["B" add forvar])) {
if (CSPattack == "stone") {
Blockpuff(forvar);
_root.Level["B" add forvar]._visible = 0;
YSpeed = 0;
} else if (((((_root.Level["B" add forvar]._y + _root.Level._y) - (_root.Level["B" add forvar]._height / 2)) >= (LastYpos - 10)) && (LastXPos >= ((_root.Level["B" add forvar]._x + _root.Level._x) - _root.Level["B" add forvar]._width))) && (LastXPos < ((_root.Level["B" add forvar]._x + _root.Level._x) + _root.Level["B" add forvar]._width))) {
if (0 >= YSpeed) {
if (hit == "on4") {
hit = "off";
}
this._y = (_root.Level["B" add forvar]._y + _root.Level._y) - (_root.Level["B" add forvar]._height / 2);
if (Fly == "on") {
} else {
if (YSpeed != 0) {
YForm = 60;
}
isjumping = "off";
Ground = "on";
}
YSpeed = 0;
}
} else if (((LastYpos >= ((_root.Level["B" add forvar]._y + _root.Level._y) + (_root.Level["B" add forvar]._height / 2))) && (((_root.Level["B" add forvar]._x + _root.Level._x) - _root.Level["B" add forvar]._width) < LastXPos)) && (LastXPos < ((_root.Level["B" add forvar]._x + _root.Level._x) + _root.Level["B" add forvar]._width))) {
this._y = ((_root.Level["B" add forvar]._y + _root.Level._y) + (_root.Level["B" add forvar]._height / 2)) + this.feet._height;
if (Fly == "on") {
} else if (0 < YSpeed) {
YSpeed = 0;
}
} else if ((((_root.Level["B" add forvar]._y + _root.Level._y) - (_root.Level["B" add forvar]._height / 2)) < LastYpos) && (LastYpos < ((_root.Level["B" add forvar]._y + _root.Level._y) + (_root.Level["B" add forvar]._height / 2)))) {
if (LastXPos < (_root.Level["B" add forvar]._x + _root.Level._x)) {
if (CSPattack == "Crash") {
Blockpuff(forvar);
_root.Level["B" add forvar]._visible = 0;
} else {
this._x = ((_root.Level["B" add forvar]._x + _root.Level._x) - (_root.Level["B" add forvar]._width / 2)) - (this.feet._width / 2);
}
} else if (CSPattack == "Crash") {
Blockpuff(forvar);
_root.Level["B" add forvar]._visible = 0;
} else {
this._x = ((_root.Level["B" add forvar]._x + _root.Level._x) + (_root.Level["B" add forvar]._width / 2)) + (this.feet._width / 2);
}
}
}
}
forvar++;
}
var forvar = 1;
while (forvar < 10) {
if (_root.Starshoot.hitTest(_root.Level["G" add forvar])) {
_root.Starshoot.Star.gotoAndStop(3);
}
if (_root.Level.SPAStar.hitTest(_root.Level["G" add forvar])) {
if ((_root.Level.SPAStar.LY >= (_root.Level["G" add forvar]._y - 10)) && ((_root.Level["G" add forvar]._y + 10) >= _root.Level.SPAStar.LY)) {
if (0 >= _root.Level.SPAStar.Y) {
_root.Level.SPAStar._y = _root.Level["G" add forvar]._y - (_root.Level.SPAStar._height / 2);
_root.Level.SPAStar.Y = _root.Level.SPAStar.Y * (-SPAStarBreak);
}
} else if (_root.Level.SPAStar.LY >= _root.Level["G" add forvar]._y) {
if (_root.Level.SPAStar.LX < (_root.Level["G" add forvar]._x + (_root.Level["G" add forvar]._width / 2))) {
_root.Level.SPAStar._x = _root.Level["G" add forvar]._x - (_root.Level.SPAStar._width / 2);
_root.Level.SPAStar.X = _root.Level.SPAStar.X * (-SPAStarBreak);
} else {
_root.Level.SPAStar._x = (_root.Level["G" add forvar]._x + _root.Level["G" add forvar]._width) + (_root.Level.SPAStar._width / 2);
_root.Level.SPAStar.X = _root.Level.SPAStar.X * (-SPAStarBreak);
}
}
}
if (this.feet.hitTest(_root.Level["G" add forvar])) {
if ((this._y >= ((_root.Level["G" add forvar]._y + _root.Level._y) - MaxYSpeed)) && (((_root.Level["G" add forvar]._y + _root.Level._y) + MaxYSpeed) >= this._y)) {
if (0 >= YSpeed) {
if (hit == "on4") {
Speed = 0;
X = 0;
hit = "off";
}
this._y = _root.Level["G" add forvar]._y + _root.Level._y;
if (Fly == "on") {
} else {
if (YSpeed != 0) {
YForm = 60;
}
isjumping = "off";
Ground = "on";
}
YSpeed = 0;
}
} else if (this._y >= ((_root.Level["G" add forvar]._y + _root.Level._y) + MaxYSpeed)) {
if (this._x < ((_root.Level["G" add forvar]._x + _root.Level._x) + (_root.Level["G" add forvar]._width / 2))) {
if (CSPattack == "Crash") {
X = 0;
hit = "on3";
CSPattack = "off";
this._x = (_root.Level["G" add forvar]._x + _root.Level._x) - this.feet._width;
} else {
if (Speed != 0) {
Speed = 0;
}
this._x = (_root.Level["G" add forvar]._x + _root.Level._x) - (this.feet._width / 2);
}
} else if (CSPattack == "Crash") {
X = 0;
hit = "on3";
CSPattack = "off";
this._x = ((_root.Level["G" add forvar]._x + _root.Level._x) + _root.Level["G" add forvar]._width) + this.feet._width;
} else {
this._x = ((_root.Level["G" add forvar]._x + _root.Level._x) + _root.Level["G" add forvar]._width) + (this.feet._width / 2);
}
}
}
forvar++;
}
if (_root.Level.Bogen.hitTest(_x + x, _y + y, true)) {
isjumping = "off";
Ground = "on";
Fly = "off";
YSpeed = -10;
var forvar = 0;
while (100 >= forvar) {
this._y = this._y - 1;
if (_root.Level.Bogen.hitTest(_x + x, _y + y, true)) {
} else {
this._y = this._y + 1;
forvar = 100;
}
forvar++;
}
}
if (_root.Door != 0) {
this.gotoAndStop("door1");
_root.setvarsoff = "on";
this._x = _root.CdoorX;
this._y = _root.CdoorY;
} else if (hit == "on3") {
isAttacking = "off";
YSpeed = 15;
hit = "on4";
CSPattack = "off";
Fly = "off";
if (0 < this._xscale) {
X = -10;
} else {
X = 10;
}
this.gotoAndStop("hit");
} else if (hit == "on") {
isAttacking = "off";
YSpeed = 0;
if (0 < this._xscale) {
X = -8;
} else {
X = 8;
}
if (SPattack != "off") {
SPhitout = "on";
}
CSPattack = "off";
Fly = "off";
this.gotoAndStop("hit");
hit = "on2";
} else if (hit == "on2") {
this._x = this._x + X;
isAttacking = "off";
Fly = "off";
CSPattack = "off";
if (X == 0) {
Speed = 0;
hit = "off";
}
this.gotoAndStop("hit");
} else if (hit == "on4") {
if (0 < this._xscale) {
X = -4;
} else {
X = 4;
}
isAttacking = "off";
Fly = "off";
CSPattack = "off";
if (Ground == "On") {
Speed = 0;
hit = "off";
}
this.gotoAndStop("hit");
} else if (attackDemo != "off") {
this.gotoAndStop("attackDemo");
if (1 >= this.Kirby._currentframe) {
if ((this._yscale >= 90) && (YForm >= 100)) {
this.Kirby.gotoAndPlay(attackdemo);
} else {
this.Kirby.gotoAndStop("1");
}
}
if ((this.Kirby._currentframe == 2) && (this._currentframe == 75)) {
attackDemo = "off";
}
YSpeed = 0;
Speed = 0;
} else if (((CSPattack == "stone") || (CSPattack == "elektro")) || (CSPattack == "Spikes")) {
this.gotoAndStop("attack" add CSPattack);
if (this.Kirby._currentframe < 9) {
if (CSPattack == "Beam") {
} else {
YSpeed = 0;
}
Speed = 0;
}
} else if (CSPattack == "fire") {
if (Key.isDown(attack)) {
} else {
isAttacking = "off";
if (this.Kirby._currentframe < 40) {
this.Kirby.gotoAndPlay("off");
}
}
this.gotoAndStop("attack" add CSPattack);
if (this.Kirby._currentframe < 9) {
if (Ground == "on") {
Speed = 0;
}
}
} else if (((CSPattack == "SwordJump") || (CSPattack == "Beam")) || (CSPattack == "Boomerang")) {
this.gotoAndStop("attack" add CSPattack);
if (this.Kirby._currentframe >= this.Kirby._totalframes) {
isAttacking = "off";
CSPattack = "off";
}
} else if ((CSPattack == "Crash") || ((CSPattack == "on2") && (SPattack == "Crash"))) {
this.gotoAndStop("attack" add CSPattack);
YSpeed = 0;
if (0 < this._xscale) {
X = 15;
} else {
X = -15;
}
if (this.Kirby._currentframe >= this.Kirby._totalframes) {
isAttacking = "off";
CSPattack = "off";
}
} else if (CSPattack == "Sword") {
this.gotoAndStop("attack" add CSPattack);
Speed = 0;
if (this.Kirby._currentframe >= this.Kirby._totalframes) {
isAttacking = "off";
CSPattack = "off";
}
} else if (CSPattack == "on2") {
if (this._currentframe < 75) {
CSPattack = "off";
}
if (SPattack == "Sword") {
if (this.Kirby._currentframe >= this.Kirby._totalframes) {
isAttacking = "off";
CSPattack = "off";
}
} else if ((this.Kirby._currentframe < 40) && (this.Kirby._currentframe >= 15)) {
this.Kirby.gotoAndPlay("off");
} else if (this.Kirby._currentframe >= this.Kirby._totalframes) {
CSPattack = "off";
}
} else if (Fly == "on") {
this.gotoAndStop("Fly");
} else if (Fly == "on2") {
if (this.Kirby._currentframe < 30) {
_root.Puhh.gotoAndPlay(1);
_root.Puhh._x = this._x;
_root.Puhh._y = this._y;
_root.Puhh._xscale = this._xscale;
this.Kirby.gotoAndPlay(30);
} else if (this.Kirby._currentframe < 35) {
} else {
Fly = "off";
}
} else if (isAttacking == "on") {
if (SPattack == "off") {
this.gotoAndStop("inhale");
}
} else if (isAttacking == "on2") {
if (this.Kirby._currentframe < 20) {
this.Kirby.play();
} else {
isAttacking = "off";
}
} else if (spit == "on") {
this.gotoAndStop("spit");
if (this.Kirby._currentframe == 1) {
_root.Starshoot._x = this._x;
_root.Starshoot._y = this._y;
_root.Starshoot._xscale = this._xscale;
_root.Starshoot.gotoAndPlay(1);
} else if (this.Kirby._currentframe >= 7) {
spit = "off";
fat = "off";
}
} else if (ground == "off") {
if (isjumping == "on") {
if (Fat == "on") {
this.gotoAndStop("JumpFat");
} else {
this.gotoAndStop("Jump");
if (this.Kirby._currentframe == 1) {
if (YSpeed < 2) {
this.Kirby.play();
}
}
}
}
} else if (Speed == 0) {
if (Fat == "on") {
this.gotoAndStop("StandFat");
} else {
this.gotoAndStop("Stand");
}
} else if (Fat == "on") {
this.gotoAndStop("walkfat");
} else if (run == "on") {
this.gotoAndStop("run");
} else {
this.gotoAndStop("walk");
}
if (YForm == 100) {
if (this._yscale < 95) {
this._yscale = this._yscale + 25;
} else {
this._yscale = 100;
}
} else if (YForm < 100) {
if (YForm >= this._yscale) {
YForm = 100;
} else {
this._yscale = this._yscale - 20;
}
}
LastXpos = this._x;
LastYpos = this._y;
if (Die != "on") {
if ((Movwidth - XMSpace) < this._x) {
_root.Level._x = _root.Level._x - (this._x - (Movwidth - XMSpace));
_root.Starshoot._x = _root.Starshoot._x - (this._x - (Movwidth - XMSpace));
_root.Puhh._x = _root.Puhh._x - (this._x - (Movwidth - XMSpace));
_root.SPAttackStar._x = _root.SPAttackStar._x - (this._x - (Movwidth - XMSpace));
this._x = Movwidth - XMSpace;
} else if (this._x < XMSpace) {
_root.Level._x = _root.Level._x - (this._x - XMSpace);
_root.Starshoot._x = _root.Starshoot._x - (this._x - XMSpace);
_root.Puhh._x = _root.Puhh._x - (this._x - XMSpace);
_root.SPAttackStar._x = _root.SPAttackStar._x - (this._x - XMSpace);
this._x = XMSpace;
}
if (Ypos == "disabled") {
if (this._y < 15) {
this._y = 15;
}
_root.Level._y = 0;
} else if ((Movheight - YMSpaceD) < this._y) {
_root.Level._y = _root.Level._y - (this._y - (Movheight - YMSpaceD));
_root.Starshoot._y = _root.Starshoot._y - (this._y - (Movheight - YMSpaceD));
_root.Puhh._y = _root.Puhh._y - (this._y - (Movheight - YMSpaceD));
_root.SPAttackStar._y = _root.SPAttackStar._y - (this._y - (Movheight - YMSpaceD));
this._y = Movheight - YMSpaceD;
} else if (this._y < YMSpace) {
_root.Level._y = _root.Level._y - (this._y - YMSpace);
_root.Starshoot._y = _root.Starshoot._y - (this._y - YMSpace);
_root.Puhh._y = _root.Puhh._y - (this._y - YMSpace);
_root.SPAttackStar._y = _root.SPAttackStar._y - (this._y - YMSpace);
this._y = YMSpace;
}
}
_root.Level.SPAStar.Y = _root.Level.SPAStar.Y - 0.5;
_root.Level.SPAStar.LY = _root.Level.SPAStar._y;
_root.Level.SPAStar.LX = _root.Level.SPAStar._x;
_root.Level.SPAStar._y = _root.Level.SPAStar._y - _root.Level.SPAStar.Y;
_root.Level.SPAStar._x = _root.Level.SPAStar._x + (_root.Level.SPAStar.X / 2);
}
Frame 13
gotoAndStop (1);
Instance of Symbol 281 MovieClip in Frame 13
onClipEvent (enterFrame) {
this._x = Math.round(_root.Level._x / 3);
}
Frame 14
getURL ("javascript:function play () {document.all.sound.src='music/vegetable valley.mid';}; play ()");
Instance of Symbol 282 MovieClip in Frame 15
onClipEvent (load) {
Z = 1;
}
onClipEvent (enterFrame) {
duplicateMovieClip (this.S, "S" add Z, Z);
this["S" add forvar]._x = _root.Kirby._x - _root.Level._x;
this["S" add forvar]._y = _root.Kirby._y;
Z = Z + 1;
if (20 < Z) {
Z = 0;
}
this._x = _root.level._x;
}
Instance of Symbol 283 MovieClip in Frame 16
onClipEvent (load) {
Z = 1;
}
onClipEvent (enterFrame) {
Goto = 10;
if (_root._currentframe == 1) {
duplicateMovieClip (this.S, "S" add Z, Z);
this["S" add forvar]._x = _root._xmouse;
this["S" add forvar]._y = _root._ymouse;
this["S" add forvar].goto = goto;
Z = Z + 1;
if (20 < Z) {
Z = 0;
}
this._x = _root.level._x;
}
}
Instance of Symbol 285 MovieClip in Frame 17
onClipEvent (load) {
Z = 1;
}
onClipEvent (enterFrame) {
Goto = 1 + random(3);
duplicateMovieClip (this.S, "S" add Z, Z);
this["S" add forvar]._x = this.KirbyS._x;
this["S" add forvar]._y = this.KirbyS._y;
this["S" add forvar]._yscale = this.KirbyS._xscale;
this["S" add forvar]._xscale = this.KirbyS._yscale;
this["S" add forvar].goto = goto;
Z = Z + 1;
if (10 < Z) {
Z = 0;
}
}
Frame 18
stop();
Instance of Symbol 286 MovieClip in Frame 18
onClipEvent (load) {
Z = 1;
}
onClipEvent (enterFrame) {
Goto = 1 + random(3);
if (9 < this._currentframe) {
duplicateMovieClip (this.S, "S" add Z, Z);
this["S" add forvar]._x = this.KirbyS._x;
this["S" add forvar]._y = this.KirbyS._y;
this["S" add forvar]._yscale = this.KirbyS._xscale;
this["S" add forvar]._xscale = this.KirbyS._yscale;
this["S" add forvar].goto = goto;
Z = Z + 1;
if (20 < Z) {
Z = 0;
}
}
}
Frame 19
gotoAndStop (1);
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(../../../../:goto);
}
Symbol 12 MovieClip Frame 11
stop();
Instance of Symbol 12 MovieClip in Symbol 13 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + ../../:Wind;
this._y = this._y + ../../:YWind;
}
onClipEvent (load) {
this._x = 5 - random(10);
this._y = 5 - random(10);
}
Instance of Symbol 35 MovieClip "KirbyS" in Symbol 36 MovieClip Frame 1
onClipEvent (enterFrame) {
if (../:Vib == "light") {
this._x = 2 - random(5);
this._y = 2 - random(5);
} else {
this._x = 5 - random(10);
this._y = 5 - random(10);
}
}
Instance of Symbol 35 MovieClip "KirbyS" in Symbol 39 MovieClip Frame 1
onClipEvent (enterFrame) {
if (../:Vib == "light") {
this._x = 2 - random(5);
this._y = 2 - random(5);
} else {
this._x = 5 - random(10);
this._y = 5 - random(10);
}
}
Symbol 42 MovieClip Frame 11
stop();
Symbol 43 MovieClip Frame 69
Ywind = 10;
Symbol 43 MovieClip Frame 105
Ywind = 0;
Instance of Symbol 36 MovieClip "KirbyS" in Symbol 43 MovieClip Frame 156
onClipEvent (load) {
Vib = "light";
}
Symbol 43 MovieClip Frame 158
Wind = -30;
Symbol 43 MovieClip Frame 185
Wind = 0;
Symbol 43 MovieClip Frame 191
_root.gotoAndStop(_root.Startframe);
stop();
Symbol 46 MovieClip Frame 13
stop();
Instance of Symbol 47 MovieClip "S" in Symbol 49 MovieClip Frame 1
onClipEvent (load) {
Goto = 1;
var Z = 1;
while (10 >= Z) {
duplicateMovieClip (this.S, "S" add Z, Z);
this["S" add forvar]._x = 5 - random(10);
this["S" add forvar]._y = 5 - random(10);
this["S" add forvar]._yscale = 100 - random(20);
this["S" add forvar]._xscale = this["S" add forvar]._yscale;
this["S" add forvar]._rotation = random(360);
this["S" add forvar].goto = goto;
Z++;
}
}
Symbol 49 MovieClip Frame 5
stop();
Symbol 59 Button
on (release) {
gotoAndStop (2);
}
Symbol 60 Button
on (release) {
_root.gotoAndStop(_root.Ridedownframe);
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 80 Button
on (release) {
_root.SetKeys = "on";
tellTarget (P1set) {
gotoAndStop (2);
};
}
Symbol 82 Button
on (release) {
gotoAndStop (1);
}
Symbol 83 Button
on (release) {
if (P1set._currentframe == 1) {
_root.SetKeys = "off";
}
}
Symbol 84 MovieClip Frame 1
stop();
Instance of Symbol 79 MovieClip "P1set" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
C = 0;
Kfor = "UP";
}
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
if (Key.isDown(Key.ENTER)) {
C = Key.getCode();
tellTarget (this) {
gotoAndStop (3);
};
}
} else if (this._currentframe == 3) {
if (0 >= Kfor.length) {
}
if (C != Key.getCode()) {
C2 = Key.getCode();
if (Kfor == "UP") {
_root.ButtonUP = C2;
Kfor = "DOWN";
} else if (Kfor == "DOWN") {
_root._root.Buttondown = C2;
Kfor = "LEFT";
} else if (Kfor == "LEFT") {
_root.Buttonleft = C2;
Kfor = "RIGHT";
} else if (Kfor == "RIGHT") {
_root.Buttonright = C2;
Kfor = "JUMP";
} else if (Kfor == "JUMP") {
_root.ButtonJump = C2;
Kfor = "Attack/Inhale";
} else if (Kfor == "Attack/Inhale") {
_root.ButtonAttack = C2;
Kfor = "Drop Special Attack";
} else if (Kfor == "Drop Special Attack") {
_root.ButtonDrop = C2;
Kfor = "OFF";
} else if (Kfor == "SHOOT") {
_root.P1shoot = C2;
Kfor = "OFF";
}
C = Key.getCode();
}
if (Kfor == "OFF") {
C = 0;
Kfor = "UP";
tellTarget (this) {
gotoAndStop (4);
};
}
} else if ((../:P2set._currentframe == 2) || (../:P2set._currentframe == 3)) {
tellTarget (this) {
gotoAndStop (5);
};
} else {
tellTarget (this) {
gotoAndStop (1);
};
}
}
Instance of Symbol 51 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Z >= 20) {
if (random(5) == 3) {
duplicateMovieClip (this.G, "G2", 1);
this.G2._x = random(220);
this.G2._y = random(70);
Z = 0;
}
} else {
Z = Z + 1;
}
}
Instance of Symbol 36 MovieClip "KirbyS" in Symbol 89 MovieClip Frame 71
onClipEvent (load) {
Vib = "light";
}
Symbol 89 MovieClip Frame 84
YWind = -10;
Symbol 89 MovieClip Frame 97
YWind = -20;
Symbol 89 MovieClip Frame 128
stop();
Symbol 104 MovieClip Frame 1
stop();
Instance of Symbol 105 MovieClip "S1" in Symbol 106 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 105 MovieClip in Symbol 108 MovieClip Frame 10
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 105 MovieClip in Symbol 108 MovieClip Frame 10
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 105 MovieClip in Symbol 108 MovieClip Frame 10
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Symbol 108 MovieClip Frame 11
stop();
Symbol 110 MovieClip Frame 10
stop();
Symbol 111 MovieClip Frame 1
stop();
Instance of Symbol 105 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 106 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
limit = 0;
this.S1._rotation = 10;
var forvar = 2;
while (limit >= forvar) {
duplicateMovieClip (this.S1, "S" add forvar, forvar);
this["S" add forvar]._rotation = 10 * forvar;
forvar++;
}
}
Instance of Symbol 123 MovieClip "Enemy" in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
Speed = 3;
Y = 0;
MaxY = 10;
StartX = _root.Level[../:Name]._x;
StartY = _root.Level[../:Name]._y;
StartXscale = _root.Level[../:Name]._xscale;
RandM = 50;
RandL = 50;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
onClipEvent (enterFrame) {
if (((((((_root.Level[../:Name]._x + _root.Level._x) >= (-RandM)) && ((_root.Movwidth + RandM) >= (_root.Level[../:Name]._x + _root.Level._x))) && ((_root.Level[../:Name]._y + _root.Level._y) >= (-RandM))) && ((_root.Movheight + RandM) >= (_root.Level[../:Name]._y + _root.Level._y))) && (_root.Kirby.AttackDemo == "off")) && (_root.Level[../:Name]._visible == 1)) {
Y = Y - 1;
if (Y < (-MaxY)) {
Y = -MaxY;
}
if (_root.Kirby.Spiting != ../:Name) {
var forvar = 1;
while (_root.Grounds >= forvar) {
if (this.hit.hitTest(_root.Level["G" add forvar])) {
if ((_root.Level["G" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["G" add forvar]._y;
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
var forvar = 1;
while (_root.Blocks >= forvar) {
if (this.hit.hitTest(_root.Level["B" add forvar]) && (_root.Level["B" add forvar]._visible == 1)) {
if ((_root.Level["B" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["B" add forvar]._y - (_root.Level["B" add forvar]._height / 2);
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
_root.Level[../:Name]._x = _root.Level[../:Name]._x + X;
_root.Level[../:Name]._y = _root.Level[../:Name]._y - Y;
}
if (0 < X) {
_root.Level[../:Name]._xscale = -100;
} else {
_root.Level[../:Name]._xscale = 100;
}
if (On != "off2") {
On = "on";
}
} else {
if ((On == "on") && (_root.Level[../:Name]._visible == 0)) {
duplicateMovieClip (_root.Level.Puffeffect, "Peffect1", 200);
_root.Level.Peffect1._x = _root.Level[../:Name]._x;
_root.Level.Peffect1._y = _root.Level[../:Name]._y - 10;
}
On = "off";
if (((((-RandL) >= (StartX + _root.Level._x)) || ((StartX + _root.Level._x) >= (_root.Movwidth + RandL))) || ((-RandL) >= (StartY + _root.Level._y))) || ((StartY + _root.Level._y) >= (_root.Movheight + RandL))) {
_root.Level[../:Name]._visible = 1;
_root.Level[../:Name]._x = StartX;
_root.Level[../:Name]._xscale = StartXscale;
_root.Level[../:Name]._y = StartY;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
}
}
Instance of Symbol 123 MovieClip "Enemy" in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
Speed = 3;
Y = 0;
MaxY = 10;
StartX = _root.Level[../:Name]._x;
StartY = _root.Level[../:Name]._y;
StartXscale = _root.Level[../:Name]._xscale;
RandM = 50;
RandL = 50;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
onClipEvent (enterFrame) {
if (((((((_root.Level[../:Name]._x + _root.Level._x) >= (-RandM)) && ((_root.Movwidth + RandM) >= (_root.Level[../:Name]._x + _root.Level._x))) && ((_root.Level[../:Name]._y + _root.Level._y) >= (-RandM))) && ((_root.Movheight + RandM) >= (_root.Level[../:Name]._y + _root.Level._y))) && (_root.Kirby.AttackDemo == "off")) && (_root.Level[../:Name]._visible == 1)) {
Y = Y - 1;
if (Y < (-MaxY)) {
Y = -MaxY;
}
if (_root.Kirby.Spiting != ../:Name) {
var forvar = 1;
while (_root.Grounds >= forvar) {
if (this.hit.hitTest(_root.Level["G" add forvar])) {
if ((_root.Level["G" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["G" add forvar]._y;
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
var forvar = 1;
while (_root.Blocks >= forvar) {
if (this.hit.hitTest(_root.Level["B" add forvar]) && (_root.Level["B" add forvar]._visible == 1)) {
if ((_root.Level["B" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["B" add forvar]._y - (_root.Level["B" add forvar]._height / 2);
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
_root.Level[../:Name]._x = _root.Level[../:Name]._x + X;
_root.Level[../:Name]._y = _root.Level[../:Name]._y - Y;
}
if (0 < X) {
_root.Level[../:Name]._xscale = -100;
} else {
_root.Level[../:Name]._xscale = 100;
}
if (On != "off2") {
On = "on";
}
} else {
if ((On == "on") && (_root.Level[../:Name]._visible == 0)) {
duplicateMovieClip (_root.Level.Puffeffect, "Peffect1", 200);
_root.Level.Peffect1._x = _root.Level[../:Name]._x;
_root.Level.Peffect1._y = _root.Level[../:Name]._y - 10;
}
On = "off";
if (((((-RandL) >= (StartX + _root.Level._x)) || ((StartX + _root.Level._x) >= (_root.Movwidth + RandL))) || ((-RandL) >= (StartY + _root.Level._y))) || ((StartY + _root.Level._y) >= (_root.Movheight + RandL))) {
_root.Level[../:Name]._visible = 1;
_root.Level[../:Name]._x = StartX;
_root.Level[../:Name]._xscale = StartXscale;
_root.Level[../:Name]._y = StartY;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
}
}
Instance of Symbol 123 MovieClip "Enemy" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
Speed = 3;
Y = 0;
MaxY = 10;
StartX = _root.Level[../:Name]._x;
StartY = _root.Level[../:Name]._y;
StartXscale = _root.Level[../:Name]._xscale;
RandM = 50;
RandL = 50;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
onClipEvent (enterFrame) {
if (((((((_root.Level[../:Name]._x + _root.Level._x) >= (-RandM)) && ((_root.Movwidth + RandM) >= (_root.Level[../:Name]._x + _root.Level._x))) && ((_root.Level[../:Name]._y + _root.Level._y) >= (-RandM))) && ((_root.Movheight + RandM) >= (_root.Level[../:Name]._y + _root.Level._y))) && (_root.Kirby.AttackDemo == "off")) && (_root.Level[../:Name]._visible == 1)) {
Y = Y - 1;
if (Y < (-MaxY)) {
Y = -MaxY;
}
if (_root.Kirby.Spiting != ../:Name) {
var forvar = 1;
while (_root.Grounds >= forvar) {
if (this.hit.hitTest(_root.Level["G" add forvar])) {
if ((_root.Level["G" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["G" add forvar]._y;
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
var forvar = 1;
while (_root.Blocks >= forvar) {
if (this.hit.hitTest(_root.Level["B" add forvar]) && (_root.Level["B" add forvar]._visible == 1)) {
if ((_root.Level["B" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["B" add forvar]._y - (_root.Level["B" add forvar]._height / 2);
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
_root.Level[../:Name]._x = _root.Level[../:Name]._x + X;
_root.Level[../:Name]._y = _root.Level[../:Name]._y - Y;
}
if (0 < X) {
_root.Level[../:Name]._xscale = -100;
} else {
_root.Level[../:Name]._xscale = 100;
}
if (On != "off2") {
On = "on";
}
} else {
if ((On == "on") && (_root.Level[../:Name]._visible == 0)) {
duplicateMovieClip (_root.Level.Puffeffect, "Peffect1", 200);
_root.Level.Peffect1._x = _root.Level[../:Name]._x;
_root.Level.Peffect1._y = _root.Level[../:Name]._y - 10;
}
On = "off";
if (((((-RandL) >= (StartX + _root.Level._x)) || ((StartX + _root.Level._x) >= (_root.Movwidth + RandL))) || ((-RandL) >= (StartY + _root.Level._y))) || ((StartY + _root.Level._y) >= (_root.Movheight + RandL))) {
_root.Level[../:Name]._visible = 1;
_root.Level[../:Name]._x = StartX;
_root.Level[../:Name]._xscale = StartXscale;
_root.Level[../:Name]._y = StartY;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
}
}
Symbol 129 MovieClip Frame 9
stop();
Instance of Symbol 130 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
var forvar = 2;
while (6 >= forvar) {
duplicateMovieClip (this.S1, "S" add forvar, forvar);
this["S" add forvar]._rotation = (forvar - 1) * 60;
forvar++;
}
}
Symbol 131 MovieClip Frame 10
stop();
this.removeMovieClip();
Symbol 142 MovieClip Frame 18
gotoAndPlay (1);
Instance of Symbol 143 MovieClip "Enemy" in Symbol 144 MovieClip Frame 1
onClipEvent (load) {
Speed = 3;
Y2 = 10;
Y3 = -10;
MaxY = 10;
StartX = _root.Level[../:Name]._x;
StartY = _root.Level[../:Name]._y;
StartXscale = _root.Level[../:Name]._xscale;
RandM = 50;
RandL = 50;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
onClipEvent (enterFrame) {
if ((((((((_root.Level[../:Name]._x + _root.Level._x) >= (-RandM)) && ((_root.Movwidth + RandM) >= (_root.Level[../:Name]._x + _root.Level._x))) && ((_root.Level[../:Name]._y + _root.Level._y) >= (-RandM))) && ((_root.Movheight + RandM) >= (_root.Level[../:Name]._y + _root.Level._y))) && (_root.Kirby.AttackDemo == "off")) && (_root.Level[../:Name]._visible == 1)) && (../:Name != _root.Kirby.spiting)) {
Name = _root.Kirby.spiting.toLowerCase();
Name2 = ../:Name.toLowerCase();
if (this.Name == this.Name2) {
} else {
_root.Level[../:Name]._y = StartY + (47 * Math.sin((Math.PI/180) * rot));
}
rot = rot + (Speed * 2);
if (rot >= 360) {
rot = 0;
}
_root.Level[../:Name]._x = _root.Level[../:Name]._x + X;
if (0 < X) {
_root.Level[../:Name]._xscale = -100;
} else {
_root.Level[../:Name]._xscale = 100;
}
if (On != "off2") {
On = "on";
}
} else {
if ((On == "on") && (_root.Level[../:Name]._visible == 0)) {
duplicateMovieClip (_root.Level.Puffeffect, "Peffect1", 200);
_root.Level.Peffect1._x = _root.Level[../:Name]._x;
_root.Level.Peffect1._y = _root.Level[../:Name]._y - 10;
}
On = "off";
if (((((-RandL) >= (StartX + _root.Level._x)) || ((StartX + _root.Level._x) >= (_root.Movwidth + RandL))) || ((-RandL) >= (StartY + _root.Level._y))) || ((StartY + _root.Level._y) >= (_root.Movheight + RandL))) {
_root.Level[../:Name]._visible = 1;
_root.Level[../:Name]._x = StartX;
_root.Level[../:Name]._y = StartY;
if ((_root.Level[../:Name]._x + _root.Level._x) < _root.Kirby._x) {
_root.Level[../:Name]._xscale = -100;
X = Speed;
} else {
X = -Speed;
_root.Level[../:Name]._xscale = 100;
}
}
}
}
Instance of Symbol 143 MovieClip "Enemy" in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
Speed = 3;
Y2 = 10;
Y3 = -10;
MaxY = 10;
StartX = _root.Level[../:Name]._x;
StartY = _root.Level[../:Name]._y;
StartXscale = _root.Level[../:Name]._xscale;
RandM = 50;
RandL = 50;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
onClipEvent (enterFrame) {
if ((((((((_root.Level[../:Name]._x + _root.Level._x) >= (-RandM)) && ((_root.Movwidth + RandM) >= (_root.Level[../:Name]._x + _root.Level._x))) && ((_root.Level[../:Name]._y + _root.Level._y) >= (-RandM))) && ((_root.Movheight + RandM) >= (_root.Level[../:Name]._y + _root.Level._y))) && (_root.Kirby.AttackDemo == "off")) && (_root.Level[../:Name]._visible == 1)) && (../:Name != _root.Kirby.spiting)) {
Name = _root.Kirby.spiting.toLowerCase();
Name2 = ../:Name.toLowerCase();
if (this.Name == this.Name2) {
} else {
_root.Level[../:Name]._y = StartY + (47 * Math.sin((Math.PI/180) * rot));
}
rot = rot + (Speed * 2);
if (rot >= 360) {
rot = 0;
}
_root.Level[../:Name]._x = _root.Level[../:Name]._x + X;
if (0 < X) {
_root.Level[../:Name]._xscale = -100;
} else {
_root.Level[../:Name]._xscale = 100;
}
if (On != "off2") {
On = "on";
}
} else {
if ((On == "on") && (_root.Level[../:Name]._visible == 0)) {
duplicateMovieClip (_root.Level.Puffeffect, "Peffect1", 200);
_root.Level.Peffect1._x = _root.Level[../:Name]._x;
_root.Level.Peffect1._y = _root.Level[../:Name]._y - 10;
}
On = "off";
if (((((-RandL) >= (StartX + _root.Level._x)) || ((StartX + _root.Level._x) >= (_root.Movwidth + RandL))) || ((-RandL) >= (StartY + _root.Level._y))) || ((StartY + _root.Level._y) >= (_root.Movheight + RandL))) {
_root.Level[../:Name]._visible = 1;
_root.Level[../:Name]._x = StartX;
_root.Level[../:Name]._y = StartY;
if ((_root.Level[../:Name]._x + _root.Level._x) < _root.Kirby._x) {
_root.Level[../:Name]._xscale = -100;
X = Speed;
} else {
X = -Speed;
_root.Level[../:Name]._xscale = 100;
}
}
}
}
Instance of Symbol 155 MovieClip "Boomerang" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
MaxSpeed = 20;
Speed = 20;
}
onClipEvent (enterFrame) {
Speed = Speed - 1;
if ((-550 < this._x) && (this._visible == 1)) {
this.gotoAndStop(1);
var forvar = 1;
while (_root.Blocks >= forvar) {
if (this.hitTest(_root.Level["B" add forvar]) && (_root.Level["B" add forvar]._visible == 1)) {
_root.Kirby.Blockpuff(forvar);
_root.Level["B" add forvar]._visible = 0;
this._visible = 0;
} else if (this.hitTest(_root.Level["Enemy" add forvar]) && (_root.Level["Enemy" add forvar]._visible == 1)) {
_root.Level["Enemy" add forvar]._visible = 0;
this._visible = 0;
}
forvar++;
}
if (this.hitTest(_root.Kirby.feet) && (Speed < 10)) {
this._visible = 0;
}
if (MaxSpeed < Speed) {
this._x = this._x + Maxspeed;
} else if (Speed < (-MaxSpeed)) {
this._x = this._x - Maxspeed;
} else {
this._x = this._x + Speed;
}
} else {
this.gotoAndStop(2);
this._visible = 0;
}
}
Instance of Symbol 157 MovieClip "S" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
Goto = 1;
var Z = 1;
while (10 >= Z) {
duplicateMovieClip (this.S, "S" add Z, Z);
this["S" add forvar]._x = 5 - random(10);
this["S" add forvar]._y = 5 - random(10);
this["S" add forvar]._yscale = 100 - random(20);
this["S" add forvar]._xscale = this["S" add forvar]._yscale;
this["S" add forvar]._rotation = 270 + random(60);
this["S" add forvar].goto = goto;
Z++;
}
}
Symbol 158 MovieClip Frame 13
stop();
Instance of Symbol 123 MovieClip "Enemy" in Symbol 161 MovieClip Frame 1
onClipEvent (load) {
Speed = 3;
Y = 0;
MaxY = 10;
StartX = _root.Level[../:Name]._x;
StartY = _root.Level[../:Name]._y;
StartXscale = _root.Level[../:Name]._xscale;
RandM = 50;
RandL = 50;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
onClipEvent (enterFrame) {
if (((((((_root.Level[../:Name]._x + _root.Level._x) >= (-RandM)) && ((_root.Movwidth + RandM) >= (_root.Level[../:Name]._x + _root.Level._x))) && ((_root.Level[../:Name]._y + _root.Level._y) >= (-RandM))) && ((_root.Movheight + RandM) >= (_root.Level[../:Name]._y + _root.Level._y))) && (_root.Kirby.AttackDemo == "off")) && (_root.Level[../:Name]._visible == 1)) {
Y = Y - 1;
if (Y < (-MaxY)) {
Y = -MaxY;
}
if (_root.Kirby.Spiting != ../:Name) {
var forvar = 1;
while (_root.Grounds >= forvar) {
if (this.hit.hitTest(_root.Level["G" add forvar])) {
if ((_root.Level["G" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["G" add forvar]._y;
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
var forvar = 1;
while (_root.Blocks >= forvar) {
if (this.hit.hitTest(_root.Level["B" add forvar]) && (_root.Level["B" add forvar]._visible == 1)) {
if ((_root.Level["B" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["B" add forvar]._y - (_root.Level["B" add forvar]._height / 2);
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
_root.Level[../:Name]._x = _root.Level[../:Name]._x + X;
_root.Level[../:Name]._y = _root.Level[../:Name]._y - Y;
}
if (0 < X) {
_root.Level[../:Name]._xscale = -100;
} else {
_root.Level[../:Name]._xscale = 100;
}
if (On != "off2") {
On = "on";
}
} else {
if ((On == "on") && (_root.Level[../:Name]._visible == 0)) {
duplicateMovieClip (_root.Level.Puffeffect, "Peffect1", 200);
_root.Level.Peffect1._x = _root.Level[../:Name]._x;
_root.Level.Peffect1._y = _root.Level[../:Name]._y - 10;
}
On = "off";
if (((((-RandL) >= (StartX + _root.Level._x)) || ((StartX + _root.Level._x) >= (_root.Movwidth + RandL))) || ((-RandL) >= (StartY + _root.Level._y))) || ((StartY + _root.Level._y) >= (_root.Movheight + RandL))) {
_root.Level[../:Name]._visible = 1;
_root.Level[../:Name]._x = StartX;
_root.Level[../:Name]._xscale = StartXscale;
_root.Level[../:Name]._y = StartY;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
}
}
Instance of Symbol 123 MovieClip "Enemy" in Symbol 162 MovieClip Frame 1
onClipEvent (load) {
Speed = 3;
Y = 0;
MaxY = 10;
StartX = _root.Level[../:Name]._x;
StartY = _root.Level[../:Name]._y;
StartXscale = _root.Level[../:Name]._xscale;
RandM = 50;
RandL = 50;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
onClipEvent (enterFrame) {
if (((((((_root.Level[../:Name]._x + _root.Level._x) >= (-RandM)) && ((_root.Movwidth + RandM) >= (_root.Level[../:Name]._x + _root.Level._x))) && ((_root.Level[../:Name]._y + _root.Level._y) >= (-RandM))) && ((_root.Movheight + RandM) >= (_root.Level[../:Name]._y + _root.Level._y))) && (_root.Kirby.AttackDemo == "off")) && (_root.Level[../:Name]._visible == 1)) {
Y = Y - 1;
if (Y < (-MaxY)) {
Y = -MaxY;
}
if (_root.Kirby.Spiting != ../:Name) {
var forvar = 1;
while (_root.Grounds >= forvar) {
if (this.hit.hitTest(_root.Level["G" add forvar])) {
if ((_root.Level["G" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["G" add forvar]._y;
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
var forvar = 1;
while (_root.Blocks >= forvar) {
if (this.hit.hitTest(_root.Level["B" add forvar]) && (_root.Level["B" add forvar]._visible == 1)) {
if ((_root.Level["B" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["B" add forvar]._y - (_root.Level["B" add forvar]._height / 2);
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
_root.Level[../:Name]._x = _root.Level[../:Name]._x + X;
_root.Level[../:Name]._y = _root.Level[../:Name]._y - Y;
}
if (0 < X) {
_root.Level[../:Name]._xscale = -100;
} else {
_root.Level[../:Name]._xscale = 100;
}
if (On != "off2") {
On = "on";
}
} else {
if ((On == "on") && (_root.Level[../:Name]._visible == 0)) {
duplicateMovieClip (_root.Level.Puffeffect, "Peffect1", 200);
_root.Level.Peffect1._x = _root.Level[../:Name]._x;
_root.Level.Peffect1._y = _root.Level[../:Name]._y - 10;
}
On = "off";
if (((((-RandL) >= (StartX + _root.Level._x)) || ((StartX + _root.Level._x) >= (_root.Movwidth + RandL))) || ((-RandL) >= (StartY + _root.Level._y))) || ((StartY + _root.Level._y) >= (_root.Movheight + RandL))) {
_root.Level[../:Name]._visible = 1;
_root.Level[../:Name]._x = StartX;
_root.Level[../:Name]._xscale = StartXscale;
_root.Level[../:Name]._y = StartY;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
}
}
Instance of Symbol 123 MovieClip "Enemy" in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
Speed = 3;
Y = 0;
MaxY = 10;
StartX = _root.Level[../:Name]._x;
StartY = _root.Level[../:Name]._y;
StartXscale = _root.Level[../:Name]._xscale;
RandM = 50;
RandL = 50;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
onClipEvent (enterFrame) {
if (((((((_root.Level[../:Name]._x + _root.Level._x) >= (-RandM)) && ((_root.Movwidth + RandM) >= (_root.Level[../:Name]._x + _root.Level._x))) && ((_root.Level[../:Name]._y + _root.Level._y) >= (-RandM))) && ((_root.Movheight + RandM) >= (_root.Level[../:Name]._y + _root.Level._y))) && (_root.Kirby.AttackDemo == "off")) && (_root.Level[../:Name]._visible == 1)) {
Y = Y - 1;
if (Y < (-MaxY)) {
Y = -MaxY;
}
if (_root.Kirby.Spiting != ../:Name) {
var forvar = 1;
while (_root.Grounds >= forvar) {
if (this.hit.hitTest(_root.Level["G" add forvar])) {
if ((_root.Level["G" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["G" add forvar]._y;
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
var forvar = 1;
while (_root.Blocks >= forvar) {
if (this.hit.hitTest(_root.Level["B" add forvar]) && (_root.Level["B" add forvar]._visible == 1)) {
if ((_root.Level["B" add forvar]._y + MaxY) >= _root.Level[../:Name]._y) {
_root.Level[../:Name]._y = _root.Level["B" add forvar]._y - (_root.Level["B" add forvar]._height / 2);
Y = 0;
} else {
X = X * -1;
}
}
forvar++;
}
_root.Level[../:Name]._x = _root.Level[../:Name]._x + X;
_root.Level[../:Name]._y = _root.Level[../:Name]._y - Y;
}
if (0 < X) {
_root.Level[../:Name]._xscale = -100;
} else {
_root.Level[../:Name]._xscale = 100;
}
if (On != "off2") {
On = "on";
}
} else {
if ((On == "on") && (_root.Level[../:Name]._visible == 0)) {
duplicateMovieClip (_root.Level.Puffeffect, "Peffect1", 200);
_root.Level.Peffect1._x = _root.Level[../:Name]._x;
_root.Level.Peffect1._y = _root.Level[../:Name]._y - 10;
}
On = "off";
if (((((-RandL) >= (StartX + _root.Level._x)) || ((StartX + _root.Level._x) >= (_root.Movwidth + RandL))) || ((-RandL) >= (StartY + _root.Level._y))) || ((StartY + _root.Level._y) >= (_root.Movheight + RandL))) {
_root.Level[../:Name]._visible = 1;
_root.Level[../:Name]._x = StartX;
_root.Level[../:Name]._xscale = StartXscale;
_root.Level[../:Name]._y = StartY;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
}
}
Instance of Symbol 143 MovieClip "Enemy" in Symbol 164 MovieClip Frame 1
onClipEvent (load) {
Speed = 3;
Y2 = 10;
Y3 = -10;
MaxY = 10;
StartX = _root.Level[../:Name]._x;
StartY = _root.Level[../:Name]._y;
StartXscale = _root.Level[../:Name]._xscale;
RandM = 50;
RandL = 50;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
onClipEvent (enterFrame) {
if ((((((((_root.Level[../:Name]._x + _root.Level._x) >= (-RandM)) && ((_root.Movwidth + RandM) >= (_root.Level[../:Name]._x + _root.Level._x))) && ((_root.Level[../:Name]._y + _root.Level._y) >= (-RandM))) && ((_root.Movheight + RandM) >= (_root.Level[../:Name]._y + _root.Level._y))) && (_root.Kirby.AttackDemo == "off")) && (_root.Level[../:Name]._visible == 1)) && (../:Name != _root.Kirby.spiting)) {
Name = _root.Kirby.spiting.toLowerCase();
Name2 = ../:Name.toLowerCase();
if (this.Name == this.Name2) {
} else {
_root.Level[../:Name]._y = StartY + (47 * Math.sin((Math.PI/180) * rot));
}
rot = rot + (Speed * 2);
if (rot >= 360) {
rot = 0;
}
_root.Level[../:Name]._x = _root.Level[../:Name]._x + X;
if (0 < X) {
_root.Level[../:Name]._xscale = -100;
} else {
_root.Level[../:Name]._xscale = 100;
}
if (On != "off2") {
On = "on";
}
} else {
if ((On == "on") && (_root.Level[../:Name]._visible == 0)) {
duplicateMovieClip (_root.Level.Puffeffect, "Peffect1", 200);
_root.Level.Peffect1._x = _root.Level[../:Name]._x;
_root.Level.Peffect1._y = _root.Level[../:Name]._y - 10;
}
On = "off";
if (((((-RandL) >= (StartX + _root.Level._x)) || ((StartX + _root.Level._x) >= (_root.Movwidth + RandL))) || ((-RandL) >= (StartY + _root.Level._y))) || ((StartY + _root.Level._y) >= (_root.Movheight + RandL))) {
_root.Level[../:Name]._visible = 1;
_root.Level[../:Name]._x = StartX;
_root.Level[../:Name]._y = StartY;
if ((_root.Level[../:Name]._x + _root.Level._x) < _root.Kirby._x) {
_root.Level[../:Name]._xscale = -100;
X = Speed;
} else {
X = -Speed;
_root.Level[../:Name]._xscale = 100;
}
}
}
}
Instance of Symbol 143 MovieClip "Enemy" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
Speed = 3;
Y2 = 10;
Y3 = -10;
MaxY = 10;
StartX = _root.Level[../:Name]._x;
StartY = _root.Level[../:Name]._y;
StartXscale = _root.Level[../:Name]._xscale;
RandM = 50;
RandL = 50;
if (0 < StartXscale) {
X = -Speed;
} else {
X = Speed;
}
}
onClipEvent (enterFrame) {
if ((((((((_root.Level[../:Name]._x + _root.Level._x) >= (-RandM)) && ((_root.Movwidth + RandM) >= (_root.Level[../:Name]._x + _root.Level._x))) && ((_root.Level[../:Name]._y + _root.Level._y) >= (-RandM))) && ((_root.Movheight + RandM) >= (_root.Level[../:Name]._y + _root.Level._y))) && (_root.Kirby.AttackDemo == "off")) && (_root.Level[../:Name]._visible == 1)) && (../:Name != _root.Kirby.spiting)) {
Name = _root.Kirby.spiting.toLowerCase();
Name2 = ../:Name.toLowerCase();
if (this.Name == this.Name2) {
} else {
_root.Level[../:Name]._y = StartY + (47 * Math.sin((Math.PI/180) * rot));
}
rot = rot + (Speed * 2);
if (rot >= 360) {
rot = 0;
}
_root.Level[../:Name]._x = _root.Level[../:Name]._x + X;
if (0 < X) {
_root.Level[../:Name]._xscale = -100;
} else {
_root.Level[../:Name]._xscale = 100;
}
if (On != "off2") {
On = "on";
}
} else {
if ((On == "on") && (_root.Level[../:Name]._visible == 0)) {
duplicateMovieClip (_root.Level.Puffeffect, "Peffect1", 200);
_root.Level.Peffect1._x = _root.Level[../:Name]._x;
_root.Level.Peffect1._y = _root.Level[../:Name]._y - 10;
}
On = "off";
if (((((-RandL) >= (StartX + _root.Level._x)) || ((StartX + _root.Level._x) >= (_root.Movwidth + RandL))) || ((-RandL) >= (StartY + _root.Level._y))) || ((StartY + _root.Level._y) >= (_root.Movheight + RandL))) {
_root.Level[../:Name]._visible = 1;
_root.Level[../:Name]._x = StartX;
_root.Level[../:Name]._y = StartY;
if ((_root.Level[../:Name]._x + _root.Level._x) < _root.Kirby._x) {
_root.Level[../:Name]._xscale = -100;
X = Speed;
} else {
X = -Speed;
_root.Level[../:Name]._xscale = 100;
}
}
}
}
Symbol 166 MovieClip Frame 1
stop();
Instance of Symbol 93 MovieClip in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.Kirby.feet) && (Key.isDown(_root.Kirby.up))) && (_root.Levelchange._currentframe == 1)) {
_root.Door = 2;
_root.DoorX = 250;
_root.DoorY = 153;
_root.DoorLevelX = 0;
_root.DoorLevelY = 0;
_root.CdoorY = _root.Kirby._y;
_root.CdoorX = _root.Kirby._x;
_root.Levelchange.gotoAndPlay(2);
}
}
Instance of Symbol 111 MovieClip "SPAStar" in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((0 < this.VisZ) && (this._visible == 1)) && (this._currentframe == 1)) {
this.VisZ = this.VisZ - 1;
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 124 MovieClip "Enemy1" in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
Name = this._name;
this._xscale = -100;
SPattack = "Sword";
}
Instance of Symbol 125 MovieClip "Enemy2" in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
SPattack = "Crash";
Name = this._name;
this._xscale = -100;
}
Instance of Symbol 126 MovieClip "Enemy3" in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
Name = this._name;
SPattack = "stone";
}
Instance of Symbol 144 MovieClip "enemy6" in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
Name = this._name;
SPattack = "Beam";
}
Instance of Symbol 145 MovieClip "enemy8" in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
Name = this._name;
SPattack = "Spikes";
}
Instance of Symbol 49 MovieClip "Bpuff" in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.S.S._currentframe >= this.S.S._totalframes) {
this.removeMovieClip();
}
}
Symbol 166 MovieClip Frame 2
nextFrame();
Instance of Symbol 159 MovieClip in Symbol 166 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((this.hitTest(_root.Kirby.feet) && (Key.isDown(_root.Kirby.up))) && (_root.Levelchange._currentframe == 1)) {
_root.Door = 4;
_root.DoorX = 250;
_root.DoorY = 153;
_root.DoorLevelX = 0;
_root.DoorLevelY = 0;
_root.CdoorY = _root.Kirby._y;
_root.CdoorX = _root.Kirby._x;
_root.Levelchange.gotoAndPlay(2);
}
}
Instance of Symbol 111 MovieClip "SPAStar" in Symbol 166 MovieClip Frame 3
onClipEvent (enterFrame) {
if (((0 < this.VisZ) && (this._visible == 1)) && (this._currentframe == 1)) {
this.VisZ = this.VisZ - 1;
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 161 MovieClip "Enemy1" in Symbol 166 MovieClip Frame 3
onClipEvent (load) {
Name = this._name;
this._xscale = -100;
SPattack = "Beam";
}
Instance of Symbol 162 MovieClip "Enemy2" in Symbol 166 MovieClip Frame 3
onClipEvent (load) {
SPattack = "elektro";
Name = this._name;
this._xscale = -100;
}
Instance of Symbol 163 MovieClip "Enemy3" in Symbol 166 MovieClip Frame 3
onClipEvent (load) {
Name = this._name;
SPattack = "fire";
}
Instance of Symbol 164 MovieClip "enemy6" in Symbol 166 MovieClip Frame 3
onClipEvent (load) {
Name = this._name;
SPattack = "Boomerang";
}
Instance of Symbol 165 MovieClip "enemy8" in Symbol 166 MovieClip Frame 3
onClipEvent (load) {
Name = this._name;
SPattack = "fire";
}
Symbol 166 MovieClip Frame 4
gotoAndStop (1);
Symbol 167 MovieClip Frame 1
stop();
Instance of Symbol 93 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.Kirby.feet) && (Key.isDown(_root.Kirby.up))) && (_root.Levelchange._currentframe == 1)) {
_root.Door = 2;
_root.DoorX = 250;
_root.DoorY = 153;
_root.DoorLevelX = 0;
_root.DoorLevelY = 0;
_root.CdoorY = _root.Kirby._y;
_root.CdoorX = _root.Kirby._x;
_root.Levelchange.gotoAndPlay(2);
}
}
Instance of Symbol 111 MovieClip "SPAStar" in Symbol 167 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((0 < this.VisZ) && (this._visible == 1)) && (this._currentframe == 1)) {
this.VisZ = this.VisZ - 1;
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 124 MovieClip "Enemy1" in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
Name = this._name;
this._xscale = -100;
SPattack = "Sword";
}
Instance of Symbol 125 MovieClip "Enemy2" in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
SPattack = "Crash";
Name = this._name;
this._xscale = -100;
}
Instance of Symbol 126 MovieClip "Enemy3" in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
Name = this._name;
SPattack = "stone";
}
Instance of Symbol 144 MovieClip "enemy6" in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
Name = this._name;
SPattack = "Beam";
}
Instance of Symbol 145 MovieClip "enemy8" in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
Name = this._name;
SPattack = "Spikes";
}
Instance of Symbol 49 MovieClip "Bpuff" in Symbol 167 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.S.S._currentframe >= this.S.S._totalframes) {
this.removeMovieClip();
}
}
Symbol 167 MovieClip Frame 2
nextFrame();
Instance of Symbol 159 MovieClip in Symbol 167 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((this.hitTest(_root.Kirby.feet) && (Key.isDown(_root.Kirby.up))) && (_root.Levelchange._currentframe == 1)) {
_root.Door = 4;
_root.DoorX = 250;
_root.DoorY = 153;
_root.DoorLevelX = 0;
_root.DoorLevelY = 0;
_root.CdoorY = _root.Kirby._y;
_root.CdoorX = _root.Kirby._x;
_root.Levelchange.gotoAndPlay(2);
}
}
Instance of Symbol 111 MovieClip "SPAStar" in Symbol 167 MovieClip Frame 3
onClipEvent (enterFrame) {
if (((0 < this.VisZ) && (this._visible == 1)) && (this._currentframe == 1)) {
this.VisZ = this.VisZ - 1;
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 161 MovieClip "Enemy1" in Symbol 167 MovieClip Frame 3
onClipEvent (load) {
Name = this._name;
this._xscale = -100;
SPattack = "Beam";
}
Instance of Symbol 162 MovieClip "Enemy2" in Symbol 167 MovieClip Frame 3
onClipEvent (load) {
SPattack = "elektro";
Name = this._name;
this._xscale = -100;
}
Instance of Symbol 163 MovieClip "Enemy3" in Symbol 167 MovieClip Frame 3
onClipEvent (load) {
Name = this._name;
SPattack = "fire";
}
Instance of Symbol 164 MovieClip "enemy6" in Symbol 167 MovieClip Frame 3
onClipEvent (load) {
Name = this._name;
SPattack = "Boomerang";
}
Instance of Symbol 165 MovieClip "enemy8" in Symbol 167 MovieClip Frame 3
onClipEvent (load) {
Name = this._name;
SPattack = "fire";
}
Symbol 167 MovieClip Frame 4
gotoAndStop (1);
Symbol 174 MovieClip Frame 1
stop();
Instance of Symbol 172 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 174 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
if (_root.Kirby.SPattack == "Sword") {
this.gotoAndStop("Sword");
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.Kirby.SPattack == "Sword") {
this.gotoAndStop("Sword");
} else {
this.gotoAndStop(1);
}
}
Symbol 179 MovieClip Frame 7
stop();
Symbol 182 MovieClip Frame 28
gotoAndPlay (7);
Symbol 183 MovieClip Frame 1
_root.Kirby.runstaub();
Symbol 183 MovieClip Frame 19
gotoAndPlay (2);
Symbol 184 MovieClip Frame 28
gotoAndPlay (7);
Symbol 189 MovieClip Frame 11
stop();
Symbol 191 MovieClip Frame 10
stop();
Instance of Symbol 190 MovieClip in Symbol 191 MovieClip Frame 10
onClipEvent (load) {
Z = 2;
}
onClipEvent (enterFrame) {
if ((random(2) == 1) && (getProperty("../", _currentframe) == 10)) {
Z = Z + 1;
if (Z >= 15) {
Z = 2;
}
duplicateMovieClip (this.S1, "S" add Z, Z);
this["S" add Z]._rotation = (random(20) - 10) * 3;
}
}
Symbol 191 MovieClip Frame 20
stop();
Symbol 191 MovieClip Frame 21
gotoAndStop (20);
Symbol 193 MovieClip Frame 7
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 11
stop();
Symbol 196 MovieClip Frame 12
stop();
Symbol 199 MovieClip Frame 7
stop();
Symbol 199 MovieClip Frame 15
gotoAndStop (7);
Symbol 199 MovieClip Frame 30
play();
Symbol 199 MovieClip Frame 35
stop();
Symbol 225 MovieClip Frame 9
stop();
Instance of Symbol 226 MovieClip in Symbol 227 MovieClip Frame 1
onClipEvent (load) {
Z = 2;
}
onClipEvent (enterFrame) {
if ((random(2) == 0) && (getProperty("../../", _currentframe) < 40)) {
Z = Z + 1;
if (Z >= 15) {
Z = 2;
}
duplicateMovieClip (this.S1, "S" add Z, Z);
this["S" add Z]._rotation = random(20) - 10;
this["S" add Z]._xscale = 100 - (random(5) * 5);
}
}
Instance of Symbol 233 MovieClip in Symbol 234 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 15;
}
Symbol 240 MovieClip Frame 8
stop();
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip Frame 1
onClipEvent (load) {
Z = 2;
}
onClipEvent (enterFrame) {
if (getProperty("../../", _currentframe) < 12) {
Z = Z + 1;
if (Z >= 15) {
Z = 2;
}
duplicateMovieClip (this.S1, "S" add Z, Z);
this["S" add Z]._rotation = random(20) - 10;
this["S" add Z]._xscale = 100 - random(5);
}
}
Symbol 243 MovieClip Frame 15
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 3
play();
Symbol 244 MovieClip Frame 24
gotoAndStop (2);
Symbol 244 MovieClip Frame 30
play();
Instance of Symbol 216 MovieClip in Symbol 244 MovieClip Frame 38
onClipEvent (load) {
Z2 = 2;
}
onClipEvent (enterFrame) {
if (random(2) == 1) {
Z = Z + 1;
if (Z >= 5) {
Z = 1;
}
duplicateMovieClip (this.S1, "S" add Z, Z);
this["S" add Z]._rotation = (random(20) - 10) * 36;
}
}
Symbol 244 MovieClip Frame 53
gotoAndStop (2);
Symbol 244 MovieClip Frame 60
play();
Symbol 244 MovieClip Frame 81
gotoAndStop (2);
Symbol 244 MovieClip Frame 90
play();
Symbol 244 MovieClip Frame 110
gotoAndStop (2);
Symbol 244 MovieClip Frame 118
play();
Symbol 244 MovieClip Frame 137
gotoAndStop (2);
Symbol 244 MovieClip Frame 145
play();
Instance of Symbol 235 MovieClip "Beam" in Symbol 244 MovieClip Frame 150
onClipEvent (enterFrame) {
this._rotation = this._rotation + 15;
if (this._rotation >= 180) {
_root.Kirby.Kirby.gotoAndPlay(40);
}
}
Symbol 244 MovieClip Frame 162
gotoAndStop (2);
Symbol 244 MovieClip Frame 170
play();
Symbol 244 MovieClip Frame 186
gotoAndStop (2);
Symbol 244 MovieClip Frame 200
play();
Symbol 244 MovieClip Frame 220
gotoAndStop (2);
Symbol 245 MovieClip Frame 15
stop();
Symbol 245 MovieClip Frame 45
stop();
Instance of Symbol 216 MovieClip in Symbol 247 MovieClip Frame 9
onClipEvent (load) {
Z2 = 2;
}
onClipEvent (enterFrame) {
if (random(2) == 1) {
Z = Z + 1;
if (Z >= 5) {
Z = 1;
}
duplicateMovieClip (this.S1, "S" add Z, Z);
this["S" add Z]._rotation = (random(20) - 10) * 36;
}
}
Symbol 247 MovieClip Frame 15
stop();
Symbol 247 MovieClip Frame 45
stop();
Symbol 248 MovieClip Frame 15
stop();
Symbol 248 MovieClip Frame 45
stop();
Symbol 251 MovieClip Frame 7
stop();
Symbol 259 MovieClip Frame 15
stop();
Symbol 259 MovieClip Frame 52
stop();
Symbol 261 MovieClip Frame 6
stop();
Instance of Symbol 235 MovieClip "Beam" in Symbol 261 MovieClip Frame 6
onClipEvent (enterFrame) {
this._rotation = this._rotation + 15;
if (this._rotation >= 180) {
_root.Kirby.Kirby.gotoAndPlay(40);
}
}
Symbol 261 MovieClip Frame 44
stop();
Symbol 262 MovieClip Frame 6
duplicateMovieClip (_root.Level.Boomerang1, "Boomerang" add ../:BoomZ, ../:BoomZ);
_root.Level["Boomerang" add ../:BoomZ]._x = _root.Kirby._x - _root.Level._x;
_root.Level["Boomerang" add ../:BoomZ]._y = (_root.Kirby._y - 20) - _root.Level._y;
_root.Level["Boomerang" add ../:BoomZ]._xscale = _root.Kirby._xscale;
_root.Level["Boomerang" add ../:BoomZ].Boomerang.Speed = 30;
_root.Level["Boomerang" add ../:BoomZ].Boomerang._x = 0;
_root.Level["Boomerang" add ../:BoomZ].Boomerang._visible = 1;
Set("../:BoomZ", ../:BoomZ + 1);
if (54 < ../:BoomZ) {
Set("../:BoomZ", 50);
}
Symbol 262 MovieClip Frame 13
gotoAndStop (40);
Symbol 263 MovieClip Frame 1
stop();
Instance of Symbol 200 MovieClip "Kirby" in Symbol 263 MovieClip Frame 67
onClipEvent (enterFrame) {
this._rotation = this._rotation - 25;
}
Instance of Symbol 201 MovieClip "Kirby" in Symbol 263 MovieClip Frame 70
onClipEvent (enterFrame) {
this._rotation = this._rotation + 20;
}
Instance of Symbol 258 MovieClip "hit2" in Symbol 263 MovieClip Frame 160
onClipEvent (enterFrame) {
this._width = ../:Kirby.Fire._width;
}
Instance of Symbol 260 MovieClip "hit2" in Symbol 263 MovieClip Frame 175
onClipEvent (enterFrame) {
if (../:Kirby._currentframe < 40) {
this._width = ../:Kirby.Beam._width;
this._height = ../:Kirby.Beam._height;
this._y = ((-(90 - ../:Kirby.Beam._rotation)) / 2) - 20;
} else {
this._width = 0;
this._height = 0;
this._y = 0;
}
}
Symbol 265 MovieClip Frame 13
stop();
Symbol 266 MovieClip Frame 1
stop();
Instance of Symbol 105 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 106 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (load) {
limit = 0;
this.S1._rotation = 10;
var forvar = 2;
while (limit >= forvar) {
duplicateMovieClip (this.S1, "S" add forvar, forvar);
this["S" add forvar]._rotation = 10 * forvar;
forvar++;
}
}
Symbol 267 MovieClip Frame 2
stop();
Instance of Symbol 266 MovieClip "Star" in Symbol 267 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this._x < 700) {
this._x = this._x + 20;
} else {
this.gotoAndStop(5);
}
}
}
Symbol 268 MovieClip Frame 36
stop();
Symbol 270 MovieClip Frame 1
stop();
Instance of Symbol 269 MovieClip in Symbol 270 MovieClip Frame 2
onClipEvent (load) {
var forvar = 2;
while (6 >= forvar) {
duplicateMovieClip (this.S1, "S" add forvar, forvar);
this["S" add forvar]._rotation = (forvar - 1) * 60;
forvar++;
}
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 17
_root.Level.gotoAndStop(_root.Door);
_root.Level._x = _root.doorLevelX;
_root.Level._y = _root.doorLevelX;
_root.Kirby._x = _root.doorX;
_root.Kirby._y = _root.doorY;
_root.setvarsoff = "on";
_root.door = 0;
Symbol 277 MovieClip Frame 32
gotoAndStop (1);
Instance of Symbol 51 MovieClip in Symbol 277 MovieClip Frame 84
onClipEvent (enterFrame) {
if (Z >= 20) {
if (random(5) == 3) {
duplicateMovieClip (this.G, "G2", 1);
this.G2._x = random(220);
this.G2._y = random(70);
Z = 0;
}
} else {
Z = Z + 1;
}
}
Symbol 277 MovieClip Frame 93
_root.gotoAndStop(_root.Startframe);
Instance of Symbol 284 MovieClip "KirbyS" in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - ((this._x - _root._xmouse) / 5);
this._y = this._y - ((this._y - _root._ymouse) / 5);
}
Symbol 286 MovieClip Frame 69
Ywind = 10;
Symbol 286 MovieClip Frame 105
Ywind = 0;
Instance of Symbol 36 MovieClip "KirbyS" in Symbol 286 MovieClip Frame 156
onClipEvent (load) {
Vib = "light";
}
Symbol 286 MovieClip Frame 158
Wind = -30;
Symbol 286 MovieClip Frame 185
Wind = 0;
Symbol 286 MovieClip Frame 191
_root.gotoAndStop(_root.Startframe);
stop();